/* =========================================================
   AI Without the Hype — site theme
   Editorial: warm paper, charcoal ink, one burnt-orange accent,
   a book serif for headlines. Shared by every page.
   File: /assets/site.css
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F6F1E7;     /* page ground */
  --paper-2: #EFE7D8;   /* bands */
  --sheet: #FFFDF8;     /* raised panels */
  --ink: #1F1D1A;       /* text, rules, dark bands */
  --ink-2: #3A352E;     /* body copy */
  --muted: #5C564C;     /* secondary text (passes 4.5:1 on paper) */
  --rule-soft: #D9CFBE;
  --on-dark: #F6F1E7;
  --on-dark-2: #D8D0C2;
  --dark-rule: #4A443B;
  --accent: #E2622B;    /* fills: buttons, bars, rules */
  --accent-ink: #B4400C;/* accent as text on paper */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 74rem;
  --gutter: 1.5rem;
  --section: clamp(4rem, 8vw, 5.5rem);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-dark); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; color: var(--on-dark); }
section { position: relative; }
.container, .ed-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Old decorative bits from the previous theme, quietly retired */
.laser { height: 1px; border: 0; margin: 0; background: var(--ink); }
.grad, .metallic { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.hero .series, .series.small { display: none; }

/* ---------- 3. Masthead / nav ---------- */
.sitenav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); transition: box-shadow .2s; }
.sitenav.scrolled { box-shadow: 0 6px 18px rgba(31, 29, 26, .08); }
.sitenav .in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo svg { display: none; }
.logo b { font-weight: inherit; }
.navlinks { display: flex; align-items: center; gap: 1.75rem; }
.navlinks a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: var(--accent-ink); }
.navlinks a[aria-current=page] { border-bottom-color: var(--accent); }
.menubtn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); cursor: pointer; }
.menubtn svg { width: 1.4rem; height: 1.4rem; display: block; margin: auto; }
@media (max-width: 820px) {
  .menubtn { display: block; }
  .logo { font-size: 1.3rem; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .25rem var(--gutter) 1rem; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .navlinks a { padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1.05rem; }
  .navlinks a[aria-current=page] { border-bottom-color: var(--rule-soft); color: var(--accent-ink); }
  .sitenav.open .navlinks { display: flex; }
}

/* ---------- 4. Labels ---------- */
.kicker, .crumb, .hk, .ed-label { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; color: var(--accent-ink); margin: 0 0 .6rem; }
.crumb { color: var(--muted); }
.crumb a { color: inherit; } .crumb a:hover { color: var(--accent-ink); }

/* ---------- 5. Buttons ---------- */
.btn, .dl, .formkit-submit { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; text-decoration: none; cursor: pointer; border-radius: 4px;
  background: var(--ink); color: var(--on-dark); border: 1px solid var(--ink); transition: background .15s, color .15s, transform .15s; }
.btn:hover, .dl:hover, .formkit-submit:hover { background: #000; color: var(--on-dark); transform: translateY(-1px); }
.btn.solid, .formkit-submit, .dl, .btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.solid:hover, .formkit-submit:hover, .dl:hover, .btn.accent:hover { background: #CC5420; border-color: #CC5420; color: var(--ink); }
.btn.big { min-height: 52px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn.plain { background: transparent; color: var(--ink); }
.btn.plain:hover { background: var(--ink); color: var(--on-dark); }
.btn.soon { cursor: default; border-style: dashed; background: transparent; color: var(--muted); }
.textlink { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- 6. Page heads (every inner page) ---------- */
.hero { padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--ink); }
.hero .wrap { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.5fr 1fr; } .hero.slim .wrap { grid-template-columns: 1fr; } }
.hero.slim .wrap > div { max-width: 46rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; margin: 0 0 1.1rem; }
.hero.slim h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero .lede { font-family: var(--serif); color: var(--ink-2); font-size: clamp(1.2rem, 2.2vw, 1.42rem); line-height: 1.5; margin: 0 0 1.25rem; max-width: 40rem; }
.hero .meta { color: var(--muted); font-size: .95rem; margin: 0; }
.hero p.small { color: var(--muted); font-size: .95rem; margin: 1rem 0 0; }
.hero .cover { justify-self: center; width: min(15rem, 62vw); }
.hero .cover img { display: block; width: 100%; box-shadow: 0 1.1rem 2.2rem rgba(31, 29, 26, .28); }
.hero .cover.wide { width: min(32rem, 92vw); }
.hero .cover.wide img { border: 1px solid var(--ink); }
@media (min-width: 820px) { .hero .wrap.widecover { grid-template-columns: 1fr 1.25fr; } }
.hero.home { text-align: left; }

/* ---------- 7. Panels ---------- */
.post, .cta, .signup, .inside, .next, .free, .mission, .about, .glass { background: transparent; border: 0; border-radius: 0; }

/* ---------- 8. Articles ---------- */
.postmain { padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) var(--section); }
.postwrap { max-width: 42rem; margin: 0 auto; }
.post { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; color: var(--ink-2); }
.post > :first-child { margin-top: 0; }
.post p { margin: 0 0 1.3rem; }
.post h2 { font-size: 1.85rem; line-height: 1.15; margin: 2.6rem 0 .9rem; }
.post a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.post a:hover { color: var(--accent-ink); }
.post strong { color: var(--ink); font-weight: 600; }
.post ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.post ul li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; }
.post ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: .55rem; height: 2px; background: var(--accent); }
.post ol { padding-left: 1.6rem; margin: 0 0 1.3rem; } .post ol li { margin-bottom: .6rem; padding-left: .2rem; }
.post ol li::marker { color: var(--accent-ink); font-weight: 600; }
.post blockquote { margin: 0 0 1.4rem; padding: 1rem 1.25rem; background: var(--sheet); border-left: 3px solid var(--accent); font-family: var(--sans); font-size: 1.02rem; color: var(--ink); }
.post blockquote p { margin: 0; }
.post .mail { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }

