/* Larry Arrowood — the reading room after dark: walnut, lamplight, vellum, oxblood and brass.
   Type: Libre Caslon Display for names and titles, Libre Caslon Text for headings, Literata to read,
   Jost (a Futura cousin) for small labels, the old book-jacket pairing. */

@font-face { font-family: 'Libre Caslon Display'; src: url(../fonts/caslon-display.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/caslon-text.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/caslon-text-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/caslon-text-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(../fonts/literata.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(../fonts/literata-italic.woff2) format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(../fonts/jost.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --walnut-950: #110c09;
  --walnut-900: #17110d;
  --walnut-800: #1f1712;
  --walnut-700: #2b2019;
  --walnut-600: #3b2c21;
  --oxblood: #6e2420;
  --oxblood-900: #4a1714;
  --brass: #c9a264;
  --brass-light: #e2c995;
  --brass-deep: #7a5a2e;
  --vellum: #f2eadb;
  --vellum-2: #e7dbc4;
  --ink: #221a13;
  --ink-2: #4a3d31;
  --ink-3: #6a5a49;
  --cream: #eee3cd;
  --cream-2: #c3b49c;
  --moss: #2f3826;
  --moss-2: #3c4731;
  --sage: #a9b58b;

  --f-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --f-head: 'Libre Caslon Text', Georgia, serif;
  --f-body: 'Literata', Georgia, 'Times New Roman', serif;
  --f-label: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Surface colours; sections redefine these. */
  --bg: var(--walnut-900);
  --fg: var(--cream);
  --fg-2: var(--cream-2);
  --accent: var(--brass);
  --rule: rgba(201, 162, 100, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.1875rem/1.7 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--walnut-900); }
@view-transition { navigation: auto; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--brass); color: var(--walnut-900); font: 500 .9rem var(--f-label); }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Light sections: vellum with a little paper grain. */
.paper {
  --bg: var(--vellum);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--oxblood);
  --rule: rgba(34, 26, 19, .18);
  background: var(--vellum) url(../img/tex/grain.png) repeat;
  background-size: 256px;
  color: var(--fg);
}

/* ---------- small type ---------- */
.label {
  margin: 0 0 1.4rem;
  font: 500 .82rem/1.3 var(--f-label);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
}
.label--brass { color: var(--brass); }
.label span { opacity: .6; padding-inline: .2em; }
.tag {
  display: inline-block; vertical-align: .3em; margin-left: .35em;
  padding: .25em .55em .2em; border: 1px solid currentColor;
  font: 500 .66rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--oxblood);
}
.tag--dark { color: var(--brass); }

.ornament { display: flex; align-items: center; gap: .9rem; color: var(--accent); width: min(100%, 15rem); }
.ornament i { flex: 1; height: 1px; background: currentColor; opacity: .55; transform-origin: center; }
.ornament svg { width: 2.4rem; fill: currentColor; flex: none; }

.link-quiet {
  display: inline-flex; align-items: center; gap: .55em;
  font: 500 .86rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); padding: .9em 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-quiet:hover { background-size: 100% 1px; }
.link-quiet .icon { width: 1.1em; transition: transform .4s var(--ease); }
.link-quiet:hover .icon { transform: translateX(.3em); }

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; flex: none; }
.icon--facebook { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brass); --btn-fg: var(--walnut-900); --btn-line: var(--brass);
  --btn-hover-bg: var(--cream); --btn-hover-fg: var(--walnut-900);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .9em;
  padding: 1.05em 1.55em 1em;
  border: 1px solid var(--btn-line); border-radius: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 .84rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease);
}
.btn:hover { color: var(--btn-hover-fg); border-color: var(--btn-hover-bg); }
.btn:hover::before { transform: scaleY(1); }
.btn__label { position: relative; display: block; overflow: hidden; }
.btn__label > span { display: block; transition: transform .55s var(--ease); }
.btn__label::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  transform: translateY(110%); transition: transform .55s var(--ease);
}
.btn:hover .btn__label > span { transform: translateY(-110%); }
.btn:hover .btn__label::after { transform: translateY(0); }
.btn .icon { transition: transform .55s var(--ease); }
.btn:hover .icon { transform: translateX(.25em); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--fg); --btn-line: color-mix(in srgb, var(--fg) 45%, transparent); --btn-hover-bg: var(--brass); }
.paper .btn--solid { --btn-bg: var(--ink); --btn-fg: var(--vellum); --btn-line: var(--ink); --btn-hover-bg: var(--oxblood); --btn-hover-fg: var(--vellum); }
.paper .btn--line { --btn-hover-bg: var(--ink); --btn-hover-fg: var(--vellum); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--cream);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(23, 17, 13, .94); box-shadow: 0 1px 0 rgba(201, 162, 100, .18); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-scrolled { background: rgba(23, 17, 13, .9); } }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.wordmark__seal { width: 2.4rem; height: 2.4rem; color: var(--brass); transition: transform .8s var(--ease); }
.wordmark:hover .wordmark__seal { transform: rotate(-12deg); }
.wordmark__name { font: 400 1.5rem/1 var(--f-display); letter-spacing: .01em; }
.site-nav ul { display: flex; gap: 2.2rem; }
.site-nav a {
  position: relative; display: block; padding: .6rem 0;
  font: 500 .86rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__ext::before { content: '↗'; position: absolute; right: -1em; top: .45rem; font-size: .8em; opacity: .6; }
.site-header__letters {
  padding: .7rem 1.1rem .65rem; border: 1px solid rgba(201, 162, 100, .55);
  font: 500 .8rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--brass);
  transition: background .4s, color .4s;
}
.site-header__letters:hover { background: var(--brass); color: var(--walnut-900); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--cream); }
.menu-toggle .icon { width: 1.8rem; height: 1.8rem; }
.menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  background: var(--walnut-950); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu ol { counter-reset: m; }
.menu li { counter-increment: m; border-bottom: 1px solid var(--rule); }
.menu ol a { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; font: 400 2.4rem/1.1 var(--f-display); text-decoration: none; }
.menu ol a::before { content: counter(m, upper-roman); font: 500 .8rem var(--f-label); letter-spacing: .15em; color: var(--brass); width: 2rem; }
.menu__foot { font-size: 1rem; line-height: 1.6; color: var(--cream-2); }
.menu__foot a { color: var(--cream); }

