@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #26221d;
  --muted: #6f6558;
  --line: #d8d0c4;
  --accent: #5d4426;
  --accent-soft: #ece1d0;
  --shadow: 0 14px 40px rgba(44, 31, 12, .08);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

img {
  max-width: 100%;
  display: block
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 238, .88);
  border-bottom: 1px solid var(--line);
}

.site-header .inner,
.content-wrap,
.site-footer .inner,
.chapter-grid,
.meta-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--muted)
}

.brand strong {
  display: block;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 1rem;
  color: var(--ink);
  margin-top: .15rem
}

.top-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1rem
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem
}

.kicker,
.eyebrow {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--muted)
}

.lead {
  font-size: 1.35rem;
  line-height: 1.6;
  max-width: 34rem
}

.button-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem
}

.button {
  border-radius: 999px;
  padding: .85rem 1.3rem;
  border: 1px solid var(--line);
  display: inline-block;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

.button.secondary {
  background: var(--paper)
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px)
}

.hero-figure {
  padding: 1.25rem;
  overflow: hidden
}

.hero-figure img {
  border-radius: 1.35rem;
  min-height: 100%;
  object-fit: cover
}

.section {
  padding: 1.25rem 0 2.5rem
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: .3rem 0 1rem;
  line-height: 1.05;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.meta-box {
  padding: 1.25rem 1.3rem
}

.meta-box .label {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted)
}

.meta-box .value {
  margin-top: .5rem;
  font-size: 1.1rem
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.chapter-card {
  padding: 1.4rem 1.4rem 1.2rem
}

.chapter-card h3 {
  font-size: 1.6rem;
  margin: .3rem 0 .6rem
}

.chapter-card p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted)
}

.chapter-card .chapter-link {
  margin-top: .75rem;
  display: inline-block;
  font-size: 1rem
}

.content-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

.sidebar {
  position: sticky;
  top: 5rem;
  padding: 1.25rem 1.1rem;
}

.sidebar h3 {
  margin: .2rem 0 .8rem;
  font-size: 1.2rem
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0
}

.toc li {
  border-top: 1px solid var(--line)
}

.toc li:first-child {
  border-top: 0
}

.toc a {
  display: block;
  padding: .75rem 0;
  color: var(--ink)
}

.toc small {
  display: block;
  color: var(--muted);
  margin-top: .25rem
}

.article-shell {
  padding: 2rem clamp(1.1rem, 4vw, 3rem)
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line)
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  margin: .45rem 0
}

.article-header .sub {
  color: var(--muted);
  font-size: 1rem
}

.prose {
  max-width: 43rem
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 600;
  line-height: 1.15;
  margin: 2rem 0 1rem;
  color: var(--ink);
}

.prose h1 {
  font-size: 2.5rem
}

.prose h2 {
  font-size: 2rem
}

.prose h3,
.prose h4 {
  font-size: 1.5rem
}

.prose p,
.prose li {
  font-size: 1.33rem;
  line-height: 1.78;
  margin: 1rem 0;
}

.prose p.dropcap,
.prose p.no-indent:first-of-type {
  line-height: 1.68;
}

.prose p.no-indent:first-of-type::first-letter,
.prose p.dropcap::first-letter {
  float: left;
  font-size: 4.25rem;
  line-height: .75;
  padding-right: .09em;
  padding-top: .17em;
  margin-bottom: -.1em;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.prose sup {
  font-size: .8rem
}

.prose section.bib,
.prose section.bible-block {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.prose section.bib p,
.prose section.bible-block p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #433a31
}

.prose .titlepage,
.prose .tiraz,
.prose .edition-note,
.prose .introduction {
  max-width: 43rem
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.04rem;
}

.chapter-nav .muted {
  display: block;
  color: var(--muted);
  font-size: .95rem
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.4rem;
  color: var(--muted);
  font-size: 1rem
}

.note {
  color: var(--muted);
  font-size: 1rem
}

@media (max-width: 900px) {
  .content-wrap {
    grid-template-columns: 1fr
  }

  .meta-grid,
  .chapter-grid {
    grid-template-columns: 1fr
  }

  .sidebar {
    position: static
  }

  .hero-copy {
    padding: 2rem
  }

  .article-shell {
    padding: 1.3rem
  }
}

@media (max-width: 768px) {
  .site-header .inner {
    padding: 0.4rem 0;
    gap: 0.4rem;
  }

  .brand {
    display: none;
  }

  .top-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.6rem;
    font-size: 0.9rem;
    align-items: center;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .edition-breadcrumbs {
    margin: 0.4rem auto 0 auto;
    padding: 0 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .prose h2 {
    font-size: 1.6rem;
    line-height: 1.25;
  }
}

@media (max-width: 900px) {
  .prose {
    max-width: none;
  }
}

@media (max-width: 800px) {
  .content-wrap {
    display: flex;
    flex-direction: column;
  }

  .article-shell {
    order: 1;
  }

  .sidebar {
    order: 2;
  }
}

.reader-feedback-fixed {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 999px;

  background: #2b2118;
  color: #fff;
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reader-feedback-fixed:hover,
.reader-feedback-fixed:focus {
  background: #5a3b1d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .reader-feedback-fixed {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

.reader-response {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--accent, #b88a2c);
}

.reader-response h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.reader-response p {
  margin-bottom: 0.85rem;
}

.reader-response__link {
  font-weight: 600;
  text-decoration: none;
}

.reader-response__link:hover,
.reader-response__link:focus {
  text-decoration: underline;
}