/* ============================================================
   TERF — landing (tijdelijke inschrijfpagina)
   Variatie op www/styles.css: één enkele hero-view, geen slogan,
   groter logo, nieuwsbriefformulier op een donker veld.
   Design tokens volgen www/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 www) ---------- */
:root {
  --cream: #F1EACF;            /* Chalk White */
  --egg: #E6B121;              /* Egg Yellow */
  --soup: #536E34;             /* Soup Green */
  --peel: #F26522;            /* oven fire — accent op donker veld */
  --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);

  --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 {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

: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.6rem;
  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 — de enige view
   ============================================================ */
.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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soil);
  color: var(--ink-dark);
}

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

/* vast achtergrondbeeld: de gekozen hero-foto (horizon), onbewerkt */
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 46rem;
  padding: clamp(3.5rem, 8vh, 6.5rem) var(--gutter);
}

/* groter logo dan op www (clamp 5→9rem daar) */
.hero__brand {
  line-height: 0;
  animation: rise 0.8s var(--ease-out) 0.1s both;
}

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

.hero__region {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink-dark-soft);
  animation: rise 0.8s var(--ease-out) 0.17s both;
}

.hero__legal {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: min(28rem, calc(100% - 2 * var(--gutter)));
  font-size: var(--fs-small);
  color: var(--ink-dark-soft);
  animation: rise 0.9s var(--ease-out) 0.55s both;
}

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

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

/* contact: e-mail + Instagram als iconen, boven de coördinaat */
.hero__meta {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  animation: rise 0.9s var(--ease-out) 0.62s both;
}

.hero__contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;  /* 44px — minimale touch-target op mobiel */
  height: 2.75rem;
  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);
}

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

.hero__contact-link svg {
  display: block;
}

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

/* ============================================================
   NIEUWSBRIEF — op het donkere veld
   ============================================================ */
.newsletter {
  width: min(100%, 34rem);
  margin-top: clamp(2.6rem, 7vh, 4.5rem);
  text-align: center;
  animation: rise 0.9s var(--ease-out) 0.38s both;
}

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

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

.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%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero__coord {
    display: none;
  }

  .newsletter__row {
    flex-direction: column;
  }
}

/* smalle óf lage vensters (ook liggende telefoon): voetregel en contact-iconen
   stromen mee onder het formulier, geen overlap met een absolute footer */
@media (max-width: 640px), (max-height: 560px) {
  .hero__legal {
    position: static;
    margin-top: 2.5rem;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero__meta {
    position: static;
    margin-top: 1.5rem;
    align-items: center;
  }
}

/* extra verticale ruimte trimmen op smalle telefoons zodat de enkele view past */
@media (max-width: 640px) {
  .hero__inner {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
  }

  .newsletter {
    margin-top: 2.25rem;
  }

  .hero__legal {
    margin-top: 2rem;
  }

  .hero__meta {
    margin-top: 1.25rem;
  }
}

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

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__legal,
  .hero__meta,
  .hero__brand,
  .hero__region,
  .newsletter {
    animation: none;
  }
}

/* ---------- bloemwaas ----------
   Lichte, gelijkmatige waas in crème over de achtergrondfoto — de
   lichtste gemeten waarde waarbij élke tekst de WCAG-drempel haalt
   (klein 4,5:1, corps ≥24px 3:1). De tekst kleurt dan mee naar diepe
   groen-inkt, want crème leest slecht op heldere zones. */
:root {
  --hero-wash: 0.5;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgb(241 234 207 / var(--hero-wash));
}

.hero {
  --ink-dark: #16200d;                    /* diepe groen-inkt, afgeleid van soil */
  --ink-dark-soft: rgba(22, 32, 13, 1); /* volle inkt: de α-variant kost ~10% contrast */
  --ink-dark-faint: rgba(22, 32, 13, 0.62);
  --line-dark-strong: rgba(22, 32, 13, 0.55);
}
