/* ============ Tokens: light by default; dark under [data-mode="dark"] ============ */
:root {
  --bg: #f5f0e6; --bg-2: #eee6d6; --surface: #fbf8f2; --box: #efe6d4;
  --ink: #1c1813; --ink-2: #463d31; --muted: #6e6351; --rule: #dacdb3;
  --gold: #8b6829; --gold-2: #74561f; --gold-ink: #fdf8ee;
  --link: #7a5a1d; --focus: #8b6829;
  --shadow: 0 18px 44px rgba(70,48,12,.16);
  color-scheme: light;
  --serif: 'EB Garamond', Garamond, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --measure: 38rem;
  --gutter: clamp(16px, 4vw, 40px);
}
:root[data-mode="dark"] {
  --bg: #100e0b; --bg-2: #15120e; --surface: #1a1712; --box: #1d1a14;
  --ink: #ebe2cf; --ink-2: #c6baa2; --muted: #978b73; --rule: #3a3225;
  --gold: #d2aa62; --gold-2: #e8c67f; --gold-ink: #17120a;
  --link: #e2bf76; --focus: #f0cf8a;
  --shadow: 0 22px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}
/* hero bands: a warm parchment band in the light theme, near-black in the dark theme */
.dark-band { color: var(--ink); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--rule); }
:root[data-mode="dark"] .dark-band {
  --bg: #0b0a08; --bg-2: #13100c; --surface: #1a1712; --box: #1d1a14;
  --ink: #ebe2cf; --ink-2: #c6baa2; --muted: #978b73; --rule: #3a3225;
  --gold: #d2aa62; --gold-2: #e8c67f; --gold-ink: #17120a; --link: #e2bf76; --focus: #f0cf8a;
  color: var(--ink); background: var(--bg);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 400 1.1875rem/1.62 var(--serif); font-kerning: normal;
       font-variant-numeric: oldstyle-nums proportional-nums; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.sc, .label { font-variant: all-small-caps; letter-spacing: .14em; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); margin-inline: auto; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }

/* ============ Header ============ */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
             background: color-mix(in srgb, var(--bg) 88%, transparent);
             backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
             border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
.brand { color: var(--ink); text-decoration: none; font-variant: all-small-caps; letter-spacing: .16em; font-size: 1.05rem; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.7rem, 2.2vw, 1.6rem); }
.nav a { color: var(--ink-2); text-decoration: none; font-variant: all-small-caps; letter-spacing: .12em; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.theme-btn { font: inherit; background: none; border: 1px solid var(--rule); color: var(--ink-2);
             width: 2.1rem; height: 2.1rem; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 1rem; }
.theme-btn { display: inline-grid; place-items: center; }
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }
.theme-btn[data-state="light"] svg { transform: rotate(180deg); }
@media (max-width: 560px) { .nav .opt { display: none; } .brand { font-size: .95rem; letter-spacing: .12em; } }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 30; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 2px;
       font: 600 1.05rem/1.1 var(--serif); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn-ghost { border-color: color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============ Ornament ============ */
.ornament { display: block; width: min(240px, 60%); height: auto; margin: 0 auto; opacity: .95; }
:root:not([data-mode="dark"]) .ornament:not(.keep) { filter: brightness(.7) saturate(1.1); }

/* ============ Landing ============ */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero .kicker { color: var(--gold); margin: 0 0 1.1rem; font-size: 1.02rem; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); font-weight: 500; letter-spacing: -.012em; line-height: .98; }
.hero .sub { font-style: italic; color: var(--gold); font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: .55rem 0 1.5rem; }
.hero .lede { font-size: clamp(1.18rem, 1.8vw, 1.36rem); color: var(--ink-2); max-width: 31rem; margin: 0 0 1.9rem; }
.hero .fine { color: var(--muted); font-size: 1rem; margin: 1.1rem 0 0; }
.book { justify-self: center; width: min(360px, 100%); position: relative; }
.book img { border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow), 0 0 0 1px rgba(210,170,98,.18); }
.book::after { content: ""; position: absolute; inset: 6% 8% -4%; background: radial-gradient(closest-side, rgba(210,170,98,.16), transparent); z-index: -1; filter: blur(24px); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .book { width: min(250px, 70%); order: -1; }
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section .label { color: var(--gold); font-size: 1.02rem; margin: 0 0 .9rem; display: block; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -.005em; margin-bottom: 1.1rem; }
.section p.intro { color: var(--ink-2); font-size: 1.22rem; max-width: 36rem; margin: 0 0 2rem; }

/* the prayer */
.prayer-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 3px;
               padding: clamp(1.4rem, 4vw, 2.6rem); max-width: 46rem; }
