/* ============================================================================
   base.css — Design tokens for the White Arrow design system (IAPrompt #33).
   Pure CSS custom properties + safe helpers. Defining variables has NO visual
   effect until a class/inline rule consumes them, so this is safe to load
   globally alongside the legacy main.css/sidebar.css without changing existing
   pages. Components opt in via the `wa-`/`u-` prefixed classes in the other files.
   ============================================================================ */
:root {
  /* Brand + palette */
  --wa-navy: #0f1d44;
  --wa-blue: #2563eb;
  --wa-blue-dark: #1d4ed8;
  --wa-blue-soft: #eff6ff;
  --wa-cyan: #0284c7;
  --wa-green: #16a34a;
  --wa-green-soft: #dcfce7;
  --wa-amber: #d97706;
  --wa-amber-soft: #fef3c7;
  --wa-red: #dc2626;
  --wa-red-soft: #fee2e2;

  /* Neutrals */
  --wa-text: #111827;
  --wa-text-muted: #6b7280;
  --wa-text-faint: #9ca3af;
  --wa-border: #e5e7eb;
  --wa-border-soft: #f3f4f6;
  --wa-bg: #f8fafc;
  --wa-surface: #ffffff;
  --wa-surface-alt: #f9fafb;

  /* Typography */
  --wa-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wa-fs-xs: 0.72rem;
  --wa-fs-sm: 0.82rem;
  --wa-fs-md: 0.92rem;
  --wa-fs-lg: 1.1rem;
  --wa-fs-xl: 1.5rem;

  /* Spacing scale */
  --wa-space-1: 0.25rem;
  --wa-space-2: 0.5rem;
  --wa-space-3: 0.75rem;
  --wa-space-4: 1rem;
  --wa-space-5: 1.25rem;
  --wa-space-6: 1.5rem;
  --wa-space-8: 2rem;

  /* Radius / shadow / motion */
  --wa-radius-sm: 4px;
  --wa-radius: 8px;
  --wa-radius-lg: 10px;
  --wa-radius-pill: 999px;
  --wa-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --wa-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --wa-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --wa-transition: 0.15s ease;
}

/* Opt-in typographic helpers (no bare element overrides → no regressions). */
.wa-text-muted { color: var(--wa-text-muted); }
.wa-text-faint { color: var(--wa-text-faint); }
.wa-fs-xs { font-size: var(--wa-fs-xs); }
.wa-fs-sm { font-size: var(--wa-fs-sm); }
.wa-fw-600 { font-weight: 600; }
.wa-fw-700 { font-weight: 700; }
