@font-face {
  font-family: Cormorant;
  src: url("/fonts/editorial/cormorant-v1.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/editorial/inter-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sans: Inter, system-ui, sans-serif;
  --chapter-display: Cormorant, Georgia, serif;
}

body { font: 400 clamp(1rem, 1.4vw, 1.11rem) / 1.8 var(--sans); }
h1, h2 { font-family: var(--chapter-display); font-weight: 500; }
.opening { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.opening h1 { font-size: clamp(3.55rem, 6.9vw, 6.2rem); letter-spacing: -.045em; }
.opening .cover, .opening .chapter-art { margin: 0; width: 100%; }
.opening .cover { border: 0; }
.opening .chapter-art img { border: 1px solid var(--line); }
.deck {
  font-family: var(--chapter-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: .8rem 0 1.25rem;
}
.series-position {
  color: var(--accent);
  font: 600 .8rem/1.55 var(--sans);
  letter-spacing: .085em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.reading-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
  gap: .55rem 1.45rem;
  font-size: .89rem;
  font-weight: 570;
}
.reading-paths a { padding-block: .45rem; }
#chapters { scroll-margin-block-start: 1.5rem; }
.chapter-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem 2rem;
  width: min(100%, 47rem);
  margin: 0 auto clamp(2.75rem, 6vw, 4.75rem);
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  font: 540 .9rem/1.45 var(--sans);
}
.chapter-map a {
  color: var(--ink);
  text-decoration-color: var(--line);
  padding-block: .55rem;
}
.chapter-map a:hover, .chapter-map [aria-current] { color: var(--accent); text-decoration-color: currentColor; }
.chapter-menu { max-width: 47rem; margin: 1rem auto 2.5rem; }
.chapter-menu .chapter-map { margin: .75rem 0 0; }
.essay-chapter h2 { font-size: clamp(2.65rem, 5.4vw, 4rem); line-height: 1.02; }
.essay-chapter .chapter-art { margin: 1.5rem auto 2.15rem; width: min(100%, 50rem); }
.essay-chapter:first-child .chapter-art { margin-top: 0; }
.chapter-art img { background: var(--panel); }
.prose { overflow-wrap: break-word; }
.prose a { text-decoration-thickness: 1px; }
.chapter-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .7rem 1.3rem;
  margin: 0 auto 2.5rem;
  font: 550 .88rem/1.6 var(--sans);
}
.finishing-series { width: min(100%, 47rem); }
.finishing-series [aria-current] { color: var(--muted); font-weight: 570; padding-block: .35rem; }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .opening h1 { font-size: clamp(3rem, 12vw, 4.25rem); }
  .chapter-map { grid-template-columns: 1fr; gap: .1rem; }
  .chapter-map a { min-height: 42px; }
  .essay-chapter .chapter-art { margin: 1rem auto 1.6rem; }
}

@media print {
  .chapter-map, .chapter-menu, .chapter-navigation, .reading-paths, .finishing-series, .series-position { display: none; }
}
