/* ═══════════════════════════════════════════════════
   What's Your Drink? — dark luxury design system
   ═══════════════════════════════════════════════════ */
:root {
  --bg: #0a0a0c;
  --bg-2: #121114;
  --panel: #17151a;
  --ink: #f3eee4;
  --ink-dim: #9d958a;
  --gold: #c9a35c;
  --gold-bright: #e9cb8f;
  --copper: #a86b3c;
  --line: rgba(201, 163, 92, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

em { font-style: italic; }
.gold { color: var(--gold); }

/* ── Wordmark ── */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.wordmark .q { color: var(--gold); }
.wordmark-sm { font-size: 1.3rem; }

/* ── Buttons ── */
.btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s, background 0.35s, color 0.35s;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--copper));
  color: #1a1306;
  box-shadow: 0 0 0 rgba(201,163,92,0);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,163,92,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--ink-dim);
  border-color: rgba(243,238,228,0.2);
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(243,238,228,0.5); }
.btn-lg { padding: 1.15rem 3rem; font-size: 0.95rem; }

.fine-print { font-size: 0.72rem; color: var(--ink-dim); letter-spacing: 0.03em; }

/* ═══════════ AGE GATE ═══════════ */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 120%, #1d1407 0%, var(--bg) 60%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.age-gate-inner { max-width: 30rem; }
.age-gate .wordmark { margin-bottom: 2.5rem; }
.age-gate h1 {
  font-family: var(--font-display);
  font-weight: 400; font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.12; margin-bottom: 1rem;
}
.age-gate p { color: var(--ink-dim); margin-bottom: 2rem; }
.age-gate-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.age-gate-denied { color: var(--gold) !important; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(10,10,12,0.85), rgba(10,10,12,0));
  opacity: 0; transform: translateY(-12px);
}
.nav-cta {
  background: none; border: 1px solid var(--line); color: var(--gold);
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.6rem 1.4rem; border-radius: 999px; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: #1a1306; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; }
.hero-canvas canvas { display: block; }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding: 0 1.5rem; }
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: 0.98; letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-weight: 500; }
.hero-sub { color: var(--ink-dim); font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: 2.6rem; }
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-cue span {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ═══════════ SECTIONS ═══════════ */
main section { padding: clamp(5rem, 12vw, 9rem) clamp(1.4rem, 6vw, 4rem); }
.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3rem; text-align: center;
}

/* Manifesto */
.manifesto { display: flex; justify-content: center; background: var(--bg-2); }
.manifesto-text {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.35;
  max-width: 52rem; text-align: center;
}
.manifesto-text .w { opacity: 0.18; transition: opacity 0.4s; }
.manifesto-text em { color: var(--gold); }

/* How it works */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem; max-width: 64rem; margin: 0 auto;
}
.how-step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.how-num { font-family: var(--font-display); color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.how-step h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.45rem; margin-bottom: 0.7rem; }
.how-step p { color: var(--ink-dim); font-size: 0.92rem; }

/* Cellar stats */
.cellar { background: var(--bg-2); }
.cellar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5rem; max-width: 60rem; margin: 0 auto; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(3rem, 7vw, 5rem); color: var(--gold);
  line-height: 1;
}
.stat-label { color: var(--ink-dim); font-size: 0.85rem; margin-top: 0.6rem; }

/* Featured pour of the month */
.featured-card {
  max-width: 44rem; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(2.2rem, 6vw, 3.5rem);
}
.featured-month { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; }
.featured-name { font-family: var(--font-display); font-weight: 350; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; margin-bottom: 0.4rem; }
.featured-cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1.2rem; }
.featured-blurb { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 350; line-height: 1.5; margin-bottom: 0.8rem; }
.featured-reason { color: var(--gold); font-style: italic; font-family: var(--font-display); margin-bottom: 1.8rem; }
.featured-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 2.2rem;
}

