:root {
  --bg:         oklch(0.962 0.014 84);
  --card:       oklch(0.985 0.008 84);
  --ink:        oklch(0.22 0.02 62);
  --ink-2:      oklch(0.24 0.018 62);
  --ink-soft:   oklch(0.3 0.02 62);
  --body:       oklch(0.4 0.02 62);
  --body-long:  oklch(0.34 0.018 62);
  --muted:      oklch(0.5 0.04 62);
  --muted-2:    oklch(0.55 0.04 62);
  --muted-3:    oklch(0.6 0.04 62);
  --accent:     oklch(0.66 0.16 38);
  --accent-deep:oklch(0.55 0.16 38);
  --hair:       oklch(0.85 0.02 80);
  --hair-2:     oklch(0.87 0.02 80);
  --display:    'Bricolage Grotesque', sans-serif;
  --serif:      'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--serif);
}
::selection { background: oklch(0.66 0.16 38); color: oklch(0.97 0.01 84); }

@keyframes revealIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes beer-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes beer-pop  { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }

/* ---------- layout ---------- */
.page { min-height: 100vh; padding: 64px 24px 120px; display: flex; justify-content: center; }
.wrap { width: 100%; max-width: 880px; }

.site-head { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.site-head__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.site-head__kicker { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; max-width: 560px; margin: 0 0 44px; color: var(--body); }

/* ---------- selector ---------- */
.selector { background: var(--card); border: 1px solid var(--hair-2); border-radius: 18px; padding: 30px 34px 26px; margin-bottom: 56px; box-shadow: 0 1px 0 oklch(0.9 0.02 80); }
.selector__label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }

.rail { position: relative; height: 44px; margin: 0 13px; cursor: grab; touch-action: none; }
.rail__base { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: oklch(0.9 0.02 80); border-radius: 2px; }
.rail__fill { position: absolute; top: 50%; left: 0; height: 4px; transform: translateY(-50%); background: var(--accent); border-radius: 2px; transition: width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1); width: 0; }
.rail__stops { position: absolute; top: 0; left: 0; right: 0; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.stop { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); background: var(--card); cursor: pointer; padding: 0; }
.knob { position: absolute; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 12px oklch(0.66 0.16 38 / 0.4); transition: left 0.38s cubic-bezier(0.34, 1.56, 0.64, 1); left: 0; transform: translateX(-50%); pointer-events: none; }
.knob__inner { position: absolute; inset: 10px; border-radius: 50%; background: var(--card); }

.rail__labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-family: var(--display); }
.rlabel { flex: 1; text-align: center; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; font-size: 14px; font-weight: 600; color: oklch(0.6 0.03 62); }
.rlabel--left { text-align: left; }
.rlabel--right { text-align: right; }
.rlabel.is-active { color: var(--accent-deep); }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; }
.step { border-top: 1px solid var(--hair); padding: 30px 0; }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step__row { display: flex; gap: 22px; align-items: baseline; }
.step__num { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1; color: var(--accent); flex: none; width: 52px; }
.step__body { flex: 1; }
.step__title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 600px) {
  .step__row { gap: 14px; }
  .step__num { width: 32px; }
}
.step__title sup { font-size: 0.5em; font-weight: 600; vertical-align: super; line-height: 0; padding-left: 4px; }
.step__title sup a { text-decoration: none; color: var(--accent-deep); }

.short-text { font-size: 18px; line-height: 1.55; margin: 16px 0 0; max-width: 600px; color: var(--body); }

.long-block { margin-top: 22px; max-width: 620px; }
.long-block__eyebrow { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 14px; }
.long-block p { font-size: 17px; line-height: 1.62; margin: 0 0 16px; color: var(--body-long); }
.long-block p:last-child { margin-bottom: 0; }

