/* karimspring.com · shared design system (v6) */
:root{
  --bg:#f7f1e6;--paper:#fffaf1;--ink:#1a1a1a;--muted:#73716e;--line:#e5ded2;--stage:#efe9de;--accent:#f57939;--accent-ink:#b95f31;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --reader-size:18px;--reader-leading:1.7;--reader-width:700px;--wide:1100px;
  --nav-h:76px;--bar-bg:rgba(255,255,255,.98);--head-bg:rgba(247,241,230,.96)
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#121218;--paper:#1b1a22;--ink:#ece6da;--muted:#a49cab;--line:#2c2a34;--stage:#1f1e27;--bar-bg:rgba(27,26,34,.98);--head-bg:rgba(18,18,24,.96);--accent-ink:#f08a52}}
@media (max-width:760px){:root{--nav-h:68px}}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.5;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom,0px) + 12px)}
a{color:inherit}
img{max-width:100%}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- bottom navigation ---------- */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;height:calc(var(--nav-h) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:var(--bar-bg);border-top:1px solid var(--line);box-shadow:0 -4px 24px rgba(20,20,20,.035)}
.nav-inner{display:grid;grid-template-columns:repeat(5,1fr);max-width:650px;height:var(--nav-h);margin:0 auto}
.nav-item{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:12px;text-decoration:none}
.nav-item svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round}
.nav-item:hover{color:var(--ink)}
.nav-item.active{color:var(--ink);font-weight:650}
.nav-item.active::before{content:'';position:absolute;top:0;width:26px;height:3px;border-radius:0 0 4px 4px;background:var(--accent)}
@media (max-width:760px){.nav-item{font-size:11px}}

