@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Noto+Sans+JP:wght@400;600&family=Shippori+Mincho+B1:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e8e1d5;
  --paper-light: #f8f5ee;
  --ink: #1d1c1a;
  --muted: #736e65;
  --line: #cfc7b9;
  --accent: #742f2d;
  --accent-soft: rgba(116, 47, 45, 0.08);
  --gold: #a28653;
  --serif-ja: "Shippori Mincho B1", "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --serif-latin: "Cinzel", Georgia, serif;
  --page-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-ja);
  font-feature-settings: "palt" 1;
  line-height: 2;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(115, 110, 101, 0.32);
}

.header-nav {
  display: flex;
  gap: clamp(22px, 3.5vw, 50px);
}

.header-nav a {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.header-nav a:hover::after { transform: scaleX(1); }
.menu-button { display: none; }

.hero {
  position: relative;
  display: flex;
  height: 600px;
  padding: 110px clamp(24px, 6vw, 80px) 70px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: url("images/hero-communal-table.jpg") 50% 50% / cover no-repeat;
  text-align: left;
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 5px);
  content: "";
  pointer-events: none;
}

.hero__geometry,
.hero__circle,
.hero__axis {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero__geometry {
  width: min(64vw, 470px);
  aspect-ratio: 1;
}

.hero__circle {
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.72;
}

.hero__circle--outer { width: 100%; height: 100%; }
.hero__circle--inner { width: 80%; height: 80%; }

.hero__axis {
  width: 1px;
  height: 106%;
  background: var(--line);
  opacity: 0.72;
}

.hero__axis--one { transform: translate(-50%, -50%) rotate(38deg); }
.hero__axis--two { transform: translate(-50%, -50%) rotate(142deg); }

.hero__star {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--gold);
  font-size: 18px;
  transform: translate(-50%, -50%);
}

.section-heading__eyebrow {
  font-family: var(--serif-latin);
  letter-spacing: 0.22em;
}

.hero h1 {
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.12;
}

