/* Conversation Candles: mobile-first. Base styles are for phones; min-width queries add room on bigger screens. */
:root {
  --ink: #16110c;
  --ink-2: #1f1812;
  --cream: #f4ead9;
  --cream-2: #e9dcc6;
  --muted: #b6a68c;
  --muted-2: #8c7d66;
  --ember: #e9a24f;
  --ember-2: #f3c27a;
  --line: rgba(244, 234, 217, 0.14);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--ember-2); }

.wrap, .narrow { width: 100%; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); margin-inline: auto; }

.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--ember); color: var(--ink); text-decoration: none;
  font: 600 17px/1 var(--sans);
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: env(safe-area-inset-top); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 21px; color: var(--cream); text-decoration: none; }
.brand svg { width: 14px; height: 22px; }
.nav-apply { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(88px + env(safe-area-inset-top)) 0 64px;
  background:
    radial-gradient(80% 45% at 50% 34%, rgba(233, 162, 79, 0.20), rgba(233, 162, 79, 0) 70%),
    radial-gradient(140% 80% at 50% 120%, #241a10 0%, var(--ink) 60%);
  overflow: hidden;
}
.candles { display: flex; gap: 34px; justify-content: center; margin: 0 auto 30px; }
.candle { width: 36px; height: 120px; }
.candle:nth-child(2) { height: 104px; margin-top: 16px; }
.flame { transform-origin: 50% 90%; animation: flicker 3.2s ease-in-out infinite; }
.candle:nth-child(2) .flame { animation-duration: 2.7s; animation-delay: -1.1s; }
.glow { animation: glow 3.2s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  20% { transform: scale(0.96, 1.05) rotate(-1.5deg); }
  40% { transform: scale(1.03, 0.97) rotate(1deg); }
  60% { transform: scale(0.98, 1.04) rotate(-0.5deg); }
  80% { transform: scale(1.02, 0.98) rotate(1.2deg); }
}
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: .8; } }

.hero h1 { font-size: clamp(44px, 13vw, 104px); }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--cream-2); margin: 14px 0 0; }
.hero .lede { margin: 22px auto 30px; color: var(--muted); font-size: 17px; max-width: 520px; }
.hero .btn { width: 100%; max-width: 360px; }
.hero .meta { margin-top: 22px; font-size: 14px; color: var(--muted-2); }
.hero .meta span { white-space: nowrap; }
.hero .meta span + span::before { content: "·"; margin: 0 8px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--ink-2); }

.story { text-align: center; }
.story blockquote { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.38; }
.story blockquote em { color: var(--ember-2); }
.story .sig { margin-top: 24px; color: var(--muted); font-size: 15px; }

.why-grid, .rules-wrap { display: grid; gap: 32px; }
p.lead { color: var(--muted); margin: 16px 0 0; font-size: 17px; }
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.places strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.places span { color: var(--muted); font-size: 16px; }
.gap-note { margin-top: 24px; font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.gap-note em { color: var(--ember-2); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 26px; counter-reset: step; }
.steps li { position: relative; padding-left: 54px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ember); color: var(--ember); display: grid; place-items: center; font: 500 15px var(--sans);
}
.steps h3 { font-size: 22px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 44px; }
.fact { background: var(--ink-2); padding: 20px 18px; }
.fact .n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.fact .l { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.4; }
.menu { margin-top: 32px; color: var(--muted); font-size: 16px; }
.menu b { color: var(--cream); font-weight: 500; }

.card {
  background: var(--cream); color: var(--ink); border-radius: 6px; padding: 28px 22px 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.card h3 { font-size: 28px; text-align: center; margin-bottom: 4px; }
.card .sub { text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a6b45; margin-bottom: 18px; }
.card ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.card li { counter-increment: r; display: grid; grid-template-columns: 32px 1fr; padding: 11px 0; border-top: 1px solid rgba(22, 17, 12, .12); font-size: 16px; line-height: 1.5; }
.card li::before { content: counter(r, upper-roman) "."; font-family: var(--serif); font-size: 18px; color: #a3743e; }
.card li b { font-weight: 600; }

.seats-grid { display: grid; gap: 14px; margin-top: 36px; }
.seat { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(244, 234, 217, 0.02); }
.seat h3 { font-size: 23px; margin-bottom: 6px; }
.seat p { margin: 0; color: var(--muted); font-size: 16px; }
.note { margin: 36px auto 0; max-width: 720px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--cream-2); }

.cta { text-align: center; padding: 96px 0 110px; background: radial-gradient(70% 60% at 50% 50%, rgba(233, 162, 79, 0.14), transparent 70%); }
.cta h2 { font-size: 42px; }
.cta p { color: var(--muted); max-width: 520px; margin: 16px auto 28px; font-size: 17px; }
.cta .btn { width: 100%; max-width: 360px; }
.cta small { display: block; margin-top: 16px; color: var(--muted-2); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 calc(110px + env(safe-area-inset-bottom)); color: var(--muted-2); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }

/* Sticky apply bar: phones only, appears once the hero button scrolls away. */
.sticky-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(22, 17, 12, .98) 60%, rgba(22, 17, 12, 0));
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-apply.show { transform: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet and up ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .wrap { max-width: 1080px; }
  .narrow { max-width: 720px; }
  h2 { font-size: 48px; }
  section { padding: 110px 0; }
  .nav .wrap { height: 76px; }
  .brand { font-size: 23px; }
  .nav-apply { display: inline; font: 500 15px var(--sans); color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--ember); padding-bottom: 2px; }
  .candles { gap: 46px; margin-bottom: 40px; }
  .candle { width: 44px; height: 150px; }
  .candle:nth-child(2) { height: 128px; margin-top: 22px; }
  .hero .tagline { font-size: 30px; }
  .hero .lede { font-size: 18px; }
  .hero .btn, .cta .btn { width: auto; }
  .story blockquote { font-size: 34px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .seats-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .places li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
  .places strong { display: inline; }
  .card { padding: 40px 40px 32px; transform: rotate(-0.6deg); }
  .cta h2 { font-size: 64px; }
  .note { font-size: 24px; }
  footer { padding-bottom: 44px; }
  footer .wrap { flex-direction: row; justify-content: space-between; }
  .sticky-apply { display: none; }
}

@media (min-width: 980px) {
  .why-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .rules-wrap { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 48px; }
  .steps li { padding: 52px 0 0; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 46px; right: -12px; height: 1px; background: var(--line); }
}

@media (hover: hover) {
  .btn:hover { background: var(--ember-2); box-shadow: 0 8px 30px -8px rgba(233, 162, 79, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .flame, .glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-apply { transition: none; }
}
