/* Design tokens
 * Override these custom properties at :root or on a subtree to theme the UI.
 */
:root {
  color-scheme: light;

  --color-white: #ffffff;
  --color-gray-25: #fcfcfd;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-gray-950: #020617;

  --color-brand-50: #eef2ff;
  --color-brand-100: #e0e7ff;
  --color-brand-200: #c7d2fe;
  --color-brand-500: #6366f1;
  --color-brand-600: #4f46e5;
  --color-brand-700: #4338ca;

  --color-red-50: #fef2f2;
  --color-red-200: #fecaca;
  --color-red-600: #dc2626;
  --color-amber-50: #fffbeb;
  --color-amber-200: #fde68a;
  --color-amber-700: #b45309;
  --color-green-50: #f0fdf4;
  --color-green-200: #bbf7d0;
  --color-green-700: #15803d;
  --color-blue-50: #eff6ff;
  --color-blue-200: #bfdbfe;
  --color-blue-700: #1d4ed8;

  --color-bg: var(--color-gray-50);
  --color-surface: var(--color-white);
  --color-surface-subtle: var(--color-gray-100);
  --color-border: var(--color-gray-200);
  --color-border-strong: var(--color-gray-300);
  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-500);
  --color-primary: var(--color-brand-600);
  --color-primary-hover: var(--color-brand-700);
  --color-primary-subtle: var(--color-brand-50);
  --color-primary-subtle-text: var(--color-brand-700);
  --color-on-primary: var(--color-white);
  --color-focus: var(--color-brand-500);
  --color-surface-hover: var(--color-gray-25);

  --color-info-bg: var(--color-blue-50);
  --color-info-border: var(--color-blue-200);
  --color-info-text: var(--color-blue-700);
  --color-success-bg: var(--color-green-50);
  --color-success-border: var(--color-green-200);
  --color-success-text: var(--color-green-700);
  --color-warning-bg: var(--color-amber-50);
  --color-warning-border: var(--color-amber-200);
  --color-warning-text: var(--color-amber-700);
  --color-danger-bg: var(--color-red-50);
  --color-danger-border: var(--color-red-200);
  --color-danger-text: var(--color-red-600);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 20px 40px rgb(15 23 42 / 0.12);

  --content-width: 80rem;
  --transition-fast: 150ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: var(--color-gray-950);
  --color-surface: var(--color-gray-900);
  --color-surface-subtle: var(--color-gray-800);
  --color-border: var(--color-gray-800);
  --color-border-strong: var(--color-gray-700);
  --color-text: var(--color-gray-100);
  --color-text-muted: var(--color-gray-400);
  --color-primary: #818cf8;
  --color-primary-hover: #a5b4fc;
  --color-primary-subtle: #1e1b4b;
  --color-primary-subtle-text: #c7d2fe;
  --color-on-primary: var(--color-gray-950);
  --color-focus: #818cf8;
  --color-surface-hover: #172033;

  --color-info-bg: #172554;
  --color-info-border: #1e40af;
  --color-info-text: #bfdbfe;
  --color-success-bg: #052e16;
  --color-success-border: #166534;
  --color-success-text: #bbf7d0;
  --color-warning-bg: #451a03;
  --color-warning-border: #92400e;
  --color-warning-text: #fde68a;
  --color-danger-bg: #450a0a;
  --color-danger-border: #991b1b;
  --color-danger-text: #fecaca;
}
