/* ============================================================================
   tokens.css — design-system source of truth · LLE Coalitie (Lang Leve Elektronica)
   ----------------------------------------------------------------------------
   Every page references these vars. Never hardcode a colour, size, or spacing
   value in a page — add or reuse a token here instead. The linter
   (_build/lint-tokens.py) enforces this.

   Palette per kickoff-meeting: smal houden — donkerblauw + mint primair,
   geel alléén als accent. Bron: huisstijl v1 (juni 2026, NewForesight).
   ========================================================================== */

:root {

  /* ---- COLOR ------------------------------------------------------------- */
  --c-ink:        #0f1220;   /* near-black, indigo cast to match the brand — never #000 */
  --c-ink-soft:   #4c5164;   /* secondary text */
  --c-paper:      #ffffff;   /* base background */
  --c-paper-warm: #f4f6f5;   /* alternate section background */
  --c-paper-grey: #e8ebe9;   /* v5: deeper neutral band — one step below paper-warm so two
                                light sections can sit adjacent and still read as separate */
  --c-line:       #e4e6e4;   /* borders / dividers (elevation, not shadows) */
  --c-line-soft:  #eff1ef;   /* faint dividers */

  /* ---- the dark half of the palette (v5.2, 2026-08-05) -------------------
     Two constraints. First: the old navy #000061 was 100% saturated violet-blue,
     and against mint — a soft green at ~52% saturation — a fully saturated
     colour reads as a collision ("die groene knop op dat blauwe, dat vind ik
     heel hard", Maarten 2026-07-21). Second: v5.1 solved that with petrol
     #092e34, which turned out to be within two hex points of TVL's own dark
     (#0A2E36 per research/stijlanalyse-referentiesites.md) — and TVL is the
     site the client benchmarked, so that palette was not ours to take.
     Deep indigo satisfies both: it is matched to the mint's saturation (~48%
     vs ~52%) so the pair sits together, it keeps the client's blue heritage so
     the huisstijl argument survives, and it is nowhere near TVL's petrol.
     The mint is unchanged — it is the half the client recognises. */
  --c-indigo:      #1c2250;  /* primary brand — CTA fills, eyebrows, marks */
  --c-indigo-soft: #2b3470;  /* hover on indigo surfaces */
  --c-indigo-deep: #12162f;  /* large dark surfaces — contact, footer, panels */

  /* legacy aliases: design/index-v4.html (v4.1) still references these names */
  --c-navy:       var(--c-indigo);
  --c-navy-soft:  var(--c-indigo-soft);
  --c-navy-deep:  var(--c-indigo-deep);
  --c-mint:       #99dfb9;   /* action colour — buttons, icon circles */
  --c-mint-deep:  #7acca2;   /* mint hover */
  --c-mint-soft:  #e9f7ef;   /* 12%-tint surface — cards, chips, form panel */
  --c-yellow:     #fdc20b;   /* sparse accent only — never large surfaces */

  --c-accent:     var(--c-mint);
  --c-accent-ink: var(--c-navy);  /* text on mint */
  --c-on-navy:    #ffffff;
  --c-on-navy-soft: rgba(255, 255, 255, 0.6);

  /* semantic roles */
  --c-success:    #2f7d44;
  /* form validation (v6). Two values because the contact form lives on
     --c-indigo-deep: a light-surface red is unreadable there, and the dark
     variant is unreadable on paper. Same role, two surfaces. */
  --c-error:         #c0392f;   /* on paper */
  --c-error-on-dark: #ffa9a3;   /* on indigo-deep */
  --c-focus:      var(--c-navy);
  --c-overlay:    rgba(15, 18, 32, 0.45);   /* ink overlay on hero video */
  --c-overlay-deep: rgba(15, 18, 32, 0.78); /* gradient foot of hero */
  --c-overlay-faint: rgba(10, 10, 26, 0.15); /* subtle tail of the hero H1 gradient (top of that gradient's range) */
  --c-overlay-nav: rgba(10, 10, 26, 0.86);  /* dedicated top-of-hero vignette band behind the fixed nav —
                                                independent of the H1 gradient; tuned for AA text contrast
                                                against bright video frames (2026-08-04 nav-contrast fix) */
  --c-word-dim:   #c6cac7;                  /* unrevealed word colour (statement) */
  --shadow-cta:   0 6px 20px rgba(0, 0, 0, 0.15); /* sanctioned CTA hover lift */

  /* ---- TYPOGRAPHY ---------------------------------------------------------
     v4 premium: Clash Display (koppen 500/600) + Satoshi (body 400/500/700)
     + IBM Plex Mono (stat-labels/eyebrows). Self-hosted in design/fonts/.
     Inter/Cabinet Grotesk/General Sans blijven lokaal als alternatief.      */
  /* v5 (2026-08-04): Aeonik + Aeonik Mono — CoType Foundry.
     Fallback chain keeps the page sane before the licensed files arrive. */
  --f-head: "Aeonik", "Instrument Sans", "Satoshi", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body: "Aeonik", "Instrument Sans", "Satoshi", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "Aeonik Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* v6 type (besluit 2026-08-05) — Geist (headings) + General Sans (body) +
     JetBrains Mono (labels). Self-hosted via design/fonts/v6.css.
     Reason for the change: Aeonik was decided on 2026-08-04 but the licensed
     files were never delivered, so every prototype screen was in fact
     rendering the third fallback (Satoshi) — one family for headings AND body,
     which is why the page read anonymous. General Sans keeps the body open and
     accessible ("een oma begrijpt het", brand.md §1); Geist gives the headings
     a straight-cut, high-x-height technical voice.
     Cabinet Grotesk was the first pick and was rejected as too curly — curved
     g/y tails and rounded r/k shoulders read handwritten against the
     coalition's uitvoerend register.
     These are deliberately SEPARATE tokens rather than a redefinition of
     --f-head/--f-body/--f-mono: design/index-v4.html (v4.1) and index-v5.html
     both read the base names, and v4.1 is not to be touched. index-v6.html
     repoints the base names to these at page level. When v6 is approved,
     promote these three values onto the base names and delete the aliases. */
  --f-head-v6: "Geist", "Satoshi", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body-v6: "General Sans", "Satoshi", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono-v6: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* font-size scale (fixed px steps) */
  --fs-10: 10px;  --fs-11: 11px;  --fs-12: 12px;  --fs-13: 13px;  --fs-14: 14px;
  --fs-15: 15px;  --fs-16: 16px;  --fs-17: 17px;  --fs-18: 18px;
  --fs-20: 20px;  --fs-24: 24px;  --fs-28: 28px;
  --fs-32: 32px;  --fs-40: 40px;  --fs-48: 48px;

  /* weights (loaded: Inter 300/400/500/600 · CG 700/800 · GS 400/500/600) */
  --fw-light: 300;    --fw-regular: 400;  --fw-medium: 500;  --fw-semibold: 600;
  --fw-bold: 700;     --fw-heavy: 800;

  /* letter-spacing — Clash Display is al karaktervol: milder dan TVL */
  --ls-tight:   -0.02em;   /* display + titles */
  --ls-normal:   0;
  --ls-label:    0.06em;   /* small UPPERCASE labels */
  --ls-eyebrow:  0.09em;   /* UPPERCASE eyebrows */

  /* line-heights */
  --lh-display: 1.08;
  --lh-title:   1.15;
  --lh-body:    1.55;

  /* ---- TYPE ROLES (responsive clamps) — verfijnde schaal (Flore refined-cool)
     Body 15px basis, koppen bewust kleiner: h2 ~40px, stat ~64px.            */
  --fs-h1-page:  clamp(40px, 5vw,   68px);  /* contained hero display */
  --fs-h1-image: clamp(38px, 4.6vw, 64px);  /* full-bleed hero (iets kleiner) */
  --fs-h2:       clamp(28px, 2.8vw, 40px);  /* section title */
  --fs-statement: clamp(26px, 2.8vw, 38px); /* stacked statement lines */
  /* v6 (2026-08-15): the client asked for larger section titles — "de
     sectietitels zijn wat klein, dat zou iets groter mogen" (Tieme, 6 aug).
     That overrules the "verfijnde schaal / premium = ingehouden schaal"
     decision recorded in brand.md §3, so it gets its own token rather than
     silently redefining --fs-h2 for v4.1 and v5, which still read the base
     name. index-v6.html repoints them on <body>. */
  --fs-h2-v6:        clamp(32px, 3.6vw, 52px);
  --fs-statement-v6: clamp(28px, 3.1vw, 44px);
  --fs-h3:       clamp(20px, 1.6vw, 24px);  /* sub-section */
  --fs-card:     clamp(18px, 1.4vw, 21px);  /* card title */
  --fs-lede:     clamp(16px, 1vw,   17px);  /* intro / lede paragraph */
  --fs-stat:     clamp(40px, 4.4vw, 64px);  /* statband numerals */
  --fs-stat-sm:  clamp(26px, 2.2vw, 34px);  /* v6 proof-rail figures — the rail sits directly
                                               under the hero and must not compete with the H1;
                                               --fs-stat there read as a second headline */

  /* ---- SPACING — 8-grid --------------------------------------------------*/
  --sp-4: 4px;   --sp-8: 8px;    --sp-12: 12px;  --sp-16: 16px;
  --sp-24: 24px; --sp-32: 32px;  --sp-40: 40px;  --sp-48: 48px;
  --sp-56: 56px; --sp-64: 64px;  --sp-80: 80px;  --sp-96: 96px;
  --sp-120: 120px; --sp-128: 128px;

  /* section padding */
  --sp-section-y-sm:      64px;
  --sp-section-y-md:      96px;
  --sp-section-y-lg:      120px;   /* default desktop */
  --sp-section-y-mobile:  80px;
  --sp-section-x:         40px;    /* desktop — TVL-style tighter gutter */
  --sp-section-x-mobile:  20px;

  /* page max-widths — three tiers (linter enforces; never hardcode) */
  --page-max-narrow: 1080px;   /* forms / editorial */
  --page-max:        1280px;   /* default content + home (verfijnd, Flore-schaal) */
  --page-max-wide:   1600px;   /* reserved */

  /* hero text measure */
  --measure-hero: 760px;

  /* atom spacing (section head rhythm) */
  --sp-eyebrow:   16px;
  --sp-title:     24px;
  --sp-intro:     32px;
  --sp-headblock: 56px;

  /* ---- RADII — TVL-systeem ------------------------------------------------*/
  --r-4: 4px;  --r-8: 8px;  --r-14: 14px;  --r-20: 20px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* ---- TRANSITIONS -------------------------------------------------------*/
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);   /* Sinner signature curve */
  --ease-luxe: cubic-bezier(0.32, 0.72, 0, 1);  /* long image zooms / header slides */
  --dur-fast: 0.25s;
  --dur-mid:  0.4s;
  --dur-slow: 0.7s;
  --dur-luxe: 1s;      /* image hover zooms */

  /* ---- Z-INDEX -----------------------------------------------------------*/
  --z-nav:     100;
  --z-sticky:  200;
  --z-drawer:  300;
  --z-modal:   400;
  --z-overlay: 500;
}

/* ============================================================================
   Canonical element defaults — the section-head atom + base type.
   Import-time defaults; pages may override with a page-prefixed class.
   ========================================================================== */

.eyebrow {
  font: var(--fw-regular) var(--fs-11)/1 var(--f-body);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-navy);
  margin: 0 0 var(--sp-eyebrow);
}

.section-title {
  font: var(--fw-medium) var(--fs-h2)/var(--lh-title) var(--f-head);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  margin: 0 0 var(--sp-title);
}

.intro {
  font: var(--fw-regular) var(--fs-lede)/var(--lh-body) var(--f-body);
  color: var(--c-ink-soft);
  max-width: var(--measure-hero);
  margin: 0 0 var(--sp-intro);
}
