/* CoverBeforeShare design tokens — single source of truth.
   Copied verbatim to backend/public/assets/tokens.css by scripts/sync-tokens.mjs (a test asserts they match). */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2rem, 5vw + 0.5rem, 3.75rem);
  --leading-tight: 1.1;
  --leading-body: 1.5;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;
  --radius-pill: 999px;

  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 140ms;

  /* light theme (default) */
  --bg: #f5f2ea;
  --surface: #fbf9f4;
  --surface-2: #ece7db;
  --text: #17160f;
  --text-muted: #5b574a;
  --border: #d8d2c2;
  --accent: #d42a10;
  --accent-hover: #b8230c;
  --on-accent: #ffffff;
  --bar: #0b0b09;          /* the "redaction bar" colour */
  --ok: #1b6b3a;
  --warn: #8a5a00;
  --danger: #b3261e;
  --shadow-1: 0 1px 2px rgb(23 22 15 / 0.08), 0 4px 14px rgb(23 22 15 / 0.08);
  --shadow-2: 0 12px 40px rgb(23 22 15 / 0.18);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12110d;
  --surface: #1b1a15;
  --surface-2: #26241d;
  --text: #f3efe4;
  --text-muted: #a9a393;
  --border: #38352b;
  --accent: #ff6a4d;
  --accent-hover: #ff836a;
  --on-accent: #14130f;
  --bar: #000000;
  --ok: #5fd08a;
  --warn: #f0b84a;
  --danger: #ff8a80;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.5), 0 4px 14px rgb(0 0 0 / 0.4);
  --shadow-2: 0 12px 40px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110d;
    --surface: #1b1a15;
    --surface-2: #26241d;
    --text: #f3efe4;
    --text-muted: #a9a393;
    --border: #38352b;
    --accent: #ff6a4d;
    --accent-hover: #ff836a;
    --on-accent: #14130f;
    --bar: #000000;
    --ok: #5fd08a;
    --warn: #f0b84a;
    --danger: #ff8a80;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.5), 0 4px 14px rgb(0 0 0 / 0.4);
    --shadow-2: 0 12px 40px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
