/* The night set: a pure token file, redefined for a dark ground and nothing else (no selector of any page).
   Linked after tokens.css by every screen page (the lab pages, the hubs, the map, courses, cards, the console);
   tokens.css stays paper, and print and the device editions are always paper (docs/DESIGN-SYSTEM.md §1).

   Owner decision D2, 2026-10-25 (console), built as the codifier's RFI ruling of that day, and one-site D1 (one
   night theme for every screen). The first ten values are the proposal of docs/design/2026-10-25-console-next.md
   §2.4, measured with the WCAG formula against their own ground: ink 14.7:1, ink-muted 8.2, ink-faint 4.8,
   link 8.7, state-falsified 7.2, rule-strong 4.2. The four other state colours are docs/design/2026-10-25-one-site.md
   §2.3's (RFI 1 ruling, 2026-10-25): open 7.9, running 8.2, settled 8.7, held 8.3 on this ground. tests/site_nav.py
   reads this file and asserts every state colour ≥ 3:1 and every text token ≥ 4.5:1.

   The device's preference decides by default; data-theme="light" or "dark" on <html> overrides it. The shell's
   theme button sets it and keeps the choice under the storage key "theme". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171512;
    --paper-sunk: #211e1a;
    --paper-edge: #2b2722;
    --rule: #3b362f;
    --rule-strong: #80786b;
    --ink: #ece6da;
    --ink-muted: #b5ad9f;
    --ink-faint: #8a8275;
    --link: #93b6e6;
    --state-falsified: #f0857b;
    --state-open: #86ade6;
    --state-running: #d9a457;
    --state-settled: #74c495;
    --state-held: #b6a6e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171512;
  --paper-sunk: #211e1a;
  --paper-edge: #2b2722;
  --rule: #3b362f;
  --rule-strong: #80786b;
  --ink: #ece6da;
  --ink-muted: #b5ad9f;
  --ink-faint: #8a8275;
  --link: #93b6e6;
  --state-falsified: #f0857b;
  --state-open: #86ade6;
  --state-running: #d9a457;
  --state-settled: #74c495;
  --state-held: #b6a6e6;
  color-scheme: dark;
}