/* ---------- hero: the lamplit study ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background:
    radial-gradient(60% 70% at 34% 42%, rgba(120, 78, 38, .45), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, var(--walnut-950), transparent 60%),
    var(--walnut-900);
}
.hero__lamp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero.is-lit .hero__lamp { opacity: 1; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero__label { margin-bottom: 2rem; }
.hero__title { font-family: var(--f-display); color: var(--cream); line-height: .86; margin: 0 0 2.2rem; }
.hero__title .line { display: block; }
.hero__title .line:first-child {
  font: italic 400 clamp(3.4rem, 8.6vw, 8.2rem)/.92 var(--f-head); color: var(--brass-light);
  margin: 0 0 .04em .04em;
}
.hero__title .line:last-child { font-size: clamp(4.2rem, 11.4vw, 10.8rem); letter-spacing: -.012em; margin-left: -.04em; }
.hero__ornament { margin: 0 0 2rem; --accent: var(--brass); }
.hero__lede { max-width: 33rem; font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.65; color: var(--cream-2); margin-bottom: 2.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }

.hero__new { justify-self: center; }
.hero__new-link { display: grid; justify-items: center; text-decoration: none; gap: 2.6rem; }
.hero__new-meta { display: grid; justify-items: center; text-align: center; gap: .55rem; }
.hero__new-meta .label { margin: 0; }
.hero__new-title { font: 400 2.2rem/1 var(--f-display); color: var(--cream); }
.hero__new-tag { font: italic 400 1.08rem/1.5 var(--f-head); color: var(--cream-2); max-width: 22rem; }
.hero__new-link:hover .hero__new-title { color: var(--brass-light); }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: grid; justify-items: center; gap: .8rem; text-decoration: none;
  font: 500 .74rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-2);
}
.hero__cue i { width: 1px; height: 3.2rem; background: linear-gradient(var(--brass), transparent); transform-origin: top; animation: cue 2.6s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Hidden until the opening animation runs (site.js); a timeout in <head> undoes this if scripts fail. */
.motion-pending [data-hero-in], .motion-pending [data-hero-title], .motion-pending [data-hero-book] { opacity: 0; }

