/* ============================================
   ILLUMINATE LIFE CANDLE CO — DESIGN TOKENS
   Concept: warm, hand-poured, one-season-ahead.
   Palette drawn from the real product photography —
   matte black glass + honey wax + terracotta ribbon.
   ============================================ */

:root, [data-theme='light'] {
  /* Surfaces — warm parchment, not sterile white */
  --color-bg: #fbf6ec;
  --color-surface: #ffffff;
  --color-surface-2: #f7f0e2;
  --color-surface-offset: #f0e5d0;
  --color-surface-offset-2: #e8d9bd;
  --color-surface-dynamic: #e2d0ac;
  --color-divider: #e6d8bd;
  --color-border: #d9c6a0;

  /* Text — warm near-black, not pure gray */
  --color-text: #241c14;
  --color-text-muted: #6c5d47;
  --color-text-faint: #a89877;
  --color-text-inverse: #fbf6ec;

  /* Primary Accent — terracotta / candlelight ember */
  --color-primary: #a8501f;
  --color-primary-hover: #833e18;
  --color-primary-active: #632e12;
  --color-primary-highlight: #f0d6bc;

  /* Secondary Accent — sage (nature / faith-based line) */
  --color-secondary: #5c6b46;
  --color-secondary-hover: #465235;
  --color-secondary-highlight: #dde3d0;

  /* Event-Brand Accents — dusty rose + antique gold, used sparingly */
  --color-accent-pink: #9a5b6d;
  --color-accent-pink-hover: #7f4656;
  --color-accent-pink-highlight: #f0dde3;
  --color-accent-pink-contrast: #fffaf6;
  --color-accent-gold: #c9a227;
  --color-accent-gold-deep: #96741f;
  --color-accent-gold-highlight: #f3e9c9;

  /* Warning / Error / Success / Notification (semantic, muted to palette) */
  --color-warning: #93551c;
  --color-warning-highlight: #e5d2bb;
  --color-error: #97372a;
  --color-error-highlight: #e6d2cb;
  --color-success: #4a7030;
  --color-success-highlight: #d7e0cb;
  --color-notification: #a8501f;

  --radius-sm: 0.3rem;
  --radius-md: 0.55rem;
  --radius-lg: 1rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 50 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.25 0.03 50 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.25 0.03 50 / 0.16);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', -apple-system, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #1a1510;
  --color-surface: #211b14;
  --color-surface-2: #2a2117;
  --color-surface-offset: #251e15;
  --color-surface-offset-2: #33291b;
  --color-surface-dynamic: #3c3020;
  --color-divider: #3a2f20;
  --color-border: #4a3c27;

  --color-text: #f1e6d3;
  --color-text-muted: #b8a482;
  --color-text-faint: #7d6c50;
  --color-text-inverse: #241c14;

  --color-primary: #e08a4f;
  --color-primary-hover: #eea575;
  --color-primary-active: #f4bd97;
  --color-primary-highlight: #4a3524;

  --color-secondary: #97a97b;
  --color-secondary-hover: #aebf94;
  --color-secondary-highlight: #364030;

  --color-accent-pink: #d19aaa;
  --color-accent-pink-hover: #e1adbb;
  --color-accent-pink-highlight: #49323a;
  --color-accent-pink-contrast: #21171b;
  --color-accent-gold: #d4af5a;
  --color-accent-gold-deep: #d4af5a;
  --color-accent-gold-highlight: #3a2f16;

  --color-warning: #d19660;
  --color-warning-highlight: #4a3a26;
  --color-error: #d38b7c;
  --color-error-highlight: #4a3028;
  --color-success: #97b077;
  --color-success-highlight: #33402a;
  --color-notification: #e08a4f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

/* Type scale — fluid clamp() */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.5rem);

  --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;
  --space-24: 6rem;
  --space-32: 8rem;
}