/* Free-download box under an article */
.cta { margin: 3rem 0 2rem; padding: 2rem; background: var(--sheet); border: 1px solid var(--ink); border-top: 4px solid var(--accent); }
.cta .top { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: center; margin-bottom: 1.4rem; }
.cta .top img { display: block; width: 100%; box-shadow: 0 .6rem 1.2rem rgba(31, 29, 26, .2); }
.cta h2 { font-size: 1.65rem; line-height: 1.15; margin: 0 0 .35rem; }
.cta p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.cta .note { margin-top: .9rem; }
@media (max-width: 520px) { .cta { padding: 1.5rem 1.25rem; } .cta .top { grid-template-columns: 4.25rem 1fr; } }

/* "From the book" box */
.bookbox { display: grid; grid-template-columns: 6rem 1fr; gap: 1.4rem; align-items: start; padding: 1.75rem 0; margin: 0 0 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bookbox img { display: block; width: 100%; box-shadow: 0 .6rem 1.2rem rgba(31, 29, 26, .22); }
.bookbox h2 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 .5rem; }
.bookbox p { margin: 0 0 1rem; font-size: 1rem; color: var(--ink-2); }
.bookbox .btn { margin: 0 .9rem .5rem 0; }
.bookbox .more { font-weight: 600; font-size: .97rem; }
.bookbox .planner { display: block; margin-top: .5rem; font-size: .95rem; color: var(--ink-2); }

/* Articles index */
.list { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; }
.card { display: block; text-decoration: none; color: var(--ink); padding: 1.6rem 0; border-top: 1px solid var(--ink); }
.list .card:last-child { border-bottom: 1px solid var(--ink); }
.card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 .5rem; }
.card p { color: var(--ink-2); margin: 0 0 .7rem; font-size: 1.02rem; }
.card .read { font-weight: 700; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card:hover h2 { color: var(--accent-ink); }

/* ---------- 9. Kit / planner / thank-you pages ---------- */
.main { padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) var(--section); }
.main .wrap { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .main .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.inside, .next { padding: 0; }
.inside h2, .next h2, .signup h2 { font-size: 1.8rem; line-height: 1.15; margin: 0 0 1rem; }
.inside ul, .inc { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.inside li, .inc li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid var(--rule-soft); color: var(--ink-2); }
.inside li::before, .inc li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .7rem; height: 2px; background: var(--accent); }
.signup { padding: 2rem; background: var(--sheet); border: 1px solid var(--ink); border-top: 4px solid var(--accent); }
.signup p { color: var(--ink-2); font-size: 1rem; margin: 0 0 1.25rem; }
.fine { color: var(--muted) !important; font-size: .9rem !important; margin: 1rem 0 0 !important; }
.fromthe { color: var(--muted); font-size: .95rem; margin: 1.25rem 0 0; }
.next ol { margin: 0; padding-left: 1.4rem; color: var(--ink-2); } .next li { margin-bottom: .75rem; } .next li::marker { color: var(--accent-ink); font-weight: 700; }
.main .note { background: var(--sheet); border: 1px solid var(--rule-soft); padding: 1.25rem 1.5rem; font-size: 1rem; color: var(--ink-2); }
.main .note p { margin: 0 0 .5rem; } .main .note p:last-child { margin: 0; }
.dl { margin-top: .5rem; }
.note { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }

/* Free prompts page feature */
.free-sec { padding: var(--section) 0; }
.free { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.feature { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .feature { grid-template-columns: 15rem 1fr; gap: 3.5rem; } }
.feature img { justify-self: center; width: min(14rem, 62vw); border: 1px solid var(--ink); box-shadow: 0 1rem 2rem rgba(31, 29, 26, .18); }
.free h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 .75rem; }
.free .intro { color: var(--ink-2); font-family: var(--serif); font-size: 1.25rem; margin: 0 0 1.25rem; }

/* ---------- 10. Kit forms ---------- */
.formkit-fields { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 600px) { .homeform .formkit-fields { grid-template-columns: 1fr 1fr; } .homeform .formkit-submit { grid-column: 1 / -1; } }
.formkit-field label, .signup label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin: 0 0 .35rem; }
.formkit-input { width: 100%; min-height: 48px; font: inherit; font-size: 1.05rem; color: var(--ink); background: #FFFFFF; border: 1px solid var(--ink); border-radius: 4px; padding: .7rem .9rem; }
.formkit-input::placeholder { color: #6B6458; }
.formkit-input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.formkit-submit { width: 100%; font-size: 1.05rem; margin-top: .25rem; }
.formkit-submit[data-active] { opacity: .7; cursor: wait; }
.formkit-alert { list-style: none; margin: 0 0 1rem; padding: .75rem 1rem; font-size: .95rem; }
.formkit-alert:empty { display: none; }
.formkit-alert-error { background: #FBE3D8; border: 1px solid var(--accent-ink); color: #6E2507; }

/* ---------- 11. Footer ---------- */
.series-foot { border-top: 1px solid var(--ink); padding: var(--section) var(--gutter) 2rem; margin-top: 0; background: var(--paper-2); }
.series-foot .wrap { max-width: var(--wrap); margin: 0 auto; }
.series-foot h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 1.5rem; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 0 1.5rem; margin-bottom: 3rem; }
.mini { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--ink); padding: 1rem 0; border-top: 1px solid var(--ink); }
.mini img { width: 3.6rem; flex: none; box-shadow: 0 .5rem 1rem rgba(31, 29, 26, .2); }
.mini strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.08rem; line-height: 1.25; margin-bottom: .2rem; }
.mini span span { color: var(--muted); font-size: .88rem; font-style: italic; font-family: var(--serif); }
.mini:hover strong { color: var(--accent-ink); }
.footbar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.footbar .logo { font-size: 1.25rem; }
.footlinks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; }
.footlinks a { color: var(--ink-2); text-decoration: none; } .footlinks a:hover { color: var(--accent-ink); text-decoration: underline; }
.legal { color: var(--muted); font-size: .82rem; margin: 1.5rem 0 0; }

/* =========================================================
   12. Homepage (ed-*)
   ========================================================= */
.ed-open { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: flex-start; padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3rem, 6vw, 4rem); }
.ed-open .note-copy { flex: 999 1 32rem; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.ed-open h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.ed-open .voice { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.5; margin: 0; max-width: 40rem; }
.ed-open .plain { font-size: 1.12rem; color: var(--ink-2); margin: 0; max-width: 38rem; }
.ed-open .sig { font-family: var(--serif); font-style: italic; font-size: 1.4rem; margin: 0; }
.ed-open .acts { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; margin-top: .4rem; }
.ed-open figure { flex: 1 1 18rem; max-width: 26rem; margin: 0; }
.ed-open figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.ed-open figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

.ed-band { background: var(--paper-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ed-band .ed-wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; justify-content: space-between; padding-block: 1.6rem; }
.ed-band .line { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; margin: 0; }
.ed-band .line em { color: var(--accent-ink); }
.ed-band .aside { font-size: .9rem; color: var(--muted); margin: 0; }

.ed-section { padding-block: var(--section); }
.ed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; }
.ed-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0; max-width: 46rem; }
.ed-head p { margin: 0; color: var(--muted); font-size: .97rem; max-width: 22rem; }