/* ---------- a book in CSS 3D ---------- */
.book3d {
  --w: 300px; --h: calc(var(--w) * 1.5); --t: 30px;
  --ry: -26deg; --rx: 8deg;
  position: relative; width: var(--w); height: var(--h);
  perspective: 1800px;
}
.book3d__obj {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 1.2s var(--ease);
}
.book3d__face { position: absolute; backface-visibility: hidden; }
.book3d__front, .book3d__back { inset: 0; overflow: hidden; background: var(--spine); }
.book3d__front { transform: translateZ(calc(var(--t) / 2)); border-radius: 1px 3px 3px 1px; }
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.book3d__front img, .book3d__back img { width: 100%; height: 100%; object-fit: cover; }
/* Light on the cover: a soft sheen that follows the lamp (--lx/--ly set from the hero). */
.book3d__front::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.38), rgba(255,255,255,.08) 2.2%, rgba(0,0,0,.12) 4%, transparent 7%),
    radial-gradient(90% 70% at var(--lx, 20%) var(--ly, 10%), rgba(255, 226, 170, .22), transparent 60%);
  mix-blend-mode: soft-light;
}
.book3d__spine {
  top: 0; left: calc(50% - var(--t) / 2); width: var(--t); height: 100%;
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.07) 30%, rgba(0,0,0,.1) 70%, rgba(0,0,0,.4)), var(--spine);
  color: var(--spine-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.4rem 0 1.1rem;
}
.book3d__spine span { writing-mode: vertical-rl; font: 400 calc(var(--t) * .42)/1 var(--f-head); white-space: nowrap; overflow: hidden; max-height: 75%; }
.book3d__spine b { writing-mode: vertical-rl; font: 500 calc(var(--t) * .26)/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; }
.book3d__edge {
  top: 3px; left: calc(50% - var(--t) / 2); width: var(--t); height: calc(100% - 6px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #efe4cc 0 1px, #d9cbaf 1px 2px), #e9dcc2;
  box-shadow: inset 0 0 12px rgba(80, 55, 25, .35);
}
.book3d__top, .book3d__bottom {
  left: 3px; top: calc(50% - var(--t) / 2); width: calc(100% - 6px); height: var(--t);
  background: repeating-linear-gradient(0deg, #efe4cc 0 1px, #d6c7aa 1px 2px);
}
.book3d__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book3d__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book3d__shadow {
  position: absolute; left: 6%; right: -6%; bottom: -7%; height: 14%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .65), transparent 70%);
  filter: blur(6px); transform: translateZ(-1px);
}
.book3d--hero { --w: clamp(220px, 22vw, 320px); animation: float 7s ease-in-out infinite; }
.book3d--hero .book3d__obj { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-1deg); }
@keyframes float { 50% { translate: 0 -10px; } }
.hero__new-link:hover .book3d--hero { --ry: -12deg; }

/* SplitText line masks clip whatever pokes outside the line box (italic overhangs, descenders);
   give them a little room. */
[data-split] > div, [data-hero-title] div { padding: 0 .14em .1em; margin: 0 -.14em -.1em; }
/* Room for the tail of the italic y in "Larry". */
.hero__title .line:first-child div { padding-bottom: .3em; margin-bottom: -.3em; }

/* ---------- sections shared ---------- */
.section-title, .shelf__title, .contents__title, .pastor__title, .woodsong__title, .letters__title, .latest h2, .chapters h2, .church__title, .more__title {
  font: 400 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -.005em;
}

/* Prologue */
.prologue { padding-block: var(--section); }
.prologue__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 1rem 3rem; }
.prologue__grid > .label { padding-top: .9rem; }
.prologue__text { font: 400 clamp(1.55rem, 2.8vw, 2.45rem)/1.38 var(--f-head); color: var(--ink); margin: 0; max-width: 34em; }
/* A floated capital rather than initial-letter: it survives the word-by-word reveal and works in every browser. */
.prologue__cap { float: left; font: 400 3.3em/.74 var(--f-display); color: var(--oxblood); margin: .1em .1em -.1em -.03em; }
.facts { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 4rem 0 0; padding-top: 2.4rem; border-top: 1px solid var(--rule); }
.facts dt { font: 400 clamp(2.8rem, 4.6vw, 4rem)/1 var(--f-display); color: var(--oxblood); margin-bottom: .6rem; font-variant-numeric: oldstyle-nums; }
.facts dd { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); max-width: 15em; }

/* ---------- the shelf ---------- */
.shelf {
  position: relative; background: var(--walnut-950);
  padding-top: var(--section);
}
.shelf__head { position: relative; z-index: 2; max-width: 40rem; margin-bottom: 2rem; }
.shelf__intro { color: var(--cream-2); max-width: 30rem; }
.shelf__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.shelf__canvas { position: absolute; inset: 0; }
/* Let the case fall away into the dark at the edges. */
.shelf__stage::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--walnut-950), transparent 12%, transparent 88%, var(--walnut-950)),
    radial-gradient(130% 95% at 42% 48%, transparent 55%, rgba(17, 12, 9, .75));
}
.shelf--flat .shelf__stage::after, .shelf--flat .shelf__scrim { display: none; }
/* Behind the notes while a book is out, so the words don't sit on busy spines. */
.shelf__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 44%, rgba(17, 12, 9, .82) 62%, rgba(17, 12, 9, .9));
}
.shelf__canvas canvas { width: 100% !important; height: 100% !important; }
.shelf__notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shelf__note {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; translate: 0 -50%;
  width: min(27rem, 36vw); opacity: 0; visibility: hidden; pointer-events: auto;
}
.shelf__kicker { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.1rem; font: 500 .8rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.shelf__no { font: italic 400 1.5rem/1 var(--f-head); letter-spacing: 0; text-transform: none; color: var(--brass-light); }
.shelf__book { font: 400 clamp(2.4rem, 4vw, 3.6rem)/1 var(--f-display); margin-bottom: 1rem; }
.shelf__book a { text-decoration: none; }
.shelf__tag { font: italic 400 1.2rem/1.45 var(--f-head); color: var(--brass-light); margin-bottom: 1.1rem; }
.shelf__pitch { color: var(--cream-2); font-size: 1.06rem; line-height: 1.65; margin-bottom: 1.8rem; }
.shelf__count { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 2rem; margin: 0; font: italic 400 1.3rem/1 var(--f-head); color: var(--brass-light); }
.shelf__hint { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 2rem; margin: 0; font: 500 .74rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-2); opacity: 0; transition: opacity .6s; }
.shelf__hint.is-on { opacity: .8; }
.shelf__label {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  padding: .55rem .8rem .5rem; background: var(--vellum); color: var(--ink);
  font: 400 1.05rem/1.2 var(--f-head); white-space: nowrap;
  opacity: 0; translate: -50% calc(-100% - 14px); transition: opacity .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.shelf__label.is-on { opacity: 1; }
.shelf__label small { display: block; margin-top: .2rem; font: 500 .66rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--oxblood); }
.shelf__cover { display: none; }

