/* Before the First Batch: design tokens */
:root {
  --paper: #f6f2ea; --surface: #fbf8f2; --ink: #26231e; --soft: #625b50; --line: #ddd5c7;
  --accent: #85562a; --accent-tint: #efe3d2; --sage: #566655; --sage-tint: #e3e7dc;
  --btn: #26231e; --btn-ink: #fbf8f2; --mark: #f5dd9c; --mark-ink: #4a3500;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px; --space: clamp(72px, 11vw, 136px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181613; --surface: #211e1a; --ink: #eee7da; --soft: #aca394; --line: #3a352d;
    --accent: #d4a877; --accent-tint: #3a2d1f; --sage: #a9b8a4; --sage-tint: #2b322a;
    --btn: #eee7da; --btn-ink: #181613; --mark: #6b5310; --mark-ink: #fff2cf;
  }
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.vh, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.lede { color: var(--soft); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; }
.note, .fine { color: var(--soft); font-size: 14px; line-height: 1.5; }
.todo { background: var(--mark); color: var(--mark-ink); padding: 1px 6px; border-radius: 3px; }
section { padding: var(--space) 0; }
.narrow-head { margin-bottom: 56px; }
.narrow-head h2, .narrow-head .lede { max-width: 780px; }
.narrow-head .lede { margin-top: 20px; }

/* Waitlist or checkout: the page shows one or the other */
.when-open { display: none !important; }
html[data-sale="open"] .when-open { display: revert !important; }
html[data-sale="open"] .when-waitlist { display: none !important; }

.btn { display: inline-block; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 600 16px/1 var(--sans); padding: 16px 24px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s; min-height: 48px; }
.btn:hover { opacity: .82; }
.btn-sm { font-size: 14px; padding: 11px 16px; min-height: 40px; }
.btn-lg { font-size: 17px; padding: 19px 30px; min-height: 56px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font: 500 19px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--soft); font-size: 15px; text-decoration: none; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-link { display: none; } }

.signup { display: flex; gap: 8px; max-width: 480px; }
.signup input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--soft); border-radius: 999px; background: var(--surface); color: var(--ink); font: 17px var(--sans); }
.signup input::placeholder { color: var(--soft); }
.signup .btn { min-height: 52px; }
@media (max-width: 520px) { .signup { flex-direction: column; } .signup input[type=email] { flex: none; width: 100%; } .signup .btn { width: 100%; } .btn-lg { width: 100%; text-align: center; } }

.hero { padding: clamp(48px, 8vw, 104px) 0 var(--space); }
.hero-in { display: grid; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .deck { font: 400 clamp(22px, 2.3vw, 28px)/1.3 var(--serif); max-width: 640px; margin-bottom: 20px; }
.hero .lede { max-width: 600px; margin-bottom: 34px; }
.hero .note { margin-top: 14px; max-width: 480px; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; } }

