/* Color palette pulled from the printed cover:
   - parchment background  #f0e8d4 / #ece2c8
   - ink                   #2b231a
   - faded ink (eyebrow)   #6c5a40
   - rule / ornament gold  #a78645
   - quiet panel           #ebe1c5
*/

:root {
  --bg:          #efe6cf;
  --bg-deep:    #ece1c4;
  --paper:       #f6efd9;
  --ink:         #2b231a;
  --ink-soft:   #4a3d2a;
  --ink-faint:  #6c5a40;
  --rule:        #b59a63;
  --rule-soft:  #cdb98a;
  --accent:      #8b6a2c;
  --link:        #6f4f1d;
  --link-hover: #4a3411;
  --serif-display: "Cormorant Garamond", "Book Antiqua", Palatino, "Palatino Linotype", "Hoefler Text", Georgia, serif;
  --serif-body:    "EB Garamond", "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.62;
  /* Subtle paper texture: layered noise via radial gradients */
  background-image:
    radial-gradient(1200px 800px at 20% 10%, rgba(255,250,235,0.55), transparent 60%),
    radial-gradient(900px 700px at 80% 90%, rgba(184,158,108,0.10), transparent 55%);
  background-attachment: fixed;
}

::selection {
  background: rgba(139, 106, 44, 0.22);
}

/* ---------------- Masthead ---------------- */

.masthead {
  text-align: center;
  padding: 64px 24px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.ornament {
  color: var(--rule);
  margin: 14px 0 6px;
  line-height: 0;
  text-align: center;
}

/* Coptic cross ornament — see footer credit. */
.ornament-svg {
  display: inline-block;
  width: 1.6rem;
  height: 2.2rem;
  vertical-align: middle;
  background: url(cross.svg) center / contain no-repeat;
  /* The source SVG is black; this filter shifts it to a warm gold close
     to var(--rule). Computed via filter-color tools. */
  filter: invert(54%) sepia(22%) saturate(862%) hue-rotate(2deg) brightness(95%) contrast(88%);
}

.popout-svg {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.05em;
  margin-left: 4px;
}

/* Doss Press logo, inline next to the publisher attribution */
.doss-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.doss-link:hover {
  border-bottom-color: var(--rule);
  color: var(--ink);
}

.doss-logo {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: -0.18em;
  margin-right: 4px;
}

.book-title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(3.6rem, 9vw, 5.8rem);
  letter-spacing: 0.08em;
  margin: 4px 0 6px;
  color: var(--ink);
  line-height: 1;
}

