/* ============================================================
   TERF — www (minimale site)
   Vier secties: videoheld → verhaal (beeld + merkzin) →
   nieuwsbrief → voetregel met info en juridische vermelding.
   Design tokens volgen DESIGN.md ("Van korrel tot korst").
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Enyo Slab";
  src: url("fonts/EnyoSlab-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Enyo Slab";
  src: url("fonts/EnyoSlab-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Corbel";
  src: url("fonts/Corbel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (idem landing) ---------- */
:root {
  --cream: #F1EACF;            /* Chalk White */
  --egg: #E6B121;              /* Egg Yellow */
  --soup: #536E34;             /* Soup Green */
  --peel: #F26522;             /* oven fire — focus/accent */
  --peel-soft: #FF8A50;        /* peel opgehelderd: oranje als tekst op donker (≥4.5:1) */
  --peel-deep: #AE440B;        /* peel voor tekst/focus op licht veld */
  --soil: #2A3617;             /* deep forest ink */
  --amber: #E9B34E;            /* light amber */

  --ink-dark: rgba(241, 234, 207, 1);
  --ink-dark-soft: rgba(241, 234, 207, 0.78);
  --ink-dark-faint: rgba(241, 234, 207, 0.55);
  --line-dark: rgba(241, 234, 207, 0.16);
  --line-dark-strong: rgba(241, 234, 207, 0.3);

  --ink-light: #2A3617;
  --ink-light-soft: rgba(42, 54, 23, 0.78);
  --line-light: rgba(42, 54, 23, 0.18);

  --font-display: "Enyo Slab", Georgia, serif;
  --font-body: "Corbel", "Segoe UI", system-ui, sans-serif;

  --fs-lead: clamp(1.08rem, 0.45vw + 0.9rem, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.85rem;
  --fs-tiny: 0.74rem;

  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --r-pill: 999px;

  --shadow-lift: 0 18px 34px -18px rgba(42, 54, 23, 0.5);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--soil);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--egg);
  color: var(--soil);
}

:focus-visible {
  outline: 3px solid var(--peel);
  outline-offset: 3px;
}

/* ---------- Utilities ---------- */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--egg);
  color: var(--soil);
  padding: 0.8em 1.2em;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.82em 1.7em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease,
    transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--egg);
  color: var(--soil);
}

.btn--primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================================
   HERO — video van het veld
   ============================================================ */
.hero {
  position: relative;
  /* svh = smallest viewport: vangt de invallende Safari-werkbalk op zonder
     dat de sectie springt. */
  min-height: 100vh;  /* fallback voor browsers zonder svh */
  min-height: 100svh;
  display: flex;
  align-items: flex-start;   /* logo hoog in beeld, boven het midden */
  justify-content: center;
  overflow: hidden;
  background: var(--soil);
  color: var(--ink-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* geen waas over de film: het oranje logo draagt zelf het contrast */

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(4.5rem, 12vh, 9rem) var(--gutter) var(--gutter);
  text-align: center;
}

.hero__brand {
  line-height: 0;
  animation: rise 0.8s var(--ease-out) 0.1s both;
}

.hero__logo {
  height: clamp(9rem, 22vw, 17rem);
  width: auto;
  margin: 0 auto;
}

/* scrollhint: dun spoor onder in de held, eigeel druppelt naar beneden */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  padding: 0.75rem 1rem;  /* genereuze klik- en tikoppervlakte */
}

.hero__cue-track {
  position: relative;
  display: block;
  width: 6px;
  height: 3.5rem;
  border-radius: var(--r-pill);
  background: var(--line-dark-strong);
  overflow: hidden;
}

.hero__cue-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--egg);
  animation: cue-drop 2.4s var(--ease-out) infinite;
}

@keyframes cue-drop {
  0%   { transform: translateY(-26px); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(3.5rem); opacity: 0; }
}

/* ============================================================
   VERHAAL — beeld + merkzin op crème
   ============================================================ */
.story {
  background: var(--cream);
  color: var(--ink-light);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}

.story__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.story__figure {
  margin: 0;
}

.story__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.8rem;
}

.story__title {
  /* statement-step uit de DESIGN.md-ramp: de merkzin is hét statement */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw + 0.8rem, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-light);
}

.story__lead {
  margin-top: 1.2rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-light-soft);
}

/* op smalle schermen: beeld boven, tekst eronder */
@media (max-width: 880px) {
  .story__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    max-width: 40rem;
  }

  .story__title {
    text-wrap: balance;
  }
}

/* ============================================================
   NIEUWSBRIEF — op het donkere veld
   ============================================================ */
.signup {
  background: var(--soil);
  color: var(--ink-dark);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}

.newsletter {
  width: min(100%, 34rem);
  margin: 0 auto;
  text-align: center;
}

.newsletter__lead {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.newsletter__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

.newsletter__sub {
  color: var(--ink-dark-soft);
}

.newsletter__privacy {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--ink-dark-soft);
}

.newsletter__row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.newsletter__row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line-dark-strong);
  border-radius: 0;
  padding: 0.85em 0.15em;
  font: inherit;
  color: var(--ink-dark);
}

.newsletter__row input::placeholder {
  color: var(--ink-dark-soft);
}

.newsletter__row input:focus {
  border-color: var(--peel);
}

.newsletter__status {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  color: var(--egg);
}

.newsletter__status.is-error {
  color: var(--peel-soft);
}

.newsletter__status a {
  color: inherit;
}

/* honeypot: in de DOM voor bots, onzichtbaar en onbereikbaar voor mensen */
.newsletter__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ============================================================
   VOETREGEL — info + juridisch
   ============================================================ */
.site-foot {
  background: var(--soil);
  color: var(--ink-dark-soft);
  border-top: 1px solid var(--line-dark);
  padding: 2.75rem var(--gutter) 2.5rem;
  font-size: var(--fs-small);
}

.site-foot__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}

.site-foot__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

/* contact: e-mail + Instagram als iconen — ruimer dan op de landing
   (56px in plaats van 44px), de voetregel heeft de plaats */
.site-foot__contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.site-foot__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;  /* 56px — genereuze touch-target */
  height: 3.5rem;
  color: var(--ink-dark-soft);
  border: 1.5px solid var(--line-dark-strong);
  border-radius: 50%;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.site-foot__contact-link:hover {
  color: var(--egg);
  border-color: var(--egg);
  transform: translateY(-2px);
}

.site-foot__contact-link svg {
  display: block;
}

.site-foot__addr {
  margin-top: 0.6rem;
}

.site-foot__coord {
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dark-faint);
}

.site-foot__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.site-foot__legal a {
  color: var(--peel-soft);
  text-underline-offset: 0.18em;
  transition: color 0.18s ease;
}

.site-foot__legal a:hover {
  color: var(--egg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .newsletter__row {
    flex-direction: column;
  }

  .site-foot__inner {
    flex-direction: column;
    gap: 2rem;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__brand {
    animation: none;
  }

  .hero__cue-dot {
    animation: none;
    transform: translateY(1.25rem);  /* stil druppeltje halverwege het spoor */
  }
}