.prayer { font-size: clamp(1.32rem, 2.5vw, 1.72rem); line-height: 1.95; margin: 0; }
.prayer .w { font: inherit; color: inherit; background: none; border: 0; padding: 0 .07em; margin: 0; border-radius: 3px; cursor: pointer; }
.prayer .w:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.prayer .w.no { text-decoration: line-through; text-decoration-color: var(--muted); opacity: .5; }
.prayer .w.yes { background: var(--gold); color: var(--gold-ink); }
.prayer-feedback { min-height: 3.2rem; margin-top: 1.4rem; font-size: 1.14rem; color: var(--ink-2); }
.prayer-feedback p { margin: 0 0 1rem; }
.prayer-hint { color: var(--muted); font-size: 1rem; margin: 1.1rem 0 0; }

/* promise */
.promise { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.promise blockquote { margin: 0; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.32; color: var(--ink); }
.promise blockquote cite { display: block; font-style: normal; color: var(--gold); font-size: 1rem; margin-top: 1.1rem; font-variant: all-small-caps; letter-spacing: .14em; }
.points { display: grid; gap: 1.5rem; }
.points h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .3rem; }
.points p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* questions */
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.q { background: var(--bg); padding: 1.5rem 1.6rem 1.4rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .9rem; min-height: 9.5rem; }
.q:hover { background: var(--bg-2); color: var(--ink); }
.q span.qq { font-style: italic; font-size: 1.42rem; line-height: 1.25; }
.q span.ql { color: var(--gold); font-variant: all-small-caps; letter-spacing: .12em; font-size: .98rem; margin-top: auto; }
@media (max-width: 640px) { .qgrid { grid-template-columns: 1fr; } }

/* contents */
.units { columns: 2; column-gap: 3.5rem; }
.unit { break-inside: avoid; margin-bottom: 2.6rem; }
.unit h3 { font-size: 1.45rem; margin: .2rem 0 .8rem; }
.unit .ul { color: var(--gold); font-variant: all-small-caps; letter-spacing: .14em; font-size: .98rem; }
.unit ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.unit li { border-bottom: 1px solid var(--rule); }
.unit li a { display: grid; grid-template-columns: 2.2rem 1fr; gap: .4rem; padding: .5rem 0; color: var(--ink); text-decoration: none; }
.unit li a:hover { color: var(--gold); }
.unit li .n { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; font-size: 1rem; padding-top: .12rem; }
.unit p.ui { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 1rem; font-style: italic; }
@media (max-width: 760px) { .units { columns: 1; } }

/* downloads */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.dl .card { border: 1px solid var(--rule); background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; border-radius: 3px; }
.dl .fmt { color: var(--gold); font-variant: all-small-caps; letter-spacing: .14em; font-size: 1rem; }
.dl .card h3 { font-size: 1.5rem; }
.dl .card p { margin: 0 0 .6rem; color: var(--ink-2); font-size: 1.06rem; }
.dl .card .btn { margin-top: auto; align-self: flex-start; }
.dl .meta { color: var(--muted); font-size: .98rem; font-variant-numeric: lining-nums; }
@media (max-width: 820px) { .dl { grid-template-columns: 1fr; } }

.faq-teaser { max-width: 40rem; }
.faq-teaser p { color: var(--ink-2); }

/* ============ Reading pages ============ */
.lesson { padding-block: clamp(2.2rem, 6vw, 4.5rem) 3rem; }
.lesson .kicker { color: var(--gold); font-size: 1.02rem; margin: 0 0 1rem; }
.lesson .kicker a { color: inherit; text-decoration: none; }
.lesson h1 { font-size: clamp(2.3rem, 5.6vw, 3.5rem); letter-spacing: -.01em; line-height: 1.04; }
.lesson .deck { font-style: italic; color: var(--ink-2); font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.35; margin: 1.1rem 0 1.6rem; }
.lesson .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; color: var(--muted); font-size: 1rem;
                padding-block: .8rem; border-block: 1px solid var(--rule); margin-bottom: 2.2rem; font-variant-numeric: lining-nums; }
