/* Design tokens. Values come from BRAND.md; change them there first.
   Components never use raw colors, only these names. */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #18160f;
  --text-muted: #6b6960;
  --control-border: #8a877e;
  --border: #dddbd6;
  --accent: #1e63d6;
  --on-accent: #ffffff;
  --plum: #6a3a63;
  --ochre: #8a5a2b;
  --zone: rgba(24, 22, 15, 0.06);

  /* System fonts until the design pass self-hosts Fraunces and Inter. */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius: 0.5rem;
  --radius-full: 9999px;
  --content: 40rem;
  --tap: 44px;
  --pause: 400ms;
}

/* Dark values. Listed twice: once for "follow the device", once for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --surface: #1c1a18;
    --text: #efe9e1;
    --text-muted: #a0978c;
    --control-border: #6f685f;
    --border: #34302b;
    --accent: #5aa3ff;
    --on-accent: #141312;
    --plum: #d0a8c8;
    --ochre: #dcb98f;
    --zone: rgba(239, 233, 225, 0.07);
  }
}

:root[data-theme="dark"] {
  --bg: #141312;
  --surface: #1c1a18;
  --text: #efe9e1;
  --text-muted: #a0978c;
  --control-border: #6f685f;
  --border: #34302b;
  --accent: #5aa3ff;
  --on-accent: #141312;
  --plum: #d0a8c8;
  --ochre: #dcb98f;
  --zone: rgba(239, 233, 225, 0.07);
}
