/* ============================================================
   LIVSTYL design tokens — shared by every page & module.
   Do not hard-code colours/fonts elsewhere; use these vars.
   Signature accents: brand coral (logo) + muted gold.
   All legacy variable names are kept — add, never rename.
   ============================================================ */
:root {
  /* Palette: ivory · warm beige · charcoal · muted gold · brand coral (logo) */
  --ivory: #FAF7F2;
  --ivory-2: #F3EEE6;
  --beige: #E8DFD2;
  --beige-2: #D9CCBA;
  --sand: #BFAE97;
  --charcoal: #1E1D1B;
  --charcoal-2: #2C2A27;
  --charcoal-3: #3A3733;
  --ink: #3A3733;
  --muted: #77716A;
  --gold: #B08D57;
  --gold-2: #C9A774;
  --gold-3: #E4CFA6;          /* champagne highlight */
  --gold-deep: #8A6A3B;
  --gold-soft: rgba(176, 141, 87, .14);
  --coral: #E85D5F;           /* LIVSTYL logo colour — signature brand accent */
  --coral-2: #F08A7A;         /* lighter coral → peach, for gradients */
  --coral-deep: #C9474A;      /* hover / pressed */
  --coral-soft: rgba(232, 93, 95, .12);
  --white: #FFFFFF;
  --line: rgba(30, 29, 27, .10);
  --line-strong: rgba(30, 29, 27, .18);
  --line-light: rgba(255, 255, 255, .12);
  --success: #3F7D5A;
  --danger: #B5443F;

  --bg: var(--ivory);
  --surface: var(--white);
  --text: var(--charcoal);
  --text-2: var(--muted);
  --accent: var(--coral);
  --accent-2: var(--gold);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--coral) 0%, #E9786A 38%, var(--gold-2) 72%, var(--gold) 100%);
  --grad-brand-text: linear-gradient(100deg, var(--coral) 0%, var(--gold-2) 30%, var(--gold-3) 50%, var(--gold-2) 70%, var(--coral) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(232,93,95,.14), rgba(201,167,116,.16));
  --grad-gold: linear-gradient(120deg, var(--gold) 0%, var(--gold-3) 50%, var(--gold) 100%);
  --grad-dark: radial-gradient(120% 90% at 100% 0%, rgba(176,141,87,.22) 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(232,93,95,.14) 0%, transparent 60%), linear-gradient(160deg, #24221F 0%, #1A1917 60%, #141311 100%);
  --grad-ivory: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  --grad-scrim: linear-gradient(180deg, rgba(20,19,17,0) 0%, rgba(20,19,17,.72) 100%);

  /* Glass */
  --glass-bg: rgba(250, 247, 242, .62);
  --glass-dark: rgba(30, 29, 27, .45);
  --glass-border: rgba(255, 255, 255, .35);
  --glass-blur: saturate(160%) blur(18px);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .75rem;  --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-2xl: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.5rem);

  /* Space / shape */
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1560px;
  --section: clamp(72px, 9vw, 140px);
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(30,29,27,.05), 0 2px 8px rgba(30,29,27,.04);
  --shadow: 0 10px 30px -12px rgba(30,29,27,.18);
  --shadow-lg: 0 30px 60px -20px rgba(30,29,27,.28);
  --shadow-xl: 0 50px 100px -30px rgba(30,29,27,.38);

  /* Glows */
  --glow-coral: 0 10px 40px -8px rgba(232,93,95,.55);
  --glow-gold: 0 10px 40px -8px rgba(176,141,87,.55);
  --glow-brand: 0 14px 44px -12px rgba(232,93,95,.5), 0 8px 30px -14px rgba(201,167,116,.6);
  --ring-coral: 0 0 0 4px rgba(232,93,95,.18);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);      /* curtains, wipes */
  --ease-expo: cubic-bezier(.19, 1, .22, 1);     /* word-mask reveals */
  --dur: .45s;
  --dur-slow: .9s;
  --light-warm: rgba(255, 214, 160, .9);        /* "golden hour" light used by magic.css */
  --light-soft: rgba(228, 207, 166, .35);
  --z-curtain: 950;
  --header-h: 76px;

  /* Layers */
  --z-header: 100; --z-progress: 120; --z-float: 90; --z-cookie: 150; --z-drawer: 300; --z-modal: 400; --z-toast: 500; --z-preloader: 900;
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur: .01s; --dur-slow: .01s; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
