/* The one place for colors, fonts and spacing (MASTER-PLAN.md section 13).
   Every other style reads these; nothing types a color or size of its own. */
:root {
  --color-page: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1a202c;
  --color-muted: #5a6475;
  --color-border: #d9dee7;
  --color-accent: #2b6cb0;
  --color-accent-text: #ffffff;
  --color-danger-bg: #fdecec;
  --color-danger-text: #9b2c2c;
  --color-good: #276749;
  --color-bad: #9b2c2c;
  /* Chart colors, in this order (checked for color-blind readers in light and dark) */
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --color-accent-soft: #e6effa;  /* a pale accent, behind icons and the home page drawing */
  --shadow-card: 0 10px 30px rgba(26, 32, 44, 0.12);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-title: 1.75rem;
  --text-heading: 1.25rem;
  --text-hero: clamp(2.25rem, 6vw, 3.75rem);
  --text-lead: clamp(1.05rem, 2vw, 1.25rem);
  --text-eyebrow: 0.8rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --radius: 8px;
  --page-width: 52rem;
  --page-width-wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-page: #12151b;
    --color-surface: #1b2029;
    --color-text: #e7ebf2;
    --color-muted: #a3adbd;
    --color-border: #2f3746;
    --color-accent: #63a4e8;
    --color-accent-text: #0b1220;
    --color-danger-bg: #3a1d1d;
    --color-danger-text: #f6b4b4;
    --color-good: #7fd1a0;
    --color-bad: #f6a1a1;
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --chart-3: #199e70;
    --color-accent-soft: #1d2a3d;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
