/* ============================================
   The Chapbook — main stylesheet
   Set in EB Garamond, Italiana, JetBrains Mono
   ============================================ */

:root {
  --bg: #f0e9d8;
  --paper: #f8f1de;
  --ink: #1f1a14;
  --ink-soft: #2d2620;
  --muted: #6b5d49;
  --muted-2: #8c7e6a;
  --rule: #c8b994;
  --rule-soft: #d8cca8;
  --accent: #7a3a2a;
  --accent-soft: #a85a3a;
  --moss: #3a4a30;

  --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --display: 'Italiana', 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --col-narrow: 720px;
  --col-page: 1180px;
  --col-wide: 1280px;

  --shadow-page: 0 1px 2px rgba(0,0,0,0.04), 0 6px 24px rgba(50,30,10,0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 32px 16px;
  background: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(120,90,40,0.025) 24px 25px),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.5), transparent);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Page wrapper — the "book page" */
body > header.site-header,
body > main,
body > footer.site-footer {
  max-width: var(--col-page);
  margin-left: auto;
  margin-right: auto;
  background: var(--paper);
  background-image: radial-gradient(ellipse 95% 60% at 50% 50%, transparent 60%, rgba(120,90,40,0.04));
  box-shadow: var(--shadow-page);
}
body > header.site-header {
  border-radius: 2px 2px 0 0;
  padding-top: 32px;
}
body > main { padding-bottom: 8px; }
body > footer.site-footer { border-radius: 0 0 2px 2px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ TYPOGRAPHY ============ */
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.flourish {
  text-align: center;
  font-family: var(--display);
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 0.5em;
  margin: 32px 0;
  padding-left: 0.5em;
}

/* Section heading block */
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head .kicker { margin-bottom: 6px; }
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.0;
  color: var(--ink);
}

