/* Fencepost Faith — site styles.
   Every colour, size and space comes from the tokens below. See /style-guide.html. */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --pasture: #1F3A2E;        /* primary: deep pasture green */
  --pasture-deep: #142820;
  --pasture-soft: #2C4F3F;
  --amber: #E8B04B;          /* sunrise: accent on dark only */
  --amber-soft: #F0C880;     /* Matt's caption colour */
  --cedar: #8A5A2B;          /* weathered post: links/accents on light */
  --cream: #F8F4EA;          /* page */
  --paper: #FFFDF8;          /* cards */
  --wheat: #E4DCC8;          /* borders, dividers */
  --ink: #1C2420;
  --stone: #4F5A53;          /* secondary text */

  /* Roles (light) */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--stone);
  --border: var(--wheat);
  --link: var(--cedar);
  --heading: var(--pasture);
  --band-bg: var(--pasture);
  --band-text: var(--cream);
  --band-accent: var(--amber-soft);
  --btn-bg: var(--pasture);
  --btn-text: var(--cream);
  --focus: #1F6FEB;
  --mark-post: var(--pasture);
  --mark-sun: var(--amber);

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.938rem);
  --step-0: clamp(1.063rem, 1.03rem + 0.15vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.438rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 1.938rem);
  --step-3: clamp(1.875rem, 1.6rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.8rem + 2.3vw, 3.75rem);

  /* Space, shape */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 70rem;
  --measure: 38rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(28 36 32 / 6%), 0 6px 20px rgb(28 36 32 / 6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121C17;
    --surface: #1A2721;
    --text: #EEE8DA;
    --text-muted: #B9B3A4;
    --border: #2E3F36;
    --link: var(--amber-soft);
    --heading: #F3EDE0;
    --band-bg: #1A2E24;
    --btn-bg: var(--amber-soft);
    --btn-text: #121C17;
    --focus: #79B8FF;
    --mark-post: #EEE8DA;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
  }
}
:root[data-theme="dark"] {
  --bg: #121C17; --surface: #1A2721; --text: #EEE8DA; --text-muted: #B9B3A4; --border: #2E3F36;
  --link: var(--amber-soft); --heading: #F3EDE0; --band-bg: #1A2E24; --btn-bg: var(--amber-soft);
  --btn-text: #121C17; --focus: #79B8FF; --mark-post: #EEE8DA;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--heading); line-height: 1.15; font-weight: 600; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-soft); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-text); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.eyebrow {
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: var(--space-3);
}
.lede { font-size: var(--step-1); color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- Logo ---------- */
.mark .post { fill: var(--mark-post); }
.mark .sun { fill: var(--mark-sun); }
.mark .wire { stroke: var(--mark-post); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--heading); min-height: 44px; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-5); padding-block: var(--space-3);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--step--1); border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--surface); text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
@media (max-width: 40rem) {
  .nav { width: 100%; margin-inline: calc(var(--space-2) * -1); }
  .nav ul { gap: 0; }
  .nav a { padding-inline: var(--space-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  font: 700 var(--step-0)/1.2 var(--font-sans); text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary { background: transparent; color: var(--heading); border-color: currentColor; }
.btn--secondary:hover { background: var(--surface); }
.btn--sunrise { background: var(--amber-soft); color: var(--ink); }
.btn--sunrise:hover { background: var(--amber); }
.btn--ghost-light { color: var(--cream); border-color: var(--cream); background: transparent; }
.btn--ghost-light:hover { background: rgb(248 244 234 / 10%); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { background: var(--band-bg); color: var(--band-text); position: relative; overflow: hidden; }
.hero .container { padding-block: var(--space-8) 0; position: relative; z-index: 1; }
.hero h1 { color: var(--band-text); max-width: 16ch; }
.hero .eyebrow { color: var(--band-accent); }
.hero p { color: rgb(248 244 234 / 88%); font-size: var(--step-1); }
.hero .btn-row { margin-top: var(--space-5); }
.hero__land { width: 100%; height: clamp(110px, 17vw, 220px); margin-top: var(--space-6); }
.hero__land .sky-sun { fill: var(--amber); }
.hero__land .hill-far { fill: var(--pasture-soft); }
.hero__land .hill-near { fill: var(--bg); }
.hero__land .fence { fill: #0B1410; }
.hero__land .fence-wire { stroke: #0B1410; }

/* ---------- Verse block ---------- */
.verse {
  margin: 0; padding: var(--space-6) var(--space-5); border-left: 4px solid var(--amber);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
  max-width: 48rem;
}
.verse p { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.35; color: var(--heading); max-width: none; margin: 0; }
.verse footer { margin-top: var(--space-4); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: var(--step--1); color: var(--text-muted); margin-bottom: 0; }
.card .tag { margin-bottom: var(--space-3); }
.tag {
  display: inline-block; align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--bg); color: var(--text-muted); border: 1px solid var(--border);
}

.section-head { margin-bottom: var(--space-6); }
.section-head p { color: var(--text-muted); }

/* ---------- Voices ---------- */
.voices { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.voice { border-top: 3px solid var(--amber); padding-top: var(--space-4); }
.voice h3 { margin-bottom: var(--space-1); }
.voice .role { font-size: var(--step--1); font-weight: 700; color: var(--link); margin-bottom: var(--space-2); }
.voice p { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Split / band ---------- */
.split { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.band { background: var(--band-bg); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-text); }
.band p { color: rgb(248 244 234 / 88%); }
.band a:not(.btn) { color: var(--band-accent); }
.band .eyebrow { color: var(--band-accent); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: var(--space-3); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.9rem;
  border-radius: 2px; background: var(--amber); clip-path: polygon(40% 0, 60% 0, 60% 30%, 100% 30%, 100% 50%, 60% 50%, 60% 100%, 40% 100%, 40% 50%, 0 50%, 0 30%, 40% 30%);
}

/* ---------- Prose pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-2); }
.page-head { padding-block: var(--space-7) var(--space-5); border-bottom: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-7); font-size: var(--step--1); color: var(--text-muted); }
.site-footer .container { display: grid; gap: var(--space-5); }
@media (min-width: 48rem) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-sans); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p { margin-bottom: var(--space-2); }

/* ---------- Style guide only ---------- */
.sg-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sg-nav a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: var(--space-3); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 600; color: var(--text); background: var(--surface); }
.sg-section { padding-block: var(--space-7); border-top: 1px solid var(--border); }
.swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 5.5rem; }
.swatch__body { padding: var(--space-3) var(--space-4); font-size: var(--step--1); }
.swatch__body strong { display: block; color: var(--text); }
.swatch__body code { font-size: 0.85rem; }
.chip-pasture { background: var(--pasture); } .chip-pasture-deep { background: var(--pasture-deep); }
.chip-amber { background: var(--amber); } .chip-amber-soft { background: var(--amber-soft); }
.chip-cedar { background: var(--cedar); } .chip-cream { background: var(--cream); border-bottom: 1px solid var(--wheat); }
.chip-paper { background: var(--paper); border-bottom: 1px solid var(--wheat); } .chip-wheat { background: var(--wheat); }
.chip-ink { background: var(--ink); } .chip-stone { background: var(--stone); }
.chip-night { background: #121C17; } .chip-night-surface { background: #1A2721; }

.logo-tiles { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.logo-tile, .frames figure { margin: 0; }
.logo-tile { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.logo-tile__stage { display: grid; place-items: center; padding: var(--space-6); min-height: 10rem; }
.logo-tile__stage img { max-height: 5.5rem; width: auto; }
.logo-tile__stage--cream { background: var(--cream); }
.logo-tile__stage--green { background: var(--pasture); }
.logo-tile__stage--checker { background: #EDE7D9; }
.logo-tile figcaption { padding: var(--space-3) var(--space-4); font-size: var(--step--1); border-top: 1px solid var(--border); }

.type-row { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-bottom: 1px dashed var(--border); }
.type-row code { font-size: 0.8rem; color: var(--text-muted); }
.t-4 { font-family: var(--font-serif); font-size: var(--step-4); line-height: 1.1; color: var(--heading); font-weight: 600; }
.t-3 { font-family: var(--font-serif); font-size: var(--step-3); line-height: 1.15; color: var(--heading); font-weight: 600; }
.t-2 { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.2; color: var(--heading); font-weight: 600; }
.t-1 { font-family: var(--font-serif); font-size: var(--step-1); color: var(--heading); font-weight: 600; }
.t-0 { font-size: var(--step-0); }
.t--1 { font-size: var(--step--1); }

.dodont { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.dodont > div { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.dodont h3 { font-family: var(--font-sans); font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.08em; }
.do h3 { color: #2E7D4F; } .dont h3 { color: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .do h3 { color: #7FD1A0; } :root:not([data-theme="light"]) .dont h3 { color: #FF9A8F; } }

/* Video frame mockups (16:9 and 9:16) */
.frames { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.frame { border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #2C4F3F 0%, #1F3A2E 55%, #142820 100%); color: var(--cream); display: grid; place-items: center; text-align: center; padding: var(--space-5); position: relative; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--tall { aspect-ratio: 9 / 16; max-width: 15rem; }
.frame__title { font-family: var(--font-serif); font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.frame__verse { font-family: var(--font-serif); font-size: clamp(0.95rem, 2.4vw, 1.2rem); line-height: 1.35; }
.frame__ref { display: block; margin-top: var(--space-2); font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-soft); }
.frame__cap { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.35rem); line-height: 1.25; text-shadow: 0 2px 0 rgb(0 0 0 / 60%); }
.cap-matt { color: var(--amber-soft); } .cap-nate { color: #FFFFFF; }
.frame__hook { position: absolute; top: var(--space-5); left: var(--space-4); right: var(--space-4); background: var(--amber-soft); color: var(--ink); font-weight: 800; font-size: 0.95rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.frame figcaption, .frame-cap { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--space-2); }

table.spec { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.spec th, table.spec td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { font-weight: 700; color: var(--text); background: var(--bg); }
table.spec tr:last-child td { border-bottom: 0; }

@media print {
  .site-header .nav, .skip-link, .hero__land { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Generated pages ---------- */
.narrow { max-width: 48rem; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.more { margin-top: var(--space-5); }
.spaced { margin-top: var(--space-7); }

.card--media { padding: 0; overflow: hidden; position: relative; }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pasture); }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card__link { color: var(--heading); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--media .card__link::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card--media:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card--media .card__link:focus-visible { outline: none; }
.card__meta { margin-top: auto; padding-top: var(--space-3); font-size: 0.85rem; }
.grid[role="list"] { list-style: none; margin: 0; padding: 0; }

.page-head { padding-block: var(--space-7) var(--space-5); border-bottom: 1px solid var(--border); }
.chips ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips a, .sg-nav a {
  display: inline-flex; min-height: 44px; align-items: center; padding-inline: var(--space-4);
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: var(--step--1);
  font-weight: 600; color: var(--text); background: var(--surface);
}
.chips a:hover { border-color: var(--link); }

.crumbs ol { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-1); font-size: var(--step--1); color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-1); color: var(--border); }
.crumbs a { color: var(--text-muted); }

article h1 { font-size: var(--step-3); }
article .prose { max-width: none; }
article .prose p, article .prose li { max-width: none; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
article h2 { font-size: var(--step-2); margin-top: var(--space-6); }
article .verse { margin-block: var(--space-5); }
.verse footer a { color: inherit; }

.player { margin-block: var(--space-5); border-radius: var(--radius); overflow: hidden; background: var(--pasture-deep); aspect-ratio: 16 / 9; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.yt { display: block; position: relative; height: 100%; }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgb(20 40 32 / 85%); border: 3px solid var(--amber-soft);
}
.yt__play::after {
  content: ""; position: absolute; left: 30px; top: 22px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--amber-soft);
}
.yt:hover .yt__play, .yt:focus-visible .yt__play { background: var(--pasture); transform: translate(-50%, -50%) scale(1.06); }
.yt__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.player__note { font-size: var(--step--1); color: var(--text-muted); }

.cta-card { margin-block: var(--space-6); padding: var(--space-5); border: 1px solid var(--border); border-left: 4px solid var(--cedar); border-radius: var(--radius); background: var(--surface); }
.cta-card h2 { font-size: var(--step-1); margin: 0 0 var(--space-2); }
.cta-card h2 a { color: var(--heading); }
.cta-card p:last-child { margin-bottom: 0; }
.cta-card .player { margin-bottom: 0; }

.figure { margin: var(--space-6) 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--space-2); }
.figure--cover { margin-top: var(--space-4); }

.toc { margin-block: var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-block: var(--space-1); }
.toc a { display: inline-block; padding-block: 0.35rem; }

.transcript { margin-block: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.transcript summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 700; min-height: 44px; }
.transcript p { padding-inline: var(--space-5); font-size: var(--step--1); }

.link-list { padding-left: 1.25rem; }
.link-list li { margin-bottom: var(--space-2); }
.link-list a { display: inline-block; padding-block: 0.3rem; }
.refs { margin-top: var(--space-6); font-size: var(--step--1); }
.post-note { margin-top: var(--space-5); font-size: 0.85rem; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }

.search label { display: block; font-weight: 700; margin-bottom: var(--space-2); }
.search__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search input {
  flex: 1 1 14rem; min-height: 48px; padding: var(--space-2) var(--space-4); font: inherit; color: var(--text);
  background: var(--surface); border: 2px solid var(--stone); border-radius: 999px;
}
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.results { list-style: none; padding: 0; }
.results li { padding-block: var(--space-4); border-bottom: 1px solid var(--border); }
.results li a { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; }
.results li p { margin: var(--space-1) 0 0; }

.book-list { columns: 14rem; padding-left: 1.25rem; }
.book-list li { margin-bottom: var(--space-2); break-inside: avoid; }
.ref { padding-block: var(--space-4); border-bottom: 1px solid var(--border); }
.ref h2 { font-size: var(--step-1); margin-top: var(--space-4); }

/* Social, link-in-bio and resources */
.follow-label { margin-top: var(--space-5); }
.social-row .btn { padding-inline: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; text-align: center; }
.small { font-size: 0.875rem; }
.links-page { max-width: 32rem; padding-block: var(--space-6); }
.links-head { text-align: center; margin-bottom: var(--space-5); }
.links-head .mark { width: 4.5rem; height: 4.5rem; }
.links-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.links-sub { text-align: center; font-size: 1.25rem; }
.resources-box { margin-block: var(--space-5); }
.resources-box p { margin-block: var(--space-1); }
.resource-group { margin-top: var(--space-6); }
.resource-group:first-child { margin-top: 0; }