.lesson .meta .grow { flex: 1; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-variant: all-small-caps; letter-spacing: .12em; font-size: 1.02rem; }
.linkbtn:hover { color: var(--gold-2); }

.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h3.sub { font-size: 1.28rem; font-weight: 600; margin: 2.1rem 0 .7rem; line-height: 1.25; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0 0 .4em; }
.prose li::marker { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.02rem; margin: 1.4rem 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .5rem .5rem; border-bottom: 1px solid var(--rule); }
.prose th { font-variant: all-small-caps; letter-spacing: .1em; color: var(--gold); font-weight: 500; }
.table-scroll { overflow-x: auto; }

blockquote.box { margin: 2.1rem 0; padding: 1.15rem 1.35rem 1.2rem; background: var(--box);
                 border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 2px; font-size: 1.07rem; line-height: 1.55; }
blockquote.box h3 { font-variant: all-small-caps; letter-spacing: .14em; font-size: 1.02rem; color: var(--gold); font-weight: 600; margin: 0 0 .65rem; }
blockquote.box p { margin: 0 0 .7em; }
blockquote.box p:last-child, blockquote.box ul:last-child, blockquote.box ol:last-child { margin-bottom: 0; }
blockquote.box ul, blockquote.box ol { margin: 0 0 .5em; padding-left: 1.15em; }

details.deep { margin: 1.1rem 0 1.9rem; border-block: 1px solid var(--rule); }
details.deep > summary { list-style: none; cursor: pointer; display: flex; gap: .8rem; align-items: baseline; padding: .75rem 0; color: var(--ink-2); }
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary .dk { color: var(--gold); font-variant: all-small-caps; letter-spacing: .14em; font-size: .98rem; white-space: nowrap; }
details.deep > summary .dt { font-style: italic; font-size: 1.1rem; line-height: 1.35; }
details.deep > summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.45rem; line-height: 1; transition: transform .18s ease; }
details.deep[open] > summary::after { transform: rotate(45deg); }
details.deep > summary:hover .dt { color: var(--ink); }
.deep-body { padding: .2rem 0 1.1rem 1.15rem; margin-left: .15rem; border-left: 1px solid color-mix(in srgb, var(--gold) 45%, var(--rule)); font-size: 1.1rem; }
.deep-body p { margin: 0 0 1em; }

a.v { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: color-mix(in srgb, var(--gold) 80%, transparent); text-underline-offset: .2em; }
a.v:hover { color: var(--link); text-decoration-style: solid; }
sup.nref { line-height: 0; }
sup.nref a { color: var(--gold); text-decoration: none; font-size: .7em; font-variant-numeric: lining-nums; padding: 0 .08em; }

