/* Running Toward the Fire — site styles
   Layout: one column, 66ch measure, left-aligned text in a centered column.
   Rhythm: line — breath — line. The serif is reserved for the book speaking. */
@font-face {
  font-family: "General Grotesque Mono";
  src: url("fonts/GeneralGrotesqueMono-Demi.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ground: #121212;
  --paper: #181818;
  --paper-2: #1f1d1b;
  --ink: #f2f0ec;
  --ink-2: #d4d6d8;
  --muted: #9a9a9a;
  --rule: #343a40;
  --rule-soft: #242628;
  --ember: #ff5f06;
  --ember-deep: #ff3d00;
  --on-ember: #121212;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "General Grotesque Mono", "Geist Mono", ui-monospace, Menlo, monospace;
  --measure: 66ch;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px;
  padding-block: 0 96px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--on-ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { max-width: 44rem; margin: 0 auto; }
.mark { font-family: var(--mono);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 26px 0 0;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-weight: 600;
}
.mark .wordmark { width: 118px; height: auto; }
.mark span:last-child { font-weight: 500; letter-spacing: .08em; text-transform: none; }

h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.25; }
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.3; max-width: 30ch; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
strong { font-weight: 700; }

.eyebrow { font-family: var(--mono);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow b { color: var(--ember); font-weight: 600; }

section { padding-block: 64px; border-top: 1px solid var(--rule-soft); }
section:first-of-type, .hero { border-top: 0; }
.hero { padding-block: 64px 56px; }
.hero-copy { display: grid; gap: 32px; }
.hero h1 { max-width: 20ch; }
.cover.tabletop.hero-shot {
  width: min(240px, 100%); aspect-ratio: auto; margin: 0; padding: 0; border: 0; background: none;
  display: grid; gap: 12px; justify-items: start; text-align: left;
  text-transform: none; letter-spacing: normal; font-size: inherit; font-weight: 400; color: inherit;
}
.hero-shot img { aspect-ratio: 1 / 1; width: 100%; }
.hero-shot figcaption { white-space: nowrap; }
@media (min-width: 760px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: start; }
  .hero-copy > * { grid-column: 1; }
  .cover.tabletop.hero-shot { grid-column: 2; grid-row: 1 / span 4; align-self: start; width: 280px; margin-top: 8px; position: sticky; top: 32px; }
}
.hero .breath { display: grid; gap: 28px; }
.line { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; max-width: 30ch; }
.line.sm { font-size: 1.2rem; }
.eyebrow.tight { margin: 6px 0 0; }
.line.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-style: italic; }
.lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.55; }

/* The book speaking: every verbatim block wears the serif. */
.verbatim { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); max-width: 58ch; }
.verbatim + .verbatim { margin-top: 1.1em; }
.verbatim.small { font-size: 1.05rem; }
blockquote { margin: 0; }
.quote { display: grid; gap: 22px; padding: 34px 0 0; border-top: 2px solid var(--ember); max-width: 58ch; }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.quote cite { font-family: var(--mono); font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.stack { display: grid; gap: 22px; }
.stack-lg { display: grid; gap: 36px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 16px 34px;
  background: var(--ember); color: var(--on-ember);
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ember); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); background: transparent; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.under { font-size: .9rem; color: var(--muted); letter-spacing: .02em; }
.under b { color: var(--ink-2); font-weight: 600; }
.pending { display: none; font-size: .82rem; color: var(--ember); margin-top: 8px; letter-spacing: .04em; }
.pending.on { display: block; }

/* Cover slot (swap the placeholder for the final asset) */
.cover {
  width: min(280px, 60vw); aspect-ratio: 2 / 3; max-width: 100%;
  border: 1px solid var(--rule); background: var(--paper);
  display: grid; place-items: center; text-align: center; padding: 20px;
  color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.tabletop { width: min(320px, 70vw); aspect-ratio: 1 / 1; padding: 0; border-color: transparent; }
.cover-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 640px) { .cover-row { grid-template-columns: 1fr; } }

.feature { margin: 0; border: 1px solid var(--rule); background: var(--paper); }
.feature img { width: 100%; }
.cover-row .spec { max-width: none; }

/* Gates / numbered sequences */
.gates { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: gate; max-width: var(--measure); }
.gates li { counter-increment: gate; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--rule-soft); }
.gates li:first-child { border-top: 0; }
.gates li::before { font-family: var(--mono); content: "0" counter(gate); font-weight: 700; color: var(--ember); font-size: .95rem; letter-spacing: .06em; padding-top: 5px; font-variant-numeric: tabular-nums; }
.gates li > h3, .gates li > p { grid-column: 2; }
.gates li::before { grid-row: 1 / span 2; }
.gates h3 { margin-bottom: 4px; }
.gates p { color: var(--ink-2); }

