/* Polaris Fire — a quiet, reading-first design.
   Warm paper by day, a night sky after dark, gold from the memorial ribbon. */

@font-face {
  font-family: "Source Serif";
  src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url(/assets/fonts/source-serif-4-latin-wght-italic.woff2) format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f7f3ec;
  --bg-raised: #fffdf9;
  --bg-sunk: #efe9df;
  --ink: #1f1b16;
  --ink-soft: #4a4238;
  --muted: #7a6f62;
  --rule: #e2d9cb;
  --rule-strong: #cfc3b1;
  --accent: #9c5310;        /* ember: links & highlights (AA on --bg) */
  --accent-strong: #7d400a;
  --gold: #d69a2d;          /* decorative star & ornaments */
  --accent-wash: #f3e3cc;
  --shadow: 0 1px 2px rgb(60 40 10 / .06), 0 8px 28px rgb(60 40 10 / .08);

  --serif: "Source Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --prose-size: 1.1875rem;
  --wrap: 72rem;
  --narrow: 42rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --bg-raised: #151a21;
    --bg-sunk: #0a0d11;
    --ink: #ede6da;
    --ink-soft: #cdc4b6;
    --muted: #9a9183;
    --rule: #252b34;
    --rule-strong: #343c47;
    --accent: #f0b35a;
    --accent-strong: #ffc978;
    --gold: #f0b35a;
    --accent-wash: #2a2217;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --bg-raised: #151a21;
  --bg-sunk: #0a0d11;
  --ink: #ede6da;
  --ink-soft: #cdc4b6;
  --muted: #9a9183;
  --rule: #252b34;
  --rule-strong: #343c47;
  --accent: #f0b35a;
  --accent-strong: #ffc978;
  --gold: #f0b35a;
  --accent-wash: #2a2217;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
}

:root[data-size="s"] { --prose-size: 1.0625rem; }
:root[data-size="l"] { --prose-size: 1.3125rem; }
:root[data-size="xl"] { --prose-size: 1.5rem; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.dot { color: var(--rule-strong); margin-inline: .5em; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-star { width: 1.1rem; height: 1.1rem; fill: var(--gold); stroke: none; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: clamp(.25rem, 1.5vw, 1.25rem); font-family: var(--sans); font-size: .9375rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: .4rem .35rem; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.icon-link { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0 !important; border-radius: 50% !important; background: none; border: 0; color: var(--ink-soft); cursor: pointer; }
.icon-link:hover { background: var(--bg-sunk); color: var(--ink); }
.site-nav a.icon-link[aria-current="page"] { box-shadow: none; border-radius: 50%; color: var(--accent); background: var(--bg-sunk); }
.icon-link svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: block; }
}

.brand-name { white-space: nowrap; }
.footer-theme { display: none; }
@media (max-width: 30rem) {
  .brand { gap: .45rem; }
  .brand-name { font-size: 1.1rem; }
  .site-nav { font-size: .875rem; gap: 0; }
  .site-nav a { padding-inline: .3rem; }
  .site-nav .theme-toggle { display: none; }
  .footer-theme {
    display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
    font-family: var(--sans); font-size: .875rem; color: var(--ink-soft);
    border: 1px solid var(--rule-strong); border-radius: 999px; padding: .45rem .9rem; background: none; cursor: pointer;
  }
  .footer-theme svg { width: 1rem; height: 1rem; }
  .hero .hero-portrait { width: min(62%, 230px); }
  .hero .hero-portrait::before { inset: 10px -10px -10px 10px; }
  .prose .reading { padding: .95em 1.05em 1.05em; }
}

.site-footer { margin-top: 6rem; border-top: 1px solid var(--rule); background: var(--bg-sunk); }
.footer-inner { display: grid; gap: 1.5rem; padding-block: 3rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.footer-memory { margin: 0; font-size: 1.05rem; color: var(--ink); }
.footer-memory span { color: var(--muted); font-size: .95rem; }
.footer-memory .brand-star { display: inline-block; vertical-align: -.1em; margin-right: .35rem; }
.footer-verse { margin: 0; font-style: italic; color: var(--ink-soft); font-size: 1rem; }
.footer-verse cite { font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-left: .35rem; white-space: nowrap; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--bg); }
.btn-quiet { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-family: var(--sans); font-size: .8125rem; padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- home ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 54rem) { .hero-inner { grid-template-columns: minmax(0, 340px) 1fr; } }
.hero-portrait { margin: 0; justify-self: center; width: min(100%, 340px); position: relative; }
.hero-portrait::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold);
  border-radius: calc(var(--radius) + 4px); opacity: .6;
}
.hero-portrait img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 480 / 681; object-fit: cover; width: 100%; }
.hero-text h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: -.025em; }
.hero-dates { font-family: var(--sans); color: var(--muted); font-size: 1rem; margin: .9rem 0 1.5rem; letter-spacing: .02em; }
.hero-lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 36rem; margin: 0 0 2rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--rule); padding-block: 1.5rem; text-align: center;
}
.stats div + div { border-left: 1px solid var(--rule); }
.stats strong { display: block; font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; }
.stats span { font-family: var(--sans); font-size: .8125rem; color: var(--muted); letter-spacing: .04em; }

