html { scroll-behavior: auto; scroll-padding-top: 0 }
.hero h1 { font-family: var(--serif); font-size: clamp(40px,5.1vw,74px); letter-spacing: -.045em; line-height: 1.04 }
.page-count,.out-of { color: var(--quiet) }
.english-reader { border-top: 1px solid var(--rule) }
/* The Russian reader is a dialog; this edition remains readable as plain HTML. */
section#reader { width: auto; height: auto; max-height: none; overflow: visible }
.chapter-heading { padding: clamp(30px,4vw,60px) 0 24px }
.chapter-heading h2 { margin-top: 6px; font-size: clamp(32px,3.5vw,48px) }
.reading-tools { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 54px; padding: 5px 0; border-block: 1px solid var(--rule); background: var(--paper); font-size: 16px }
.reading-tools select { min-height: 38px; padding: 0 5px; color: var(--ink); background: white; border: 1px solid var(--rule); border-radius: 2px }
.reading-top { margin-left: auto; color: var(--rubric); text-decoration: underline; text-underline-offset: 3px }
.leaves { max-width: 800px; margin: 0 auto; background: var(--soft) }
.leaf { scroll-margin-top: 54px }
.leaf img { display: block; width: 100%; height: auto }
.chapter-end { margin: 24px auto 36px; text-align: center }
.chapter-end p { font: 400 24px/1.4 var(--serif); margin-bottom: 8px }
.single-reader { max-width: 800px; margin: auto; padding-bottom: 2rem }
.page-mast,.page-heading,.page-nav,.page-end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding: 1rem max(12px,2%); border-bottom: 1px solid var(--rule) }
.page-mast > :first-child { font: 400 clamp(18px,3vw,25px)/1.3 var(--serif) }
.page-heading h1 { margin-top: .2rem; font: 400 clamp(25px,4vw,36px)/1.15 var(--serif) }
.page-heading h1 span { color: var(--quiet); font: 400 16px var(--sans) }
.page-art img { display: block; width: 100%; height: auto }
.page-art figcaption { color: var(--body); padding: .6rem max(12px,2%); border-bottom: 1px solid var(--rule) }
.page-art summary { cursor: pointer; color: var(--rubric) }
.page-art details p { margin: .55rem 0 }
.page-nav [rel="next"] { margin-left: auto }
@media (max-width: 680px) {
  .hero h1 { font-size: clamp(38px,10vw,60px) }
  .leaves { width: calc(100% + var(--gutter) + var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)) }
  .reading-tools { min-height: 50px; font-size: 15px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter) }
  .leaf { scroll-margin-top: 50px }
}