/* ---------- shared elements ---------- */
.container{max-width:var(--wide);margin:0 auto;padding:0 36px}
.crumb{font-size:12px;color:var(--muted);letter-spacing:.04em;margin:32px 0 12px}
.crumb a{text-decoration:none}.crumb a:hover{color:var(--ink)}
.page-heading{font-family:var(--serif);font-weight:400;font-size:clamp(38px,5vw,56px);line-height:1.1;letter-spacing:-1.5px;margin:0 0 12px}
.intro{color:var(--muted);font-size:15px;line-height:1.7;max-width:580px;margin:0}
.section-label{display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-bottom:1px solid var(--line);padding:44px 0 14px;margin:0 0 28px;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.section-label span+span{font-weight:400;letter-spacing:normal;text-transform:none;color:var(--muted)}
.cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 19px;border:1px solid var(--ink);border-radius:3px;background:var(--ink);color:var(--bg);font-size:13px;font-weight:600;text-decoration:none;max-width:100%}
.cta:hover{opacity:.85}
.cta.outline{background:none;color:var(--ink)}
.cta.outline:hover{background:var(--stage);opacity:1}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.coming{display:inline-block;border:1px solid #ddc9b8;color:#9c6339;background:#fff9f1;font-size:13px;padding:12px 18px;border-radius:3px}
.textlink{font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.textlink:hover{color:var(--ink)}
.site-foot{text-align:center;color:var(--muted);font-size:12px;padding:30px 16px 8px}
.site-foot p{margin:4px 0}

/* ---------- books collection ---------- */
.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px;padding-bottom:58px}
.book-card{min-width:0}
.cover-link{display:block;text-decoration:none}
.cover-stage{height:366px;display:flex;align-items:flex-end;justify-content:center;transition:transform .18s}
.cover-link:hover .cover-stage{transform:translateY(-3px)}
.cover-stage img{height:86%;width:auto;max-width:78%;object-fit:contain;filter:drop-shadow(10px 12px 9px rgba(20,15,10,.17))}
.book-status{min-height:20px;margin:17px 0 5px;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.book-status.upcoming{color:var(--accent-ink)}
.book-card h2{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.18;letter-spacing:-.4px;margin:0 0 7px}
.book-card h2 a{text-decoration:none}
.book-card .subtitle{font-family:var(--serif);font-size:14px;line-height:1.4;color:var(--muted);margin:0 0 14px}
.discover{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.02em;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:3px}
.discover:hover{color:var(--accent-ink)}
@media (min-width:1100px){.book-grid{gap:54px}.cover-stage{height:380px}}

/* ---------- book detail ---------- */
.detail{max-width:1000px;padding-bottom:40px}
.back{display:inline-block;color:var(--muted);font-size:13px;text-decoration:none;margin:30px 0}
.back:hover{color:var(--ink)}
.detail-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:65px;align-items:start}
.detail-cover{position:sticky;top:24px;text-align:center}
.detail-cover img{display:block;width:100%;height:auto;filter:drop-shadow(12px 12px 14px rgba(22,15,8,.17))}
.detail-cover .caption{display:block;margin-top:22px;font-size:12px;color:var(--muted)}
.edition{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin:0 0 13px}
.edition.upcoming{color:var(--accent-ink)}
.detail-header h1{font-family:var(--serif);font-weight:400;font-size:clamp(36px,4vw,52px);line-height:1.13;letter-spacing:-1.4px;margin:0 0 11px}
.detail-subtitle{font-family:var(--serif);font-size:17px;line-height:1.4;color:var(--muted);margin:0 0 12px}
.detail-author{font-size:13px;color:var(--muted);margin:0 0 33px}
.detail-block{border-top:1px solid var(--line);padding:24px 0 26px}
.detail-block h2{font-family:var(--serif);font-weight:400;font-size:25px;margin:0 0 15px}
.detail-block p{font-family:var(--serif);font-size:var(--reader-size);line-height:var(--reader-leading);margin:0 0 13px}
.detail-block p.tag{font-style:italic;color:var(--muted)}
.detail-block .help{font-family:var(--sans);font-size:13px;line-height:1.6;color:var(--muted)}
.expand{background:none;border:0;padding:4px 0;color:var(--accent-ink);font:600 13px var(--sans);cursor:pointer}
.expand:hover{text-decoration:underline}
.toc-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;padding:0;text-align:left;color:var(--ink);cursor:pointer;font:inherit}
.toc-toggle h2{margin:0}
.toc-sign{font-size:22px;line-height:1;color:var(--muted)}
.toc-items{list-style:none;margin:0;padding:17px 0 0;font-family:var(--serif);font-size:16px;line-height:1.75;color:var(--ink)}
.toc-items li{padding:2px 0}
.toc-part{margin-top:12px}
.toc-part>span{display:block;font:600 11px var(--sans);letter-spacing:.11em;text-transform:uppercase;color:var(--accent-ink);margin:6px 0 4px}
.toc-part ol{list-style:none;margin:0;padding:0 0 0 18px;color:var(--muted)}
.tree-link{font:600 13px var(--sans);color:var(--accent-ink);text-decoration:none}
.tree-link:hover{text-decoration:underline}