/* ═══════════ QUIZ ═══════════ */
.quiz {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(ellipse at 50% 0%, #161009 0%, var(--bg) 55%);
  display: flex; flex-direction: column;
}
.quiz-top { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem clamp(1.4rem, 4vw, 2.6rem); }
.quiz-close {
  background: none; border: 1px solid rgba(243,238,228,0.18); color: var(--ink-dim);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; flex-shrink: 0; transition: color 0.3s, border-color 0.3s;
}
.quiz-close:hover { color: var(--ink); border-color: var(--ink); }
.quiz-progress { flex: 1; height: 1px; background: rgba(243,238,228,0.12); }
.quiz-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--gold-bright));
  box-shadow: 0 0 12px rgba(201,163,92,0.6);
}
.quiz-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem clamp(1.4rem, 5vw, 3rem) 3rem; max-width: 56rem; margin: 0 auto; width: 100%;
}
.quiz-qnum {
  font-size: 0.72rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.quiz-question {
  font-family: var(--font-display); font-weight: 380;
  font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.15;
  text-align: center; margin-bottom: 2.6rem; max-width: 40rem;
}
.quiz-answers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem; width: 100%; max-width: 44rem;
}
.answer {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(243,238,228,0.12);
  border-radius: 14px; padding: 1.4rem 1.5rem; text-align: left;
  color: var(--ink); cursor: pointer; font-family: var(--font-ui);
  transition: border-color 0.3s, background 0.3s, transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
}
.answer:hover, .answer:focus-visible {
  border-color: var(--gold); background: rgba(201,163,92,0.07);
  transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  outline: none;
}
.answer .a-title { display: block; font-size: 1.02rem; font-weight: 500; margin-bottom: 0.3rem; font-family: var(--font-display); font-size: 1.15rem; }
.answer .a-sub { display: block; font-size: 0.8rem; color: var(--ink-dim); line-height: 1.45; }

/* ═══════════ RESULTS ═══════════ */
.results {
  background: radial-gradient(ellipse at 50% 0%, #181107 0%, var(--bg) 60%);
  min-height: 100vh;
  padding: clamp(6.5rem, 16vw, 9rem) clamp(1.4rem, 6vw, 4rem) clamp(5rem, 10vw, 7rem);
}
.results-inner { max-width: 62rem; margin: 0 auto; }
.results-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 1.4rem;
}
.results-title {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02;
  text-align: center; margin-bottom: 0.8rem;
}
.results-cat { text-align: center; color: var(--ink-dim); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 3rem; }
.match-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3rem); margin-bottom: 3.5rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.6rem, 4vw, 3rem);
}
.match-blurb { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 350; line-height: 1.5; margin-bottom: 1.4rem; }
.match-notes { color: var(--ink-dim); font-size: 0.9rem; }
.match-notes strong { color: var(--ink); font-weight: 500; }
.flavor-profile h4 {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem; font-weight: 500;
}
.axis { margin-bottom: 0.85rem; }
.axis-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-dim); margin-bottom: 0.3rem; }
.axis-track { height: 3px; background: rgba(243,238,228,0.1); border-radius: 2px; overflow: hidden; }
.axis-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--copper), var(--gold-bright)); border-radius: 2px; }
.runners { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-bottom: 3rem; }
.runner {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(243,238,228,0.1);
  border-radius: 16px; padding: 1.5rem 1.6rem;
}
.runner-rank { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.runner h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.4rem; margin-bottom: 0.35rem; }
.runner .runner-cat { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.7rem; }
.runner p { color: var(--ink-dim); font-size: 0.85rem; }
.results-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.copied { pointer-events: none; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 3.5rem 1.5rem; color: var(--ink-dim); font-size: 0.85rem;
}
.footer .wordmark { margin-bottom: 1rem; }
.footer p { margin-bottom: 0.5rem; }
.footer-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.footer-link:hover { border-color: var(--gold); }