.sources { margin-top: 3.2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.1rem; font-variant: all-small-caps; letter-spacing: .14em; color: var(--gold); font-weight: 600; margin-bottom: .4rem; }
.sources p.why { color: var(--muted); font-size: 1rem; margin: 0 0 1.1rem; font-style: italic; }
.sources ol { padding-left: 1.6em; margin: 0; font-size: 1.02rem; color: var(--ink-2); line-height: 1.5; }
.sources li { margin: 0 0 .7rem; font-variant-numeric: lining-nums; }
.sources li:target { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.sources .back { text-decoration: none; margin-left: .3rem; font-size: .9rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 3rem; }
.pager a { background: var(--bg); padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .25rem; }
.pager a:hover { background: var(--bg-2); }
.pager a.next { text-align: right; }
.pager small { color: var(--gold); font-variant: all-small-caps; letter-spacing: .12em; font-size: .95rem; }
.pager span { font-size: 1.12rem; line-height: 1.25; }
.pager .empty { background: var(--bg); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }

.cta { margin-top: 2.2rem; padding: 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; }
.cta p { margin: 0 0 1rem; color: var(--ink-2); }
.cta h2 { font-size: 1.5rem; margin-bottom: .5rem; }

.page { padding-block: clamp(2.2rem, 6vw, 4.5rem) 4rem; }
.page h1 { font-size: clamp(2.3rem, 5.6vw, 3.4rem); margin-bottom: 1.2rem; }
.page .lede { font-size: 1.28rem; color: var(--ink-2); margin: 0 0 2.2rem; }
.qa { border-top: 1px solid var(--rule); padding-block: 1.4rem .6rem; }
.qa h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.qa p { margin: 0 0 1em; }

.toast { position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
         background: var(--gold); color: var(--gold-ink); padding: .6rem 1.1rem; border-radius: 2px; opacity: 0; pointer-events: none;
         transition: opacity .2s ease, transform .2s ease; font-size: 1rem; z-index: 40; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Footer ============ */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.6rem calc(2.6rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 1rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-left: auto; }
.site-foot a { color: var(--ink-2); text-decoration: none; font-variant: all-small-caps; letter-spacing: .12em; }
.site-foot a:hover { color: var(--gold); }

.page .prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2.8rem 0 1rem; }
.page .prose h2:first-child { margin-top: 0; }
.prayer .wp { white-space: nowrap; }

/* ============ Upgrades: search icon, progress marks, timeline, search ============ */
.icon-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--rule);
            border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover, .icon-btn[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* reading progress marks on the contents lists */
.unit li a { position: relative; }
.unit li.done a::after, .unit li.started a::after {
  position: absolute; right: 0; top: .62rem; font-variant: all-small-caps; letter-spacing: .12em; font-size: .9rem; }
.unit li.done a::after { content: 'read'; color: var(--gold); }
.unit li.started a::after { content: 'started'; color: var(--muted); }
.unit li.done a, .unit li.started a { padding-right: 4.2rem; }
.unit li.last a .n { color: var(--gold); }
.my-progress { color: var(--ink-2); font-size: 1.05rem; margin: -1rem 0 2rem; }
.my-progress .linkbtn { margin-left: .4rem; }
.hero .continue-note { color: var(--ink-2); font-size: 1.02rem; margin: .8rem 0 0; }
.hero .continue-note b { color: var(--ink); font-weight: 500; }
.tl-teaser { margin: 1.6rem 0 0; font-size: 1.12rem; }

/* timeline: the strip */
.timeline-page h1 { max-width: 20ch; }
.strip { --dot: 13px; --gap: 7px; margin: 2.6rem 0 0; padding: 0; }
.strip-field { position: relative; height: calc(var(--rows) * (var(--dot) + var(--gap)) + 3.4rem);
  border-bottom: 1px solid var(--ink-2); }
.strip .dot { position: absolute; bottom: calc(.5rem + var(--row) * (var(--dot) + var(--gap)));
  width: var(--dot); height: var(--dot); margin-left: calc(var(--dot) / -2); padding: 0;
  border-radius: 50%; border: 1.5px solid var(--gold); background: color-mix(in srgb, var(--gold) 35%, var(--bg));
  cursor: pointer; transition: transform .12s, background .12s; }
.strip .dot:hover, .strip .dot.on { background: var(--gold); transform: scale(1.35); }
.strip .dot::before { content: ''; position: absolute; inset: -8px; } /* bigger tap target */
.taught { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--gold); }
.taught span { position: absolute; left: .7rem; top: 0; white-space: nowrap; color: var(--gold);
  font-variant: all-small-caps; letter-spacing: .12em; font-size: .92rem; line-height: 1.15; }
.axis { position: relative; height: 1.8rem; }
.tick { position: absolute; top: 0; height: 6px; border-left: 1px solid var(--ink-2); }
.tick span { position: absolute; top: 8px; transform: translateX(-50%); color: var(--muted); font-size: .9rem;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tick:first-child span { transform: none; left: -1px; }
.tick:last-child span { transform: translateX(-100%); }
.strip-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; min-height: 4.2rem;
  margin-top: 1rem; padding: .9rem 1.1rem; background: var(--box); border-left: 3px solid var(--gold); }
.cap-when { color: var(--gold); font-variant-numeric: lining-nums; font-size: 1.05rem; }
.cap-what { font-size: 1.3rem; line-height: 1.3; }
.strip-note { color: var(--muted); font-size: 1rem; margin: 1rem 0 0; max-width: none; }

