/* Gebaseerd op: 2026-11-24_01-moodboard.md (01_Research/Eerste_site, testrun 2, richting A "Warm zand"); Inspiratie/smaakprofiel.md bestond nog niet.
 *
 * Design tokens Eerste_site (Jarvis, werktitel) - stap 3, testrun 1
 * DIT IS DE ENIGE PLEK WAAR WAARDEN STAAN. Stap 5 en 6 gebruiken alleen deze variabelen,
 * nooit losse hex-codes of pixelwaarden. Eén waarde aanpassen = overal aangepast.
 * Na een kleuraanpassing: contrast opnieuw checken (zie style guide, onderdeel Contrast).
 */

/* Lettertypes: zelf meegeleverd in /fonts (niet via Google Fonts: privacy/AVG en snelheid). Stap 8, 2026-11-25.
 * Alleen de "latin"-set (Nederlands, Engels, é, ë, €). Licentie: SIL Open Font License 1.1, zie /fonts/OFL-*.txt.
 * Instrument Sans is één variabel bestand voor alle diktes (400-700). */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  /* ---------- Kleur: basis ---------- */
  --color-bg:            #F3EADF; /* zand: standaard achtergrond */
  --color-surface:       #FBF6EF; /* licht zand: kaarten, formulier */
  --color-bg-alt:        #E9DCCB; /* donkerder zand: afwisselende sectie */
  --color-ink:           #2A2723; /* bijna-zwart: koppen en tekst */
  --color-muted:         #5F564E; /* grijsbruin: ondertitels, bijschriften */

  /* ---------- Kleur: accent ---------- */
  --color-accent:        #B4553A; /* terracotta: knoppen, grote koppen, cursief accent (alleen >= 24px als tekst) */
  --color-accent-strong: #9A4530; /* donkere terracotta: links, kleine accenttekst, hover, focus */
  --color-on-accent:     #FFFAF4; /* tekst op terracotta knop */

  /* ---------- Kleur: lijnen ---------- */
  --color-line:          #D9C9B6; /* decoratieve scheidingslijn, kaartrand */
  --color-line-strong:   #8C7B6B; /* rand van invoervelden (moet >= 3:1) */

  /* ---------- Kleur: donkere sectie (bijv. footer, CTA-blok) ---------- */
  --color-dark-bg:       #2A2723;
  --color-dark-ink:      #F3EADF;
  --color-dark-accent:   #D98A6C; /* terracotta op donker */

  /* ---------- Kleur: status ---------- */
  --color-success:       #3F6B4E;
  --color-error:         #A8332A;

  /* ---------- Typografie ---------- */
  --font-heading: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.75rem, 1.6rem + 5vw, 5rem);      /* 44-80px  hero-kop (serif) */
  --text-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.25rem);    /* 32-52px  sectiekop (serif) */
  --text-h3:      clamp(1.5rem, 1.25rem + 1vw, 2rem);      /* 24-32px  kaartkop (serif) */
  --text-h4:      1.25rem;                                 /* 20px     kleine kop (sans, 600) */
  --text-lead:    1.1875rem;                               /* 19px     intro onder een kop */
  --text-body:    1.0625rem;                               /* 17px     lopende tekst */
  --text-small:   0.9375rem;                               /* 15px     bijschrift, formulierlabel */
  --text-eyebrow: 0.8125rem;                               /* 13px     label boven kop, hoofdletters */

  --leading-tight: 1.05;  /* display */
  --leading-heading: 1.15;
  --leading-body: 1.6;
  --tracking-heading: -0.01em;
  --tracking-eyebrow: 0.08em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --measure: 65ch;        /* maximale regellengte tekst */

  /* ---------- Ruimte (basis 4px) ---------- */
  --space-1: 0.25rem;  /*   4px */
  --space-2: 0.5rem;   /*   8px */
  --space-3: 0.75rem;  /*  12px */
  --space-4: 1rem;     /*  16px */
  --space-5: 1.5rem;   /*  24px */
  --space-6: 2rem;     /*  32px */
  --space-7: 3rem;     /*  48px */
  --space-8: 4rem;     /*  64px */
  --space-9: 6rem;     /*  96px */
  --space-10: 8rem;    /* 128px */
  --space-section: clamp(4rem, 2rem + 8vw, 8rem);  /* boven/onder een sectie */

  /* ---------- Layout ---------- */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* Breakpoints (werken niet als variabele in media queries, gebruik de getallen): 640px, 960px, 1200px */

  /* ---------- Vorm ---------- */
  --radius-sm: 8px;      /* invoervelden */
  --radius-md: 16px;     /* kaarten, afbeeldingen */
  --radius-lg: 24px;     /* grote kaarten: pakket, formulier, vertrouwen-blok */
  --radius-pill: 999px;  /* knoppen */
  --border-width: 1px;
  --shadow-sm: 0 1px 2px rgba(42, 39, 35, 0.06);
  --shadow-md: 0 1px 2px rgba(42, 39, 35, 0.06), 0 8px 24px rgba(42, 39, 35, 0.08);
  --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-accent-strong);

  /* ---------- Beweging ---------- */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-distance: 16px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --reveal-distance: 0px;
  }
}
