/* ============================================================
   Crystal Zodiac — Colors & Type
   Single source of truth for design tokens.
   Import once at top of any page or component:
     <link rel="stylesheet" href="colors_and_type.css">

   v2 changes (May 2026):
   - Background: white #FFFFFF (was cream).
   - Color palette: pushed saturation up across the board for "pop".
   - Display font: Astrology (saridezra.com), shipped locally in /fonts.
   - Cream/sand kept as a low-key SECONDARY surface only (sunken sections).
   ============================================================ */

/* Custom display font (uploaded by client) */
@font-face {
  font-family: "Astrology";
  src: url("fonts/Astrology.otf") format("opentype"),
       url("fonts/Astrology.ttf") format("truetype");
  font-display: swap;
}

/* Body + quote (Google Fonts) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,300;1,400&family=Caveat:wght@400;500;600&display=swap");

:root {
  /* ─────────────────────────────────────────────
     COLOR — master palette (v2 — more vibrant)
     ───────────────────────────────────────────── */
  --cz-night-plum:    #1B0E3F;  /* primary dark, deeper than v1 */
  --cz-amethyst:      #7B3FE4;  /* primary brand — saturated violet */
  --cz-amethyst-deep: #5B27B8;  /* hover / pressed */
  --cz-lunar-gold:    #E0AC2B;  /* sparing accent, hairlines */
  --cz-quartz-rose:   #F08D9C;  /* soft third color — pushed pink */
  --cz-ink:           #14111F;  /* body text */
  --cz-stone:         #6B6478;  /* secondary text, muted */
  --cz-mist:          #ECE9F0;  /* light dividers / card hairlines on white */
  --cz-sage:          #2F9E5C;  /* success — saturated leaf */
  --cz-garnet:        #C42A2A;  /* error — bright crimson */

  /* Surfaces */
  --cz-white:         #FFFFFF;  /* default page background */
  --cz-cream:         #F7F1E4;  /* SECONDARY surface — sunken sections only */
  --cz-cream-deep:    #EFE7D3;  /* slightly deeper cream */

  /* Tints derived */
  --cz-plum-soft:     #2A1A5C;
  --cz-amethyst-soft: #F1E9FE;  /* tinted background for active chips, callouts */

  /* ─────────────────────────────────────────────
     COLOR — per-sign accents (vibrant pass)
     ───────────────────────────────────────────── */
  --sign-aries:        #D63A36;  /* Ember Red    — fire  */
  --sign-taurus:       #7A8E3F;  /* Moss         — earth */
  --sign-gemini:       #F0BE2A;  /* Citrine      — air   */
  --sign-cancer:       #6FA2D0;  /* Tide Silver  — water */
  --sign-leo:          #EB7A1E;  /* Sunstone     — fire  */
  --sign-virgo:        #6FAE6C;  /* Sage         — earth */
  --sign-libra:        #ED8AA1;  /* Petal Pink   — air   */
  --sign-scorpio:      #8E1230;  /* Garnet       — water */
  --sign-sagittarius:  #C8742A;  /* Topaz        — fire  */
  --sign-capricorn:    #1F1B2E;  /* Obsidian     — earth */
  --sign-aquarius:     #3D9BC8;  /* Aquamarine   — air   */
  --sign-pisces:       #4FB9A0;  /* Seafoam      — water */

  /* ─────────────────────────────────────────────
     COLOR — semantic aliases for ergonomics
     ───────────────────────────────────────────── */
  --bg:           var(--cz-white);
  --bg-elevated:  var(--cz-white);
  --bg-sunken:    var(--cz-cream);
  --bg-inverse:   var(--cz-night-plum);
  --fg:           var(--cz-ink);
  --fg-muted:     var(--cz-stone);
  --fg-inverse:   var(--cz-white);
  --border:       var(--cz-mist);
  --border-strong: var(--cz-stone);
  --accent:       var(--cz-amethyst);
  --accent-deep:  var(--cz-night-plum);
  --accent-warm:  var(--cz-lunar-gold);

  /* ─────────────────────────────────────────────
     TYPE — families
     ───────────────────────────────────────────── */
  --font-display: "Astrology", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-quote:   "Cormorant Garamond", Garamond, serif;
  --font-hand:    "Caveat", "Bradley Hand", "Snell Roundhand", cursive;
  --font-eyebrow: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* TYPE — scale (1.250 modular, 16px base) */
  --fs-display-xl: 5rem;     /* 80px — Astrology reads SMALLER per em-square, so bump up */
  --fs-display-l:  3.5rem;   /* 56px */
  --fs-h1:         2.5rem;   /* 40px */
  --fs-h2:         1.875rem; /* 30px */
  --fs-h3:         1.5rem;   /* 24px */
  --fs-eyebrow:    0.875rem; /* 14px */
  --fs-body-l:     1.125rem; /* 18px */
  --fs-body:       1rem;     /* 16px */
  --fs-body-s:     0.875rem; /* 14px */
  --fs-caption:    0.75rem;  /* 12px */
  --fs-quote:      1.5rem;   /* 24px */

  /* TYPE — line heights */
  --lh-display-xl: 1.05; /* @kind other */
  --lh-display-l:  1.10; /* @kind other */
  --lh-h1:         1.15; /* @kind other */
  --lh-h2:         1.20; /* @kind other */
  --lh-h3:         1.30; /* @kind other */
  --lh-body:       1.55; /* @kind other */
  --lh-body-l:     1.60; /* @kind other */
  --lh-tight:      1.25; /* @kind other */

  /* ─────────────────────────────────────────────
     SPACING — 4px base
     ───────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ─────────────────────────────────────────────
     RADII
     ───────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* ─────────────────────────────────────────────
     SHADOWS — restrained, mineral
     ───────────────────────────────────────────── */
  --shadow-resting: 0 1px 2px rgba(27, 14, 63, 0.06);
  --shadow-raised:  0 6px 16px rgba(27, 14, 63, 0.10);
  --shadow-modal:   0 20px 56px rgba(27, 14, 63, 0.22);

  /* ─────────────────────────────────────────────
     MOTION
     ───────────────────────────────────────────── */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --dur-fast: 160ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 320ms; /* @kind other */
  --dur-hero: 600ms; /* @kind other */

  /* ─────────────────────────────────────────────
     LAYOUT
     ───────────────────────────────────────────── */
  --content-max:  1280px;
  --content-text: 1080px;
  --prose-max:    720px;
  --header-h:     64px;
  --chip-bar-h:   56px;
}