/* timeline: the long view */
.tl-long { margin-top: 4.5rem; position: relative; }
.tl-h { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .8rem; }
.tl-intro { color: var(--ink-2); margin: 0 0 1.4rem; }
.era-nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: 1rem; }
.era-nav a { font-variant: all-small-caps; letter-spacing: .1em; font-size: 1rem; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--rule); }
.era-nav a:hover { color: var(--gold); border-color: var(--gold); }
.year-pill { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h, 3.7rem)); z-index: 5;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: var(--bg); border-bottom: 1px solid var(--rule); padding: .55rem 0 .45rem; margin-top: 1.2rem; }
.year-pill .pe { color: var(--muted); font-variant: all-small-caps; letter-spacing: .12em; font-size: 1rem; }
.year-pill .py { color: var(--gold); font-size: 1.25rem; font-variant-numeric: lining-nums; text-align: right; }
.era { scroll-margin-top: 5rem; margin-top: 2.6rem; }
.era h2 { font-size: 1.5rem; color: var(--gold); margin-bottom: .6rem; }
.era ol { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 1px solid var(--rule); }
.ev { position: relative; display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .55rem 0; }
.ev::before { content: ''; position: absolute; left: calc(-1.4rem - 4px); top: 1.05rem; width: 7px; height: 7px;
  border-radius: 50%; background: var(--rule); transition: background .15s, transform .15s; }
.ev.now::before { background: var(--gold); transform: scale(1.5); }
.ev .when { color: var(--gold); font-variant-numeric: lining-nums; font-size: 1.02rem; padding-top: .1rem; }
.ev .what { color: var(--ink); }
@media (max-width: 560px) { .ev { grid-template-columns: 1fr; gap: 0; } .taught span { font-size: .82rem; } .strip { --dot: 11px; --gap: 5px; } }

/* search */
.search-form { display: flex; gap: .6rem; margin: .4rem 0 1rem; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1.2rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 2px; padding: .7rem .9rem; }
.search-form input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: 1rem; }
.chip { font: inherit; font-size: 1rem; background: none; color: var(--ink-2); border: 1px solid var(--rule);
  border-radius: 999px; padding: .15rem .75rem; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.search-status { color: var(--muted); margin: 1.4rem 0 .6rem; font-size: 1.02rem; }
.result { border-top: 1px solid var(--rule); padding: 1.3rem 0 .6rem; }
.result h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.result h2 a { color: var(--ink); text-decoration: none; }
.result h2 a:hover { color: var(--gold); }
.result h2 small { display: block; color: var(--muted); font-size: .95rem; font-variant: all-small-caps; letter-spacing: .12em; margin-bottom: .15rem; }
.snip { display: block; color: var(--ink-2); text-decoration: none; font-size: 1.05rem; padding: .4rem 0 .4rem .9rem;
  border-left: 2px solid var(--rule); margin: .5rem 0; }
.snip:hover { border-color: var(--gold); color: var(--ink); }
.snip .tag { display: block; color: var(--muted); font-variant: all-small-caps; letter-spacing: .1em; font-size: .9rem; }
mark { background: color-mix(in srgb, var(--gold) 30%, transparent); color: inherit; padding: 0 .08em; border-radius: 2px; }
mark.cur { background: var(--gold); color: var(--gold-ink); }
.hitbar { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: .8rem; background: var(--surface); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: var(--shadow); padding: .45rem .6rem .45rem 1rem; font-size: 1rem; white-space: nowrap; max-width: calc(100vw - 32px); }
.hitbar button { font: inherit; background: none; border: 1px solid var(--rule); color: var(--ink-2); padding: .15rem .7rem; cursor: pointer; }
.hitbar button:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 440px) { .nav { gap: .75rem; } .nav a[href="/#download"] { display: none; } .icon-btn, .theme-btn { width: 1.9rem; height: 1.9rem; } }
@media (max-width: 350px) { .brand { font-size: .86rem; letter-spacing: .06em; } .nav { gap: .55rem; } }