.cover { aspect-ratio: 3/4; width: min(100%, 360px); margin: 0 auto; padding: 8% 9%; background: #2b2620; color: #efe6d6; display: flex; flex-direction: column; border-radius: 2px 6px 6px 2px; box-shadow: inset 5px 0 0 rgba(255,255,255,.05), 0 30px 60px -22px rgba(40,28,14,.55); }
.cover-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c49a68; }
.cover-title { font: 400 clamp(38px, 4.6vw, 52px)/1.02 var(--serif); margin-top: 14px; letter-spacing: -.015em; }
.cover-bottle { color: #c1874a; height: 34%; margin: auto 0 0 auto; }
.cover-foot { font-size: 12px; line-height: 1.4; color: #b5aa99; margin-top: 16px; padding-top: 12px; border-top: 1px solid #4a4238; }

.stages { background: var(--surface); border-block: 1px solid var(--line); }
.stages h2 { max-width: 780px; margin-bottom: 64px; }
.ruler-labels { display: none; }
.stage-list { display: grid; gap: 0; }
.stage-list li { position: relative; padding: 0 0 28px 44px; }
.stage-list li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.stage-list li:last-child::before { display: none; }
.stage-n { position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--soft); background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.is-batch .stage-n { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.stage-list p { color: var(--soft); font-size: 15px; line-height: 1.45; margin-top: 4px; }
@media (min-width: 980px) {
  .ruler-labels { display: grid; grid-template-columns: 6fr 1fr 1fr; gap: 0; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
  .ruler-labels span { padding-bottom: 8px; border-bottom: 2px solid var(--line); margin-right: 14px; }
  .rl-before { border-color: var(--ink) !important; }
  .rl-batch { color: var(--accent); border-color: var(--accent) !important; }
  .rl-after { color: var(--soft); margin-right: 0 !important; }
  .stage-list { grid-template-columns: repeat(8, 1fr); }
  .stage-list li { padding: 42px 14px 0 0; }
  .stage-list li::before { display: none; }
  .stage-list h3 { font-size: 16px; }
  .stage-list p { font-size: 14px; }
}

.pit-list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.pit-list li:last-child { border-bottom: 1px solid var(--line); }
.pit-n { font: 400 32px/1 var(--serif); color: var(--accent); }
.pit-list h3 { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); margin-bottom: 8px; }
.pit-list p { color: var(--soft); }
.pit-ref { grid-column: 2; font-size: 14px; line-height: 1.5; }
.pit-ref strong { color: var(--ink); font-weight: 600; }
@media (min-width: 820px) { .pit-list li { grid-template-columns: 64px 1fr 200px; gap: 24px; } .pit-ref { grid-column: 3; text-align: right; } .pit-list li > div { max-width: 640px; } }

.contents { background: var(--surface); border-block: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 4px; font-size: 13px; line-height: 1.35; }
.tag-pit { background: var(--accent-tint); color: var(--accent); }
.tag-tip, .tag-tpl { background: var(--sage-tint); color: var(--sage); }
.part { display: grid; gap: 20px; margin-bottom: 64px; }
.part:last-child { margin-bottom: 0; }
.part-num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.part-head h3 { font: 400 28px/1.15 var(--serif); margin: 6px 0; }
.part-pg { color: var(--soft); font-size: 14px; }
@media (min-width: 900px) { .part { grid-template-columns: 260px 1fr; gap: 48px; } .part-head { position: sticky; top: 90px; align-self: start; } }
.ch { border-top: 1px solid var(--line); }
.ch:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.ch summary { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 17px 0; min-height: 48px; }
.ch-n { color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-t { font-weight: 500; line-height: 1.35; }
.ch-pg { color: var(--soft); font-size: 13px; white-space: nowrap; }
.ch summary:hover .ch-t { color: var(--accent); }
.ch-body { padding: 4px 0 26px 44px; }
@media (max-width: 520px) { .ch-body { padding-left: 0; } }
.ch-w { font: 400 21px/1.32 var(--serif); margin-bottom: 22px; max-width: 640px; }
.ch-w span { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.ch-cols { display: grid; gap: 24px; }
@media (min-width: 720px) { .ch-cols { grid-template-columns: 1.4fr 1fr; gap: 36px; } }
h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.ch-body ul { font-size: 15px; color: var(--soft); line-height: 1.5; }
.ch-body ul:not(.checks) li { padding: 4px 0; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.checks li, .crosses li { position: relative; padding: 5px 0 5px 28px; }
.checks li::before, .crosses li::before { position: absolute; left: 0; top: 5px; font-weight: 600; }
.checks li::before { content: "✓"; color: var(--sage); }
.crosses li::before { content: "×"; color: var(--accent); font-size: 19px; line-height: 1.3; }

.tpl-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tpl-grid li { background: var(--paper); padding: 26px; display: flex; flex-direction: column; }
.tpl-grid h3 { font: 400 23px/1.2 var(--serif); margin-bottom: 8px; }
.tpl-grid p { color: var(--soft); font-size: 15px; line-height: 1.5; }
.tpl-grid .tpl-meta { margin-top: auto; padding-top: 18px; font-size: 13px; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tpl-grid { grid-template-columns: repeat(5, 1fr); } .tpl-grid li { padding: 22px; } .tpl-grid-two { grid-template-columns: repeat(2, 1fr); } .tpl-grid-two li { padding: 30px; } }
.quote-note { margin-top: 18px; }

.fit { padding-top: 0; }
.fit-grid { display: grid; gap: 44px; }
@media (min-width: 760px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

.author { background: var(--surface); border-block: 1px solid var(--line); }
.author-in { display: grid; gap: 40px; align-items: center; }
.author h2 { margin-bottom: 24px; }
.author p:not(.eyebrow) { max-width: 620px; margin-bottom: 16px; color: var(--soft); font-size: 18px; }
.author .sign { font: 400 24px var(--serif); color: var(--ink); margin: 26px 0 0; }
.portrait { width: min(100%, 320px); aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.portrait-empty { background: var(--accent-tint); display: grid; place-items: center; }
@media (min-width: 820px) { .author-in { grid-template-columns: 320px 1fr; gap: 80px; } }

.buy-in { display: grid; gap: 48px; align-items: start; }
.buy h2 { margin-bottom: 28px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 40px); }
.price { font: 400 76px/1 var(--serif); letter-spacing: -.02em; }
.price sup { font-size: .45em; vertical-align: .75em; margin-right: 2px; }
.price-note { color: var(--soft); margin: 6px 0 24px; }
.price-card .signup { max-width: none; }
.price-card .note { margin-top: 14px; }
.guarantee { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--soft); line-height: 1.5; }
.guarantee strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .buy-in { grid-template-columns: 1.15fr 1fr; gap: 80px; } }

.problem { padding-top: 0; }
.problem-in { display: grid; gap: 28px; }
.problem-copy p { color: var(--soft); font-size: 19px; line-height: 1.55; margin-bottom: 18px; max-width: 620px; }
.punch { font-family: var(--serif); font-size: clamp(25px, 2.7vw, 32px) !important; line-height: 1.2 !important; color: var(--ink) !important; }
.outcomes { margin-top: 64px; }
.outcomes h3 { font: 400 26px/1.2 var(--serif); margin-bottom: 18px; }
.outcome-list { display: grid; gap: 4px 48px; }
@media (min-width: 760px) { .outcome-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .problem-in { grid-template-columns: 1fr 1.1fr; gap: 80px; } }

.band { background: #2b2620; color: #efe6d6; padding: clamp(52px, 7vw, 84px) 0; }
.band-in { display: grid; gap: 28px; align-items: center; }
.band h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; max-width: 720px; }
.band p { color: #c2b8a8; }
.btn-invert { background: #efe6d6; color: #26231e; }
@media (min-width: 900px) { .band-in { grid-template-columns: 1fr auto; gap: 64px; } }

.value { padding-bottom: 0; }
.value-in { display: grid; gap: 24px; }
.value-in p { color: var(--soft); font-size: 19px; margin-bottom: 16px; }
@media (min-width: 900px) { .value-in { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; } }

.faq { padding-top: 0; }
.faq-in { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 1fr 2fr; gap: 72px; } }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { padding: 18px 28px 18px 0; font-weight: 500; position: relative; min-height: 48px; }
.qa summary::after, .ch summary .ch-t::after { content: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 24px; font-weight: 300; color: var(--soft); }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--soft); padding: 0 28px 20px 0; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 15px; color: var(--soft); }
.foot p { margin-bottom: 10px; }
.foot-brand { font: 500 20px var(--serif); color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-legal a { display: inline-block; padding: 6px 0; }

.center { text-align: center; max-width: 680px; padding-top: clamp(72px, 13vw, 150px); padding-bottom: clamp(72px, 13vw, 150px); }
.center h1 { font-size: clamp(38px, 5.4vw, 58px); margin-bottom: 20px; }
.center .lede { margin-bottom: 30px; }
.center p + p { margin-top: 18px; }
#order [data-show] { display: none; }
#order[data-state="checking"] [data-show="checking"], #order[data-state="paid"] [data-show="paid"], #order[data-state="failed"] [data-show="failed"] { display: block; }

.prose { max-width: 720px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.prose h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 10px; }
.prose h2 { font-size: 25px; margin: 36px 0 8px; }
.prose p { color: var(--soft); }
.prose .lede { margin-top: 28px; margin-bottom: 18px; }