/* Without WebGL (or with reduced motion) the six notes become an ordinary list with covers. */
.shelf--flat .shelf__stage { height: auto; overflow: visible; padding-bottom: var(--section); }
.shelf--flat .shelf__canvas, .shelf--flat .shelf__count, .shelf--flat .shelf__hint { display: none; }
.shelf--flat .shelf__notes { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 3.5rem 4rem; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 2rem auto 0; }
.shelf--flat .shelf__note { position: static; translate: none; width: auto; opacity: 1; visibility: visible; display: grid; grid-template-columns: 9rem 1fr; gap: 0 1.8rem; align-items: start; }
.shelf--flat .shelf__note > * { grid-column: 2; }
.shelf--flat .shelf__cover { display: block; grid-column: 1; grid-row: 1 / span 5; box-shadow: 0 20px 40px rgba(0,0,0,.5); }

/* ---------- contents (table of contents) ---------- */
.contents { padding-block: var(--section); position: relative; }
.contents__head { margin-bottom: 4rem; max-width: 40rem; }
.toc { margin-bottom: 4rem; }
.toc__part { font: italic 400 1.6rem/1.2 var(--f-head); color: var(--ink); padding-bottom: 1rem; border-bottom: 1px solid var(--ink); margin-bottom: .4rem; }
.toc__part span { font: 500 .8rem/1 var(--f-label); font-style: normal; letter-spacing: .17em; text-transform: uppercase; color: var(--oxblood); margin-right: 1.2rem; vertical-align: .25em; }
.toc__list { counter-reset: toc; }
.toc__list li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc__row {
  position: relative; display: grid; grid-template-columns: 3.2rem auto minmax(2rem, 1fr) auto; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0 1.05rem; text-decoration: none;
  transition: padding .5s var(--ease), color .3s;
}
.toc__row::before { content: counter(toc, upper-roman) '.'; font: italic 400 1.05rem/1 var(--f-head); color: var(--ink-3); }
.toc__title { font: 400 clamp(1.45rem, 2.3vw, 1.95rem)/1.15 var(--f-head); }
.toc__leader { align-self: end; height: .35em; margin-bottom: .45em; background: radial-gradient(circle, var(--ink-3) .9px, transparent 1.3px) 0 50% / 9px 4px repeat-x; opacity: .7; }
.toc__genre { font: 500 .78rem/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.toc__row:hover { padding-left: .8rem; color: var(--oxblood); }
.toc__row:hover .toc__genre { color: var(--oxblood); }
.contents__more { margin-top: 1rem; }
.toc-peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 180px; height: 270px; object-fit: cover;
  pointer-events: none; opacity: 0; box-shadow: 0 30px 60px rgba(34, 26, 19, .45), 0 0 0 1px rgba(0,0,0,.1);
  will-change: transform, opacity;
}

/* ---------- praise ---------- */
.praise {
  --bg: var(--oxblood); --fg: var(--cream); --accent: var(--brass-light);
  background:
    radial-gradient(70% 120% at 15% 0%, rgba(255, 190, 120, .12), transparent 60%),
    var(--oxblood);
  color: var(--cream); padding-block: clamp(4.5rem, 9vw, 8rem);
}
.praise__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem 5rem; align-items: end; }
.praise__quote { margin: 0; }
.praise__quote blockquote { margin: 0 0 1.6rem; }
.praise__quote p { font: italic 400 clamp(2rem, 4.2vw, 3.6rem)/1.15 var(--f-head); margin: 0; }
.praise__quote figcaption { font: 500 .84rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); }
.praise__quote figcaption a { text-transform: none; letter-spacing: 0; font: italic 400 1.15rem var(--f-head); color: var(--cream); }
.praise__awards ul { border-top: 1px solid rgba(238, 227, 205, .3); }
.praise__awards li { padding: .9rem 0; border-bottom: 1px solid rgba(238, 227, 205, .3); font: 400 1.12rem/1.4 var(--f-head); }
.praise__awards li:first-child { font-size: 1.3rem; }