/* timeline context */
.ev .body { min-width: 0; }
.ev .ctx { color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; margin: .35rem 0 0; }
.lls { margin: .35rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.ll { font-size: .98rem; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent); }
.ll:hover { border-color: var(--gold-2); }
.era ol .ev { padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.era ol .ev:last-child { border-bottom: 0; }
.ev::before { top: 1.4rem; }
.strip-cap { display: block; min-height: 9.5rem; }
.cap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.cap-ctx { color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; margin: .5rem 0 .3rem; max-width: 44rem; }
.cap-links { margin: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }

/* listen */
.listen-btn { display: inline-flex; align-items: center; gap: .3rem; }
.listen-btn[hidden] { display: none; }
.listen-btn.on { color: var(--gold-2); }
.speaking { background: color-mix(in srgb, var(--gold) 14%, transparent); box-shadow: -.6rem 0 0 color-mix(in srgb, var(--gold) 14%, transparent), .6rem 0 0 color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 2px; transition: background .2s; }
.player { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: .45rem; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: .45rem .55rem; font-size: 1rem; }
.player button, .player select { font: inherit; font-size: 1rem; background: none; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px;
  padding: .2rem .6rem; cursor: pointer; min-height: 2.1rem; }
.player button:hover { border-color: var(--gold); color: var(--gold); }
.player .p-main { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); min-width: 5.4rem; }
.player .p-main:hover { background: var(--gold-2); color: var(--gold-ink); }
.player .p-where { color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; padding-inline: .2rem; }
.player select { max-width: 11rem; color: var(--ink); background: var(--bg); }
.listening .hitbar { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
.listening .site-foot { padding-bottom: 5rem; }
@media (max-width: 560px) { .player { left: 16px; right: 16px; transform: none; max-width: none; flex-wrap: wrap; justify-content: center; }
  .player select { max-width: 100%; flex: 1 1 100%; order: 9; } }
.strip .dot.on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }

.fine-print { color: var(--muted); font-size: 1rem; margin: 1.1rem 0 0; }

