/* ══════════════════════════════════════════════════════════════════════
   commit design-system tokens
   Mirrors _ds/commit-design-system/tokens/{colors,typography,spacing}.css
   Fonts are loaded with a <link> in the page head, not @import.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand core ──────────────────────────────────────────────────── */
  --commit-purple:        #402BCA;  /* primary — the brand */
  --commit-purple-bright: #5E47EC;  /* brand2 — lighter, dark mode + gradients */
  --commit-purple-glow:   #8270FF;  /* dark-mode accent / links on dark */
  --commit-teal:          #4DA1A9;  /* secondary */
  --commit-orange:        #FF7700;  /* accent — used sparingly */
  --commit-cream:         #FEE9E1;  /* brand off-white */
  --commit-ink:           #291F1E;  /* brand warm-black */

  --purple-50:  #F3F1FF;
  --purple-100: #E7E3FF;
  --purple-200: #CDC4FF;
  --purple-300: #AA9BFF;
  --purple-400: #8270FF;
  --purple-500: #5E47EC;
  --purple-600: #402BCA;
  --purple-700: #3623A8;
  --purple-800: #2D1D8A;
  --purple-900: #27196E;

  --brand:         var(--commit-purple);
  --brand-hover:   var(--commit-purple-bright);
  --brand-on-dark: var(--commit-purple-glow);
  --secondary:     var(--commit-teal);
  --accent:        var(--commit-orange);

  /* ── Neutrals — warm, cream-leaning ──────────────────────────────── */
  --surface-page:     #F6F4F0;
  --surface-page-alt: #EFEDE7;
  --surface-card:     #FFFFFF;
  --surface-sunken:   #EFEDE7;

  --text-strong: #1F1F1F;
  --text-body:   #4B5563;
  --text-muted:  #857B6F;
  --text-faint:  #A39A8E;

  --border-soft:    rgba(0,0,0,0.06);
  --border-default: #E5E0D8;
  --border-strong:  #D8D2C8;

  /* ── Status / order lifecycle ────────────────────────────────────── */
  --status-pending-fg:   #92400E;  --status-pending-bg:   #FEF9C3;
  --status-confirmed-fg: #1E40AF;  --status-confirmed-bg: #DBEAFE;
  --status-otw-fg:       #6B21A8;  --status-otw-bg:       #F3E8FF;
  --status-delivered-fg: #166534;  --status-delivered-bg: #DCFCE7;
  --status-cancelled-fg: #991B1B;  --status-cancelled-bg: #FEE2E2;

  --success: #10B981;
  --info:    #3B82F6;
  --warn:    #D97706;
  --danger:  #DC2626;

  --money-owed:   #DC2626;
  --money-credit: #16A34A;

  /* ── Typography ──────────────────────────────────────────────────── */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-ui:   'IBM Plex Sans', system-ui, sans-serif;  /* in-product screenshots */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-widest:  0.15em;

  /* ── Spacing, radii, shadows, motion ─────────────────────────────── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px -8px rgba(0,0,0,0.10);

  --content-max: 1200px;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.6s;
}

/* ── Dark surfaces — used by the pilot panel and the footer ─────────── */
:root.dark,
.dark {
  --surface-page:     #14110F;
  --surface-page-alt: #1A1614;
  --surface-card:     #1F1B19;
  --surface-sunken:   #25201E;

  --text-strong: #F6F4F0;
  --text-body:   #C8C0B5;
  --text-muted:  #857B6F;
  --text-faint:  #6B6157;

  --border-soft:    rgba(255,255,255,0.06);
  --border-default: #322C29;
  --border-strong:  #423B36;

  --brand:       var(--commit-purple-bright);
  --brand-hover: var(--commit-purple-glow);
}