/* ═══════════ DRINK DETAIL PAGES ═══════════ */
.detail-main { max-width: 60rem; margin: 0 auto; padding: clamp(7rem, 16vw, 10rem) clamp(1.4rem, 6vw, 4rem) clamp(4rem, 8vw, 6rem); }
.detail-eyebrow { font-size: 0.72rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.detail-title { font-family: var(--font-display); font-weight: 350; font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1.02; margin-bottom: 1.2rem; }
.detail-blurb { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5; color: var(--ink); max-width: 38rem; margin-bottom: 1rem; }
.detail-notes { color: var(--ink-dim); font-size: 0.95rem; max-width: 38rem; margin-bottom: 3rem; }
.detail-notes strong { color: var(--ink); font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); margin-bottom: 3.5rem; }
.detail-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.4rem); }
.detail-cta { text-align: center; padding: clamp(2.4rem, 6vw, 3.6rem); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 3.5rem; }
.detail-cta h2 { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 1.4rem; }
.similar-head { font-size: 0.72rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.similar-card { display: block; text-decoration: none; color: var(--ink); background: rgba(255,255,255,0.02); border: 1px solid rgba(243,238,228,0.1); border-radius: 16px; padding: 1.4rem 1.5rem; transition: border-color 0.3s, transform 0.3s cubic-bezier(.22,1,.36,1); }
.similar-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.similar-card h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.3rem; margin-bottom: 0.3rem; }
.similar-card .similar-cat { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.6rem; }
.similar-card p { color: var(--ink-dim); font-size: 0.83rem; }
.cellar-list { max-width: 60rem; margin: 0 auto; }
.cellar-cat-head { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); margin: 3rem 0 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.nav-link { color: var(--ink-dim); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 1.4rem; transition: color 0.3s; }
.nav-link:hover { color: var(--gold); }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 720px) {
  .match-card { grid-template-columns: 1fr; }
  .quiz-answers { grid-template-columns: 1fr; gap: 0.8rem; }
  .answer { padding: 1.1rem 1.2rem; }
  .quiz-stage { justify-content: flex-start; padding-top: 2rem; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Recipe panel + centered quiz CTA (detail pages) ── */
.recipe-list { list-style: none; }
.recipe-list li {
  padding: 0.55rem 0 0.55rem 1.4rem; position: relative;
  font-size: 0.92rem; color: var(--ink);
  border-bottom: 1px solid rgba(243,238,228,0.07);
}
.recipe-list li:last-child { border-bottom: none; }
.recipe-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
}
.detail-quiz-cta { text-align: center; margin-bottom: 3.5rem; }

/* ── Dark horses (cellar page) ── */
.dark-horses {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 2.8rem); margin: 2.5rem 0 1rem; text-align: center;
}
.dark-horses-title { font-family: var(--font-display); font-weight: 380; font-size: clamp(1.6rem, 4.4vw, 2.4rem); margin-bottom: 0.8rem; }
.dark-horses-sub { color: var(--ink-dim); font-size: 0.95rem; max-width: 36rem; margin: 0 auto 1.6rem; }
.dark-horses-chips { margin-top: 1.8rem; }

/* ── Stock the Bar ── */
.stock-step { display: flex; gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(243,238,228,0.08); }
.stock-num { font-family: var(--font-display); color: var(--gold); font-size: 1.2rem; min-width: 2.4rem; padding-top: 0.2rem; }
.stock-body h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.5rem; margin-bottom: 0.4rem; }
.stock-meta { color: var(--ink-dim); font-size: 0.88rem; line-height: 1.8; margin-bottom: 0.4rem; }
.stock-unlock {
  display: inline-block; color: var(--ink); text-decoration: none;
  border: 1px solid rgba(243,238,228,0.16); border-radius: 999px;
  padding: 0.15rem 0.7rem; margin: 0.15rem 0.2rem 0.15rem 0; font-size: 0.8rem;
  transition: border-color 0.3s, color 0.3s;
}
.stock-unlock:hover { border-color: var(--gold); color: var(--gold); }
.stock-cum { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.06em; }

/* ── Generated-page utilities ── */
.nav-static { opacity: 1; transform: none; }
.plain-link { text-decoration: none; }
.btn-link { text-decoration: none; display: inline-block; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 3.5rem; }
.cta-sub { color: var(--ink-dim); margin-bottom: 1.6rem; }
