/* CE-IV — design tokens
   One page colour (Coral Stone) on every page and every section.
   Night for type, Keep Blue for the mark, links and buttons, Lagoon Slate for secondary text.
   Flamboyant is the accent: the dot, numerals ≥ 20px and error states. Never a fill area, never body text. */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../assets/fonts/SourceSerif4-roman.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../assets/fonts/SourceSerif4-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Metric-matched fallbacks: while the web fonts load, local Arial / Georgia are scaled to the same width,
   so swapping to Poppins and Source Serif 4 does not reflow headlines (CLS). Ratios measured in Chrome. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 111.8%; ascent-override: 93.9%; descent-override: 31.3%; line-gap-override: 0%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 106.4%; ascent-override: 98.7%; descent-override: 32.9%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia"); font-weight: 400 600; size-adjust: 91.1%; ascent-override: 113.7%; descent-override: 36.8%; line-gap-override: 0%; }

:root {
  /* Core palette (5) */
  --stone: #F2F0EA;      /* Coral Stone — the only page / section background. RGB 242 240 234 */
  --blue: #223890;       /* Keep Blue — mark, links, buttons. 9.05:1 on stone; white on blue 10.3:1. RGB 34 56 144 */
  --night: #14204F;      /* Night — primary text, button hover. 13.66:1. RGB 20 32 79 */
  --slate: #5A6488;      /* Lagoon Slate — secondary text, labels. 5.1:1. RGB 90 100 136 */
  --flame: #C2411F;      /* Flamboyant — the dot, numerals ≥ 20px, errors. 4.53:1. RGB 194 65 31 */
  /* Support (not brand colours) */
  --white: #FFFFFF;      /* button text only */
  --haze: #E1E4EE;       /* image tiles and tags only — never a section */
  --hair: rgba(20, 32, 79, .3); /* form field underline only (functional) */

  /* Type */
  --sans: "Poppins", "Poppins Fallback", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif 4 Fallback", "Iowan Old Style", Georgia, serif;

  --fs-display: clamp(3rem, 1.6rem + 5.6vw, 7rem);      /* 48 → 112 */
  --fs-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);       /* 40 → 76 */
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);       /* 30 → 52 */
  --fs-h3: clamp(1.3125rem, 1.15rem + .7vw, 1.6875rem);  /* 21 → 27 */
  --fs-lead: clamp(1.1875rem, 1.08rem + .5vw, 1.4375rem); /* 19 → 23 */
  --fs-body: 1.125rem;   /* 18 */
  --fs-small: 1rem;      /* 16 */
  --fs-label: .8125rem;  /* 13, Poppins caps, tracked */
  --fs-num: 1.25rem;     /* 20 — smallest size Flamboyant numerals may appear */

  --lh-tight: 1.02;
  --lh-head: 1.12;
  --lh-body: 1.6;
  --track-caps: .16em;
  --track-head: -.03em;

  /* Space (8px base) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem;
  --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;
  --section: clamp(5rem, 3.4rem + 6.4vw, 10rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --measure: 38rem;
  --radius: 3px;
  --header-h: 5.25rem;

  /* Brand geometry: the mark's only diagonal is 23.3° */
  --slope: 23.3deg;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 650ms;
}