.subtitle {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Decorative double rule beneath the masthead */
.masthead::after {
  content: "";
  display: block;
  margin: 30px auto 0;
  width: 220px;
  height: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 3px;
}

/* ---------------- Lookup bar ---------------- */

.lookup {
  max-width: 760px;
  margin: 6px auto 28px;
  padding: 0 24px;
}

#lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-end;
  background: rgba(246, 239, 217, 0.55);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.field.grow {
  flex: 1 1 200px;
}

.field > span {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

select, input[type="text"] {
  font-family: var(--serif-body);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139,106,44,0.18);
}

.go {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.go:hover { background: var(--paper); color: var(--ink); }

.search-hints {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin: 12px 4px 0;
  line-height: 1.5;
}

.search-hints em {
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(184,158,108,0.10);
  padding: 0 5px;
  border-radius: 2px;
}

/* Autocomplete */
.ac-wrap {
  position: relative;
}

.ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(60,42,18,0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  font-size: 0.96rem;
}

.ac-list li {
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
  border-left: 2px solid transparent;
}

.ac-list li.active,
.ac-list li:hover {
  background: rgba(184,158,108,0.18);
  border-left-color: var(--accent);
}

.ac-list .ac-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-list .ac-detail {
  font-family: var(--serif-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

.ac-list mark {
  background: rgba(207,175,102,0.45);
  color: inherit;
  padding: 0 1px;
  border-radius: 1px;
}

/* ---------------- Results / passages ---------------- */

.results {
  max-width: 720px;
  margin: 0 auto;
}

.passage {
  padding: 28px 28px 60px;
  background: rgba(246, 239, 217, 0.55);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.passage-divider {
  border: none;
  border-top: 1px solid var(--rule-soft);
  margin: 28px auto;
  max-width: 720px;
  position: relative;
}
.passage-divider::after {
  content: "\2766";
  position: absolute;
  left: 50%;
  top: -0.7em;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 12px;
  color: var(--rule);
  font-size: 1rem;
}

/* ---------------- Scripture panel ---------------- */

.scripture {
  background: rgba(255, 250, 230, 0.55);
  border-left: 2px solid var(--rule);
  padding: 16px 20px 18px;
  margin: 6px 0 28px;
  border-radius: 2px;
}

.scripture-eyebrow {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
  text-align: right;
}

.scripture-body {
  font-family: var(--serif-body);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.scripture-body .vrs {
  display: inline;
}

.scripture-body .vnum {
  font-family: var(--serif-display);
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--accent);
  font-weight: 600;
  margin-right: 1px;
}

.scripture-body .vrs-hi {
  background: rgba(207, 175, 102, 0.30);
  border-radius: 2px;
  padding: 2px 4px;
  box-shadow: inset 0 -1px 0 var(--rule);
}

.scripture-body .vrs-hi .vnum {
  color: var(--ink-soft);
}

.hint {
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-faint);
  margin: 32px 0;
}

.passage .verse-eyebrow {
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 4px 0 6px;
}

.passage .passage-range {
  text-align: center;
  font-family: var(--serif-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.passage .passage-title {
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--ink);
  margin: 4px 0 10px;
  line-height: 1.18;
}

.title-rule {
  display: block;
  width: 120px;
  margin: 18px auto 32px;
  border: none;
  border-top: 1px solid var(--rule);
}

.passage .subhead {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 30px 0 6px;
  text-align: center;
}

.passage .subhead::after {
  content: "";
  display: block;
  width: 36px;
  margin: 8px auto 0;
  border-top: 1px solid var(--rule-soft);
}

.passage p {
  margin: 0 0 1em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Dropcap on the first paragraph of each subsection. Applied via JS
   (.dropcap span) in app.js so it lands on the first real letter,
   skipping leading footnote callouts, quotes, and punctuation. */
.passage .commentary-body .dropcap {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  padding: 6px 8px 0 0;
  color: var(--accent);
}

.footnotes {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}

.footnotes h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: 0 0 14px;
}

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

.footnotes li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-soft);
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
}

.footnotes li:last-child { border-bottom: none; }

.footnotes .num {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.footnotes .fn-body { display: inline; }

.footnotes .fn-back {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  font: inherit;
  color: var(--accent);
  text-decoration: none;
  margin-left: 6px;
  font-size: 1.05rem;
  line-height: 1;
}

.footnotes .fn-back:hover { color: var(--link-hover); text-decoration: underline; }
.footnotes .fn-back:focus-visible { outline: 1px dotted var(--accent); outline-offset: 2px; }

.footnotes .missing {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.85rem;
}

/* Inline footnote callout (superscript link) */
sup.fn-ref {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
}

sup.fn-ref a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--serif-display);
  font-weight: 600;
  padding: 0 2px;
}

sup.fn-ref a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Brief glow when scrolled to */
.flash {
  animation: flash-bg 0.9s ease-out;
}

@keyframes flash-bg {
  0%   { background: rgba(184, 158, 108, 0.35); }
  100% { background: transparent; }
}

/* Sentence-level highlight on footnote back-jump */
.sent {
  /* Default: sentences are inline. Add a subtle animatable bg. */
  border-radius: 2px;
  transition: background-color 0.35s ease;
}

.sent.flash-sentence {
  background: rgba(207, 175, 102, 0.32);
  box-shadow: 0 0 0 2px rgba(207, 175, 102, 0.32);
  animation: flash-sentence-anim 1.6s ease-out;
}

@keyframes flash-sentence-anim {
  0%   { background: rgba(207, 175, 102, 0.55); box-shadow: 0 0 0 3px rgba(207, 175, 102, 0.55); }
  60%  { background: rgba(207, 175, 102, 0.32); box-shadow: 0 0 0 2px rgba(207, 175, 102, 0.32); }
  100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}

/* ---------------- Pager ---------------- */

.pager {
  max-width: 720px;
  margin: 24px auto 8px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-btn {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--link);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
}

.nav-btn:hover { color: var(--link-hover); border-color: var(--rule); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }

.here {
  font-family: var(--serif-display);
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------------- Colophon ---------------- */

.colophon {
  max-width: 720px;
  margin: 56px auto 56px;
  padding: 28px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
}

.colophon p {
  margin: 4px 0;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.colophon .author { color: var(--ink-soft); font-weight: 500; }

.colophon .fineprint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.colophon .nkjv-notice {
  margin-top: 8px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cross-credit {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.cross-credit a {
  color: inherit;
  border-bottom: 1px dotted var(--rule-soft);
  text-decoration: none;
}

.cross-credit a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--rule);
}

/* ---------------- Misc ---------------- */

em { font-style: italic; font-weight: 600; }

/* Author-emphasized inline formatting from the printed commentary */
.commentary-body i,
.fn-body i { font-style: italic; }

.commentary-body b,
.fn-body b { font-weight: 600; }

.commentary-body em,
.fn-body em { font-style: italic; font-weight: 600; }

.error {
  text-align: center;
  font-style: italic;
  color: #884a2a;
  margin: 28px 0;
}

@media (max-width: 540px) {
  body { font-size: 18px; }
  .masthead { padding-top: 40px; }
  .passage { padding: 22px 18px 48px; border-left: none; border-right: none; }
  #lookup-form { padding: 14px; }
  .field, .field.grow { min-width: 100%; flex: 1 1 100%; }
  .go { width: 100%; }
}

/* ============================================================
   Reader top bar (matthew.html / mark.html)
   ============================================================ */

.topbar {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.topbar a {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  padding-bottom: 1px;
}

.topbar a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--rule);
}

/* ============================================================
   Home page
   ============================================================ */

body.home {
  font-size: 18px;
}

.home-masthead {
  text-align: center;
  padding: 96px 24px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.home-masthead .book-title {
  font-size: clamp(3rem, 7.5vw, 5rem);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.home-masthead .subtitle {
  margin-top: 14px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.home-masthead::after {
  content: "";
  display: block;
  margin: 36px auto 0;
  width: 220px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 3px;
}

/* Intro */

.home-intro {
  max-width: 680px;
  margin: 28px auto 14px;
  padding: 0 28px;
  text-align: justify;
  hyphens: auto;
}

.home-intro p {
  margin: 0 0 1em;
}

/* ============================================================
   Hero with books (2.5D)
   ============================================================ */

.hero {
  max-width: 1280px;
  margin: 56px auto 32px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px) 1fr;
  align-items: start;
  gap: 48px;
}

.vol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.vol-info {
  text-align: center;
  max-width: 320px;
}

.vol-blurb {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 10px 0 18px;
  text-align: justify;
  hyphens: auto;
}

.vol-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.vol-btn {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.vol-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.vol-btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.vol-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-center {
  text-align: center;
}

.hero-center .lede {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 18px;
}

.hero-center .hero-attr {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ============================================================
   Book covers (flat front)
   ============================================================ */

.book-link {
  display: block;
  width: 240px;
  margin: 0 auto 18px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.book-link:hover {
  transform: translateY(-4px);
  filter: brightness(1.03);
}

.book-link:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 8px;
  border-radius: 2px;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(60, 42, 18, 0.18);
  box-shadow:
    0 14px 28px rgba(60, 42, 18, 0.22),
    0 4px 8px rgba(60, 42, 18, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .book-link, .book-link:hover { transition: none; transform: none; }
}

.vol-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.vol-name {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 2px 0 6px;
  line-height: 1;
}

/* Mobile: stack everything */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-center { order: -1; }
}

/* About sections */

.about-author,
.about-edition,
.about-series,
.from-the-author {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 0 28px;
}

.about-series .ornament.center {
  color: var(--rule);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 0 0 4px;
}

/* Pull-quote in the hero center */
.pullquote {
  margin: 14px 0 18px;
  padding: 0 8px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border: none;
}

.pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--ink-faint);
}

/* "About the Series" section list */
.series-body p {
  margin: 0 0 1em;
  text-align: justify;
  hyphens: auto;
}

.sections {
  margin: 18px 0 18px;
  padding: 0;
}

.sections dt {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.sections dd {
  margin: 0 0 8px;
  padding: 0;
  text-align: justify;
  hyphens: auto;
  color: var(--ink-soft);
}

.series-attr,
.author-attr {
  text-align: right;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-top: 18px;
}

.benediction cite {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--ink-faint);
}

.section-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink);
  margin: 8px 0 22px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  margin: 12px auto 0;
  border-top: 1px solid var(--rule-soft);
}

.author-body p,
.edition-body p {
  margin: 0 0 1em;
  text-align: justify;
  hyphens: auto;
}

.dropcap {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  padding: 6px 8px 0 0;
  color: var(--accent);
}

.edition-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.edition-links li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.edition-links li:last-child {
  border-bottom: none;
}

.edition-links a {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 1px;
}

.edition-links a:hover { color: var(--link-hover); border-bottom-color: var(--ink); }

.edition-links .isbn {
  font-family: var(--serif-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Home colophon */

.home-colophon {
  max-width: 720px;
  margin: 80px auto 56px;
  padding: 28px;
  text-align: center;
}

.home-colophon .ornament.center {
  color: var(--rule);
  font-size: 1rem;
  letter-spacing: 0.4em;
  margin-bottom: 14px;
}

.about-author .ornament.center {
  color: var(--rule);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 0 0 4px;
}

.home-colophon .benediction {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.home-colophon .byline {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0;
}

@media (max-width: 740px) {
  .volumes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-masthead { padding-top: 56px; }
}
