.chapter-reader { --book-background: #0b1119; }
.chapter-reader .page-stage {
  background: radial-gradient(ellipse 46rem 20rem at 50% 0%, #192733, transparent), var(--book-background);
  padding-block: max(1rem, env(safe-area-inset-top)) max(3rem, env(safe-area-inset-bottom));
}
.reader-header, .reader-main {
  width: min(100%, 43rem);
  margin-inline: auto;
}
.reader-header, .reader-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  border-bottom: 1px solid #334754;
}
.reader-header a, .reader-end a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c7e8ef;
  font-size: .92rem;
}
.reader-title { margin-block: clamp(2rem, 8vw, 5rem) clamp(2rem, 6vw, 3rem); }
.reader-title h1 { margin: .25rem 0 .7rem; font: 600 clamp(3rem, 12vw, 6rem)/1 Georgia, serif; }
.reader-title > p:last-child { color: #b7cbd5; }
.reader-prose {
  max-width: 66ch;
  color: #e0e9ef;
  font: clamp(1.06rem, 1rem + .35vw, 1.25rem)/1.78 Georgia, serif;
  overflow-wrap: break-word;
}
.reader-prose p { margin-block: 0 1em; }
.reader-prose .chapter-continuation > p { font: inherit; }
.reader-end { margin-top: 3rem; border-top: 1px solid #334754; border-bottom: 0; }
.reader-priority {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  border-color: #407085;
}
.reader-priority h2 { margin: .4rem 0 .65rem; }
.reader-priority p:last-child { margin-bottom: 0; color: #b7cbd5; }
@media (prefers-reduced-motion: no-preference) {
  .reader-title, .chapter-continuation:target { animation: chapter-open .6s ease-out; }
}
@keyframes chapter-open {
  from { text-shadow: 0 0 1.25rem #63dfff80; }
  to { text-shadow: none; }
}
