/* Chronicle design tokens. Shares the TechSparq brand with Folio and Dossier (red #D0021B,
   Playfair Display + Barlow). A utility app, so surfaces are flat and calm — no glass.
   Components use these variables, never raw hex. Theme is set on <html data-theme> before
   first paint (see index.html). */
:root {
  --red: #D0021B;            --red-hover: #B10218;
  --page: #FAF9F6;           --surface: #FFFFFF;
  --surface-2: #F4F1EC;
  --tone-1: rgba(26,26,26,.05);
  --text: #1A1A1A;           --text-2: #3A3A3A;
  --text-quiet: #6A6A6A;
  --rule: #E2DED7;           --rule-strong: #CFC9C0;
  --field: #FFFFFF;          --field-border: #CFC9C0;
  --active-tint: #FBE6E8;    --active-text: #B10218;
  --ok: #1F8F4A;             --warn: #B07A0C;            --danger: #C0222A;
  --ok-tint: #E8F4ED;        --warn-tint: #FBF1DD;       --info-tint: #EAF0FB;  --info: #2457C5;
  --shadow: 0 1px 2px rgba(26,26,26,.06), 0 8px 24px rgba(26,26,26,.06);
  --radius: 8px;             --radius-sm: 5px;
  --space: 8px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: Barlow, Calibri, sans-serif;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --t: 140ms;
  --focus: 0 0 0 2px var(--page), 0 0 0 4px var(--red);
}

:root[data-theme="dark"] {
  --red: #FF4D5E;            --red-hover: #FF6670;
  --page: #141414;           --surface: #1E1E1E;
  --surface-2: #242424;
  --tone-1: rgba(255,255,255,.06);
  --text: #EDEAE4;           --text-2: #D4D0C9;
  --text-quiet: #A29D95;
  --rule: #343434;           --rule-strong: #454545;
  --field: #0F0F0F;          --field-border: #454545;
  --active-tint: rgba(255,77,94,.16);  --active-text: #FF7A86;
  --ok: #3FBE72;             --warn: #E0A93B;            --danger: #FF6670;
  --ok-tint: rgba(63,190,114,.14);  --warn-tint: rgba(224,169,59,.14);  --info-tint: rgba(36,87,197,.18);  --info: #8FB0FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
}

@media (prefers-reduced-motion: reduce) { :root { --t: 0ms; } }