/* ---------- the pastor ---------- */
.pastor { background: var(--walnut-900); padding-block: var(--section); }
.pastor__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.pastor__photo { margin: 0; position: relative; }
.pastor__photo::before { content: ''; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--rule); }
.pastor__photo img { position: relative; width: 100%; filter: contrast(1.04); }
.pastor__title { margin-bottom: 2rem; }
.pastor__text p { color: var(--cream-2); max-width: 34rem; }
.pastor__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2.2rem; }

/* ---------- Woodsong ---------- */
.woodsong {
  --bg: var(--moss); --fg: #eef0e2; --fg-2: #cbd1b7; --accent: var(--sage); --rule: rgba(169, 181, 139, .3);
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(169, 181, 139, .13), transparent 70%),
    var(--moss);
  color: var(--fg); padding-block: var(--section); overflow: hidden;
}
.woodsong__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.woodsong__rings { max-width: 30rem; }
.rings { width: 100%; overflow: visible; }
.rings path { fill: none; stroke: var(--sage); stroke-width: 1; opacity: calc(.95 - var(--i) * .045); vector-effect: non-scaling-stroke; }
.rings circle { fill: var(--brass); }
.woodsong__title { margin-bottom: 2rem; }
.woodsong__text p { color: var(--fg-2); max-width: 34rem; }
.woodsong__text .btn { margin-top: 1.2rem; }

/* ---------- blog lists ---------- */
.latest { padding-block: var(--section); }
.latest__head { margin-bottom: 3rem; }
.post-list { border-top: 1px solid var(--ink); margin-bottom: 3rem; }
.post-card { border-bottom: 1px solid var(--rule); }
.post-card a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto; gap: .5rem 2.5rem; padding: 2rem 0; text-decoration: none; align-items: baseline; transition: padding .5s var(--ease); }
.post-card__meta { grid-row: span 2; margin: 0; font: 500 .8rem/1.5 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.post-card__title { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--f-head); }
.post-card__excerpt { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.post-card__more { grid-column: 3; grid-row: 1; display: inline-flex; gap: .5em; align-items: center; font: 500 .78rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--oxblood); }
.post-card a:hover { padding-left: .8rem; }
.post-card a:hover .post-card__title { color: var(--oxblood); }

/* ---------- newsletter ---------- */
.letters {
  --bg: var(--walnut-800);
  background:
    radial-gradient(50% 120% at 85% 100%, rgba(201, 162, 100, .12), transparent 70%),
    var(--walnut-800);
  padding-block: clamp(4.5rem, 9vw, 7.5rem); border-top: 1px solid rgba(201, 162, 100, .15);
}
.letters__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem 6rem; align-items: end; }
.letters__copy .label { color: var(--brass); }
.letters__title { margin-bottom: 1.4rem; font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.letters__copy p:last-child { color: var(--cream-2); max-width: 32rem; margin: 0; }
.letters__form { display: grid; gap: 1.4rem; }
.field label { display: block; margin-bottom: .45rem; font: 500 .78rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--cream-2); }
.field label span { text-transform: none; letter-spacing: 0; font: italic 400 .9rem var(--f-head); }
.field input {
  width: 100%; padding: .6rem 0 .7rem; border: 0; border-bottom: 1px solid rgba(238, 227, 205, .4); border-radius: 0;
  background: transparent; color: var(--cream); font: 400 1.25rem/1.3 var(--f-body);
  transition: border-color .3s;
}
.field input:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.letters__form .btn { justify-self: start; }
.letters__status { margin: 0; min-height: 1.5em; font: italic 400 1.1rem/1.4 var(--f-head); color: var(--brass-light); }

/* ---------- footer ---------- */
.site-footer { background: var(--walnut-950); padding: 5rem 0 2rem; font-size: 1rem; color: var(--cream-2); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--rule); }
.site-footer__seal { width: 3.4rem; height: 3.4rem; color: var(--brass); margin-bottom: 1.2rem; }
.site-footer__name { font: 400 1.9rem/1 var(--f-display); color: var(--cream); margin-bottom: 1rem; }
.site-footer__sig p:last-child { max-width: 22rem; line-height: 1.6; }
.site-footer .label { margin-bottom: 1.1rem; font-size: .76rem; }
.site-footer__col li { margin-bottom: .45rem; }
.site-footer__col a { text-decoration: none; color: var(--cream); }
.site-footer__col a:hover { color: var(--brass-light); text-decoration: underline; }
.site-footer__label2 { margin-top: 2rem; }
.site-footer__colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding-top: 1.8rem; font-size: .9rem; }
.site-footer__colophon p { margin: 0; }
.colophon .label { margin: 0 .8rem 0 0; font-size: .7rem; }

