:root {
  /* stilla brand tokens, generated by assets/brand/src/build.py; see BRAND.md */
  --st-terracotta: #C2553A;
  --st-terracotta-deep: #9E3F28;
  --st-terracotta-light: #E07A5F;
  --st-espresso: #3A2A22;
  --st-dust: #75635A;
  --st-sand: #EFE6DA;
  --st-paper: #FBF7F1;
  --st-night: #1E1613;
  --st-night-surface: #2B201B;
  --st-cream: #F3EBE1;
  --st-dust-light: #B9A898;

  /* roles (light) */
  --bg: var(--st-paper);
  --surface: var(--st-sand);
  --text: var(--st-espresso);
  --text-muted: var(--st-dust);
  --accent: var(--st-terracotta-deep);   /* links, focus, text-size accents */
  --brand: var(--st-terracotta);         /* mark and large graphics only, never behind small text */
  --button-bg: var(--st-terracotta-deep);/* primary buttons: paper text passes AA */
  --on-brand: var(--st-paper);
  --danger: #A3192B;                     /* errors only, always with a text label */

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif; /* marketing headings only */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--st-night);
    --surface: var(--st-night-surface);
    --text: var(--st-cream);
    --text-muted: var(--st-dust-light);
    --accent: var(--st-terracotta-light);
    --brand: var(--st-terracotta-light);
    --button-bg: var(--st-terracotta-deep);
    --on-brand: var(--st-paper);
    --danger: #F2828C;
  }
}
