/* Taken from app/src/styles.css so the site and the app can never drift apart (SITE.md:
   "Tokens are the same ones the app uses. No new colours, sizes or radii.").
   Regenerate with: python3 scripts/design/site_tokens.py */
:root {
  /* Archive palette */
  --bg: #FCFCFB;            /* pages */
  --panel: #F6F4F1;         /* right sidebar */
  --surface: #EFEBE5;       /* hover (Archive border-soft) */
  --surface-2: #E7E3DD;     /* selected (Archive border) */
  --surface-raised: #FFFFFF;
  --ink: #1E1B18;
  --ink-2: #5E564E;         /* Archive muted — all small secondary text (faint #948B81 is 3.26:1, not for text) */
  --ink-3: #5E564E;
  --line: #948B81;          /* B27 (owner pick A): was #E7E3DD, which is 1.25:1 on the page and 1.16:1
                               on the right panel — a line nobody could see. This is 3.26:1 and 3.05:1,
                               so every divider, edge and border is actually visible. */
  --line-strong: #948B81;   /* Archive faint: borders and non-text marks only (3.26:1) */
  --accent: #B04A2F;
  --accent-soft: #F6EAE4;
  --accent-text: #B04A2F;
  --link: #B04A2F;
  --link-unresolved: #5E564E;
  --focus: #B04A2F;
  --star: #B07A24;          /* D-036 owner pick A: closest to Archive gold #C98A2B, 3.38:1 on the panel, 3.71:1 on white */
  /* Espresso rail (ribbon + left sidebar) */
  --rail: #221D19;
  --rail-line: #7A6C5E;     /* B27: was #372F28, only 1.27:1 on the rail — invisible, the same fault
                               as --line had on the page. 3.29:1, the lightest value that a mark needs.
                               The system had no rail line that passed, so this is a new value (D-123). */
  --rail-ink: #EFE9E2;
  --rail-muted: #B4A99D;
  --rail-hover: #2c251f;
  --rail-input: #191410;
  --rail-active: rgba(176, 74, 47, .20);
  --rail-active-ink: #E39B7C;
  --rail-focus: #E39B7C;    /* Archive rust-lite: the accent is only 2.1:1 on the rail, too faint for a focus ring */
  /* Graph */
  --graph-note: #5E564E;
  --graph-person: #B04A2F;
  --graph-project: #4f7a72;
  --graph-daily: #B07A24;   /* D-040: owner's star gold A; Archive #C98A2B was 2.86:1 */
  --graph-unresolved: #948B81;
  --graph-deleted: #948B81;       /* D-072: CR-021 deleted notes, drawn as a dashed hollow ring */
  --graph-edge: #B4A99D;         /* D-096 (B11): lines you can see */
  --graph-tag: var(--accent);   /* D-068: CR-017 tag and attachment dots, drawn as hollow rings */
  --graph-file: var(--ink-2);   /* deliberately the same as --graph-note: shape carries the difference, not colour (pack 3, DECISION-graph-file-dot). Kept as its own name so a future change has somewhere to land. */

  /* CR-075 — the brain view draws on the espresso rail, so its department colours have to read as
     LIGHT on dark. Seven, approved by the designer 21 Sep 2026, derived in OKLCH at the lightness of
     --rail-active-ink; every one is >= 4.5:1 on --rail #221D19. Two departments reuse rail tokens
     that already exist: Content --rail-active-ink, Skills --rail-muted. */
  --graph-dark-gold: #D9AE5C;    /* Personal — --star lifted · 8.0:1 */
  --graph-dark-teal: #7FB8AE;    /* Community — --graph-project lifted · 7.5:1 */
  --graph-dark-steel: #8FB0D0;   /* Applications · 7.2:1 */
  --graph-dark-plum: #C89AB8;    /* Business · 6.9:1 */
  --graph-dark-olive: #A9BC7C;   /* Product · 8.1:1 */
  --graph-dark-clay: #D9A07C;    /* Routines · 7.4:1 */
  --graph-dark-slate: #9DA9D9;   /* Memory · 7.0:1 */
  /* Type: system sans for the interface, serif for headings and titles */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs: 11px; --text-sm: 12.5px; --text-base: 14px; --text-md: 16px; --text-lg: 18px; --text-xl: 22px; --text-2xl: 30px;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600;
  --tracking-label: 0.06em;
  --bullet-scale: 1.3;      /* CR-148: list bullets, a little larger than the words (Read: the browser's own marks) */
  --bullet-scale-visual: 1.6;   /* Visual draws • and ◦ as characters, which are smaller: this makes them the same size as in Read */
  /* Layout and effects */
  --ribbon-w: 44px; --sidebar-w: 256px; --panel-w: 280px; --bar-h: 40px;
  --radius-xs: 3px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --border: 1px solid var(--line); --border-strong: 1px solid var(--line-strong);
  --shadow-md: 0 4px 12px rgba(30, 27, 24, .10), 0 1px 2px rgba(30, 27, 24, .06);
  --shadow-lg: 0 16px 40px rgba(30, 27, 24, .16), 0 2px 6px rgba(30, 27, 24, .08);
  /* Kanban (pack flag 5): these five were written straight into the rules, so a reader of the token
     list could not see them. Same values, now named. D-102 chose the on-hold red. */
  --hold: #B71C1C;              /* on hold: the badge fill and the card's border */
  --hold-soft: #EF9A9A;         /* on hold: the card fill */
  --on-hold: #FFFFFF;           /* text on the hold badge — 5.9:1 on #B71C1C */
  --pri-high: #B71C1C;          /* priority H */
  --pri-mid: #8D4A00;           /* priority M — 5.6:1 on white */
  --pri-low: #424242;           /* priority L */
  --ease: cubic-bezier(0.2, 0, 0, 1); --dur-fast: 100ms;
  --ac-mark: #3E5F8A;           /* CR-149: a word autocorrect fixed — steel underline, 6.2:1 on the page */
  --ac-mark-soft: #E9EFF6;      /* CR-149: its light tint; words on it stay 15:1 */
  --ac-unsure: var(--accent);   /* CR-149: a word Loom is not sure of — wavy underline only */
}