/* Design tokens. Names are frozen; values set by the Task 2 design study (direction A, Broadsheet;
   docs/superpowers/design/2026-11-07-directions.md). Every colour that encodes data is >= 3:1 against
   --paper in its theme; --ink-3, --ok, --warn, --bad and --accent are >= 4.5:1 because they set text.
   Severity and tier ramps are monotone in contrast (light: darker = more severe / stronger tier;
   dark: brighter). --tier-unassigned is the faintest tier and is told apart by its dashed glyph.
   --accent is plum so it never reads as a severity, tier or status colour.
   Exception: --sev-none (an unverified or absent severity) sits deliberately below 3:1, fainter than
   --sev-1 in lightness and not just hue, so an unverified rung never passes for a verified one;
   the rung's position and the "Not independently verified" band carry the meaning in text. */
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #1a1a18;
  --ink-2: #4a4945;
  --ink-3: #6f6d68;
  --rule: #d9d6cf;
  --accent: #5b3d8a;

  /* severity ladder, 1 = least to 5 = most; --sev-none for unverified or no finding */
  --sev-1: #a08a52;
  --sev-2: #ad7034;
  --sev-3: #a5502a;
  --sev-4: #8c2f1f;
  --sev-5: #6b1414;
  --sev-none: #b9b6af;

  /* evidence tiers, strongest to weakest */
  --tier-adjudicated: #1f3a5f;
  --tier-settled-findings: #34587f;
  --tier-settled: #4f6f91;
  --tier-procedural: #6b7884;
  --tier-alleged: #8a7f70;
  --tier-unassigned: #938f88;

  --ok: #2f6b3a;
  --warn: #8a6100;
  --bad: #9b2c20;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* type scale, ratio 1.25 from 1rem */
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --gutter: 16px;
  --measure: 68ch;
  --tap: 44px;
}

/* The dark tokens apply on screen only: print always uses the light tokens, whatever the theme. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141413;
    --ink: #ecebe6;
    --ink-2: #bdbbb4;
    --ink-3: #96948d;
    --rule: #3a3936;
    --accent: #b9a3e3;
    --sev-1: #7f7559;
    --sev-2: #a07c4a;
    --sev-3: #c4733f;
    --sev-4: #e8634b;
    --sev-5: #ff6b5c;
    --sev-none: #55534f;
    --tier-adjudicated: #8fb3dc;
    --tier-settled-findings: #7a9dc4;
    --tier-settled: #6787a8;
    --tier-procedural: #75818c;
    --tier-alleged: #847a6c;
    --tier-unassigned: #6f6c66;
    --ok: #7fbf8a;
    --warn: #d9b05a;
    --bad: #ef7b6c;
  }
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #141413;
    --ink: #ecebe6;
    --ink-2: #bdbbb4;
    --ink-3: #96948d;
    --rule: #3a3936;
    --accent: #b9a3e3;
    --sev-1: #7f7559;
    --sev-2: #a07c4a;
    --sev-3: #c4733f;
    --sev-4: #e8634b;
    --sev-5: #ff6b5c;
    --sev-none: #55534f;
    --tier-adjudicated: #8fb3dc;
    --tier-settled-findings: #7a9dc4;
    --tier-settled: #6787a8;
    --tier-procedural: #75818c;
    --tier-alleged: #847a6c;
    --tier-unassigned: #6f6c66;
    --ok: #7fbf8a;
    --warn: #d9b05a;
    --bad: #ef7b6c;
  }
}
