/* Design tokens - single source of truth for colors, spacing, typography.
   Change a token here and it propagates to every feature stylesheet.
   Adding a theme: copy these under html[data-theme="NAME"] in theme.NAME.css. */

:root {
  /* Palette - neutral dark baseline (default) */
  --color-bg-1: #0a0a0a;
  --color-bg-2: #0d1117;
  --color-bg-3: #111;
  --color-bg-elev: #161b22;
  --color-border: #1e1e1e;
  --color-border-2: #353b43;

  --color-text: #e6edf3;
  --color-text-2: #8b949e;
  --color-text-3: #6e7681;
  --color-text-muted: #484f58;

  --color-primary: #00c9a7;
  --color-primary-hover: #00b89a;
  --color-accent: #2f81f7;
  --color-focus: #3b82f6;

  --color-success: #26a69a;
  --color-success-soft: rgba(38, 166, 154, 0.15);
  --color-danger: #ef5350;
  --color-danger-soft: rgba(239, 83, 80, 0.15);
  --color-warning: #f0a04b;
  --color-warning-soft: rgba(240, 160, 75, 0.15);

  /* Typography */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --font-size-xs: 0.65rem;
  --font-size-sm: 0.78rem;
  --font-size-md: 0.9rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.4rem;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);

  /* Motion */
  --transition-fast: 120ms ease;
  --transition-med:  200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --z-toast: 8000;
  --z-modal: 8500;
  --z-overlay: 9000;
}