.hero__subtitle {
  z-index: 1;
  margin: 32px 0 0;
  color: #fff;
  font-family: var(--serif-latin);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.hero__lead {
  z-index: 1;
  margin: 28px 0 0;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 2;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--serif-latin);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue__line {
  width: 1px;
  height: 26px;
  background: var(--muted);
  transform-origin: top;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { opacity: 0.35; transform: scaleY(0.35); }
  50% { opacity: 1; transform: scaleY(1); }
}

.library {
  padding: clamp(90px, 11vw, 150px) clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  width: min(100%, var(--page-width));
  margin: 0 auto clamp(55px, 8vw, 90px);
  padding-bottom: 28px;
}

.section-heading__eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.collection-list {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.collection-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  min-height: 190px;
  padding: 36px 12px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.collection-card--link {
  color: inherit;
  text-decoration: none;
}

.collection-card__body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.collection-card::before {
  position: absolute;
  z-index: -1;
  inset: 8px 0;
  background: var(--paper-light);
  content: "";
  opacity: 0;
  transform: scale(0.985);
  transform-origin: center;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card > * {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .collection-card:hover::before {
    opacity: 1;
    transform: scale(1);
  }

  .collection-card:hover .collection-card__number,
  .collection-card:hover .collection-card__body {
    transform: translateX(12px);
  }

  .collection-card:hover .collection-card__status {
    transform: translateX(-12px);
  }
}

.collection-card__number {
  align-self: start;
  color: var(--accent);
  font-family: var(--serif-latin);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.collection-card__body { max-width: 710px; }

.collection-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.collection-card__status {
  display: inline-grid;
  min-width: 78px;
  padding: 7px 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.collection-card__status--available {
  border-color: var(--accent);
  color: var(--accent);
}

.about {
  position: relative;
  display: grid;
  min-height: 720px;
  padding: clamp(100px, 14vw, 180px) 24px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.about__ornament {
  position: absolute;
  top: 50%;
  left: 8%;
  color: transparent;
  font-family: var(--serif-latin);
  font-size: min(62vw, 720px);
  font-style: italic;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(162, 134, 83, 0.25);
  transform: translateY(-50%);
  user-select: none;
}

.about__content {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  margin-left: min(26vw, 320px);
}

.about__lead {
  margin: 32px 0 22px;
  color: var(--accent);
  font-family: var(--serif-latin);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

.about__content > p:not([class]) {
  margin: 0;
  text-align: justify;
  text-justify: inter-ideograph;
}

.about__notice {
  margin: 42px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 2;
}

.about__notice span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 160px;
  padding: 34px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-footer p { margin: 0; }
.site-footer > p:not(.site-footer__copyright) { grid-column: 2; justify-self: center; }
.site-footer > a { grid-column: 3; justify-self: end; text-decoration: none; }
.site-footer__copyright { grid-column: 1 / -1; margin-top: 20px !important; text-align: center; }

/* Archive and document pages */
.site-header--subpage { position: relative; justify-content: space-between; }

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-mark__symbol {
  color: var(--accent);
  font-family: var(--serif-latin);
  font-size: 30px;
  font-style: italic;
  line-height: 1;
}

.site-mark__name {
  font-family: var(--serif-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.subpage-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 80px 24px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.subpage-hero::before,
.subpage-hero::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 440px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  opacity: 0.65;
  transform: translate(-50%, -50%);
}

.subpage-hero::after { width: min(39vw, 330px); }
.subpage-hero__content { position: relative; z-index: 1; }

.subpage-hero__eyebrow,
.document-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--serif-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.subpage-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-indent: 0.14em;
}

.subpage-hero__description { margin: 22px 0 0; color: var(--muted); font-size: 0.86rem; }

.breadcrumb {
  display: flex;
  gap: 9px;
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 25px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.archive { padding: 85px clamp(24px, 6vw, 80px) 130px; }

.work-list {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.work-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: 42px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 220ms ease, padding 220ms ease;
}

.work-card:hover { padding-right: 24px; padding-left: 24px; background: var(--paper-light); }
.work-card__number { color: var(--accent); font-family: var(--serif-latin); font-weight: 600; letter-spacing: 0.15em; }
.work-card h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: 0.08em; line-height: 1.45; }
.work-card__author { margin: 9px 0 0; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; }
.work-card__meta { margin: 13px 0 0; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }
.work-card__actions { display: flex; gap: 10px; align-items: center; }
.work-card__actions a {
  display: inline-flex;
  min-width: 86px;
  min-height: 46px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.work-card__actions a:hover { border-color: var(--accent); background: var(--accent); color: var(--paper-light); }
.work-card__actions span { color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }
.work-card__actions a:hover span { color: inherit; }

.document-hero {
  position: relative;
  display: grid;
  min-height: 620px;
  padding: 100px 24px 110px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.document-hero::before {
  position: absolute;
  width: min(74vw, 670px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  opacity: 0.65;
}

.document-hero::after {
  position: absolute;
  width: min(57vw, 510px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  content: "";
  opacity: 0.55;
  transform: rotate(45deg);
}

.document-hero__content { position: relative; z-index: 1; width: min(100%, 850px); }
.document-hero__author { margin: 0 0 20px; color: var(--muted); font-size: 24px; letter-spacing: 0.18em; }
.document-hero h1 { margin: 0; font-size: clamp(3.2rem, 9vw, 6.8rem); font-weight: 400; letter-spacing: 0.12em; line-height: 1.2; text-indent: 0.12em; }
.document-hero__latin { margin: 22px 0 0; color: var(--accent); font-family: var(--serif-latin); font-size: 1.1rem; font-style: italic; letter-spacing: 0.2em; }
.document-hero__volume { margin: 24px 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.16em; }
.document-layout { position: relative; }

.document-hero--long h1 {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
}

.document-hero--commentary {
  min-height: 680px;
  padding: 120px max(7vw, 64px) 82px;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--paper-light);
  background:
    linear-gradient(90deg, rgba(19, 18, 15, 0.9) 0%, rgba(19, 18, 15, 0.66) 38%, rgba(19, 18, 15, 0.18) 72%, rgba(19, 18, 15, 0.08) 100%),
    linear-gradient(180deg, rgba(19, 18, 15, 0.12) 38%, rgba(19, 18, 15, 0.68) 100%),
    url("images/hero-galatians-commentary.jpg") 50% 50% / cover no-repeat;
}

.document-hero--commentary::before,
.document-hero--commentary::after { display: none; }
.document-hero--commentary .document-hero__content { width: min(100%, 720px); text-align: left; }
.document-hero--commentary .document-hero__author { color: rgba(242, 238, 229, 0.72); }
.document-hero--commentary h1 { text-indent: 0; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28); }
.document-hero--commentary .document-hero__volume { color: rgba(242, 238, 229, 0.88); }

@media (min-width: 821px) {
  .document-hero h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); white-space: nowrap; }
  .document-hero--long h1 { font-size: clamp(3rem, 6.5vw, 5.2rem); white-space: normal; }
}

.document-toc {
  position: absolute;
  top: 0;
  left: 0;
  width: max(220px, calc((100vw - 780px) / 2 - 58px));
  height: 100%;
  border-right: 1px solid var(--line);
}

.document-toc__inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); padding: 55px 28px 40px clamp(24px, 4vw, 64px); overflow: auto; }
.document-toc__label { margin: 0 0 22px; color: var(--muted); font-family: var(--serif-latin); font-size: 10px; letter-spacing: 0.2em; }
.document-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.document-toc a { color: var(--muted); font-size: 11px; text-decoration: none; }
.document-toc a:hover { color: var(--accent); }
.document-toc .book-toc { grid-template-columns: 1fr; gap: 10px; }
.book-toc a { display: flex; justify-content: space-between; gap: 14px; }
.book-toc a span { font-family: var(--serif-ja); font-size: 9px; letter-spacing: 0.06em; }

.document {
  width: min(calc(100% - 48px), 780px);
  margin: 0 auto;
  padding: 100px 0 150px;
}

.document--overview { width: min(calc(100% - 48px), 920px); }

.volume-index { padding-top: 10px; }
.volume-index__eyebrow { margin: 0 0 12px; color: var(--accent); font-family: var(--serif-latin); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; }
.volume-index > h2 { margin: 0 0 44px; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: 0.12em; }
.volume-list { border-top: 1px solid var(--ink); }

.volume-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 36px;
  gap: 24px;
  align-items: center;
  min-height: 132px;
  padding: 28px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.volume-card:hover { padding-right: 28px; padding-left: 28px; background: var(--paper-light); }
.volume-card__latin { color: var(--accent); font-family: var(--serif-latin); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; }
.volume-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; letter-spacing: 0.12em; }
.volume-card__meta { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }
.volume-card__arrow { color: var(--accent); font-size: 22px; transition: transform 180ms ease; }
.volume-card:hover .volume-card__arrow { transform: translateX(5px); }

.source-note {
  margin: 0 0 95px;
  padding: 35px clamp(26px, 5vw, 48px);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: var(--accent-soft);
}

.source-note p { margin: 0 0 1.15em; color: var(--muted); font-size: 16px; line-height: 2; }
.source-note p:last-child { margin-bottom: 0; }
.source-note strong { color: var(--accent); font-size: inherit; letter-spacing: 0.08em; }
.source-note a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.source-note h2 { margin: 0 0 18px; color: var(--accent); font-size: 18px; font-weight: 600; letter-spacing: 0.1em; }
.source-note h2:not(:first-child) { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.source-note ul { margin: 0; padding-left: 1.5em; }
.source-note li { margin-bottom: 0.65em; color: var(--muted); font-size: 16px; line-height: 2; }
.source-note code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.9em; }
.source-note h3 { margin: 28px 0 14px; color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; }
.source-note blockquote { margin: 1.3em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--line); }
.source-note table { display: block; max-width: 100%; margin: 1.5em 0; overflow-x: auto; border-collapse: collapse; color: var(--muted); font-size: 12px; line-height: 1.7; }
.source-note th,
.source-note td { min-width: 110px; padding: 9px 11px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.source-note th { color: var(--accent); font-weight: 600; }
.chapter { padding-top: 50px; }
.chapter + .chapter { margin-top: 85px; border-top: 1px solid var(--line); }

.book-divider {
  margin: 20px 0 45px;
  padding: 90px 0 55px;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.book-divider:first-of-type { padding-top: 0; }
.book-divider__latin { margin: 0 0 12px; color: var(--accent); font-family: var(--serif-latin); font-size: 14px; font-weight: 600; letter-spacing: 0.22em; }
.book-divider h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; letter-spacing: 0.14em; }
.marcion-chapter + .marcion-chapter { margin-top: 85px; border-top: 1px solid var(--line); }

.work-section { scroll-margin-top: 24px; }
.work-section + .work-section { margin-top: 52px; }
.work-section h3 { margin: 0 0 24px; color: var(--accent); font-family: var(--serif-latin); font-size: 14px; font-weight: 600; letter-spacing: 0.18em; }
.work-section p { margin: 0 0 2em; font-size: 18px; text-align: justify; text-justify: inter-ideograph; }

.chapter > h2,
.footnotes > h2 {
  margin: 0 0 50px;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.chapter > h2::before { display: block; margin-bottom: 10px; color: var(--accent); content: attr(data-chapter); font-family: var(--serif-latin); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; }
.chapter > p { margin: 0 0 2em; font-size: 18px; text-align: justify; text-justify: inter-ideograph; }

.scripture-verse {
  display: grid;
  grid-template-columns: 3.8em minmax(0, 1fr);
  column-gap: 0.7em;
  align-items: baseline;
  scroll-margin-top: 24px;
  line-height: 1.7;
}
.scripture-chapter > .scripture-verse { margin-bottom: 1.5em; }
.verse-number {
  display: inline-block;
  color: var(--accent);
  font-family: var(--serif-latin);
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  vertical-align: 0.12em;
}
.verse-text { min-width: 0; }
.footnotes code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }
.footnotes + .source-note { margin-top: 90px; }

.commentary-document > .commentary-introduction { margin-bottom: 100px; }
.commentary-introduction__section { padding: 0 0 64px; scroll-margin-top: 24px; border-bottom: 1px solid var(--line); }
.commentary-introduction__section + .commentary-introduction__section { padding-top: 64px; }
.commentary-introduction__section > h2 { margin: 0 0 34px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; letter-spacing: 0.09em; }
.commentary-introduction__section .commentary-subheading { margin: 34px 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.55; letter-spacing: 0.05em; }
.commentary-introduction__section > h2 + .commentary-subheading { margin-top: 0; }
.commentary-introduction__section p { margin: 0 0 1.6em; font-family: var(--sans-ja); font-size: 17px; line-height: 1.7; letter-spacing: 0.02em; text-align: left; }
.commentary-introduction__section p:last-child { margin-bottom: 0; }
.commentary-introduction__section strong { color: var(--accent); font-weight: 600; }
.commentary-entry { padding: 42px 0; scroll-margin-top: 24px; border-top: 1px solid var(--line); }
.commentary-entry:last-child { border-bottom: 1px solid var(--line); }
.commentary-entry__header { display: flex; margin-bottom: 24px; align-items: baseline; justify-content: space-between; gap: 24px; }
.commentary-entry__header h3 { margin: 0; color: var(--accent); font-family: var(--serif-latin); font-size: 18px; font-weight: 600; letter-spacing: 0.14em; }
.commentary-entry__header a { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-decoration: none; }
.commentary-entry__header a::after { margin-left: 7px; content: "→"; }
.commentary-entry p { margin: 0 0 1.6em; font-family: var(--sans-ja); font-size: 17px; line-height: 1.7; letter-spacing: 0.02em; text-align: left; }
.commentary-entry p:last-child { margin-bottom: 0; }
.commentary-entry code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.86em; }
.commentary-appendix { margin-top: 90px; margin-bottom: 0; }
.commentary-appendix + .commentary-appendix { margin-top: 40px; }

.synopsis {
  position: relative;
  margin: 0 0 48px;
  padding: 27px 30px 27px 34px;
  background: var(--paper-light);
}

.synopsis p { margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.synopsis strong { color: var(--gold); font-size: 16px; letter-spacing: 0.1em; }
.footnote-ref { margin-left: 0.08em; color: var(--accent); font-family: var(--serif-latin); font-size: 0.72em; line-height: 0; }
.footnote-ref a { text-decoration: none; }
.footnotes { margin-top: 110px; padding-top: 90px; border-top: 1px solid var(--ink); }
.footnotes > h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.footnotes ol { margin: 0; padding-left: 2.2em; }
.footnotes li { margin: 0 0 1.35em; padding-left: 0.5em; color: var(--muted); font-size: 0.78rem; line-height: 1.9; }
.footnotes li:target { color: var(--ink); background: var(--accent-soft); }
.footnote-backref { margin-left: 0.55em; color: var(--accent); text-decoration: none; }
.volume-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 100px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.volume-navigation a { display: flex; min-height: 105px; padding: 24px 28px; flex-direction: column; justify-content: center; color: inherit; font-size: 20px; letter-spacing: 0.1em; text-decoration: none; transition: background 180ms ease; }
.volume-navigation a + a { border-left: 1px solid var(--line); text-align: right; }
.volume-navigation a:hover { background: var(--paper-light); }
.volume-navigation span { margin-bottom: 7px; color: var(--accent); font-family: var(--serif-latin); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; }
.document-footer-note { margin: 90px 0 0; padding: 30px; border: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; line-height: 2; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .site-header { height: 72px; padding: 0 20px; }
  .menu-button {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    padding: 10px 0 10px 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif-latin);
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .menu-button__lines,
  .menu-button__lines::before {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }
  .menu-button__lines::before { transform: translateY(5px); }
  .menu-button[aria-expanded="true"] .menu-button__lines { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-button__lines::before { transform: rotate(-90deg); }
  .header-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 30px 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-light);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { font-size: 12px; }
  .hero { height: 600px; padding: 96px 20px 68px; }
  .hero__geometry { width: min(108vw, 440px); }
  .collection-card { grid-template-columns: 50px 1fr; gap: 10px; min-height: 170px; padding: 30px 0; }
  .collection-card__status { grid-column: 2; justify-self: start; margin-top: 4px; }
  .about__ornament { left: -12%; font-size: 92vw; }
  .about__content { margin-left: 10vw; }
  .site-footer { grid-template-columns: 1fr auto; gap: 24px; }
  .site-footer > p:not(.site-footer__copyright) { display: none; }
  .site-footer > a { grid-column: 2; }
  .site-mark__name { display: none; }
  .subpage-hero { min-height: 330px; }
  .subpage-hero::before { width: min(100vw, 380px); }
  .subpage-hero::after { width: min(76vw, 285px); }
  .work-card { grid-template-columns: 46px 1fr; gap: 14px; padding: 34px 0; }
  .work-card__actions { grid-column: 2; justify-self: start; }
  .document-hero { min-height: 540px; padding-top: 90px; }
  .document-hero--commentary { min-height: 600px; padding: 100px 38px 62px; background-position: 61% 50%; }
  .document-toc { display: none; }
  .document { padding-top: 75px; }
  .volume-card { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .volume-card__meta { grid-column: 2; }
  .volume-card__arrow { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(4.2rem, 23vw, 6rem); letter-spacing: 0.1em; }
  .library { padding-right: 20px; padding-left: 20px; }
  .collection-card { grid-template-columns: 36px 1fr; }
  .collection-card__number { font-size: 12px; }
  .about { min-height: 650px; padding-right: 22px; padding-left: 22px; }
  .about__content { margin-left: 0; }
  .about__ornament { top: 18%; left: 50%; font-size: 90vw; transform: translate(-50%, -50%); }
  .site-footer { min-height: 135px; padding: 28px 20px; }
  .breadcrumb { width: calc(100% - 40px); }
  .archive { padding-right: 20px; padding-left: 20px; }
  .document-hero { min-height: 500px; padding-right: 20px; padding-left: 20px; }
  .document-hero--commentary { min-height: 560px; padding: 92px 24px 52px; background-position: 64% 50%; }
  .document-hero::before { width: 125vw; }
  .document-hero::after { width: 92vw; }
  .document { width: calc(100% - 38px); padding-bottom: 100px; }
  .document--overview { width: calc(100% - 38px); }
  .chapter + .chapter { margin-top: 65px; }
  .chapter > p { text-align: left; }
  .scripture-verse { grid-template-columns: 2.5em minmax(0, 1fr); column-gap: 0.15em; }
  .commentary-entry p { text-align: left; }
  .commentary-introduction__section p { text-align: left; }
  .commentary-introduction__section .commentary-subheading { margin-top: 28px; padding-left: 12px; font-size: 1.08rem; }
  .commentary-introduction__section > h2 + .commentary-subheading { margin-top: 0; }
  .work-section p { text-align: left; }
  .source-note,
  .synopsis { margin-right: -4px; margin-left: -4px; }
  .volume-index > h2 { margin-bottom: 30px; }
  .volume-card { grid-template-columns: 1fr 28px; gap: 8px 16px; min-height: 122px; padding: 24px 8px; }
  .volume-card__latin { grid-column: 1; }
  .volume-card h2 { grid-column: 1; }
  .volume-card__meta { grid-column: 1; }
  .volume-card__arrow { grid-row: 1 / span 3; grid-column: 2; }
  .volume-navigation { margin-top: 75px; }
  .volume-navigation a { min-height: 92px; padding: 20px 14px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
