/* Marokko Nieuws: coming soon.
   One stylesheet for every page. Dark by default, one accent (the flag red), one display face (Anton, OFL).
   Every value comes from the scales declared on :root. */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces and ink */
  --ink-0: #0a0a0a;
  --ink-1: #131313;
  --ink-2: #1c1c1c;
  --line: #2a2a2a;
  --line-input: #6a6a6a;
  --paper: #f4f1ea;
  --paper-dim: #aaa69c;
  --paper-mute: #8a877e;

  /* The accent: Moroccan flag red, tuned per surface. */
  --red: #c1272d;
  --red-hover: #a8222a;
  --red-bright: #e8423c;
  --red-text: #ff7a73;
  --green: #1fa35f;

  /* Scales */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-pill: 999px;

  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-s: 0.875rem;
  --text-m: 1.0625rem;
  --text-l: 1.25rem;

  --measure: 34rem;
  --wrap: 75rem;
  --gutter: 1.25rem;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink-0);
  color: var(--paper);
  font: 400 var(--text-m) / 1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-1);
}

a:hover {
  text-decoration-color: var(--red-bright);
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The SVG sprite holds the star symbol every <use> on the page points at. Zero-sized, never display:none. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* The honeypot is off-screen, not display:none, so a bot that reads the DOM still fills it. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--paper);
  color: var(--ink-0);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Type */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.display--xl {
  font-size: clamp(4rem, 24cqw, 10rem);
}

.display--l {
  font-size: clamp(2.75rem, 13cqw, 6rem);
}

.display--m {
  font-size: clamp(2rem, 8vw, 3rem);
}

.display__line {
  display: block;
}

.display__line--accent {
  color: var(--red-bright);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font: 500 var(--text-xs) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.tag__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red-bright);
  animation: pulse 2.4s ease-in-out infinite;
}

.lead {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  font-size: var(--text-l);
  line-height: 1.45;
  color: var(--paper-dim);
}

.lead strong {
  color: var(--paper);
  font-weight: 600;
}

/* Header */

.site-header {
  padding-block: var(--space-4);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand__name {
  padding-top: 0.12em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-6) var(--space-8);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
}

.hero__copy {
  container-type: inline-size;
}

.kicker {
  margin-bottom: var(--space-4);
}

/* The flag's star, faint and large, rising from under the form card. Desktop only: on a phone it would sit behind the headline. */
.hero__star {
  display: none;
  position: absolute;
  right: -3rem;
  bottom: -17rem;
  width: 32rem;
  height: auto;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: miter;
  opacity: 0.22;
  pointer-events: none;
}

.pillars {
  list-style: none;
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.pillar__num {
  font: 500 var(--text-xs) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--red-bright);
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillar__text {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
  color: var(--paper-dim);
}

/* Card and form */

.card {
  padding: var(--space-5);
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.card__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card__intro {
  margin: 0 0 var(--space-5);
  color: var(--paper-dim);
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: 500 var(--text-s) / 1.3 var(--font-mono);
  color: var(--paper-dim);
}

.proof strong {
  color: var(--paper);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.proof__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.field {
  margin-bottom: var(--space-4);
}

.field__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-s);
  font-weight: 600;
}

.field__opt {
  font-weight: 400;
  color: var(--paper-mute);
}

.input {
  width: 100%;
  height: 3.25rem;
  padding: 0 var(--space-4);
  background: var(--ink-0);
  color: var(--paper);
  border: 1px solid var(--line-input);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.input::placeholder {
  color: var(--paper-mute);
}

.input:hover {
  border-color: var(--paper-dim);
}

.input:focus-visible {
  outline: none;
  border-color: var(--paper);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.22);
}

.input[aria-invalid="true"] {
  border-color: var(--red-text);
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-3);
  align-items: start;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--red);
}

.field--check label {
  font-size: var(--text-s);
  line-height: 1.5;
}

.field--check .field__error {
  grid-column: 2;
}

.field__error,
.form__status {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  font-size: var(--text-s);
  line-height: 1.4;
  color: var(--red-text);
}

.field__error::before,
.form__status::before {
  content: "!";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 700 0.75rem / 1rem var(--font-mono);
  text-align: center;
}

.form__status {
  margin-top: var(--space-4);
}