/* ---------- inner-page band ---------- */
.band {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--walnut-900);
}
.band__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 140%;
  background: radial-gradient(closest-side, rgba(201, 140, 70, .2), transparent);
  pointer-events: none;
}
.band__inner { position: relative; }
.band__title { font: 400 clamp(3.2rem, 8.5vw, 7.8rem)/.94 var(--f-display); letter-spacing: -.01em; margin-bottom: 1.8rem; }
.band__title .line { display: block; }
.band__lede { max-width: 38rem; color: var(--cream-2); font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin: 0; }
.band--post .band__title { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 18ch; }
.band--post .band__lede { font: 500 .84rem/1.4 var(--f-label); letter-spacing: .15em; text-transform: uppercase; }
.crumbs { margin-bottom: 2.6rem; font: 500 .76rem/1.4 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--cream-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .7rem; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .7rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brass-light); }
.crumbs [aria-current] { color: var(--brass); }

/* ---------- books catalogue ---------- */
.catalog { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 4rem; }
.filter button {
  padding: .85rem 1.2rem .8rem; border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  font: 500 .8rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s;
}
.filter button span { margin-left: .4rem; opacity: .6; }
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--vellum); border-color: var(--ink); }
.catalog__part { margin-bottom: 5rem; }
.catalog__part[hidden] { display: none; }
.catalog__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 4rem; align-items: end; padding-bottom: 1.6rem; border-bottom: 1px solid var(--ink); margin-bottom: 3rem; }
.catalog__head h2 { font: 400 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--f-display); }
.catalog__head h2 .label { display: block; margin-bottom: .9rem; }
.catalog__head p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 3.5rem clamp(1.5rem, 3vw, 3rem); }
.covers__link { display: grid; gap: .5rem; text-decoration: none; }
.covers__img {
  position: relative; display: block; margin-bottom: 1rem; perspective: 900px;
  aspect-ratio: 2 / 3;
}
.covers__img img {
  width: 100%; height: 100%; object-fit: cover;
  box-shadow: 0 1px 1px rgba(34,26,19,.15), 0 14px 26px -8px rgba(34, 26, 19, .45);
  transform-origin: 0 50%; transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
/* The binding crease, so a flat cover reads as a book. */
.covers__img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.14) 2.5%, rgba(0,0,0,.08) 4.5%, transparent 8%);
  transform-origin: 0 50%; transition: transform .8s var(--ease);
}
.covers__link:hover .covers__img img, .covers__link:hover .covers__img::after { transform: rotateY(-14deg); }
.covers__link:hover .covers__img img { box-shadow: 0 1px 1px rgba(34,26,19,.15), 22px 26px 40px -10px rgba(34, 26, 19, .5); }
.covers__kicker { font: 500 .72rem/1.35 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.covers__title { font: 400 1.55rem/1.15 var(--f-head); }
.covers__tag { font: italic 400 1.02rem/1.45 var(--f-head); color: var(--ink-2); }
.covers__link:hover .covers__title { color: var(--oxblood); }
.catalog__note { display: grid; justify-items: center; text-align: center; gap: 1.6rem; max-width: 36rem; margin: 2rem auto 0; color: var(--ink-2); }
.catalog__note .ornament { --accent: var(--oxblood); }

/* ---------- a book's page ---------- */
.book__top { padding-bottom: clamp(4rem, 8vw, 7rem); }
.book__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: center; }
.book__title { font: 400 clamp(3.2rem, 7.6vw, 7rem)/.95 var(--f-display); letter-spacing: -.01em; margin-bottom: 1.2rem; }
.book__subtitle { font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.3 var(--f-head); color: var(--brass-light); margin-bottom: .6rem; }
.book__byline { font: 500 .86rem/1 var(--f-label); letter-spacing: .17em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 2rem; }
.book__tagline { font: italic 400 1.3rem/1.5 var(--f-head); color: var(--cream); max-width: 30rem; padding-left: 1.4rem; border-left: 1px solid var(--brass); margin-bottom: 2.6rem; }
.buy__label { font: 500 .8rem/1 var(--f-label); letter-spacing: .17em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.buy__list { display: flex; flex-wrap: wrap; gap: .7rem; }
.buy__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem .95rem;
  border: 1px solid rgba(201, 162, 100, .5); text-decoration: none;
  font: 500 .84rem/1 var(--f-label); letter-spacing: .13em; text-transform: uppercase; color: var(--cream);
  transition: color .4s var(--ease), border-color .4s;
}
.buy__link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.buy__link:hover { color: var(--walnut-900); border-color: var(--brass); }
.buy__link:hover::before { transform: scaleY(1); }
.buy__list li:first-child .buy__link { background: var(--brass); color: var(--walnut-900); border-color: var(--brass); }
.buy__list li:first-child .buy__link::before { background: var(--cream); }