/* ============ HEADER ============ */
.site-header {
  text-align: center;
  padding: 32px 48px 0;
  position: relative;
}
.masthead {
  position: relative;
}
.volume-line {
  margin: 0 0 6px;
  color: var(--muted);
}
.brand {
  display: inline-block;
  text-decoration: none;
}
.brand-name {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 72px);
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.0;
}
.tagline {
  font-style: italic;
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 17px;
}
.site-header .flourish {
  margin: 16px 0 10px;
  font-size: 20px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.site-nav a {
  padding: 4px 2px;
  position: relative;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============ FRONTISPIECE (home hero) ============ */
.frontispiece {
  padding: 60px 56px 40px;
}
.frontispiece .kicker { text-align: center; margin-bottom: 24px; }
.frontispiece-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.frontispiece h1.display {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: -0.005em;
}
.frontispiece .excerpt {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 18px;
  font-style: italic;
}
.frontispiece .lead {
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.frontispiece .byline {
  margin: 0 0 18px;
}
.read-link {
  display: inline-block;
  font-size: 22px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  font-family: var(--display);
}
.read-link:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.read-link-small {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-size: 16px;
}
.read-link-small:hover { text-decoration: none; color: var(--ink); }
.frontispiece-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.92) brightness(0.97);
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
  padding: 0 56px 30px;
  max-width: var(--col-page);
  margin: 0 auto;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 56px;
}
.toc-list li {
  break-inside: avoid;
  border-bottom: 1px dotted var(--rule);
}
.toc-list a {
  display: grid;
  grid-template-columns: 32px 70px 1fr 56px;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
}
.toc-list a:hover { background: rgba(122,58,42,0.03); text-decoration: none; }
.toc-list .num {
  font-size: 20px;
  color: var(--accent);
}
.toc-list .cat { color: var(--muted); }
.toc-list .title { font-style: italic; font-size: 16.5px; line-height: 1.3; }
.toc-list .page {
  color: var(--muted);
  text-align: right;
}

/* ============ CHAPTERS GRID (categories) ============ */
.chapters {
  padding: 0 56px 30px;
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
}
.chapter-card {
  text-align: center;
  padding: 18px 12px;
  display: block;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.chapter-card:hover {
  text-decoration: none;
  border-color: var(--rule);
  background: rgba(255,255,255,0.3);
}
.chapter-card .num {
  font-size: 22px;
  color: var(--accent);
  display: block;
}
.chapter-card .name {
  font-size: 30px;
  display: block;
  margin: 6px 0 12px;
  line-height: 1.05;
}
.chapter-card .blurb {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
  font-style: italic;
}
.chapter-card .count {
  display: block;
}

/* ============ RECENTLY BOUND ============ */
.recently-bound {
  padding: 0 56px 30px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.recent-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
}
.recent-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.92) brightness(0.97);
}
.recent-body .cat {
  margin: 0 0 6px;
}
.recent-body .display {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.recent-body p.italic {
  font-style: italic;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 12px;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: 0 56px 60px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.newsletter .kicker { margin-bottom: 8px; }
.newsletter h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.0;
  margin: 0 0 16px;
}
.newsletter-text {
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.newsletter-form input {
  flex: 1;
  max-width: 360px;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--muted-2); }
.newsletter-form button {
  background: transparent;
  color: var(--accent);
  border: 0;
  font-family: var(--display);
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px 0 14px;
  border-left: 1px solid var(--rule);
}
.newsletter-form button:hover { color: var(--ink); }
.fine { font-size: 9.5px; margin-top: 12px; }

/* ============ AD SLOTS ============ */
.ad-slot {
  border: 1px dashed var(--rule);
  margin: 32px 56px;
  padding: 20px;
  text-align: center;
  background: rgba(255,255,255,0.25);
}
.ad-slot p { margin: 0; color: var(--muted-2); font-size: 10.5px; }

/* ============ PAGE HERO (category / about / contact) ============ */
.page-hero {
  padding: 60px 56px 30px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-hero.narrow {
  border-bottom: 0;
  padding-bottom: 20px;
}
.page-hero .mono { margin-bottom: 8px; }
.page-hero h1.display {
  font-size: clamp(72px, 12vw, 132px);
  line-height: 0.92;
  margin: 8px 0 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.page-hero .about-title {
  font-size: clamp(72px, 11vw, 120px);
}
.page-hero .category-title {
  font-size: clamp(80px, 14vw, 156px);
}
.page-lead {
  font-style: italic;
  font-size: 21px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}
.page-hero .flourish { margin-top: 22px; margin-bottom: 0; }

/* ============ FEATURED PIECE (category) ============ */
.featured-piece {
  padding: 50px 56px 30px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.featured-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.92) brightness(0.97);
}
.featured-body .mono { margin: 0 0 8px; }
.featured-body h2.display {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.0;
  margin: 0 0 14px;
}
.featured-body h2.display a:hover { color: var(--accent); text-decoration: none; }
.featured-body p.italic {
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ CATEGORY LIST ============ */
.category-list {
  padding: 0 56px 30px;
}
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-list li {
  border-top: 1px dotted var(--rule);
}
.cat-list li:last-child { border-bottom: 1px dotted var(--rule); }
.cat-list a {
  display: grid;
  grid-template-columns: 40px 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  align-items: center;
}
.cat-list a:hover {
  background: rgba(122,58,42,0.03);
  text-decoration: none;
}
.cat-list .num {
  font-size: 22px;
  color: var(--accent);
}
.cat-list .image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.92) brightness(0.97);
}
.cat-list .body h4 {
  font-size: 24px;
  margin: 0 0 6px;
  line-height: 1.15;
}
.cat-list .body .meta {
  display: block;
  margin: 0 0 6px;
}
.cat-list .body .italic {
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  display: block;
}

.category-about {
  padding: 0 56px 30px;
  text-align: center;
}
.category-about p {
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============ ARTICLE PAGE ============ */
.article {
  padding: 0 56px 0;
}
.breadcrumbs {
  padding: 24px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10.5px;
}
.breadcrumbs span { color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--accent); }

.article-hero {
  text-align: center;
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.article-hero .mono { margin: 0 0 16px; }
.article-hero h1.display {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.article-hero .excerpt {
  font-style: italic;
  font-size: 21px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}
.article-hero .byline {
  margin: 16px 0 0;
}

.article-lead-image {
  margin: 40px 0 30px;
}
.article-lead-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: sepia(0.05) saturate(0.92) brightness(0.98);
}
.article-lead-image figcaption {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
}

.article-inline-image {
  margin: 28px -20px;
  break-inside: avoid;
}
.article-inline-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: sepia(0.05) saturate(0.92) brightness(0.98);
}
.article-inline-image figcaption {
  margin-top: 10px;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Article body — double column */
.article-body.prose {
  columns: 2;
  column-gap: 56px;
  column-rule: 1px solid var(--rule);
  font-size: 16.5px;
  line-height: 1.78;
  padding: 40px 0 0;
}
.article-body p {
  margin: 0 0 1em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body .dropcap::first-letter {
  font-family: var(--display);
  font-size: 86px;
  line-height: 0.84;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--accent);
  margin-top: 4px;
}
.article-body .section-h {
  font-size: 28px;
  margin: 24px 0 12px;
  color: var(--accent);
  break-after: avoid;
  line-height: 1.1;
}
.article-body .pull-quote {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  margin: 22px 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.35;
  text-align: center;
  break-inside: avoid;
  color: var(--ink);
}
.article-body .ad-slot {
  margin: 22px 0;
  break-inside: avoid;
}
.article-body .flourish {
  column-span: all;
  margin-top: 20px;
}

/* ============ FAQ ============ */
.faq { padding: 32px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.faq-item {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.faq-item:nth-child(2n) { border-right: 0; }
.faq-item:nth-last-child(-n+2) { border-bottom: 0; }
.faq-item h3.display {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
.faq-item p {
  margin: 0;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ RELATED ============ */
.related { padding: 48px 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.related-card a {
  display: block;
  text-align: center;
}
.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.92) brightness(0.97);
  margin-bottom: 12px;
}
.related-card .mono { margin: 0 0 4px; }
.related-card .display {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.related-card a:hover .display { color: var(--accent); text-decoration: none; }
.see-more {
  text-align: center;
  margin: 24px 0 0;
}

/* ============ SOCIAL SHARE ============ */
.social-share {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.social-share .kicker { margin-bottom: 12px; }
.share-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-row a {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.share-row a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ============ ABOUT PAGE ============ */
.about-grid {
  padding: 30px 56px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2.display {
  font-size: 56px;
  line-height: 1.0;
  margin: 6px 0 18px;
}
.about-grid p {
  font-size: 17.5px;
  line-height: 1.7;
}
.about-img .placeholder-portrait {
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(45deg, rgba(120,90,40,0.06) 0 1px, transparent 1px 6px),
              linear-gradient(165deg, #d8c7a3, #b89c70);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5c4a30;
}
.about-img .placeholder-portrait .display {
  font-size: 96px;
  margin: 0;
}
.about-img .placeholder-portrait .mono { color: #5c4a30; }

.three-promises {
  padding: 0 56px 30px;
}
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.promise-list li {
  text-align: center;
  padding: 0 8px;
}
.promise-list .num {
  font-size: 28px;
  color: var(--accent);
  margin: 0;
}
.promise-list h3.display {
  font-size: 32px;
  margin: 6px 0 14px;
  line-height: 1.0;
}
.promise-list p.italic {
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.about-mission, .narrow {
  max-width: var(--col-narrow);
  margin: 0 auto;
  padding: 30px 56px;
}
.about-mission h2.display {
  font-size: 36px;
  margin: 0 0 14px;
  text-align: center;
}
.about-mission p { font-size: 16.5px; line-height: 1.7; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding: 30px 56px 60px;
}
.contact-form {
  display: grid;
  gap: 22px;
}
.contact-form > .mono {
  margin: 0 0 4px;
  color: var(--accent);
}
.contact-form label {
  display: block;
}
.contact-form label span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  outline: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}
.contact-form button {
  background: var(--accent);
  color: var(--paper);
  padding: 14px 32px;
  border: 0;
  font-family: var(--display);
  font-size: 22px;
  cursor: pointer;
  justify-self: start;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--ink); }
.contact-form .fine {
  font-size: 9.5px;
  margin: -6px 0 0;
}

.contact-aside .mono {
  margin: 0 0 14px;
  color: var(--accent);
}
.direct-line {
  padding: 14px 0;
  border-top: 1px dotted var(--rule);
}
.direct-line:last-of-type { border-bottom: 1px dotted var(--rule); margin-bottom: 28px; }
.direct-line .display { margin: 0; font-size: 22px; }
.direct-line .italic {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin: 2px 0 0;
}
.elsewhere {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}
.elsewhere a:hover { color: var(--accent); }

/* ============ LEGAL PAGES ============ */
.legal-body h2.display {
  font-size: 28px;
  margin: 28px 0 10px;
  color: var(--accent);
}
.legal-body p, .legal-body li {
  font-size: 16px;
  line-height: 1.7;
}
.legal-body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal-body .legal-list {
  padding-left: 18px;
}
.legal-body .legal-list li { margin-bottom: 10px; }

/* ============ 404 ============ */
.not-found {
  padding: 80px 56px;
  border-bottom: 0;
}
.not-found p { margin: 10px 0; }

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 60px;
  padding: 40px 56px 32px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.site-footer .flourish { margin: 0 0 14px; }
.footer-brand {
  font-family: var(--display);
  font-size: 36px;
  color: var(--ink);
}
.footer-tagline {
  font-style: italic;
  color: var(--muted);
  max-width: 560px;
  margin: 12px auto 24px;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 18px;
}
.footer-nav a:hover { color: var(--accent); }
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-style: italic;
  margin-bottom: 22px;
  font-size: 14px;
}
.socials a { color: var(--muted); }
.socials a:hover { color: var(--accent); }
.copyright {
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  body { padding: 12px 0; }
  body > header.site-header,
  body > main,
  body > footer.site-footer {
    box-shadow: none;
  }
  .site-header,
  .frontispiece,
  .toc,
  .chapters,
  .recently-bound,
  .newsletter,
  .page-hero,
  .featured-piece,
  .category-list,
  .article,
  .about-grid,
  .three-promises,
  .contact-grid,
  .site-footer,
  .narrow,
  .ad-slot {
    padding-left: 24px;
    padding-right: 24px;
  }

  .frontispiece-grid,
  .featured-piece,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .frontispiece-image { order: -1; }

  .toc-list { columns: 1; }
  .toc-list a {
    grid-template-columns: 32px 60px 1fr 46px;
    gap: 8px;
  }

  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .recent-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .recent-card {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .nav-toggle { display: inline-block; }
  .site-nav {
    flex-direction: column;
    gap: 0;
    border-top: 0;
    border-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open {
    max-height: 600px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px dotted var(--rule);
  }
  .site-nav a:last-child { border-bottom: 0; }

  .article-body.prose {
    columns: 1;
    column-rule: 0;
  }

  .article-inline-image { margin: 24px 0; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-item {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .faq-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .faq-item:last-child { border-bottom: 0; }

  .related-grid { grid-template-columns: 1fr; gap: 24px; }

  .promise-list { grid-template-columns: 1fr; gap: 28px; }

  .cat-list a {
    grid-template-columns: 32px 100px 1fr;
    gap: 14px;
  }

  .ad-slot { margin: 24px 24px; }
}

@media (max-width: 540px) {
  .frontispiece, .toc, .chapters, .recently-bound, .newsletter,
  .page-hero, .featured-piece, .category-list, .article,
  .about-grid, .three-promises, .contact-grid, .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  body { font-size: 16px; }
  .article-body.prose { font-size: 17px; }
  .recent-card { grid-template-columns: 1fr; }
  .recent-image img { aspect-ratio: 16/9; }
  .cat-list a {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cat-list .image-wrap { display: none; }
}

/* Print */
@media print {
  body { background: #fff; padding: 0; }
  body > header.site-header,
  body > main,
  body > footer.site-footer {
    box-shadow: none;
    max-width: none;
  }
  .ad-slot, .newsletter-form, .nav-toggle, .site-nav, .share-row { display: none; }
}
