:root {
  color-scheme: light dark;
  --paper: #f5f0e6;
  --paper-raised: #fffaf0;
  --ink: #1d1b18;
  --muted: #686057;
  --rule: #cfc3b1;
  --rule-strong: #a9947f;
  --accent: #762d3b;
  --accent-strong: #5d1f2c;
  --accent-soft: #e9d7d8;
  --success: #285d48;
  --shadow: 0 16px 38px rgba(45, 35, 28, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --paper-raised: #211f1c;
    --ink: #f0e9de;
    --muted: #b8aea1;
    --rule: #50483f;
    --rule-strong: #76695c;
    --accent: #c97986;
    --accent-strong: #e49aa6;
    --accent-soft: #3b262b;
    --success: #85c5aa;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.wordmark,
.stat strong,
.eyebrow {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.24;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-size: 1.34rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.wordmark small {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0.45rem;
  vertical-align: 0.2rem;
}

.nav {
  display: flex;
  gap: clamp(0.8rem, 2.4vw, 1.8rem);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav a {
  padding: 0.25rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  border-color: currentColor;
}

.hero {
  padding: clamp(4.5rem, 9vw, 8.4rem) 0 clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero__lede {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fffaf3;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button--quiet {
  background: transparent;
  color: var(--accent);
}

.search-card {
  padding: 1.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.search-card label {
  display: block;
  font-weight: 750;
  margin-bottom: 0.55rem;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font: inherit;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.search-suggestion img {
  width: 42px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.search-suggestion strong,
.search-suggestion span {
  display: block;
  line-height: 1.25;
}

.search-suggestion span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-strip {
  border-block: 1px solid var(--rule);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 1.45rem 1.1rem 1.45rem 0;
  border-right: 1px solid var(--rule);
}

.stat:not(:first-child) {
  padding-left: 1.4rem;
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
}

.stat span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 430px;
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2.2rem) clamp(0.8rem, 2vw, 1.6rem);
}

.book-card {
  min-width: 0;
}

.book-card > a {
  text-decoration: none;
}

.book-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  background: #40342d;
  border: 1px solid rgba(20, 15, 12, 0.18);
  box-shadow: 0 7px 16px rgba(45, 35, 28, 0.16);
  overflow: hidden;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 8px 0 12px rgba(25, 18, 14, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover--type {
  padding: 1rem;
  background: #315647;
  color: #f9f2df;
  text-align: center;
}

.book-cover--type span {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.1;
}

.book-card h3 {
  margin: 0.9rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 650;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.browse-card {
  min-height: 180px;
  padding: 1.7rem;
  background: var(--paper-raised);
  text-decoration: none;
}

.browse-card span {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.browse-card strong {
  display: block;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.browse-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.provenance {
  background: var(--accent-soft);
  border-block: 1px solid color-mix(in srgb, var(--accent) 30%, var(--rule));
}

.provenance__inner {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.provenance p {
  max-width: 720px;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.torrent-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.torrent-callout p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer {
  padding: 3rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.2rem;
}

.breadcrumb {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--rule-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 7rem);
  padding: 2.7rem 0 5.5rem;
}

.detail-cover {
  position: sticky;
  top: 1.2rem;
  align-self: start;
}

.detail-cover .book-cover {
  box-shadow: var(--shadow);
}

.download-panel {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.download-panel h2 {
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-panel > p {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.download-list {
  display: grid;
  gap: 0.55rem;
}

.download-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--rule-strong);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
}

.download-link span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.book-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-title {
  max-width: 790px;
  margin-top: 0.65rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.byline {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding-block: 0.8rem;
  border-block: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
}

.metadata span:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
}

.book-description {
  max-width: 720px;
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.78;
}

.book-description p:first-child::first-letter {
  float: left;
  color: var(--accent);
  font-size: 4.2rem;
  line-height: 0.75;
  padding: 0.18rem 0.45rem 0 0;
}

.license-note {
  max-width: 720px;
  margin-top: 2.6rem;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.88rem;
}

.more-books {
  padding-top: 4.5rem;
  border-top: 1px solid var(--rule);
}

.more-books .book-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.series-header {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: clamp(2rem, 7vw, 6rem);
  padding: 3rem 0 4rem;
  align-items: end;
}

.series-header h1 {
  max-width: 800px;
  margin-bottom: 1rem;
}

.series-intro {
  max-width: 760px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.18rem;
}

.series-facts {
  padding: 1.3rem;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.series-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.82rem;
}

.series-facts dt {
  color: var(--muted);
}

.series-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.episode-section {
  padding: 0 0 5rem;
}

.episode-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1rem;
}

.episode-toolbar h2,
.episode-toolbar p {
  margin-bottom: 0;
}

.episode-toolbar p {
  color: var(--muted);
  font-size: 0.85rem;
}

.episode-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.episode {
  display: grid;
  grid-template-columns: 2.2rem minmax(220px, 1fr) minmax(250px, 0.8fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.episode__number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.episode h3 {
  margin: 0 0 0.22rem;
  font-family: var(--sans);
  font-size: 0.94rem;
}

.episode__meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.episode audio {
  width: 100%;
  height: 36px;
}

.episode__download {
  font-size: 0.78rem;
  font-weight: 750;
}

.unavailable {
  justify-self: start;
  padding: 0.3rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
}

.availability-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.availability-key::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--success);
}

@media (max-width: 900px) {
  .hero,
  .series-header {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
  }

  .book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .episode {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }

  .episode audio,
  .episode .unavailable {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .masthead__inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
  }

  .wordmark small {
    display: none;
  }

  .nav {
    max-width: 210px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
  }

  .nav a:nth-child(6) {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .book-grid,
  .more-books .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browse-grid,
  .provenance__inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .browse-card {
    min-height: 140px;
  }

  .detail-layout {
    gap: 2.4rem;
  }

  .detail-cover {
    position: static;
    display: grid;
    grid-template-columns: minmax(120px, 0.75fr) minmax(165px, 1fr);
    gap: 1rem;
  }

  .download-panel {
    margin-top: 0;
  }

  .section-heading,
  .torrent-callout,
  .episode-toolbar,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .episode {
    gap: 0.75rem;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  h1,
  .book-title {
    font-size: 2.65rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .detail-cover {
    grid-template-columns: 1fr;
  }

  .detail-cover .book-cover {
    width: min(230px, 75vw);
    justify-self: center;
  }

  .episode {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .episode__download,
  .episode audio,
  .episode .unavailable {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Generator additions (index grids, journals, search, prose)
   Built on the approved mockup design system above.
   ============================================================ */

/* Typographic placeholder cover (missing scans). Color from slug hue. */
.book-cover--type {
  padding: 1rem;
  color: #f9f2df;
  text-align: center;
}
.book-cover--type span {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.12;
}
.book-cover--type small {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

/* Page intro block for index + prose pages */
.page-head {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.page-head p {
  max-width: 720px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 0;
}

.index-wrap {
  padding: 1rem 0 5rem;
}
.index-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Search results dropdown (shared with landing search-card) */
.search-results {
  margin-top: 0.9rem;
  display: none;
}
.search-results.is-open {
  display: block;
}
.search-results a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem 0.2rem;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.search-results a:first-child { border-top: 0; }
.search-results a[aria-selected="true"],
.search-results a:hover {
  background: var(--accent-soft);
}
.type-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search-results strong { display: block; font-size: 0.9rem; line-height: 1.2; }
.search-results em { display: block; font-style: normal; color: var(--muted); font-size: 0.76rem; }
.search-empty { padding: 0.6rem 0.2rem; color: var(--muted); font-size: 0.82rem; }

/* Author index (compact columns) */
.author-columns {
  columns: 3 220px;
  column-gap: 2.5rem;
  padding: 1rem 0 5rem;
}
.author-columns a {
  display: block;
  break-inside: avoid;
  padding: 0.35rem 0;
  text-decoration: none;
  font-size: 0.95rem;
}
.author-columns a span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Journal cards + index */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 1rem 0 5rem;
}
.journal-card {
  padding: 1.6rem;
  background: var(--paper-raised);
  text-decoration: none;
  min-height: 150px;
}
.journal-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.1;
}
.journal-card span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.journal-card em { font-style: normal; color: var(--accent); }

/* Issue list (journal series page) */
.issue-list {
  margin: 0 0 4rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}
.issue-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.issue-row .issue-name { font-size: 0.95rem; }
.issue-row .issue-size { color: var(--muted); font-size: 0.8rem; }
.issue-row .download-link { padding: 0.4rem 0.7rem; }

/* Lecture video */
.episode video {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.episode__handout { font-size: 0.75rem; font-weight: 650; }

/* Prose pages (about, torrents) */
.prose {
  max-width: 720px;
  padding: 1rem 0 5rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.78;
}
.prose h2 {
  font-size: 1.9rem;
  margin-top: 2.6rem;
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}
.prose ul { padding-left: 1.2rem; }
.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--paper-raised);
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--rule);
}
.torrent-file-list {
  font-family: var(--sans);
  font-size: 0.92rem;
}

.torrent-group {
  margin-top: 1.6rem;
  font-family: var(--sans);
}
.torrent-group h3 {
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.torrent-group .download-link {
  font-size: 0.9rem;
}

/* Degraded / unavailable notice on book pages */
.degraded-note {
  max-width: 720px;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--rule-strong);
  background: var(--paper-raised);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.availability-note {
  margin: 0.6rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
}

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .author-columns { columns: 1; }
  .journal-grid { grid-template-columns: 1fr; }
  .issue-row { grid-template-columns: 1fr auto; }
  .issue-row .issue-size { grid-column: 1; }
}
