:root {
  /* ── Typography ── */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Font sizes – 1.25 modular scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ── Colors – Stone + Amber ── */
  --color-bg: #FAF9F7;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #F5F3F0;
  --color-border: #E7E5E0;
  --color-border-light: #F0EEEA;

  --color-text: #1C1917;
  --color-text-secondary: #78716C;
  --color-text-tertiary: #A8A29E;
  --color-text-inverse: #FFFFFF;

  --color-accent: #B45309;
  --color-accent-hover: #92400E;
  --color-accent-light: #FFF7ED;
  --color-accent-subtle: #FFFBEB;

  --color-success: #16A34A;
  --color-success-light: #F0FDF4;
  --color-danger: #DC2626;
  --color-danger-light: #FEF2F2;
  --color-spice: #EA580C;
  --color-spice-light: #FFF7ED;

  /* ── Spacing ── */
  --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;
  --space-20: 5rem;

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows (warm-tinted) ── */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 2px 8px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08), 0 2px 8px rgba(28, 25, 23, 0.04);
  --shadow-xl: 0 16px 48px rgba(28, 25, 23, 0.12), 0 4px 16px rgba(28, 25, 23, 0.06);

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 350ms;

  /* ── Layout ── */
  --container-max: 1080px;
  --header-height: 64px;

  /* ── Header blur backgrounds ── */
  --header-bg: rgba(250, 249, 247, 0.85);
  --overlay-bg: rgba(28, 25, 23, 0.3);

  /* ── Chat glow ── */
  --glow-chat: 0 0 60px rgba(180, 83, 9, 0.07), 0 0 120px rgba(245, 158, 11, 0.04);
  --glow-fab: 0 0 24px rgba(180, 83, 9, 0.18), 0 0 60px rgba(245, 158, 11, 0.08);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --color-bg: #141211;
  --color-surface: #1C1A17;
  --color-surface-secondary: #252320;
  --color-border: #332F2B;
  --color-border-light: #2A2724;

  --color-text: #F5F3F0;
  --color-text-secondary: #A8A29E;
  --color-text-tertiary: #78716C;
  --color-text-inverse: #141211;

  --color-accent: #F59E0B;
  --color-accent-hover: #FBBF24;
  --color-accent-light: #2A2010;
  --color-accent-subtle: #1F1A0F;

  --color-success: #22C55E;
  --color-success-light: #0F2318;
  --color-danger: #EF4444;
  --color-danger-light: #2D1212;
  --color-spice: #F97316;
  --color-spice-light: #2A1A0D;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);

  --header-bg: rgba(20, 18, 17, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);

  --glow-chat: 0 0 60px rgba(245, 158, 11, 0.10), 0 0 120px rgba(245, 158, 11, 0.06);
  --glow-fab: 0 0 24px rgba(245, 158, 11, 0.25), 0 0 60px rgba(245, 158, 11, 0.10);
}
