/* The only file allowed raw colours and sizes (tools/style_contract.py enforces it).
   Type: 13 16 18 22 28. Space: 4 8 12 16 24 32 48. Brand: dark green and brass. WCAG 2.2 AA contrast. */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-small: 13px; --t-body: 16px; --t-lead: 18px; --t-title: 22px; --t-page: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --radius: 10px; --radius-small: 6px; --tap: 48px; --tap-min: 24px; --line: 1px; --focus-width: 3px;
  --content: 760px; --rail: 220px; --narrow: 420px;

  --bg: #f7f6f2; --surface: #ffffff; --surface-2: #efede6; --ink: #1d211f; --ink-2: #4d5550;
  --border: #d5d2c8; --accent: #1f5b45; --accent-ink: #ffffff; --accent-soft: #dcebe3; --brass: #7a5c14;
  --art-grey: #808080; --focus: #2b6cb0; --shadow: 0 1px 2px rgba(0, 0, 0, .08);
  --st-wip-bg: #e7e7e4; --st-wip-ink: #3c3f3d;
  --st-review-bg: #dce8f7; --st-review-ink: #1c4572;
  --st-ok-bg: #d9eedf; --st-ok-ink: #1d5a30;
  --st-no-bg: #f6dcd9; --st-no-ink: #8a231a;
  --st-wait-bg: #f5e8c9; --st-wait-ink: #6b4a06;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141716; --surface: #1d2120; --surface-2: #262b29; --ink: #ecefec; --ink-2: #b5bdb8;
    --border: #39403d; --accent: #5fb38f; --accent-ink: #0c1a14; --accent-soft: #1f3a2e; --brass: #d4ad55;
    --focus: #7fb2ec; --shadow: none;
    --st-wip-bg: #33373a; --st-wip-ink: #dcdfdd;
    --st-review-bg: #1d3352; --st-review-ink: #bcd6f5;
    --st-ok-bg: #1b3b26; --st-ok-ink: #b9e5c6;
    --st-no-bg: #4a1f1b; --st-no-ink: #f5c3bd;
    --st-wait-bg: #43361a; --st-wait-ink: #f0d79e;
  }
}
:root[data-theme="dark"] {
  --bg: #141716; --surface: #1d2120; --surface-2: #262b29; --ink: #ecefec; --ink-2: #b5bdb8;
  --border: #39403d; --accent: #5fb38f; --accent-ink: #0c1a14; --accent-soft: #1f3a2e; --brass: #d4ad55;
  --focus: #7fb2ec; --shadow: none;
  --st-wip-bg: #33373a; --st-wip-ink: #dcdfdd;
  --st-review-bg: #1d3352; --st-review-ink: #bcd6f5;
  --st-ok-bg: #1b3b26; --st-ok-ink: #b9e5c6;
  --st-no-bg: #4a1f1b; --st-no-ink: #f5c3bd;
  --st-wait-bg: #43361a; --st-wait-ink: #f0d79e;
}