.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 31rem), 1fr)); gap: 0 3.5rem; }
.shelf .entry { display: flex; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--ink); }
.shelf .entry > a { flex: none; }
.shelf .entry img { display: block; width: 8.75rem; aspect-ratio: 5 / 8; object-fit: cover; box-shadow: 0 .6rem 1.5rem rgba(31, 29, 26, .25); transition: transform .2s; }
.shelf .entry > a:hover img { transform: translateY(-3px); }
.shelf .body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.shelf h3 { font-size: 1.65rem; line-height: 1.15; margin: 0; }
.shelf h3 a { text-decoration: none; } .shelf h3 a:hover { color: var(--accent-ink); }
.shelf .method { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 0; }
.shelf .desc { font-size: 1rem; color: var(--ink-2); margin: 0; }
.shelf .buy { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: .35rem; font-size: .95rem; }
.shelf .buy span { color: var(--muted); }
@media (max-width: 480px) { .shelf .entry { gap: 1rem; } .shelf .entry img { width: 6.5rem; } .shelf h3 { font-size: 1.35rem; } }

.ed-sheet { display: flex; flex-wrap: wrap; gap: 2.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--sheet); border: 1px solid var(--ink); }
.ed-sheet .copy { flex: 999 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: .9rem; }
.ed-sheet h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 0; }
.ed-sheet .copy p { margin: 0; color: var(--ink-2); }
.ed-sheet form { flex: 1 1 20rem; align-self: center; }
.ed-sheet .thumb { width: 7rem; border: 1px solid var(--ink); }

.ed-planner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; padding-top: 2.5rem; border-top: 1px solid var(--ink); }
.ed-planner img { flex: 1 1 22rem; max-width: 34rem; width: 100%; border: 1px solid var(--ink); }
.ed-planner .copy { flex: 1 1 20rem; display: flex; flex-direction: column; gap: .8rem; }
.ed-planner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0; }
.ed-planner .copy p { margin: 0; color: var(--ink-2); }
.ed-planner .price { font-family: var(--serif); font-size: 1.4rem; }

.ed-dark { background: var(--ink); color: var(--on-dark); }
.ed-dark h2, .ed-dark h3 { color: var(--on-dark); }
.ed-dark .ed-label { color: var(--accent); }
.ed-dark a { color: var(--on-dark); }
.ed-how { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; }
.ed-how .lead { flex: 1 1 20rem; }
.ed-how h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 0; }
.ed-how ol { flex: 999 1 30rem; min-width: 0; list-style: none; margin: 0; padding: 0; }
.ed-how li { display: flex; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--dark-rule); }
.ed-how li:last-child { border-bottom: 1px solid var(--dark-rule); }
.ed-how .n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); flex: none; width: 1.5rem; }
.ed-how strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.ed-how li span:not(.n) { color: var(--on-dark-2); }

.ed-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 0 3.5rem; }
.ed-index a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--ink); text-decoration: none; }
.ed-index .hk { margin: .35rem 0 0; color: var(--muted); }
.ed-index strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.3; }
.ed-index a:hover strong { color: var(--accent-ink); }
@media (max-width: 520px) { .ed-index a { grid-template-columns: 1fr; gap: .2rem; } }

.ed-quote { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; align-items: center; padding-top: 3rem; border-top: 4px solid var(--accent); }
.ed-quote blockquote { flex: 999 1 30rem; min-width: 0; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em; }
.ed-quote .copy { flex: 1 1 20rem; display: flex; flex-direction: column; gap: .8rem; }
.ed-quote .copy p { margin: 0; color: var(--ink-2); }
.ed-quote .links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* =========================================================
   13. Book pages (bk-*)
   ========================================================= */
