/*
 * The Mediagram design system's tokens (tokens.json in the published system) as CSS
 * variables. Light by default; dark when the device is, because both themes follow
 * the device (README, Color).
 */
:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #f6f5f5;
  --surface-strong: #eceaeb;
  --line: #e6e3e4;
  --line-strong: #8c8587;
  --ink: #231f20;
  --ink-muted: #6b6466;
  --brand: #5b4fe9;
  --brand-pressed: #4338ca;
  --on-brand: #ffffff;
  --brand-ink: #5b4fe9;
  --brand-soft: #eeecfd;
  --danger: #c2362b;
  --on-danger: #ffffff;
  --focus: var(--brand-ink);
  --shadow-panel: 0 -1px 0 #e6e3e4, 0 -12px 32px rgba(35, 31, 32, 0.08);
  --shadow-toast: 0 8px 24px rgba(35, 31, 32, 0.18);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --size-hit: 44px;
  --size-topbar: 52px;
  --size-avatar: 32px;
  --size-icon: 24px;
  --size-meta-column: 340px;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0e0d0e;
    --surface: #181718;
    --surface-strong: #232122;
    --line: #2c2a2b;
    --line-strong: #6f696b;
    --ink: #f5f2f3;
    --ink-muted: #a9a2a4;
    --brand-ink: #8f88f4;
    --brand-soft: #221f3d;
    --danger: #ff7a6e;
    --on-danger: #2a0b08;
    --focus: var(--brand-ink);
    --shadow-panel: 0 -1px 0 #2c2a2b;
    --shadow-toast: 0 8px 24px rgba(0, 0, 0, 0.55);
  }
}