/* ===== The Lessons of Jesus: series additions (Oct 2026) ===== */
/* hero: the three books displayed as a set, Book One in front (flat covers, no tilt) */
.shelf { position: relative; justify-self: center; width: min(520px, 100%); aspect-ratio: 52 / 50; }
.shelf::before { content: ""; position: absolute; inset: 14% 4% -4%; background: radial-gradient(ellipse at 50% 62%, rgba(255,250,236,.75), rgba(255,250,236,.25) 45%, transparent 70%); filter: blur(10px); pointer-events: none; }
:root[data-mode="dark"] .shelf::before { background: radial-gradient(ellipse at 50% 62%, rgba(210,170,98,.20), rgba(210,170,98,.06) 45%, transparent 70%); }
.shelf::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -1.5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(150,110,40,.45), transparent); }
:root[data-mode="dark"] .shelf::after { background: linear-gradient(90deg, transparent, rgba(210,170,98,.55), transparent); }
.shelf a { position: absolute; bottom: 0; display: block; width: 36%; text-decoration: none; transition: transform .25s ease, filter .25s ease; }
.shelf a.b1 { left: 50%; width: 42%; transform: translateX(-50%); z-index: 3; }
.shelf a.b2 { left: 0; top: 0; bottom: auto; z-index: 2; }
.shelf a.b3 { right: 0; top: 0; bottom: auto; z-index: 1; }
.shelf img { display: block; width: 100%; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 22px 38px rgba(70,48,14,.30), 0 6px 12px rgba(70,48,14,.22), 0 0 0 1px rgba(150,110,40,.25); transition: filter .25s ease; }
:root[data-mode="dark"] .shelf img { box-shadow: 0 26px 48px rgba(0,0,0,.62), 0 8px 16px rgba(0,0,0,.4), 0 0 0 1px rgba(210,170,98,.22); }
.shelf a.b2 img, .shelf a.b3 img { filter: brightness(.9) saturate(.92); }
:root[data-mode="dark"] .shelf a.b2 img, :root[data-mode="dark"] .shelf a.b3 img { filter: brightness(.74) saturate(.9); }
.shelf a:hover, .shelf a:focus-visible { z-index: 4; }
.shelf a.b1:hover, .shelf a.b1:focus-visible { transform: translateX(-50%) translateY(-6px); }
.shelf a.b2:hover, .shelf a.b2:focus-visible, .shelf a.b3:hover, .shelf a.b3:focus-visible { transform: translateY(-6px); }
.shelf a:hover img, .shelf a:focus-visible img { filter: none; }
.shelf .tag { position: absolute; left: 0; right: 0; top: calc(100% + .9rem); text-align: center; color: var(--gold); font-variant: all-small-caps; letter-spacing: .14em; font-size: .92rem; opacity: 0; transition: opacity .2s ease; white-space: nowrap; }
.shelf a:hover .tag, .shelf a:focus-visible .tag { opacity: 1; }
@media (max-width: 820px) { .shelf { order: -1; width: min(340px, 80%); margin-bottom: 1.4rem; } .shelf .tag { display: none; } }
.books { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.bookcard { border: 1px solid var(--rule); background: var(--surface); border-radius: 3px; padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.bookcard .top { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: start; }
.bookcard .top img { width: 100%; height: auto; display: block; border-radius: 2px 3px 3px 2px; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.bookcard .no { color: var(--gold); font-variant: all-small-caps; letter-spacing: .14em; font-size: .95rem; }
.bookcard h3 { font-size: 1.42rem; line-height: 1.12; margin: .15rem 0 .35rem; }
.bookcard h3 a { color: var(--ink); text-decoration: none; }
.bookcard h3 a:hover { color: var(--gold); }
.bookcard .tag { font-style: italic; color: var(--ink-2); font-size: 1.02rem; line-height: 1.3; margin: 0; }
.bookcard > p { margin: 0; color: var(--ink-2); font-size: 1.06rem; }
.bookcard .btn-row { margin-top: auto; }
@media (max-width: 900px) { .books { grid-template-columns: 1fr; } }
.coming { color: var(--muted); font-style: italic; margin: 1.6rem 0 0; }
.shelf-tabs { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; border-bottom: 1px solid var(--rule); margin: 0 0 2rem; padding-bottom: .65rem; }
.shelf-tabs a { color: var(--ink-2); text-decoration: none; font-variant: all-small-caps; letter-spacing: .12em; font-size: 1.04rem; }
.shelf-tabs a:hover, .shelf-tabs a[aria-current="page"] { color: var(--gold); }
.dl .card .btn-row { margin-top: auto; }
.dl .card .btn-row .btn { margin-top: 0; }
.cta .more { color: var(--muted); font-size: 1rem; margin: 1rem 0 0; }
.book-hero .sub { max-width: 30rem; }
.chapter .prose blockquote.box ul { padding-left: 1.15em; }
.book-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.02; }

/* ===== Tighter rhythm (Oct 20): less air between sections, boxes and headings ===== */
.hero { padding-block: clamp(2rem, 5vw, 4.25rem) clamp(2.4rem, 5.5vw, 4.5rem); }
.section { padding-block: clamp(2.4rem, 5vw, 4.1rem); }
.section .label { margin-bottom: .6rem; }
.section h2 { margin-bottom: .8rem; }
.section p.intro { margin-bottom: 1.5rem; }
.lesson, .page { padding-top: clamp(1.6rem, 4vw, 3.1rem); }
.lesson .deck { margin: .9rem 0 1.3rem; }
.lesson .meta { margin-bottom: 1.7rem; }
blockquote.box { margin: 1.6rem 0; }
blockquote.box + blockquote.box { margin-top: 1.1rem; }
.page .lede { margin-bottom: 1.7rem; }
.page .prose h2 { margin-top: 2.3rem; }
.pager { margin-top: 2.4rem; }
.site-foot { padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.tl-long { margin-top: 3.4rem; }

/* ===== timeline strip, before and after him (Oct 20) ===== */
.strip-key { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 2.2rem 0 0; color: var(--ink-2); font-size: 1rem; }
.strip-key span { display: inline-flex; align-items: center; gap: .5rem; }
.strip-key .k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--gold); background: color-mix(in srgb, var(--gold) 35%, var(--bg)); }
.strip-key .k.past { border-color: var(--ink-2); background: var(--bg); }
.strip2 { margin-top: 1rem; }
.strip2 .before-zone { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 4%, transparent)); pointer-events: none; }
.strip .dot.past { border-color: var(--ink-2); background: var(--bg); }
.strip .dot.past:hover, .strip .dot.past.on { background: var(--ink-2); }
.strip .dot.past.on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-2) 22%, transparent); }
.strip2 .tick:first-child span { transform: translateX(-50%); left: auto; }
.strip2 .taught { z-index: 1; }
@media (max-width: 560px) { .strip2 .tick.minor span { display: none; } .strip-key { font-size: .95rem; } }