/* Product cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card { padding: 26px 24px 24px; background: var(--paper); border: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card .eyebrow { margin: 0; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.card .btn { justify-self: start; margin-top: 8px; }
.card.hero-card { border-color: var(--ember); background: var(--paper-2); }
.offers { display: grid; gap: 18px; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 720px) { .offers { grid-template-columns: 1fr; } }

/* Ledger card */
.ledger { background: var(--paper); border: 1px solid var(--rule); padding: 28px 26px; max-width: 34rem; display: grid; gap: 14px; }
.ledger .eyebrow { margin: 0; }
.ledger dl { margin: 0; display: grid; gap: 10px; }
.ledger dt { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.ledger dd { font-family: var(--mono); margin: 0 0 8px; color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ledger .sig { border-top: 1px solid var(--rule); padding-top: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Spec block ($27 page) */
.spec { display: grid; gap: 14px; padding: 26px 24px; background: var(--paper); border: 1px solid var(--rule); max-width: 40rem; }
.spec .pricebar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.spec .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec .label { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); font-weight: 700; }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 12px; color: var(--ink-2); }
.spec li::before { content: ""; width: 1rem; height: 1rem; margin-top: .3em; background: url("brand/rd-monogram.png") center/contain no-repeat; }

/* Three-up feature rows */
.trio { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trio div { min-width: 0; display: grid; gap: 8px; align-content: start; }
.trio .n { font-family: var(--mono); color: var(--ember); font-weight: 700; font-size: .9rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.trio .x { color: var(--muted); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.trio .arrow { color: var(--ember); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.trio .rd { width: 1.1rem; height: 1.1rem; background: url("brand/rd-monogram.png") center/contain no-repeat; }
.trio h3 { font-size: 1.1rem; }
.trio p { color: var(--ink-2); font-size: 1rem; }

/* Spread image slots */
.spreads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.spreads figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.spreads img { border: 1px solid var(--rule); }
.spreads .slot { aspect-ratio: 4 / 3; max-width: 100%; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-align: center; padding: 12px; }
.spreads figcaption { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: var(--measure); }
.faq details { border-top: 1px solid var(--rule-soft); }
.faq details:last-child { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 24px; display: grid; gap: 18px; font-size: .88rem; color: var(--muted); }
footer .legal { max-width: var(--measure); }
footer details { max-width: var(--measure); }
footer summary { cursor: pointer; color: var(--ink-2); font-weight: 600; list-style: none; display: inline; }
footer summary::-webkit-details-marker { display: none; }
footer summary::after { content: " ↓"; }
footer details[open] summary::after { content: " ↑"; }
footer .note { margin-top: 12px; display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
footer .colophon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; letter-spacing: .04em; }
footer .seal { width: 40px; height: 40px; }
footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .legal-links a { text-underline-offset: 3px; }

/* Preview-only bar (stripped from production by build.py) */
.preview-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin: 0 -20px; padding: 8px 20px; background: #26201c; color: #ece4d6; font-size: .8rem; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #3a322c; }
.preview-bar b { color: #ff5f06; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.preview-bar a { color: #ece4d6; text-decoration: none; border-bottom: 1px solid #5a4e45; }
.preview-bar a[aria-current] { border-bottom-color: #ff5f06; }

/* Chapter reading page (/chapter-one)
   Dark bands top and bottom; the chapter itself sits on paper. */
body.reading { padding-inline: 0; padding-block: 0; }
.band { padding-inline: 20px; }
.band.dark { background: var(--ground); color: var(--ink); }
.band.paper { background: #f4f1ea; color: #1c1b19; color-scheme: light; }
.chapter-hero { padding-block: 72px 64px; display: grid; gap: 18px; justify-items: center; text-align: center; border-top: 0; }
.chapter-hero .eyebrow { margin: 0 0 6px; }
.chapter-hero .eyebrow b { color: var(--ember); }
.chapter-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.chapter-hero .title { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.3; max-width: 26ch; color: var(--ink-2); font-style: italic; }
.chapter-hero .byline { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 10px; }
.chapter { padding-block: 64px 80px; max-width: 42rem; margin: 0 auto; }
.chapter p { font-family: var(--serif); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.7; max-width: none; text-align: left; }
.chapter p + p { margin-top: 1.1em; }
.chapter strong { font-weight: 700; }
.chapter ::selection { background: var(--ember); color: var(--on-ember); }
.close { padding-block: 72px 56px; display: grid; gap: 22px; justify-items: center; text-align: center; border-top: 0; }
.close h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.close .line.serif { max-width: 34ch; }
.close .btn { margin-top: 8px; }
.band.dark footer { margin-top: 0; max-width: 44rem; margin-inline: auto; padding-bottom: 56px; }
@media (max-width: 640px) { .band { padding-inline: 22px; } .chapter { padding-block: 48px 64px; } }
.chapter .break { border: 0; width: 2.5rem; height: 1px; background: #1c1b19; opacity: .35; margin: 2.6em auto; }

/* Sticky checkout bar — phones only, shown once the hero button has scrolled off. */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta[hidden] { display: none; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 18, 18, .96); border-top: 1px solid var(--rule);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .sticky-cta .btn { min-height: 48px; padding: 12px 22px; font-size: .95rem; flex: 0 0 auto; }
  .sticky-cta-text { font-size: .9rem; color: var(--muted); }
  .sticky-cta-text b { color: var(--ink); font-weight: 700; }
  body.has-sticky { padding-block-end: 160px; }
}

/* /chapter-one — "Chapter One by email" capture (D12, ruled 2026-10-31). Secondary to the Order button above it. */
.capture { padding-block: 8px 72px; display: grid; gap: 14px; justify-items: center; text-align: center; border-top: 0; }
.capture h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.capture .under { max-width: 44ch; }
.capture-form { width: min(520px, 100%); margin-top: 10px; background: #f4f1ea; border-radius: 6px; padding: 8px; min-height: 330px; }
.capture-form iframe { display: block; min-height: 314px; }
