/* Murray's Design System — Tokens
   Canonical source for all design values across the site.
   Components should reference these variables instead of hardcoded values. */

:root {
  /* ── Colors ─────────────────────────────────────── */
  --color-background: #f6faf8;
  --color-surface: #ffffff;
  --color-surfaceRaised: #ffffff;
  --color-muted: #edf6ef;
  --color-border: #d8e8dc;
  --color-borderSubtle: #e8f2ea;
  --color-borderStrong: #b8cfbf;
  --color-foreground: #0a1a12;
  --color-foreground-secondary: #4e6659;
  --color-foreground-tertiary: #7e9689;
  --color-primary: #198a4e;
  --color-primary-hover: #146a3c;
  --color-primary-text: #ffffff;
  --color-primary-light: #d8f3e0;
  --color-accent: #43c97f;
  --color-accent-hover: #2cab67;
  --color-accent-text: #042814;
  --color-accent-warm: #f59e0b;
  --color-accent-warm-light: #fef3c7;
  --color-success: #198a4e;
  --color-success-bg: #d8f3e0;
  --color-success-text: #0f5530;
  --color-warning: #f59e0b;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-danger: #dc2626;
  --color-danger-bg: #fee2e2;
  --color-danger-text: #991b1b;
  --color-info: #2563eb;
  --color-info-bg: #dbeafe;
  --color-info-text: #1e40af;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-ring: #2cab67;

  /* Semantic hero / gradient helpers */
  --color-hero-start: #0b3d22;
  --color-hero-mid: #198a4e;
  --color-hero-end: #21a862;
  --color-footer-bg: #0a1f14;
  --color-footer-text: #b6c7bd;
  --color-footer-link: #86efac;

  /* ── Typography ─────────────────────────────────── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.03em;
  --tracking-normal: -0.02em;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.08em;

  /* ── Spacing ────────────────────────────────────── */
  --space-0: 0px;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Legacy aliases (dot notation) — prefer dash notation above */
  --space-0\.5: 2px;
  --space-1\.5: 6px;
  --space-2\.5: 10px;

  /* ── Layout ─────────────────────────────────────── */
  --max-width: 1200px;
  --max-width-prose: 760px;
  --max-width-narrow: 640px;

  /* ── Radius ─────────────────────────────────────── */
  --radius-none: 0px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────── */
  --shadow-none: none;
  --shadow-sm: 0 1px 3px rgba(15, 31, 24, 0.06), 0 1px 2px rgba(15, 31, 24, 0.04);
  --shadow-md: 0 10px 25px -8px rgba(15, 31, 24, 0.15), 0 4px 10px -4px rgba(25, 138, 78, 0.1);
  --shadow-lg: 0 20px 40px -12px rgba(15, 31, 24, 0.2), 0 8px 20px -8px rgba(25, 138, 78, 0.12);
  --shadow-xl: 0 25px 50px -12px rgba(15, 31, 24, 0.25), 0 12px 24px -8px rgba(25, 138, 78, 0.15);
  --shadow-glow: 0 0 20px rgba(25, 138, 78, 0.15), 0 0 60px rgba(67, 201, 127, 0.08);
  --shadow-btn-primary: 0 4px 14px -4px rgba(25, 138, 78, 0.35);
  --shadow-btn-primary-hover: 0 8px 24px -6px rgba(25, 138, 78, 0.45);
  --shadow-btn-accent: 0 4px 14px -4px rgba(67, 201, 127, 0.35);

  /* ── Transitions ────────────────────────────────── */
  --transition-fast: 150ms ease;
  --transition-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index scale ──────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 9999;
}

.dark {
  --color-background: #03120b;
  --color-surface: #0c1e15;
  --color-surfaceRaised: #143124;
  --color-muted: #173527;
  --color-border: #2a4a3a;
  --color-borderSubtle: #173527;
  --color-borderStrong: #3d6250;
  --color-foreground: #f8fafc;
  --color-foreground-secondary: #a6c1b3;
  --color-foreground-tertiary: #6f8e7f;
  --color-primary: #4dd08a;
  --color-primary-hover: #6ee5a7;
  --color-primary-text: #ffffff;
  --color-primary-light: #123523;
  --color-accent: #7be5b1;
  --color-accent-hover: #98eec4;
  --color-accent-text: #022112;
  --color-success: #4dd08a;
  --color-success-bg: #083320;
  --color-success-text: #b2f5cf;
  --color-warning: #fbbf24;
  --color-warning-bg: #451a03;
  --color-warning-text: #fcd34d;
  --color-danger: #f87171;
  --color-danger-bg: #450a0a;
  --color-danger-text: #fca5a5;
  --color-info: #60a5fa;
  --color-info-bg: #172554;
  --color-info-text: #93c5fd;
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-ring: #60a5fa;

  --color-hero-start: #031209;
  --color-hero-mid: #0c1e15;
  --color-hero-end: #143124;
  --color-footer-bg: #020d06;
  --color-footer-text: #6f8e7f;
  --color-footer-link: #4dd08a;
}