/* essays (added Oct 2026) */
.essay-next,.essay-books{margin:3.2rem 0 0;padding-top:2rem;border-top:1px solid var(--line,rgba(127,127,127,.25))}
.essay-next h2,.essay-books h2{font-size:1.7rem;margin:.3rem 0 .6rem}
.essay-next .qgrid{margin-top:1.2rem}
.essay-shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.2rem}
.essay-shelf a{display:flex;flex-direction:column;gap:.35rem;text-decoration:none;color:inherit}
.essay-shelf img{width:100%;height:auto;border-radius:2px 4px 4px 2px;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.essay-shelf .no{color:var(--gold);font-variant:all-small-caps;letter-spacing:.12em;margin-top:.4rem}
.essay-shelf b{font-weight:500;line-height:1.2}
.essay-shelf small{color:var(--muted);line-height:1.35}
.essay-list{list-style:none;padding:0;margin:2rem 0}
.essay-list a{display:flex;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line,rgba(127,127,127,.25));text-decoration:none;color:inherit}
.essay-list .n{color:var(--gold);font-variant:all-small-caps;letter-spacing:.1em;min-width:3.2rem}
.essay-list small{display:block;color:var(--muted);font-style:italic;margin-top:.2rem}
.site-head .nav a{white-space:nowrap}
@media (max-width:900px){.site-head .nav a[href="/about/"]{display:none}}
@media (max-width:720px){.site-head .nav a[href="/essays/"],.site-head .nav a[href="/timeline/"]{display:none}}
@media (max-width:460px){.site-head .nav a[href="/#download"]{display:none}}
@media (max-width:360px){.site-head .nav{gap:.45rem}.site-head .nav a{letter-spacing:.06em}.site-head .brand{letter-spacing:.08em}}
@media (max-width:350px){.site-head .wrap{gap:8px}.site-head .brand{font-size:.8em;letter-spacing:.05em}.site-head .nav a{font-size:.92rem}}
.for-line{margin:-.6rem 0 1.8rem;padding:.7rem 1rem;background:var(--box);border-left:3px solid var(--gold);color:var(--ink-2);font-size:1.02rem;line-height:1.5}
.for-tag{color:var(--gold);font-variant:all-small-caps;letter-spacing:.13em;font-size:1rem;font-weight:600}
.for-line .for-tag{margin-right:.5rem}
.essays-lib .measure{max-width:none;margin-inline:0}.essays-lib .deck,.essays-lib .fine{max-width:40rem}.essays-lib h1{margin-bottom:.8rem}
.door-list{list-style:none;padding:0;margin:2rem 0 1.4rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));gap:1rem}
.door-list a{display:flex;flex-direction:column;gap:.35rem;height:100%;padding:1.2rem 1.3rem 1.1rem;background:var(--surface,var(--box));border:1px solid var(--rule);border-top:3px solid var(--gold);text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.door-list a:hover{border-color:var(--gold);transform:translateY(-2px)}
.door-list b{font-weight:500;font-size:1.5rem;line-height:1.15}
.door-list i{color:var(--ink-2);font-size:1.08rem;line-height:1.35}
.door-list .aud{color:var(--muted);font-size:.98rem;line-height:1.4}
.door-list .go{margin-top:auto;padding-top:.5rem;color:var(--gold);font-size:1rem}
.doors{display:flex;flex-wrap:wrap;gap:.7rem}
.doors a{display:flex;flex-direction:column;gap:.1rem;padding:.75rem 1.05rem;border:1px solid var(--rule);background:var(--surface,var(--box));text-decoration:none;color:inherit;min-width:12rem;transition:border-color .15s}
.doors a:hover{border-color:var(--gold)}
.doors b{font-weight:500;font-size:1.15rem;line-height:1.2}
.doors a.all{border-style:dashed}
@media (max-width:560px){.doors{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.doors a{min-width:0;padding:.6rem .75rem}.doors b{font-size:1.02rem}.doors .for-tag{font-size:.9rem;letter-spacing:.08em}}
@media (max-width:640px){.essay-shelf{grid-template-columns:1fr}.essay-shelf a{display:grid;grid-template-columns:84px 1fr;column-gap:.9rem;align-items:start}
.essay-shelf img{grid-row:1/4}.essay-shelf .no{margin-top:0}}