.section { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-sub { flex-basis: 100%; margin: 0; color: var(--muted); }
.section-link { font-family: var(--sans); font-size: .9rem; font-weight: 600; text-decoration: none; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { color: var(--ink); border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-year { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.card-sub { color: var(--muted); font-size: .95rem; }

.year-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.year-grid a {
  display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--bg-raised); text-decoration: none; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.year-grid a:hover { border-color: var(--gold); color: var(--ink); }
.year-num { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.year-count { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }

.feature {
  display: grid; overflow: hidden; border-radius: calc(var(--radius) + 6px); text-decoration: none;
  background: #0b0b0c; color: #f2ece2; box-shadow: var(--shadow);
}
@media (min-width: 46rem) { .feature { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.feature:hover { color: #fff; }
.feature-art { width: 100%; aspect-ratio: 1; object-fit: cover; max-height: 26rem; }
.feature-body { padding: clamp(1.75rem, 4vw, 3.25rem); }
.feature .eyebrow { color: #f0b35a; }
.feature h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature blockquote { margin: 1.25rem 0 1.75rem; font-style: italic; font-size: 1.2rem; line-height: 1.55; color: #d9d1c4; }
.feature-cta { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: #f0b35a; }
.feature:hover .feature-cta { text-decoration: underline; text-underline-offset: .2em; }

.book-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.book-chips a, .book-index a {
  display: inline-flex; align-items: baseline; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--bg-raised); color: var(--ink); text-decoration: none; font-size: 1rem;
}
.book-chips a:hover, .book-index a:hover { border-color: var(--gold); color: var(--ink); }
.book-chips span, .book-index span { font-family: var(--sans); font-size: .75rem; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-head h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -.025em; }
.page-lede { color: var(--ink-soft); font-size: 1.2rem; max-width: 40rem; margin: 1rem 0 0; }

/* ---------- archive ---------- */
.archive-tools {
  position: sticky; top: 4rem; z-index: 3; background: var(--bg);
  padding-block: 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: .85rem;
}
.filter-field {
  display: flex; align-items: center; gap: .6rem; max-width: 34rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0 1rem; background: var(--bg-raised);
}
.filter-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.filter-field svg { width: 1.1rem; height: 1.1rem; color: var(--muted); flex: none; }
.filter-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 1rem; padding: .7rem 0;
}
.filter-field.big { max-width: none; }
.filter-field.big input { font-size: 1.125rem; padding: .9rem 0; }
.year-jump { display: flex; gap: .15rem .9rem; flex-wrap: wrap; font-family: var(--sans); font-size: .875rem; }
.year-jump a { color: var(--muted); text-decoration: none; }
.year-jump a:hover { color: var(--accent); }
@media (max-width: 40rem) {
  .archive-tools { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chip { flex: none; }
}

.year-block, .book-block { margin-top: 3rem; }
.year-title {
  display: flex; align-items: baseline; gap: .75rem; font-size: 2rem; letter-spacing: -.02em;
  padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: .25rem;
}
.year-title small { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sermon-list { list-style: none; margin: 0; padding: 0; }
.sermon-list li { border-bottom: 1px solid var(--rule); }
.sermon-list a {
  display: grid; grid-template-columns: 5.25rem 1fr; gap: 1rem; align-items: baseline;
  padding: .95rem .5rem; margin-inline: -.5rem; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.sermon-list a:hover { background: var(--bg-raised); color: var(--ink); }
.sermon-list a:hover .sl-title { color: var(--accent); }
.sl-date { display: flex; flex-direction: column; font-family: var(--sans); line-height: 1.3; }
.sl-md { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-wd { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sl-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.sl-title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; transition: color .15s; }
.sl-sub { color: var(--muted); font-size: .9375rem; }
.sl-sub:empty { display: none; }
.archive-empty { padding: 3rem 0; text-align: center; color: var(--muted); font-size: 1.1rem; }
.back-top { font-family: var(--sans); font-size: .85rem; margin: .75rem 0 0; }
.back-top a { color: var(--muted); text-decoration: none; }

.testament { margin-top: 1.5rem; }
.testament-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .85rem; }
.book-index { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.book-sections { margin-top: 1rem; }

/* ---------- sermon ---------- */
.sermon-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.crumbs { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: .35rem; color: var(--rule-strong); }
.sermon-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.25rem); letter-spacing: -.025em; }
.sermon-meta { font-family: var(--sans); font-size: .9375rem; color: var(--muted); margin: 1rem 0 0; }
.sermon-note { color: var(--ink-soft); font-style: italic; margin: 1rem 0 0; }
.reader-tools {
  display: flex; gap: .35rem; margin-top: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule);
}
.reader-tools button {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: .9rem; font-weight: 600;
}
.reader-tools button.big { font-size: 1.15rem; }
.reader-tools button:hover { border-color: var(--ink-soft); color: var(--ink); }
.reader-tools button[data-print] { margin-left: auto; }
.reader-tools svg { width: 1.1rem; height: 1.1rem; }

.prose { font-size: var(--prose-size); line-height: 1.75; margin-top: 2.25rem; overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-size: 1.3em; margin-top: 1.8em; margin-bottom: .6em; }
.prose h4 { font-size: 1.1em; }
.prose strong { font-weight: 650; }
.prose sup { font-family: var(--sans); font-size: .6em; line-height: 0; color: var(--muted); font-weight: 600; margin-right: .1em; }
.prose blockquote {
  margin-inline: 0; padding: .1em 0 .1em 1.25em; border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic;
}
.prose .reading {
  margin: 1.75em 0 2em; padding: 1.1em 1.4em 1.25em; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid var(--rule); font-size: .94em; line-height: 1.7;
}
.prose .reading figcaption {
  font-family: var(--sans); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75em; display: flex; flex-wrap: wrap; gap: .15em .6em; align-items: baseline;
}
.prose .reading .reading-note { text-transform: none; letter-spacing: 0; font-weight: 450; color: var(--muted); font-size: 1.05em; }
.prose .reading p { margin: 0 0 .65em; }
.prose .reading p:last-child { margin-bottom: 0; }
.prose .reading .reading-ref {
  display: block; margin: .9em 0 .2em; font-family: var(--sans); font-size: .72em; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.prose sup.v { color: var(--accent); margin-right: .25em; }
.prose ol, .prose ul { padding-left: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); font-family: var(--sans); font-size: .85em; }
.prose hr { border: 0; text-align: center; margin: 2.5em 0; }
.prose hr::after { content: "✦  ✦  ✦"; color: var(--gold); letter-spacing: .5em; font-size: .8em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .5em .75em; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose a { word-break: break-word; }

.sermon-foot { margin-top: 3.5rem; }
.ornament { display: flex; justify-content: center; margin-bottom: 3rem; }
.ornament svg { width: 1.3rem; height: 1.3rem; fill: var(--gold); stroke: none; }
.pager { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager-link {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg-raised);
}
.pager-link:hover { border-color: var(--gold); color: var(--ink); }
.pager-link.next { text-align: right; }
.pager-dir { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pager-title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.pager-date { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }
.foot-links { text-align: center; font-family: var(--sans); font-size: .9rem; margin-top: 2rem; }

/* ---------- connections (end of a sermon) ---------- */
.connections { margin: 0 0 3.5rem; }
.connections-title {
  font-family: var(--sans); font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 1.75rem;
}
.conn-group { margin-bottom: 2rem; }
.conn-group h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.book-chips.cited a { font-size: .9rem; padding: .35rem .8rem; }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mini-list li { border-bottom: 1px solid var(--rule); }
.mini-list a {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: .85rem; align-items: baseline;
  padding: .65rem .4rem; margin-inline: -.4rem; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.mini-list a:hover { background: var(--bg-raised); color: var(--ink); }
.mini-list a:hover .ml-title { color: var(--accent); }
.ml-date { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ml-main { display: flex; flex-direction: column; min-width: 0; }
.ml-title { font-weight: 600; line-height: 1.3; transition: color .15s; }
.ml-sub { font-size: .875rem; color: var(--muted); }
.mini-more summary {
  cursor: pointer; list-style: none; font-family: var(--sans); font-size: .875rem; font-weight: 600;
  color: var(--accent); padding: .6rem 0; width: max-content;
}
.mini-more summary::-webkit-details-marker { display: none; }
.mini-more summary::after { content: " ↓"; }
.mini-more[open] summary { display: none; }
.mini-more .mini-list { border-top: 0; }

/* ---------- topics & chapters ---------- */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.topic-grid a {
  display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--bg-raised); text-decoration: none; color: var(--ink);
}
.topic-grid a:hover { border-color: var(--gold); color: var(--ink); }
.topic-name { font-size: 1.15rem; font-weight: 600; }
.topic-count { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }
.chapter-chips { list-style: none; margin: .9rem 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chapter-chips a {
  display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .5rem; border-radius: 8px;
  font-family: var(--sans); font-size: .875rem; font-variant-numeric: tabular-nums; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--rule); background: transparent;
}
.chapter-chips a.has-sermon { background: var(--bg-raised); border-color: var(--rule-strong); color: var(--ink); font-weight: 600; }
.chapter-chips a:hover { border-color: var(--gold); color: var(--accent); }
.page-head .crumbs { margin-bottom: 1.25rem; }
@media (max-width: 30rem) { .site-nav .nav-wide { display: none; } }

/* ---------- about ---------- */
.about-body { display: grid; gap: 2rem; }
.about-portrait { margin: 0; justify-self: center; width: min(100%, 260px); }
.about-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 44rem) {
  .about-body { display: block; }
  .about-portrait { float: right; margin: .4rem 0 1.5rem 2rem; }
}
.about .prose { margin-top: 0; }
.about .prose h2 { font-size: 1.5rem; }
.about-coda { clear: both; text-align: center; margin-top: 3rem; }
.about-coda img { width: min(100%, 460px); margin: 0 auto 2rem; border-radius: var(--radius); }

/* ---------- search ---------- */
.search-status { font-family: var(--sans); font-size: .9rem; color: var(--muted); min-height: 1.5em; margin: 1rem 0; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: block; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.search-results a:hover .sr-title { color: var(--accent); }
.sr-meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.sr-title { display: block; font-size: 1.25rem; font-weight: 600; margin: .15rem 0 .35rem; transition: color .15s; }
.sr-excerpt { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.sr-excerpt mark { background: var(--accent-wash); color: var(--ink); border-radius: 3px; padding: 0 .1em; }
.search .more { margin: 1.5rem auto 0; display: flex; }

.notfound { text-align: center; padding-block: 6rem; }
.notfound .page-lede { margin-inline: auto; }

/* ---------- print ---------- */
@media print {
  :root { --prose-size: 12pt; --ink: #000; --bg: #fff; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .reader-tools, .sermon-foot, .crumbs, .skip { display: none !important; }
  .prose { line-height: 1.5; }
  .sermon-head h1 { font-size: 22pt; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
