/* Gabriel Amaro · design system — tokens gerados de tokens.json (fonte da verdade: https://claude.ai/artifact/7JC1ZNjJ4kBeAGGWdYmXws).
   Temas: claro por padrão; escuro quando o sistema prefere escuro e o usuário não escolheu claro,
   ou quando <html data-theme="dark">. O botão de tema grava data-theme="light" ou "dark" no <html>. */

:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --margin-page: 32px;
  --grid-blueprint: 28px;
  --measure-prose: 680px;
  --measure-wide: 960px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-frame: 16px;
  --radius-full: 9999px;
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.65);
  --glow-accent: 0 0 25px -4px rgba(255, 107, 0, 0.22);
  --glow-primary: 0 0 25px -4px rgba(124, 58, 237, 0.22);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* display-hero: 56px/64px peso 700 */
  /* headline-lg: 32px/40px peso 700 */
  /* headline-md: 24px/30px peso 600 */
  /* headline-sm: 18px/24px peso 600 */
  /* article-title: 42px/48px peso 500 */
  /* article-h2: 26px/32px peso 500 */
  /* article-h3: 20px/28px peso 500 */
  /* prose-lead: 20px/34px peso 400 */
  /* prose-body: 17px/30px peso 400 */
  /* prose-small: 15px/24px peso 400 */
  /* body-lg: 16px/24px peso 400 */
  /* body-md: 14px/20px peso 400 */
  /* body-sm: 12px/16px peso 400 */
  /* label-md: 13px/16px peso 500 */
  /* label-sm: 11px/14px peso 600 */
  /* code: 13px/20px peso 400 */
  /* code-block: 15px/24px peso 400 */
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg-base: #f8fafc;
  --surface: #ffffff;
  --surface-elevated: #f1f5f9;
  --surface-hover: #e8edf3;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-strong: #0b1220;
  --text: #1e293b;
  --text-prose: #334155;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-text: #6d28d9;
  --primary-tint: rgba(124, 58, 237, 0.10);
  --accent: #ea580c;
  --accent-text: #c2410c;
  --accent-tint: rgba(234, 88, 12, 0.10);
  --live: #0f766e;
  --danger: #b91c1c;
  --status-running: #1d4ed8;
  --status-pending: #b45309;
  --status-done: #15803d;
  --danger-surface: #fef2f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-base: #151414;
    --surface: #1a1919;
    --surface-elevated: #222121;
    --surface-hover: #2a2929;
    --border: #2e2c2c;
    --border-strong: #3a3838;
    --text-strong: #ede6e1;
    --text: #d6cfcb;
    --text-prose: #aea5a1;
    --text-muted: #958d89;
    --text-subtle: #77706d;
    --primary: #7c3aed;
    --primary-hover: #8b5cf6;
    --primary-text: #b39dfb;
    --primary-tint: rgba(124, 58, 237, 0.18);
    --accent: #ff6b00;
    --accent-text: #ff6b00;
    --accent-tint: rgba(255, 107, 0, 0.12);
    --live: #5eead4;
    --danger: #f87171;
    --status-running: #60a5fa;
    --status-pending: #fbbf24;
    --status-done: #4ade80;
    --danger-surface: rgba(69, 10, 10, 0.6);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #151414;
  --surface: #1a1919;
  --surface-elevated: #222121;
  --surface-hover: #2a2929;
  --border: #2e2c2c;
  --border-strong: #3a3838;
  --text-strong: #ede6e1;
  --text: #d6cfcb;
  --text-prose: #aea5a1;
  --text-muted: #958d89;
  --text-subtle: #77706d;
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --primary-text: #b39dfb;
  --primary-tint: rgba(124, 58, 237, 0.18);
  --accent: #ff6b00;
  --accent-text: #ff6b00;
  --accent-tint: rgba(255, 107, 0, 0.12);
  --live: #5eead4;
  --danger: #f87171;
  --status-running: #60a5fa;
  --status-pending: #fbbf24;
  --status-done: #4ade80;
  --danger-surface: rgba(69, 10, 10, 0.6);
}