/* ---------- reader (essays, series parts, free chapters) ---------- */
.reader-head{position:sticky;top:0;z-index:15;background:var(--head-bg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.reader-head-in{max-width:960px;margin:0 auto;min-height:64px;padding:8px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.trail{min-width:0;display:flex;align-items:baseline;gap:11px;white-space:nowrap;overflow:hidden}
.trail-tag{flex:none;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);text-decoration:none}
.trail-tag:hover{text-decoration:underline}
.trail-slash{flex:none;color:#c5c0b8;font-size:16px}
.trail-title{font-family:var(--serif);font-size:17px;overflow:hidden;text-overflow:ellipsis}
.share{flex:none;display:inline-flex;align-items:center;gap:8px;padding:9px 11px;background:none;border:1px solid var(--line);border-radius:4px;color:var(--ink);font:12px var(--sans);cursor:pointer}
.share svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.share:hover{background:var(--stage)}
.paper{max-width:var(--reader-width);margin:0 auto;padding:60px 0 40px}
.paper-meta{font-size:11px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin:0 0 18px}
.paper-meta .sep{padding:0 6px;color:#c9c4be}
.paper-title{font-family:var(--serif);font-weight:400;font-size:clamp(40px,5.2vw,58px);line-height:1.1;letter-spacing:-1.5px;margin:0 0 22px}
.paper-sub{font-family:var(--serif);font-size:21px;line-height:1.58;color:#625b54;margin:0 0 30px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .paper-sub{color:var(--muted)}}
.paper-sub p{margin:0 0 .6em}.paper-sub p:last-child{margin:0}
.paper-sub strong{color:var(--ink)}
.paper-alt{font-size:13px;margin:-14px 0 28px}
.paper-alt a{color:var(--accent-ink);font-weight:600;text-decoration:none}
.divider{height:1px;background:var(--line);margin:0 0 37px}
.body{font-family:var(--serif);font-size:var(--reader-size);line-height:var(--reader-leading);overflow-wrap:break-word}
.body p{margin:0 0 1.32em}
.body h2,.body h3,.body h4{font-family:var(--serif);font-weight:400;font-size:26px;line-height:1.3;margin:45px 0 19px}
.body a{text-decoration:underline;text-underline-offset:3px}
.body a:hover{color:var(--accent-ink)}
.body blockquote{border-left:2px solid var(--accent);padding-left:18px;margin:30px 0;color:#625b54}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .body blockquote{color:var(--muted)}}
.body ul,.body ol{padding-left:1.4em;margin:0 0 1.32em}.body li{margin:.3em 0}
.body hr{border:0;height:1px;background:var(--line);margin:2.4em 0}
.body figure{margin:2em 0}
.body figure img{display:block;margin:0 auto;max-height:min(420px,45vh);width:auto;max-width:100%;border-radius:6px}
.body figcaption{font-family:var(--sans);font-size:12px;color:var(--muted);text-align:center;margin-top:.5em}
.body .video{position:relative;aspect-ratio:16/9;margin:1.4em 0 1.8em;border-radius:8px;overflow:hidden;background:#000}
.body .video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.body .callout{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:1em 1.2em;margin:1.8em 0}
.body .callout>:last-child{margin-bottom:0}
.body .pullquote{font-size:1.4em;line-height:1.35;text-align:center;margin:1.6em 0;color:var(--accent-ink)}
.body .part-h{color:var(--accent-ink)}
.body .excerpt-end{margin:2.4em 0 0;padding:1.1em 1.3em;border:1px dashed var(--accent);border-radius:10px;font-family:var(--sans);font-size:15px;line-height:1.6}
.body .excerpt-end .ee-k{font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 .5em}
.body .excerpt-end ul{margin:.4em 0 .8em}.body .excerpt-end p:last-child{margin:0}
.body .btn-link a{font-family:var(--sans);font-size:15px;font-weight:600}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:56px 0 0}
.pager a{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:6px;text-decoration:none}
.pager a:hover{border-color:var(--ink)}
.pager small{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pager b{display:block;font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.25;margin-top:4px}
.pager .next{text-align:right}
.pager-all{text-align:center;margin:18px 0 0}
.chapter-end{margin:60px 0 0;padding-top:34px;border-top:1px solid var(--line);text-align:center}
.chapter-end .ce-k{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 18px}
.chapter-end .textlink{display:inline-block;margin-top:18px}
.subscribe{margin:72px 0 28px;text-align:center}
.subscribe-rule{height:1px;background:var(--line);margin-bottom:40px}
.subscribe-eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--accent-ink);margin-bottom:16px}
.subscribe h2{font-family:var(--serif);font-weight:400;font-size:36px;letter-spacing:-.8px;margin:0 0 13px}
.subscribe p{font-size:14px;line-height:1.7;color:var(--muted);max-width:460px;margin:0 auto 25px}
.all-link{display:inline-block;margin-top:8px}
.toast{position:fixed;z-index:30;left:50%;bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#252422;color:#fff;padding:8px 16px;border-radius:6px;font-size:13px;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap}
.toast.shown{opacity:1}

/* ---------- lists (essays, series) ---------- */
.list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);max-width:820px}
.list li{border-bottom:1px solid var(--line)}
.list a,.list .row-in{display:flex;align-items:center;gap:18px;padding:18px 8px;text-decoration:none;color:var(--ink)}
.list a:hover{background:var(--stage)}
.list .th{flex:0 0 96px;width:96px;height:64px;object-fit:cover;border-radius:4px;display:block;background:var(--stage)}
.list .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.list .tx b{font-family:var(--serif);font-weight:400;font-size:22px;line-height:1.22}
.list .teaser{font-family:var(--serif);font-size:15px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.list .meta{font-size:12px;color:var(--muted)}
.list .no{flex:none;font-size:14px;font-weight:600;color:var(--muted)}
.list li.on{position:relative}.list li.on::before{content:"";position:absolute;left:-10px;top:18px;bottom:18px;width:3px;border-radius:2px;background:var(--accent);pointer-events:none}.list li.on a{background:transparent}

.list li.todo .row-in{opacity:.5}
.list li.todo b{font-style:italic}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.chips button{font:500 13px var(--sans);padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:none;color:var(--ink);cursor:pointer}
.chips button.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.series-block{margin:0 0 54px}
.series-block h2{font-family:var(--serif);font-weight:400;font-size:30px;margin:0 0 4px}
.series-block h2 a{text-decoration:none}
.series-block .intro{margin-bottom:18px}

/* ---------- author ---------- */
.author-hero{display:grid;grid-template-columns:140px 1fr;gap:28px;align-items:center;margin:40px 0 30px}
.author-hero img{width:140px;height:140px;border-radius:24px;display:block}
.author-books{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.author-books a{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:6px;text-decoration:none}
.author-books a:hover{border-color:var(--ink)}
.author-books img{width:56px;height:auto}
.author-books b{display:block;font-family:var(--serif);font-weight:400;font-size:18px;line-height:1.2}
.author-books em{display:block;font-size:12px;color:var(--muted);font-style:normal}
.author-books small{display:block;margin-top:4px;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink)}

/* ---------- responsive ---------- */
@media (max-width:760px){
  .container{padding:0 19px}
  .crumb{margin-top:25px}
  .page-heading{font-size:40px}
  .intro{font-size:14px}
  .section-label{padding-top:30px;margin-bottom:18px}
  .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 15px}
  .cover-stage{height:235px}.cover-stage img{max-width:86%}
  .book-status{margin-top:12px;font-size:9px}
  .book-card h2{font-size:18px;line-height:1.23}
  .book-card .subtitle{font-size:12px}
  .detail-layout{grid-template-columns:1fr;gap:25px}
  .detail-cover{position:static;width:158px;margin:0 auto}
  .detail-cover .caption{margin-top:10px}
  .detail-header h1{font-size:34px}
  .reader-head-in{min-height:56px;padding:8px 18px}
  .trail-title{font-size:15px}
  .paper{padding:40px 21px 30px}
  .paper-title{font-size:40px;letter-spacing:-1px;margin-bottom:18px}
  .paper-sub{font-size:19px;line-height:1.55;margin-bottom:24px}
  .body h2,.body h3,.body h4{font-size:24px}
  .subscribe h2{font-size:30px}
  .pager{grid-template-columns:1fr}.pager .next{text-align:left}
  .list a,.list .row-in{gap:12px;padding:14px 4px}
  .list .th{flex-basis:68px;width:68px;height:48px}
  .list .tx b{font-size:19px}
  .author-hero{grid-template-columns:84px 1fr;gap:16px}.author-hero img{width:84px;height:84px;border-radius:16px}
  .author-books{grid-template-columns:1fr}
}
@media (max-width:400px){.cover-stage{height:205px}.book-card h2{font-size:17px}.share span{display:none}.share{padding:8px}.trail-title{font-size:14px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* ===== v7 · Substack-like reading: Lora body, bold sans titles ===== */
:root{--serif:'Lora',Georgia,'Times New Roman',serif;--reader-size:19px;--reader-leading:1.68}
.body,.detail-block p,.list .teaser,.paper-sub em{font-family:var(--serif)}
.body{color:var(--ink);font-weight:400}
.paper-title,.page-heading,.detail-header h1,.book-card h2,.list .tx b,.series-block h2,.subscribe h2,.detail-block h2,.body h2,.body h3,.body h4,.pager b,.author-books b,.trail-title,.bt-tx span{
  font-family:var(--sans);font-weight:800;letter-spacing:-.02em}
.paper-title{font-size:clamp(32px,4.4vw,44px);line-height:1.12;letter-spacing:-.025em;margin:0 0 12px}
.page-heading{font-size:clamp(34px,4.6vw,48px);letter-spacing:-.03em}
.detail-header h1{font-size:clamp(30px,3.6vw,42px);letter-spacing:-.025em}
.book-card h2{font-size:21px;line-height:1.2}
.list .tx b{font-size:19px;line-height:1.25}
.detail-block h2,.series-block h2{font-size:22px}
.subscribe h2{font-size:28px}
.body h2,.body h3,.body h4{font-size:22px;line-height:1.3;margin:42px 0 14px}
.pager b{font-size:17px}
.author-books b{font-size:16px}
.trail-title{font-size:15px;font-weight:700}
.paper-sub{font-family:var(--sans);font-size:20px;line-height:1.45;color:var(--muted);font-weight:400}
.paper-sub strong{font-weight:700}
.paper-meta{margin-bottom:14px}
.share svg{width:18px;height:18px}
@media (max-width:760px){
  :root{--reader-size:18px}
  .paper-title{font-size:30px}
  .paper-sub{font-size:18px}
  .page-heading{font-size:34px}
  .detail-header h1{font-size:30px}
  .book-card h2{font-size:17px}
  .list .tx b{font-size:17px}
}

/* ===== free chapter as a book extract ===== */
body.extract{background:#e9e2d5}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body.extract{background:#0c0c11}}
.extract .reader-head{background:rgba(233,226,213,.94)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .extract .reader-head{background:rgba(12,12,17,.94)}}
.book-trail{min-width:0;display:flex;align-items:center;gap:12px;text-decoration:none}
.book-trail img{flex:none;width:22px;height:auto;filter:drop-shadow(1px 2px 2px rgba(0,0,0,.25))}
.bt-tx{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.bt-tx small{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-tx span{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk{padding:34px 16px 10px}
.paper.sheet{max-width:780px;background:#fffdf8;border-radius:4px;padding:64px 70px 56px;box-shadow:0 1px 2px rgba(40,30,15,.08),0 18px 48px -18px rgba(40,30,15,.35);animation:sheet-up .45s cubic-bezier(.16,1,.3,1)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .paper.sheet{background:#1b1a22}}
.sheet-ch{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 10px}
.sheet .paper-meta em{text-transform:none;letter-spacing:0;font-family:var(--serif);font-size:13px;font-weight:400}
@keyframes sheet-up{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@media (max-width:760px){.desk{padding:10px 8px 6px}.paper.sheet{padding:34px 20px 34px;border-radius:3px}}
@media (prefers-reduced-motion:reduce){.paper.sheet{animation:none}}

/* Compact reading feeds, inspired by the reader's reference. */
.collection-page .container{max-width:900px}
.collection-head{position:sticky;top:0;z-index:18;background:var(--bg);padding:18px 0 12px;border-bottom:1px solid var(--line)}
.collection-head .page-heading{margin:0 0 14px;font-size:clamp(32px,5vw,46px)}
.collection-head .chips{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:6px;margin:0;padding:0 0 5px}
.collection-head .chips button{flex:0 0 auto;white-space:nowrap;min-height:40px;border-radius:10px;padding:8px 12px}
.collection-head + .intro{margin-top:20px}
.collection-page .section-label{padding-top:22px;margin-bottom:0}
.collection-page .list{max-width:none;border-top:0}
.collection-page .list a{display:grid;grid-template-columns:minmax(0,1fr) 92px;column-gap:18px;row-gap:8px;padding:24px 0;align-items:start}
.collection-page .list .tx{display:contents}
.collection-page .list .feed-kind{grid-column:1/-1;grid-row:1;font:500 12px/1.4 var(--sans);color:var(--muted);padding-right:42px}
.collection-page .list .tx b{grid-column:1;grid-row:2;font-size:20px;line-height:1.3}
.collection-page .list .teaser{grid-column:1;grid-row:3;font:400 16px/1.5 var(--sans);-webkit-line-clamp:2}
.collection-page .list .th{grid-column:2;grid-row:2/4;width:92px;height:92px;object-fit:cover;border-radius:9px;margin-top:2px}
.collection-page .list a:not(:has(.th)){grid-template-columns:minmax(0,1fr)}
.collection-page .list .no{grid-column:1/-1;grid-row:1;justify-self:end;font-size:12px}
.collection-page .list .meta{grid-column:1/-1;grid-row:4;margin-top:6px;font-size:12px;color:var(--accent-ink)}
.reading-time,.list .meta{color:var(--accent-ink)}
.chapter-close{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;gap:5px;border:1px solid var(--line);border-radius:6px;text-decoration:none;font:600 14px var(--sans);color:var(--ink)}
.chapter-close:hover{background:var(--stage)}
.extract .book-trail{flex:1}
@media(max-width:760px){
 .collection-head{padding-top:14px}
 .collection-head .chips button{font-size:12px;padding:7px 10px}
 .collection-page .list a{grid-template-columns:minmax(0,1fr) 76px;column-gap:14px;padding:22px 0}
 .collection-page .list .th{width:76px;height:76px}
 .collection-page .list .tx b{font-size:18px}
 .collection-page .list .teaser{font-size:15px}
 .chapter-close{padding:5px 10px;font-size:22px}.chapter-close span{display:none}
 .extract .reader-head-in{gap:8px}
}

/* ===== One house style for essays and series (reference: The Limits of Foresight) ===== */
.body hr{border:0;height:1px;background:var(--line);margin:2.6em 0 2.2em}
.body h2{font-family:var(--sans);font-weight:700;font-size:1.25em;line-height:1.3;letter-spacing:-.01em;margin:0 0 .8em}
.body h3{font-family:var(--sans);font-weight:700;font-size:1.05em;line-height:1.35;letter-spacing:0;margin:1.8em 0 .6em}
.body p+h2{margin-top:2em}
@media (max-width:760px){.body h2{font-size:1.2em}}

/* series cover on series pages */
.series-cover{margin:6px 0 22px}.series-cover img{display:block;width:100%;height:auto;border-radius:8px}

/* Where to buy: store logos */
.avail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:2px 0 16px;text-decoration:none;color:var(--muted)}
.avail-l{font:500 13px var(--sans)}
.avail-logos{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.avail-logos img{width:28px;height:28px;border-radius:7px;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.06);transition:transform .15s}
.avail:hover .avail-logos img{transform:translateY(-1px)}
.avail-more{font:500 13px var(--sans);margin-left:4px}
.avail:hover .avail-more{color:var(--ink);text-decoration:underline}

/* Author page: signature hero (matches home) */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.author-hero.sig-hero{display:block;text-align:center;margin:28px auto 34px;max-width:620px}
.author-hero.sig-hero img{width:120px;height:120px;border-radius:50%;margin:0 auto 18px;box-shadow:0 0 0 7px var(--bg),0 0 0 8px var(--line)}
.sig-hero .sig-eyebrow{font:700 11px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#b95f31;margin:0 0 10px}
.sig-hero .intro{font-family:Lora,Georgia,serif;font-style:italic;font-size:19px;line-height:1.6;color:#3f3a33;margin:0}
@media(max-width:640px){.author-hero.sig-hero img{width:96px;height:96px}.sig-hero .intro{font-size:17px}}
.avail-logos a{display:block;border-radius:7px}
.avail-logos a:hover img{transform:translateY(-2px)}
a.avail-more{color:var(--muted);text-decoration:none}a.avail-more:hover{color:var(--ink);text-decoration:underline}

/* Bottom bar: navy, with a clear current section */
.bottom-nav{background:#16213d!important;border-top:0!important;box-shadow:0 -6px 24px rgba(10,14,30,.18)!important}
.bottom-nav .nav-item{color:#b9c0d4!important;font-weight:500}
.bottom-nav .nav-item svg{width:22px;height:22px;padding:4px 14px;box-sizing:content-box;border-radius:999px;transition:background .2s,color .2s}
.bottom-nav .nav-item:hover{color:#fff!important}
.bottom-nav .nav-item.active{color:#fff!important;font-weight:700}
.bottom-nav .nav-item.active svg{background:#f57939;color:#fff}
.bottom-nav .nav-item.active::before{display:none!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .bottom-nav{background:#16213d!important}}

/* Fiction kicker and lists inside essays */
.body p.kicker{font-family:var(--sans);font-size:.85em;letter-spacing:.02em;color:var(--muted);margin:0 0 1.6em}
.body ul{padding-left:1.2em;margin:0 0 1.4em}.body li{margin:.35em 0}