.form__note {
  margin: var(--space-3) 0 0;
  font: 400 var(--text-xs) / 1.5 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--paper-mute);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3.25rem;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: 600 1rem / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1), border-color var(--dur-1);
}

.btn--primary {
  width: 100%;
  background: var(--red);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-input);
}

.btn--ghost:hover {
  background: var(--ink-2);
  border-color: var(--paper);
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Success state */

.success__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-4);
  color: var(--paper);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success__icon .badge {
  fill: var(--red-bright);
  stroke: var(--ink-1);
  stroke-width: 1.5;
}

.success__title:focus {
  outline: none;
}

.success__text {
  margin: 0 0 var(--space-4);
  color: var(--paper-dim);
}

.success__email {
  color: var(--paper);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.success__small {
  margin: 0;
  font-size: var(--text-s);
  color: var(--paper-dim);
}

/* City ticker */

.ticker {
  overflow: hidden;
  padding-block: var(--space-3);
  border-block: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0 var(--space-5) 0 0;
  list-style: none;
  font: 500 var(--text-s) / 1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-dim);
}

.ticker__list li {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.ticker__star {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  color: var(--red-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
}

/* Share */

.share {
  padding-block: var(--space-8);
}

.share .wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.share__text {
  max-width: var(--measure);
  margin: 0;
  color: var(--paper-dim);
}

.share__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-3);
  max-width: 44rem;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  z-index: 50;
  max-width: calc(100% - 2 * var(--gutter));
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  color: var(--ink-0);
  border-radius: var(--radius-s);
  font-size: var(--text-s);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  animation: toast-in var(--dur-2) var(--ease-out);
}

/* Footer */

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  font-size: var(--text-s);
  color: var(--paper-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: var(--space-4);
}

.site-footer__promise {
  font: 500 var(--text-xs) / 1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Simple pages: bedankt, bevestigd, uitgeschreven, privacy, 404 */

.page {
  padding-block: var(--space-7) var(--space-9);
}

.page .wrap {
  max-width: 44rem;
  container-type: inline-size;
}

.page__icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-5);
}

.page__icon--spin {
  animation: spin-once var(--dur-3) var(--ease-out) both;
}

.page__kicker {
  margin-bottom: var(--space-4);
}

.page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.page__actions .btn--primary {
  width: auto;
}

.page__list {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  padding-left: 1.25rem;
  color: var(--paper-dim);
}

.page__list li + li {
  margin-top: var(--space-2);
}

.page__list strong {
  color: var(--paper);
  font-weight: 600;
}

.page__share {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.page__share .share__buttons {
  margin-top: var(--space-5);
}

.page__share .share__text {
  margin-top: var(--space-3);
}

/* Long-form text (privacy) */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: var(--space-7) 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prose p,
.prose li {
  color: var(--paper-dim);
}

.prose p {
  margin: 0 0 var(--space-4);
}

.prose ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

.prose a {
  color: var(--paper);
}

/* Entrance motion: one short rise, staggered by --i. */

.rise {
  animation: rise var(--dur-3) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.rise--1 { --i: 1; }
.rise--2 { --i: 2; }
.rise--3 { --i: 3; }
.rise--4 { --i: 4; }
.rise--5 { --i: 5; }
.rise--6 { --i: 6; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes spin-once {
  from { transform: rotate(-120deg) scale(0.8); opacity: 0; }
}

/* Wider screens */

@media (min-width: 40rem) {
  .card {
    padding: var(--space-6);
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 2rem;
  }

  .hero {
    padding-block: var(--space-7) var(--space-9);
  }

  /* Copy and pillars stack in the left column; the card spans both rows on the right. */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem);
    gap: var(--space-6) var(--space-8);
    align-items: start;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__pillars {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__form {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-top: var(--space-2);
  }

  .hero__star {
    display: block;
  }

  .lead {
    font-size: 1.375rem;
  }

  .page {
    padding-block: var(--space-9);
  }
}

/* Reduced motion: nothing moves, the ticker becomes a wrapped list. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker__track {
    width: auto;
    animation: none;
  }

  .ticker__list {
    flex-wrap: wrap;
    row-gap: var(--space-3);
    white-space: normal;
  }

  .ticker__list--copy {
    display: none;
  }
}