/* ============================================================
   SEMANTIC ELEMENTS — opinionated defaults
   ============================================================ */

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  margin: 0;
}

/* Display + headings — Astrology */
.cz-display-xl,
h1.cz-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: 0;
  color: var(--cz-night-plum);
  margin: 0;
}

.cz-display-l {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: var(--lh-display-l);
  color: var(--cz-night-plum);
  margin: 0;
}

h1, .cz-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--cz-night-plum);
  margin: 0 0 var(--space-5);
}

h2, .cz-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--cz-night-plum);
  margin: 0 0 var(--space-4);
}

h3, .cz-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--cz-night-plum);
  margin: 0 0 var(--space-3);
}

/* Eyebrow — small caps tracked label that lives above headlines */
.cz-eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cz-stone);
  margin: 0 0 var(--space-3);
}

/* Caption — even tighter caps, for trust strip and footnotes */
.cz-caption {
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cz-stone);
}

/* Body */
p, .cz-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--cz-ink);
  margin: 0 0 var(--space-4);
}

.cz-body-l {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--cz-ink);
}

.cz-body-s {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  line-height: 1.5;
  color: var(--cz-ink);
}

/* Affirmation / pull-quote — Cormorant Garamond italic */
.cz-affirmation {
  font-family: var(--font-quote);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.4;
  color: var(--cz-night-plum);
  margin: 0;
}

/* Links */
a {
  color: var(--cz-amethyst);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover {
  color: var(--cz-amethyst-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* Code & monospace not part of brand, but provide a safe default */
code, pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875em;
}

/* Selection */
::selection {
  background: var(--cz-amethyst);
  color: var(--cz-white);
}

/* Focus — never rely on color shift alone */
:focus-visible {
  outline: 2px solid var(--cz-amethyst);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   BUTTON SYSTEM
   One vocabulary. Five variants:
     .cz-btn--primary    Amethyst 3D polished-stone (heroes, add to cart)
     .cz-btn--secondary  White 3D polished-stone (paired secondary)
     .cz-btn--gold       Lunar-gold 3D on dark surfaces (email submit, gift)
     .cz-btn--ghost      No fill, plum text, pill underline on hover (tertiary)
     .cz-btn--quiet      Flat pill, mist border (in-context: cart add-note, etc.)
   Sizes:
     default ~ 14px padded 14/22
     .cz-btn--sm         13px padded 9/14
     .cz-btn--lg         15px padded 16/26
   Use .cz-btn alone with no variant for a token-aligned starting point.
   ============================================================ */

.cz-btn {
  /* base */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 8px;
  color: var(--cz-night-plum);
  background: var(--cz-white);
  transform: translateZ(0);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease);
  will-change: transform, box-shadow;
  text-decoration: none;
}
.cz-btn > * { position: relative; z-index: 1; }
.cz-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary — amethyst 3D */
.cz-btn--primary {
  background: var(--cz-amethyst); color: var(--cz-white);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(15,8,38,0.28),
    0 2px 0 rgba(30,21,56,0.32),
    0 6px 14px rgba(30,21,56,0.18);
}
.cz-btn--primary:hover {
  background: var(--cz-amethyst);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(15,8,38,0.30),
    0 4px 0 rgba(30,21,56,0.32),
    0 12px 24px rgba(30,21,56,0.24);
}
.cz-btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 2px 4px rgba(15,8,38,0.32),
    0 1px 2px rgba(30,21,56,0.18);
  transition-duration: 100ms;
}

/* Secondary — white 3D, plum text */
.cz-btn--secondary {
  background: var(--cz-white); color: var(--cz-night-plum);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 0 0 1.5px var(--cz-night-plum),
    0 2px 0 rgba(30,21,56,0.14),
    0 6px 12px rgba(30,21,56,0.08);
}
.cz-btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 0 0 1.5px var(--cz-night-plum),
    0 4px 0 rgba(30,21,56,0.16),
    0 12px 22px rgba(30,21,56,0.14);
}
.cz-btn--secondary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1.5px var(--cz-night-plum),
    inset 0 2px 4px rgba(30,21,56,0.10),
    0 1px 2px rgba(30,21,56,0.08);
  transition-duration: 100ms;
}