.bk-hero { border-bottom: 1px solid var(--ink); }
.bk-hero .ed-wrap { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); align-items: flex-start; padding-block: 1.75rem clamp(3rem, 6vw, 4.5rem); }
.bk-crumbs { flex: 1 0 100%; font-size: .9rem; color: var(--muted); }
.bk-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule-soft); }
.bk-crumbs a { color: var(--muted); }
.bk-cover { flex: 1 1 16rem; max-width: 22rem; }
.bk-cover img { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; box-shadow: 0 1.5rem 3rem rgba(31, 29, 26, .3); }
.bk-pitch { flex: 999 1 28rem; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.bk-pitch h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.04; margin: 0; }
.bk-pitch .hook { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.3; margin: 0; }
.bk-pitch .intro { font-size: 1.12rem; color: var(--ink-2); margin: 0; max-width: 38rem; }
.bk-method { font-family: var(--serif); font-size: 1.35rem; margin: 0; padding: .5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); align-self: flex-start; }
.bk-method span + span { margin-left: .5rem; }
.bk-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.bk-price { font-family: var(--serif); font-size: 2rem; line-height: 1; margin: 0; }
.bk-price small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.bk-formats { font-size: .95rem; color: var(--muted); margin: 0; }

.bk-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem 4rem; align-items: start; }
.bk-split h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 1.1rem; }
.bk-prose p { font-size: 1.1rem; color: var(--ink-2); }
.bk-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bk-list li { position: relative; padding: .8rem 0 .8rem 1.7rem; border-top: 1px solid var(--rule-soft); font-size: 1.08rem; line-height: 1.5; }
.bk-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.bk-list li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: .8rem; height: 2px; background: var(--accent); }
.bk-chapters { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 3.5rem; counter-reset: ch; }
.bk-chapters li { counter-increment: ch; break-inside: avoid; display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.bk-chapters li::before { content: counter(ch); font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--accent-ink); width: 1.4rem; flex: none; }
.bk-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.prompt { position: relative; padding: 1.4rem 1.4rem 1.25rem; background: var(--sheet); border: 1px solid var(--ink); }
.prompt .label { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .5rem; padding-right: 4.5rem; }
.prompt .text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; }
.copybtn { position: absolute; top: .8rem; right: .8rem; min-height: 36px; padding: 0 .8rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.copybtn::before { content: ""; position: absolute; inset: -4px; }
.bk-author { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; padding-top: 2rem; border-top: 1px solid var(--ink); }
.bk-author img { width: 7.5rem; height: 7.5rem; object-fit: cover; object-position: 50% 30%; border-radius: 50%; flex: none; }
.bk-author .copy { flex: 1 1 22rem; }
.bk-author h2 { font-size: 1.6rem; margin: 0 0 .4rem; }
.bk-author p { margin: 0 0 .6rem; color: var(--ink-2); }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink);
  box-shadow: 0 -6px 18px rgba(31, 29, 26, .1); transform: translateY(110%); transition: transform .25s ease; }
.buybar.show { transform: none; }
.buybar .t { font-family: var(--serif); font-size: 1rem; line-height: 1.2; min-width: 0; margin: 0; }
.buybar .t span { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.buybar .btn { white-space: nowrap; flex: none; min-height: 44px; padding: .5rem 1rem; }
@media (max-width: 820px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 4.5rem; } }

/* ---------- 14. Reveal on scroll (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(.9rem); transition: opacity .6s ease, transform .6s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 15. Articles index grouped by topic ---------- */
.topicnav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0 0 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ink); font-weight: 600; font-size: .97rem; }
.topicnav a { text-decoration-color: var(--accent); text-underline-offset: 5px; }
.topicgroup { padding-top: 2.5rem; scroll-margin-top: 5.5rem; }
.topichead { margin-bottom: .5rem; }
.topichead h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .35rem; }
.topichead p { color: var(--ink-2); margin: 0 0 .5rem; }
.topicgroup .card:last-child { border-bottom: 1px solid var(--ink); }
.hero .meta a { color: inherit; }

/* WebP images are wrapped in <picture>; let the <img> keep its own layout */
picture { display: contents; }
/* Articles index: align the list with the page heading instead of centering it */
.postmain > .list { max-width: var(--wrap); }
.postmain > .list > * { max-width: 52rem; }
/* Inner pages: share the masthead's left edge on wide screens */
.hero, .postmain, .main { padding-inline: 0; }
.hero .wrap, .main .wrap, .postmain > .list { padding-inline: var(--gutter); }
.postwrap { padding-inline: var(--gutter); max-width: calc(42rem + 2 * var(--gutter)); }