a.inline-link { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal toggles (driven by body[data-level]) ---------- */
.reveal-short, .reveal-long, .reveal-closer, .reveal-references, .reveal-wife { display: none; }
body[data-level="2"] .reveal-short,
body[data-level="3"] .reveal-short { display: block; animation: revealIn 0.4s ease both; }
body[data-level="3"] .reveal-long { display: block; animation: revealIn 0.45s ease both; }
body[data-level="3"] .reveal-references { display: block; animation: revealIn 0.5s ease both; }
body[data-level="1"] .reveal-closer,
body[data-level="2"] .reveal-closer,
body[data-level="3"] .reveal-closer { display: block; }
body[data-level="4"] .reveal-wife { display: block; animation: revealIn 0.5s ease both; }

/* ---------- closer ---------- */
.closer-lead { font-size: clamp(20px, 3vw, 26px); line-height: 1.4; font-style: italic; margin: 40px 0 0; max-width: 560px; color: var(--ink-soft); }
.closer-body { font-size: 18px; line-height: 1.55; margin: 14px 0 0; max-width: 600px; color: var(--body); }

/* ---------- why this site ---------- */
.why { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hair); }
.why h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(20px, 3vw, 26px); line-height: 1.1; margin: 0 0 16px; color: var(--ink-soft); }
.why p { font-size: 18px; line-height: 1.6; margin: 0; max-width: 620px; color: var(--body); }
.why-rule { border: none; border-top: 1px solid var(--hair); margin: 24px 0; max-width: 620px; }
.footnote { font-size: 14px; line-height: 1.55; margin: 20px 0 0; max-width: 620px; color: oklch(0.5 0.02 62); }
.footnote + .footnote { margin-top: 10px; }
.footnote sup { color: var(--accent-deep); }
.footnote a { color: var(--accent-deep); }
.footnote a.ext { text-decoration: underline; text-underline-offset: 3px; }
.footnote a.back { text-decoration: none; }

/* ---------- references ---------- */
.references { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--accent); }
.references__title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px; }
.references__list { columns: 2; column-gap: 40px; font-size: 13px; line-height: 1.5; color: oklch(0.42 0.018 62); }
.references__list p { margin: 0 0 12px; break-inside: avoid; }

/* ---------- wife CTA ---------- */
.wife-card { margin-top: 40px; background: var(--ink); border-radius: 20px; padding: clamp(36px, 6vw, 64px); text-align: center; }
.wife-card__eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.7 0.1 38); margin-bottom: 18px; }
.wife-card__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; color: oklch(0.97 0.01 84); }
.wife-card__cta { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 18px; background: var(--accent); color: oklch(0.99 0.005 84); text-decoration: none; padding: 16px 34px; border-radius: 999px; box-shadow: 0 6px 20px oklch(0.66 0.16 38 / 0.35); transition: background .15s ease, transform .08s ease; }
.wife-card__cta:hover { background: oklch(0.6 0.16 38); transform: translateY(-2px); }

/* ---------- beer button (fixed) ---------- */
.beer-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; }
.beer-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: none; border-radius: 999px; background: linear-gradient(180deg, #E0A015, #C77F0A); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(199,127,10,.6); transition: filter .15s ease, transform .08s ease; }
.beer-btn:hover { filter: brightness(1.05); }
.beer-btn:active { transform: translateY(1px); }
.beer-btn__glass { display: inline-block; width: 13px; height: 16px; border: 2px solid rgba(255,255,255,.9); border-top: none; border-radius: 2px 2px 4px 4px; transform: rotate(-6deg); background: rgba(255,255,255,.25); flex-shrink: 0; }

/* ---------- beer modal ---------- */
.beer-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.beer-modal[hidden] { display: none; }
.beer-modal__backdrop { position: absolute; inset: 0; background: rgba(28,26,23,.55); backdrop-filter: blur(2px); animation: beer-fade .18s ease; }
.beer-modal__panel { position: relative; width: 100%; max-width: 412px; animation: beer-pop .2s cubic-bezier(.2,.8,.2,1); }
.beer-modal__close { position: absolute; top: -12px; right: -12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: none; background: #fff; color: #1C1A17; font-size: 20px; line-height: 32px; text-align: center; cursor: pointer; box-shadow: 0 4px 12px -2px rgba(0,0,0,.25); }
.beer-modal__frame { display: block; width: 100%; height: 560px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px -16px rgba(28,26,23,.4); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
