/* Site tokens: one block for the React pages and the static pages (plan 2.1; values and contrast: review 6.3.1).
   Served at /site/tokens.css?v=<public/site/VERSION>. This file defines custom properties, the font faces and the
   page background only (plan 2.2). Other files read the properties; load order does not matter. */

/* Metric-matched local fallback for Source Sans 3 (plan 6). No network request: local() only.
   Values measured on 11 October 2026 against the Fontsource Latin file and macOS Arial (scratchpad note
   bundle1/font-fallback-metrics.md, section 1): width ratio on a letter-frequency string, hhea ascent 1024,
   descent 400, line gap 0, 1000 units. Safari ignores the three *-override descriptors; Chromium applies them. */
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400;
  font-style: normal;
  ascent-override: 105.95%;
  descent-override: 41.39%;
  line-gap-override: 0%;
  size-adjust: 96.65%;
}
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  font-style: normal;
  ascent-override: 105.95%;
  descent-override: 41.39%;
  line-gap-override: 0%;
  size-adjust: 96.65%;
}

/* web-font:start. Empty unless ruling G0 (Bundle 1 SPEC 2.3.3) turns the web font on. The check script fails if a
   url() face sits here while WEB_FONTS_ENABLED is false, or if a face points at a missing file. */
/* Source Sans 3, Fontsource @fontsource-variable/source-sans-3 5.3.1, files unchanged (SIL OFL 1.1; licence:
   /site/fonts/licences/OFL-Source-Sans-3.txt). Two of the package's seven rules, because only these two files are
   on disk. Two edits (plan 6): family 'Source Sans 3 Variable' -> 'Source Sans 3'; url(./files/...) ->
   url(/site/fonts/source-sans-3/...). font-weight, font-display, format and unicode-range are unchanged. */
/* source-sans-3-greek-wght-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/site/fonts/source-sans-3/source-sans-3-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
/* source-sans-3-latin-wght-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/site/fonts/source-sans-3/source-sans-3-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* web-font:end */

:root { color-scheme: light dark;
  --paper: #faf9f6; --surface: #ffffff; --plaque: #efeeea; --plate-light: #efeeea;
  --ink: #1c1d1f; --ink-muted: #595b5f; --rule: #d9d7d1; --rule-strong: #8a8984;
  --navy: #1b2a52; --band: #1b2a52; --focus: var(--ink); /* --navy and --band: defined, never used on pages (review decision 8 A) */
  --data-key: #1c1d1f; --data-context: #8c8a85; --data-1: #356fb0; --data-2: #c26a1e; --data-3: #a8467c; /* --data-1 to --data-3 held back (review decision 19 A) */
  --font-sans: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --step--1: 0.833rem; --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.44rem; --step-3: 1.728rem;
  --step-4: 2.074rem; --step-5: 2.488rem; --step-6: 2.986rem;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2rem;
  --space-6: 3rem; --space-7: 4rem; --radius-control: 0.25rem; --radius-layout: 0; --band-height: 0;
  --page-max: 75rem; --measure-serif: 38rem; --measure-sans: 40rem; }
:root[data-theme="light"] { color-scheme: light; }

/* night:start (M1). The attribute block and the media block must hold the same declarations;
   scripts/check-shared-chrome.mjs fails if they drift. Night: warm graphite (review decision 5 A). */
:root[data-theme="dark"] { color-scheme: dark;
  --paper: #1b1a18; --surface: #232220; --plaque: #2d2c29; --ink: #ecebe6; --ink-muted: #b4b2ab;
  --rule: #3e3d39; --rule-strong: #7f7d77; --navy: #9fb1d6; --band: #3a4d80;
  --data-key: #ecebe6; --data-context: #7d7b76; --data-1: #5b8ccb; --data-2: #c9782f; --data-3: #bf6496; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --paper: #1b1a18; --surface: #232220; --plaque: #2d2c29; --ink: #ecebe6; --ink-muted: #b4b2ab;
    --rule: #3e3d39; --rule-strong: #7f7d77; --navy: #9fb1d6; --band: #3a4d80;
    --data-key: #ecebe6; --data-context: #7d7b76; --data-1: #5b8ccb; --data-2: #c9782f; --data-3: #bf6496; }
}
/* night:end */

/* Print forces the light values (plan 2.1, 4.4). Keep this block after the night blocks. */
@media print {
  :root, :root[data-theme], :root:not([data-theme="light"]) { color-scheme: light;
    --paper: #faf9f6; --surface: #ffffff; --plaque: #efeeea; --ink: #1c1d1f; --ink-muted: #595b5f;
    --rule: #d9d7d1; --rule-strong: #8a8984; --navy: #1b2a52; --band: #1b2a52;
    --data-key: #1c1d1f; --data-context: #8c8a85; --data-1: #356fb0; --data-2: #c26a1e; --data-3: #a8467c; }
}

html, body { background-color: var(--paper); color: var(--ink); }
