/* ==========================================================================
   Monica's Little Luxuries — Design System Tokens & Variables
   Themes: Dark ("The Sanctuary of Silence") & Light ("The Luminous Atelier")
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* --- Core Palette (Dark Textured Luxury & Liquid Golds) --- */
  --color-bg-primary: #080808;
  --color-bg-deep: #050505;
  --color-bg-surface: #121212;
  --color-bg-surface-elevated: #1a1a1a;
  --color-bg-glass: rgba(18, 18, 18, 0.78);
  --color-bg-glass-card: rgba(22, 22, 22, 0.65);
  --color-bg-input: #151515;

  /* --- Metallic Accents & Warm Candlelight Halos --- */
  --color-gold-primary: #D4AF37;
  --color-gold-light: #E5C467;
  --color-gold-pale: #F4E5BE;
  --color-gold-deep: #997819;
  --color-gold-metallic: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA820A 100%);
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  --color-amber-glow: rgba(245, 158, 11, 0.22);
  --color-amber-core: #F59E0B;

  /* --- Typography Colors --- */
  --color-text-primary: #F7F5F0;
  --color-text-secondary: #C4BFB6;
  --color-text-muted: #8E887E;
  --color-text-gold: #DFB76C;
  --color-text-dim: #5C564D;

  /* --- Borders & Dividers --- */
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-gold: rgba(212, 175, 55, 0.28);
  --color-border-gold-bright: rgba(212, 175, 55, 0.65);
  --color-border-hover: rgba(212, 175, 55, 0.45);

  /* --- Elevation & Shadows (Candlelight Ambient Physics) --- */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.14), 0 15px 35px rgba(0, 0, 0, 0.8);
  --shadow-amber-halo: 0 0 50px rgba(245, 158, 11, 0.18), 0 20px 40px rgba(0, 0, 0, 0.9);
  --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 175, 55, 0.12);
}

/* Light Theme: "The Luminous Atelier" (Creamy Alabaster & Warm Linen) */
[data-theme="light"] {
  --color-bg-primary: #FAF7F2;
  --color-bg-deep: #F1ECE2;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-elevated: #FDFBF8;
  --color-bg-glass: rgba(250, 247, 242, 0.88);
  --color-bg-glass-card: rgba(255, 255, 255, 0.88);
  --color-bg-input: #F5EFE6;

  /* Metallic Accents (Antique Burnished Warm Gold) */
  --color-gold-primary: #B8860B;
  --color-gold-light: #946C0B;
  --color-gold-pale: #D4AF37;
  --color-gold-deep: #705104;
  --color-gold-metallic: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #8C651E 100%);
  --color-gold-glow: rgba(184, 134, 11, 0.15);
  --color-amber-glow: rgba(217, 119, 6, 0.14);
  --color-amber-core: #D97706;

  /* Typography (Rich Warm Charcoal & Espresso) */
  --color-text-primary: #1C1917;
  --color-text-secondary: #4A443E;
  --color-text-muted: #78716C;
  --color-text-gold: #946C0B;
  --color-text-dim: #A8A196;

  /* Borders & Dividers */
  --color-border-subtle: rgba(28, 25, 23, 0.1);
  --color-border-gold: rgba(184, 134, 11, 0.35);
  --color-border-gold-bright: rgba(184, 134, 11, 0.75);
  --color-border-hover: rgba(184, 134, 11, 0.55);

  /* Shadows (Warm Ambient Diffusion) */
  --shadow-subtle: 0 4px 20px rgba(28, 25, 23, 0.05);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.07), 0 0 1px rgba(28, 25, 23, 0.1);
  --shadow-glow: 0 0 35px rgba(184, 134, 11, 0.1), 0 15px 35px rgba(28, 25, 23, 0.06);
  --shadow-amber-halo: 0 0 40px rgba(217, 119, 6, 0.1), 0 15px 35px rgba(28, 25, 23, 0.07);
  --shadow-modal: 0 25px 60px rgba(28, 25, 23, 0.15), 0 0 30px rgba(184, 134, 11, 0.08);
}

/* System Default: When unset and OS prefers light mode */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --color-bg-primary: #FAF7F2;
    --color-bg-deep: #F1ECE2;
    --color-bg-surface: #FFFFFF;
    --color-bg-surface-elevated: #FDFBF8;
    --color-bg-glass: rgba(250, 247, 242, 0.88);
    --color-bg-glass-card: rgba(255, 255, 255, 0.88);
    --color-bg-input: #F5EFE6;

    --color-gold-primary: #B8860B;
    --color-gold-light: #946C0B;
    --color-gold-pale: #D4AF37;
    --color-gold-deep: #705104;
    --color-gold-metallic: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #8C651E 100%);
    --color-gold-glow: rgba(184, 134, 11, 0.15);
    --color-amber-glow: rgba(217, 119, 6, 0.14);
    --color-amber-core: #D97706;

    --color-text-primary: #1C1917;
    --color-text-secondary: #4A443E;
    --color-text-muted: #78716C;
    --color-text-gold: #946C0B;
    --color-text-dim: #A8A196;

    --color-border-subtle: rgba(28, 25, 23, 0.1);
    --color-border-gold: rgba(184, 134, 11, 0.35);
    --color-border-gold-bright: rgba(184, 134, 11, 0.75);
    --color-border-hover: rgba(184, 134, 11, 0.55);

    --shadow-subtle: 0 4px 20px rgba(28, 25, 23, 0.05);
    --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.07), 0 0 1px rgba(28, 25, 23, 0.1);
    --shadow-glow: 0 0 35px rgba(184, 134, 11, 0.1), 0 15px 35px rgba(28, 25, 23, 0.06);
    --shadow-amber-halo: 0 0 40px rgba(217, 119, 6, 0.1), 0 15px 35px rgba(28, 25, 23, 0.07);
    --shadow-modal: 0 25px 60px rgba(28, 25, 23, 0.15), 0 0 30px rgba(184, 134, 11, 0.08);
  }
}

:root {
  /* --- Strict 2-Font Brand Typography System (From Reference Assets) --- */
  --font-serif: 'Cormorant Garamond', Garamond, 'Didot', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', Garamond, 'Didot', serif;

  --text-hero: clamp(2.75rem, 5.5vw + 1rem, 5.5rem);
  --text-h1: clamp(2rem, 3.5vw + 0.75rem, 3.5rem);
  --text-h2: clamp(1.6rem, 2.5vw + 0.5rem, 2.5rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.35rem, 1.75rem);
  --text-h4: clamp(1.05rem, 1vw + 0.2rem, 1.25rem);
  --text-body: clamp(0.92rem, 0.35vw + 0.8rem, 1.05rem);
  --text-body-sm: 0.875rem;
  --text-caption: 0.75rem;
  --text-quote: clamp(1.3rem, 2vw + 0.5rem, 2rem);

  /* --- Letter Spacings (Airy Luxury Feel) --- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.18em;
  --tracking-widest: 0.28em;

  /* --- Easing & Motion Physics (Apple WWDC & Emil Kowalski Principles) --- */
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-breathe: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-gentle: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-instant: 100ms;
  --duration-press: 150ms;
  --duration-fast: 250ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
  --duration-breath: 3200ms;

  /* --- Layout & Spacing --- */
  --container-max: 1380px;
  --container-narrow: 920px;
  --container-padding: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* --- Navigation & Sticky Bars --- */
  --nav-height: 84px;
  --nav-height-mobile: 70px;
}
