/*
  The site's colors, shared by every page (docs/STYLE_GUIDE.md §2 rule 8).
  Values come from utils/colors.ts, so the site reads as the app. Change a
  color here, never in a page; a page may override a token only with a
  comment saying why (index.html darkens --muted for its background).

  Text needs 4.5:1, graphics 3:1. --primary is for fills and graphics;
  indigo text uses --primary-text (primaryStrong in light, 6.3:1 under white
  text and 5.4:1 on the page tint; #989AF6 in dark).
*/
:root {
  color-scheme: light;
  /* The wordmark's ink: a fixed brand color, not the UI indigo (§2 rule 3). */
  --brand-ink: #6366F1;
  --page: #eeeef6;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #000000;
  --muted: #5c5c66;
  --border: #e5e5ea;
  --rule: rgba(0, 0, 0, 0.08);
  --primary: #5A5DF0;
  --primary-text: #4F46E5;
  --button: #4F46E5;
  --primary-wash: rgba(90, 93, 240, 0.125);
  --trail: rgba(90, 93, 240, 0.35);
  --on-primary: #ffffff;
  --topic-ink: #3F6212;
  --topic-wash: rgba(101, 163, 13, 0.1);
  --completed-ink: #B45309;
  --completed-wash: rgba(180, 83, 9, 0.1);
  --bezel: #d4d4de;
  --blob-indigo: rgba(90, 93, 240, 0.22);
  --blob-moss: rgba(101, 163, 13, 0.18);
  --blob-gold: rgba(255, 196, 0, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d14;
    --bg: #000000;
    --card: #1C1C1E;
    --text: #ffffff;
    --muted: #AEAEB2;
    --border: #38383A;
    --rule: rgba(255, 255, 255, 0.1);
    --primary-text: #989AF6;
    --trail: rgba(152, 154, 246, 0.4);
    --topic-ink: #A3E635;
    --topic-wash: rgba(101, 163, 13, 0.18);
    --completed-ink: #FFD700;
    --completed-wash: rgba(255, 215, 0, 0.14);
    --bezel: #2c2c2e;
    --blob-indigo: rgba(90, 93, 240, 0.3);
    --blob-moss: rgba(101, 163, 13, 0.16);
    --blob-gold: rgba(255, 196, 0, 0.12);
  }
}
