/* THIS FILE IS TOKENS ONLY. Structure lives in the engine sheet the shell
   links first (_engine.css, hardlinked from Divinity's site.css); read
   sites\ScienceAtlas\App_Themes\Science\site.css for the full history of
   why this file carries nothing but token blocks, including the request
   985 narrow-layout defect and the request 989 four-state theme defect.
   This file mirrors that file's final shape exactly.

   Tokens below: the neutrals, ink/muted/faint text colours, the two
   semantic colours, the font stacks, the shadow and the reading measure
   are copied verbatim from the family values Science and Political
   already carry, so this site reads as a sibling. Only --gold, --gold-soft
   and --gold-bg, the accent tokens, are History's own.

   THE ACCENT IS BRONZE, owner decision 2026-08-21 20:51 (request 1037),
   superseding the hue 359 deep red he first confirmed at step 0 and then
   saw live: bronze reads better for the topic. Values chosen and
   contrast-computed tonight (WCAG relative luminance, the same 4.5:1 text
   bar the request 987 identity pages used): dark #c98d4f measures 6.82 on
   --ground, 6.19 on --panel, 5.65 on --panel2; soft #e2b183 measures
   9.98 / 9.07 / 8.28. Light #7a4a14 measures 6.50 / 6.05 / 6.79; soft
   #8a5418 measures 5.44 / 5.07 / 5.69. Distinct from Divinity's gold
   (#d8b45f dark), which is lighter and yellower; bronze sits deeper.

   The --gold-bg fill role: in the dark theme dark ink (#1a1508) on
   #c98d4f measures 6.41, the same fill shape the other atlases use. In
   the light theme dark ink on #7a4a14 fails but WHITE text on it
   measures 7.45, the same shape as Science's and Political's light
   fills: a future fill rule pairs --gold-bg with a light/white ink in
   the light theme, never Divinity's hardcoded #1a1508. */

:root{
  --ground:#0b0d1a; --panel:#141731; --panel2:#1b1f3d; --edge:#2b2f55; --edge2:#3a3f6b;
  --ink:#eae7f3; --muted:#a7a5c4; --faint:#8785a7;
  --shared:#79bcb0; --shared-bg:rgba(111,178,168,.14); --dark-c:#d27a92; --dark-bg:rgba(181,84,106,.16);
  --gold:#c98d4f; --gold-soft:#e2b183; --gold-bg:#c98d4f;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --shadow:0 12px 34px -14px rgba(0,0,0,.6);
  --measure:40.5rem;
}
@media (prefers-color-scheme: light){:root{
  --ground:#f4efe3; --panel:#eee7d6; --panel2:#f8f4ea; --edge:#ddd2ba; --edge2:#cabfa3;
  --ink:#282540; --muted:#655f74; --faint:#6d6759;
  --shared:#2f685e; --shared-bg:rgba(60,133,120,.12); --dark-c:#9c3f57; --dark-bg:rgba(162,65,90,.10);
  --gold:#7a4a14; --gold-soft:#8a5418; --gold-bg:#7a4a14;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}}

/* The two explicit data-theme blocks, mirroring the engine's own four-state
   shape so the header's System/Light/Dark toggle lands History's accent in
   every state; see Science's site.css request 989 comment for the defect
   these exist to close. */
:root[data-theme="dark"]{
  --ground:#0b0d1a; --panel:#141731; --panel2:#1b1f3d; --edge:#2b2f55; --edge2:#3a3f6b;
  --ink:#eae7f3; --muted:#a7a5c4; --faint:#8785a7;
  --shared:#79bcb0; --shared-bg:rgba(111,178,168,.14); --dark-c:#d27a92; --dark-bg:rgba(181,84,106,.16);
  --gold:#c98d4f; --gold-soft:#e2b183; --gold-bg:#c98d4f;
  --shadow:0 12px 34px -14px rgba(0,0,0,.6);
}
:root[data-theme="light"]{
  --ground:#f4efe3; --panel:#eee7d6; --panel2:#f8f4ea; --edge:#ddd2ba; --edge2:#cabfa3;
  --ink:#282540; --muted:#655f74; --faint:#6d6759;
  --shared:#2f685e; --shared-bg:rgba(60,133,120,.12); --dark-c:#9c3f57; --dark-bg:rgba(162,65,90,.10);
  --gold:#7a4a14; --gold-soft:#8a5418; --gold-bg:#7a4a14;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