/* Gold — for dark surfaces */
.cz-btn--gold {
  background: var(--cz-lunar-gold); color: var(--cz-night-plum);
  box-shadow:
    inset 0 1px 0 rgba(255,245,210,0.45),
    inset 0 -1px 0 rgba(60,35,5,0.40),
    0 2px 0 rgba(10,4,22,0.55),
    0 6px 14px rgba(10,4,22,0.35);
}
.cz-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,245,210,0.55),
    inset 0 -1px 0 rgba(60,35,5,0.42),
    0 4px 0 rgba(10,4,22,0.55),
    0 12px 22px rgba(10,4,22,0.40);
}
.cz-btn--gold:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,245,210,0.25),
    inset 0 2px 4px rgba(60,35,5,0.35),
    0 1px 2px rgba(10,4,22,0.30);
  transition-duration: 100ms;
}

/* Ghost — tertiary text-only with editorial rule */
.cz-btn--ghost {
  background: transparent; color: var(--cz-night-plum);
  padding: 10px 14px;
  box-shadow: none;
}
.cz-btn--ghost:hover {
  background: var(--cz-amethyst-soft);
  color: var(--cz-amethyst-deep);
}
.cz-btn--ghost:active { transform: none; }

/* Quiet — in-context flat pill */
.cz-btn--quiet {
  background: var(--cz-white); color: var(--cz-night-plum);
  border-radius: 999px; padding: 9px 14px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--cz-stone);
}
.cz-btn--quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--cz-night-plum);
}
.cz-btn--quiet:active { transform: none; }

/* Sizes */
.cz-btn--sm { padding: 9px 14px; font-size: 13px; }
.cz-btn--lg { padding: 16px 26px; font-size: 15px; }
.cz-btn--full { width: 100%; }

/* Refraction shimmer — diagonal highlight that sweeps once on hover.
   Applied to elevated variants via a shared ::before. */
.cz-btn--primary::before,
.cz-btn--secondary::before,
.cz-btn--gold::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 35%, rgba(255,255,255,0.42) 50%, transparent 65%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.cz-btn--secondary::before {
  background: linear-gradient(118deg, transparent 35%, rgba(125,92,200,0.18) 50%, transparent 65%);
  mix-blend-mode: multiply;
}
.cz-btn--primary:hover::before,
.cz-btn--secondary:hover::before,
.cz-btn--gold:hover::before {
  animation: czBtnShimmer 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms forwards;
}
@keyframes czBtnShimmer {
  0%   { transform: translateX(-130%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

/* Intro shimmer — runs once on .cz-btn-intro (added by useShimmerIntro hook
   when the button enters the viewport for the first time). */
.cz-btn-intro::before {
  animation: czBtnShimmer 1400ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms forwards !important;
}

@media (prefers-reduced-motion: reduce) {
  .cz-btn { transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
  .cz-btn::before { display: none; }
  .cz-btn:hover { transform: none; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.cz-container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-5); }
.cz-prose     { max-width: var(--prose-max); }
.cz-text-muted { color: var(--cz-stone); }
.cz-text-gold  { color: var(--cz-lunar-gold); }
.cz-text-plum  { color: var(--cz-night-plum); }
.cz-text-amethyst { color: var(--cz-amethyst); }

.cz-hairline-gold {
  border: 0;
  border-top: 1px solid var(--cz-lunar-gold);
  margin: var(--space-5) 0;
}
.cz-hairline {
  border: 0;
  border-top: 1px solid var(--cz-mist);
  margin: var(--space-5) 0;
}
