/* ============================================================
   FSE design tokens. The code side of DESIGN.md: change a value
   here and in DESIGN.md together. Pages use the names, never raw
   values. Source: FSE Brand Kit 2.1 (6 Nov 2026).
   ============================================================ */
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/hanken-grotesk-500.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/hanken-grotesk-700.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/hanken-grotesk-800.woff2") format("woff2")}

:root{
  /* ---- brand constants (never themed) ---- */
  --navy-deep:#0B1424; --navy:#101B31; --navy-mid:#14233D; --navy-line:#2A3A58;
  --sage:#85BB65; --sage-light:#9BCB80; --sage-deep:#4F7737; --sage-press:#3F602C;
  --sky:#D9E4F2; --website-blue:#EDF2F8; --white:#FFFFFF; --slate:#4A5361; --mist:#C3CAD5;
  /* blues and a red for pictures and status marks only, never for body text (Ed, 19 Nov 2026: brighter colours on the map,
     lighter panels, red crosses). Navy text sits on all of the blues at 7:1 or better. */
  --azure:#2F7DD6; --azure-deep:#1B4C8C; --azure-bright:#63B3F4; --azure-light:#A7CDF3; --azure-pale:#D3E6FA; --sage-pale:#CFE8BF; --red:#C8372D;

  /* ---- roles, light theme ---- */
  --ground:var(--website-blue);      /* page background (website only) */
  --surface:var(--white);            /* cards, panels, bands that lift off the ground */
  --tint:var(--sky);                 /* callouts, quiet relief, placeholders */
  --ink:var(--navy);                 /* headings and body text */
  --ink-muted:var(--slate);          /* secondary text, captions (6.9:1 on ground) */
  --line:#D5DDE8;                    /* hairlines and card borders */
  --line-control:#6B7686;            /* input and control borders (3:1+) */
  --action:var(--sage-deep);         /* primary buttons, links, eyebrows on light */
  --action-hover:var(--sage-press);
  --on-action:var(--white);
  --accent:var(--sage);              /* rules, marks, the fourth bar. Never text on light */
  --focus:var(--navy);
  --ok:#4F7737; --warn:#8A5A00; --warn-bg:#FFF4D6; --err:#8A2F2F; --err-bg:#FBEAEA;

  /* ---- type ---- */
  --font:"Hanken Grotesk",Arial,Helvetica,sans-serif;
  --t-eyebrow:.8125rem;                                   /* 13 */
  --t-small:.875rem;                                      /* 14 */
  --t-body:1.0625rem;                                     /* 17 */
  --t-lead:clamp(1.125rem,1.02rem + .5vw,1.3125rem);      /* 18 to 21 */
  --t-h3:clamp(1.25rem,1.18rem + .3vw,1.375rem);          /* 20 to 22 */
  --t-h2:clamp(1.75rem,1.3rem + 2vw,2.5rem);              /* 28 to 40 */
  --t-h1:clamp(2.25rem,1.3rem + 4.2vw,3.75rem);           /* 36 to 60 */
  --t-display:clamp(2.75rem,1rem + 7.6vw,5.5rem);         /* 44 to 88 */
  --lh-tight:1.04; --lh-head:1.12; --lh-body:1.55;
  --track-head:-.02em; --track-eyebrow:.2em;

  /* ---- space (8-based) ---- */
  --s-1:.25rem; --s-2:.5rem; --s-3:1rem; --s-4:1.5rem; --s-5:2rem; --s-6:3rem; --s-7:4rem; --s-8:6rem; --s-9:8rem;
  --section:clamp(4rem,2.4rem + 7vw,7.5rem);              /* vertical padding of a section */
  --gutter:clamp(1.25rem,.6rem + 2.8vw,2rem);             /* page side padding */
  --wrap:72.5rem;                                         /* 1160 content width */
  --measure:62ch;                                         /* longest line of body text */

  /* ---- shape and depth ---- */
  --r-sm:.5rem; --r-md:1rem; --r-lg:1.5rem; --r-pill:999px;
  --shadow-lift:0 12px 32px rgba(11,20,36,.10);           /* hover lift on interactive cards */
  --shadow-over:0 30px 80px rgba(11,20,36,.30);           /* modal, dropdown */

  /* ---- motion ---- */
  --ease:cubic-bezier(.2,.7,.2,1);
  --d-fast:160ms; --d-base:320ms; --d-slow:640ms;
  --hdr:4.5rem;
}

/* Dark roles. Used by navy bands ([data-theme="dark"] on a section) and by a full dark page. */
[data-theme="dark"]{
  --ground:var(--navy-deep);
  --surface:var(--navy-mid);
  --tint:var(--navy);
  --ink:var(--white);
  --ink-muted:var(--mist);           /* 11.2:1 on navy-deep */
  --line:var(--navy-line);
  --line-control:#8794AB;
  --action:var(--sage);              /* sage button, navy text */
  --action-hover:var(--sage-light);
  --on-action:var(--navy-deep);
  --focus:var(--sage);
  --ok:#9BCB80; --warn:#F2C76B; --warn-bg:#3A2E10; --err:#F2A0A0; --err-bg:#3A1A1A;
  color:var(--ink);
}

@media (prefers-reduced-motion:reduce){
  :root{--d-fast:0ms;--d-base:0ms;--d-slow:0ms}
}