.book__object { display: grid; justify-items: center; gap: 2.4rem; }
.book3d--page { --w: clamp(220px, 26vw, 330px); }
.book3d--page.is-turned { --ry: 154deg; }
.book3d--page.is-turned .book3d__spine { backface-visibility: visible; }
.turn {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: none; border: 1px solid var(--rule);
  font: 500 .78rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--cream-2);
  transition: color .3s, border-color .3s;
}
.turn:hover { color: var(--brass-light); border-color: var(--brass); }
.turn .icon { transition: transform .8s var(--ease); }
.turn[aria-pressed="true"] .icon { transform: rotate(180deg); }

.book__body { padding-block: clamp(4rem, 8vw, 7rem); }
.book__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem clamp(3rem, 7vw, 7rem); }
.book__desc-title { font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.05 var(--f-display); margin-bottom: 2rem; }
.prose { max-width: 40rem; }
.prose h2 { font: 400 1.65rem/1.2 var(--f-head); margin: 2.6rem 0 1rem; }
.prose h3 { font: 700 1.25rem/1.3 var(--f-head); margin: 2rem 0 .8rem; }
.prose a:not([class]) { color: var(--oxblood); }
.prose ul, .prose ol { margin: 0 0 1.4em 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; padding-left: .3em; }
.prose blockquote, .prose .callout { margin: 2rem 0; padding: .2rem 0 .2rem 1.6rem; border-left: 2px solid var(--oxblood); font: italic 400 1.25rem/1.55 var(--f-head); }
.prose img { margin: 2rem 0; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 3rem 0; }
.dropcap > p:first-child::first-letter, .dropcap-p::first-letter {
  float: left; font: 400 4.6em/.8 var(--f-display); color: var(--oxblood); margin: .06em .1em 0 -.02em;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .dropcap > p:first-child::first-letter, .dropcap-p::first-letter { float: none; font-size: inherit; line-height: inherit; margin: 0 .14em 0 0; initial-letter: 3; -webkit-initial-letter: 3; }
}
.book__aside { display: grid; gap: 2.4rem; align-content: start; }
.book__praise { margin: 0; padding: 1.8rem 0; border-block: 1px solid var(--ink); }
.book__praise blockquote { margin: 0 0 .8rem; }
.book__praise p { font: italic 400 1.45rem/1.35 var(--f-head); margin: 0; }
.book__praise figcaption { font: 500 .78rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--oxblood); }
.book__awards .label { margin-bottom: .8rem; }
.book__awards li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font: 400 1.05rem/1.4 var(--f-head); }
.details { margin: 0; border-top: 1px solid var(--ink); }
.details div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.details dt { font: 500 .74rem/1.9 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.details dd { margin: 0; font-size: 1.02rem; font-variant-numeric: lining-nums tabular-nums; }
.book__buy2 p:last-child { font-size: 1rem; }
.book__buy2 a { color: var(--oxblood); }

.more { background: var(--walnut-900); padding-block: var(--section); }
.more__title { margin-bottom: 3rem; }
.more .covers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); margin-bottom: 3rem; }
.more .covers__kicker { color: var(--brass); }
.more .covers__link:hover .covers__title { color: var(--brass-light); }
.more .covers__img img { box-shadow: 0 18px 30px -10px rgba(0,0,0,.7); }

/* ---------- about ---------- */
.about-intro { padding-block: clamp(4rem, 8vw, 7rem); }
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.about-intro__photo { margin: 0; }
.about-intro__photo img { width: 100%; box-shadow: 0 30px 60px -20px rgba(34, 26, 19, .6); }
.about-intro__photo figcaption { margin-top: 1rem; font: italic 400 .98rem/1.4 var(--f-head); color: var(--ink-3); }
.about-intro__text { font-size: 1.22rem; }
.about-intro__text .dropcap-p { font-size: 1.32rem; }
.about-intro__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }

.chapters { background: var(--walnut-900); padding-block: var(--section); }
.chapters__head { margin-bottom: 4rem; }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: .3rem 3rem; padding: 2.4rem 0 2.6rem; border-top: 1px solid var(--rule); }
.chapter__no { grid-column: 1; margin: 0; font: 500 .74rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-2); }
.chapter__when { grid-column: 1; margin: 0; font: 400 clamp(2rem, 3.6vw, 3.2rem)/1.05 var(--f-display); color: var(--brass-light); font-variant-numeric: oldstyle-nums; }
.chapter__body { grid-column: 2; grid-row: 1 / span 2; }
.chapter__body h3 { font: 400 clamp(1.5rem, 2.3vw, 1.9rem)/1.2 var(--f-head); margin-bottom: .8rem; }
.chapter__body p { color: var(--cream-2); max-width: 38rem; margin: 0; }
.chapter__body a { color: var(--cream); }
.chapter::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--brass); transition: width 1.4s var(--ease); }
.chapter.is-read::before { width: 100%; }

