/* ============================================================
   Design System — Tokens
   CSS custom properties for the 1vsM dark/gold theme.
   Source of truth for colors, spacing, typography, and motion.
   ============================================================ */

:root {
  /* ── Colors ──────────────────────────────────────────────── */
  --color-bg: #0A0A0A;
  --color-surface: #111111;
  --color-surface-hover: #171717;
  --color-surface-active: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-text: #E8E8E8;
  --color-text-muted: #777777;
  --color-text-dim: #555555;
  --color-accent: #D4AF37;
  --color-accent-hover: #E8C84D;
  --color-accent-text: #050505;

  /* ── Semantic colors ─────────────────────────────────────── */
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.15);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.12);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.15);

  /* ── Spacing scale (4px base) ────────────────────────────── */
  --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;

  /* ── Typography ──────────────────────────────────────────── */
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  --text-xs: 0.68rem;
  --text-sm: 0.78rem;
  --text-base: 0.88rem;
  --text-md: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.8rem;

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

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ── Radii ───────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* ── Focus ───────────────────────────────────────────────── */
  --focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.3);

  /* ── Transitions ─────────────────────────────────────────── */
  --transition-fast: 0.1s ease;
  --transition-normal: 0.15s ease;
  --transition-slow: 0.3s ease;

  /* ── Z-index scale ───────────────────────────────────────── */
  --z-dropdown: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-tooltip: 400;
}