.woodsong--about { scroll-margin-top: var(--header-h); }
.church { padding-block: var(--section); }
.church__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(3rem, 7vw, 7rem); }
.church__addr { font: italic 400 1.15rem/1.4 var(--f-head); color: var(--ink-2); }

/* ---------- blog ---------- */
.blog { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.blog__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 4rem clamp(3rem, 6vw, 6rem); }
.post-list--index .post-card a { grid-template-columns: minmax(0, 2.4fr) minmax(0, 7fr) auto; }
.blog__aside { font-size: 1.02rem; color: var(--ink-2); }
.blog__aside .label { margin-top: .4rem; }
.topics { margin-bottom: 2.6rem; border-top: 1px solid var(--rule); }
.topics a { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.topics a[aria-current] { color: var(--oxblood); }
.topics span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.blog__aside a:not([class]) { color: var(--oxblood); }
.blog__rss a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; }
.empty { display: grid; gap: 1.4rem; justify-items: start; padding: 3rem 0; border-top: 1px solid var(--ink); }
.empty .ornament { --accent: var(--oxblood); }
.empty h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1.05 var(--f-display); }
.empty p { max-width: 34rem; color: var(--ink-2); margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; font: 500 .8rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.pager a { color: var(--oxblood); }
.post__body { padding-block: clamp(3.5rem, 7vw, 6rem); }
.prose--post { margin-inline: auto; font-size: 1.22rem; }
.post__image { margin: 0 auto 3rem; max-width: 52rem; }
.post__foot { max-width: 40rem; margin: 4rem auto 0; display: grid; gap: 1.4rem; }
.post__foot .ornament { --accent: var(--oxblood); }
.post__sig { font: italic 400 1.6rem/1 var(--f-head); margin: 0; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.post__nav a { display: grid; gap: .4rem; text-decoration: none; font: 400 1.25rem/1.25 var(--f-head); }
.post__nav a[rel="next"] { text-align: right; grid-column: 2; }
.post__nav .label { margin: 0; }

.notfound { padding-block: 4rem var(--section); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav, .site-header__letters { display: none; }
  .menu-toggle { display: block; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { font-size: 1.125rem; }
  .hero { padding-bottom: 7rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__new { justify-self: start; }
  .hero__new-link { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 1.6rem; }
  .hero__new-meta { justify-items: start; text-align: left; }
  .book3d--hero { --w: 150px; }
  .hero__new-title { font-size: 1.8rem; }
  .prologue__grid, .praise__grid, .pastor__grid, .woodsong__grid, .letters__inner, .book__grid, .book__cols, .about-intro__grid, .church__grid, .blog__grid, .catalog__head { grid-template-columns: 1fr; }
  .facts { grid-column: 1; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 3rem; }
  .facts div { display: grid; grid-template-columns: 6.5rem 1fr; align-items: baseline; gap: 1rem; }
  .facts dt { font-size: 2.6rem; margin: 0; }
  .shelf__note { left: var(--gutter); right: var(--gutter); top: auto; bottom: 4.2rem; translate: none; width: auto; }
  .shelf__scrim { background: linear-gradient(transparent 40%, rgba(17, 12, 9, .85) 58%, rgba(17, 12, 9, .94)); }
  .shelf__pitch { display: none; }
  .shelf__book { font-size: 2.4rem; margin-bottom: .6rem; }
  .shelf__tag { font-size: 1.08rem; margin-bottom: 1.1rem; }
  .shelf__count { bottom: 1.4rem; }
  .shelf__hint { display: none; }
  .toc__row { grid-template-columns: 2.4rem 1fr; gap: .2rem .6rem; }
  .toc__leader { display: none; }
  .toc__genre { grid-column: 2; text-align: left; }
  .toc-peek { display: none; }
  .pastor__photo { max-width: 26rem; }
  .woodsong__rings { max-width: 18rem; }
  .book__object { order: -1; justify-items: start; }
  .book3d--page { --w: 200px; }
  .chapter { grid-template-columns: 1fr; }
  .chapter__body { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .post-card a, .post-list--index .post-card a { grid-template-columns: 1fr; }
  .post-card__meta { grid-row: auto; }
  .post-card__excerpt, .post-card__more { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .wordmark__name { font-size: 1.3rem; }
  .shelf--flat .shelf__note { grid-template-columns: 6.5rem 1fr; gap: 0 1.2rem; }
  .post__nav { grid-template-columns: 1fr; }
  .post__nav a[rel="next"] { grid-column: 1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .book3d--hero { animation: none; }
}
.details__note { color: var(--ink-3); font-size: .92em; }
