@font-face {
  font-family: "Novoposelensky";
  src: url("./fonts/Novoposelensky.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("./fonts/NotoSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("./fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("./fonts/SourceSansPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --soft: #f7f6f4;
  --ink: #252326;
  --body: #464347;
  --quiet: #69666a;
  --rule: #dbd8d7;
  --rubric: #882d3d;
  --rubric-hover: #692031;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 16px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans) }
body:has(dialog[open]) { overflow: hidden }
h1,h2,h3,p,figure,dl,dd,ol { margin: 0 }
button,select { font: inherit }
button,a,select { -webkit-tap-highlight-color: transparent }
button { cursor: pointer; color: inherit }
a { text-decoration: none; color: inherit }
button:disabled { cursor: default }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 4px }
::selection { background: #f1dbe0; color: var(--ink) }
.skip { position: absolute; left: 16px; top: -96px; z-index: 8; padding: 8px 16px; background: var(--rubric); color: #fff }
.skip:focus { top: 8px }
.shell { width: min(1240px, calc(100% - var(--gutter) - var(--gutter))); margin: auto }
.mast { min-height: 72px; gap: 16px; border-bottom: 1px solid var(--rule) }
.identity { display: inline-flex; align-items: center; gap: 9px; font: 400 clamp(19px,1.8vw,24px)/1.2 var(--serif); letter-spacing: -.025em }
.author-portrait { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; flex-shrink: 0 }
.author-album { padding: clamp(24px,3vw,42px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 8px }
#panorama-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; background: var(--soft) }
.album-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 16px 0 0 }
.album-byline { display: flex; align-items: center; gap: 12px }
.album-byline h2 { font-size: clamp(21px,2.2vw,30px); letter-spacing: -.03em }
.album-byline .kicker { font-size: 15px; line-height: 1.4 }
.album-portrait { display: block; width: 52px; height: 52px; border-radius: 50% }
.album-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(14px,2.3vw,32px); color: var(--quiet); font-size: 16px }
.album-choices a { padding: 8px 0; border-bottom: 2px solid transparent }
.album-choices a[aria-current] { color: var(--rubric); border-color: currentColor; font-weight: 600 }
.album-choices a:hover { color: var(--ink) }
.publication-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 18px; font-size: 16px }
.chapter-end .publication-links,.reader-end .publication-links { justify-content: center; margin: 16px auto }
.book-opening { font: inherit; padding: 6px 0; border: 0; background: transparent }
@media (max-width: 680px) {
  .album-caption { align-items: start; flex-direction: column; gap: 4px; padding-top: 12px }
  .album-portrait { width: 42px; height: 42px }
  .album-choices { font-size: 15px }
}
.mast nav { gap: clamp(16px,3vw,40px); color: var(--body) }
.mast nav a,.footer a { padding-block: 8px }
.mast a:hover,.footer a:hover { color: var(--rubric) }
.language-switch { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; font: 600 14px/1.2 var(--sans) }
.language-switch [aria-current],.language-divider { color: var(--quiet); font-weight: 400 }
.language-switch a { color: var(--rubric); text-decoration: underline; text-underline-offset: 3px }
@media (max-width: 440px) {
  .mast .language-switch [aria-current],.mast .language-divider { display: none }
}

/* The clean illustration supplies its own white field. The lettering lives in HTML. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(612px,47vw,700px);
  padding-block: clamp(48px,5.5vw,80px);
}
.hero-text { position: relative; z-index: 1; width: 54% }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--quiet); font-size: 16px; line-height: 1.4 }
h1,h2,h3 { font: 400 1em/1.13 var(--serif) }
h1 { margin: 20px 0 24px; font-family: "Novoposelensky", var(--serif); font-size: clamp(33px,4.95vw,72px); line-height: .93; letter-spacing: -.009em; overflow-wrap: break-word }
h1 span { display: block }
.synopsis { max-width: 46ch; color: var(--body); font-size: clamp(18px,1.35vw,21px); line-height: 1.43; text-wrap: pretty }
.hero-actions { align-items: center; gap: 12px 28px; margin-top: 28px }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 20px; border: 1px solid transparent; border-radius: 3px; font: 600 17px/1.25 var(--sans) }
.main-btn { background: var(--rubric); color: #fff }
.main-btn:enabled:hover,.main-btn[href]:hover { background: var(--rubric-hover) }
.main-btn:disabled { background: #a6969a }
.secondary,.tier-btn,.text-link { color: var(--rubric); text-decoration-line: underline; text-underline-offset: 5px; text-decoration-color: #cba7ae }
.secondary { background: transparent; padding-inline: 0 }
.secondary:hover,.tier-btn:hover,.text-link:hover { color: var(--rubric-hover); text-decoration-color: currentColor }
.status { color: var(--rubric); font-size: 15px }
.status:not(:empty) { margin-top: 12px }
.facts { margin-top: 36px; gap: 4px 24px }
.facts div { display: flex; gap: 6px; align-items: baseline }
.facts dt,.range { color: var(--quiet); font-size: 15px }
.facts dd { color: var(--body); font-size: 15px; font-variant-numeric: tabular-nums }
.cover-stage { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 59%; pointer-events: none; overflow: hidden }
.cover-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.section { border-top: 1px solid var(--rule); padding: clamp(40px,5vw,72px) 0 }
.section-head { flex-wrap: wrap; gap: 16px; margin-bottom: 24px }
h2 { font-size: clamp(32px,3.6vw,52px); letter-spacing: -.045em }
.section-note { margin: -12px 0 24px; color: var(--quiet); font-size: 16px }
.filters { align-items: center; gap: 4px 20px }
.filters button { min-height: 40px; padding: 4px 0; background: transparent; color: var(--quiet); border: 0; border-bottom: 2px solid transparent; font: 400 16px/1.2 var(--sans) }
.filters button[aria-pressed="true"] { color: var(--rubric); border-bottom-color: var(--rubric); font-weight: 600 }
.filters button:hover { color: var(--ink) }
.events { padding: 0; border-top: 1px solid var(--rule) }
.event { display: grid; grid-template-columns: minmax(84px,.5fr) minmax(156px,1.75fr) minmax(96px,.6fr) minmax(124px,.6fr); align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--rule) }
.event time { font-size: 18px; font-variant-numeric: tabular-nums }
.event-title { font-size: 19px; font-weight: 600 }
.event-meta { display: contents }
.pages,.access { color: var(--quiet); font-size: 16px }
.access { justify-self: end }
.calendar-nav { margin-top: 12px; gap: 12px }
.page-btn,.close { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--rule); border-radius: 3px; font-size: 20px; line-height: 1 }
.page-btn:disabled { opacity: .42 }
.page-btn:enabled:hover,.close:hover { color: var(--rubric); border-color: var(--rubric) }

/* One aligned price comparison, like the contents page of the edition. */
.tiers { display: block; border-top: 1px solid var(--rule) }
.tier { display: grid; grid-template-columns: minmax(150px,.95fr) minmax(124px,.53fr) minmax(260px,1.85fr) auto; gap: 12px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule) }
.tier h3 { font-size: clamp(20px,1.9vw,26px); letter-spacing: -.025em }
.price { font: 600 23px/1.25 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap }
.period { margin-left: 4px; color: var(--quiet); font-size: 15px; font-weight: 400 }
.perk { color: var(--body); font-size: 17px; line-height: 1.43 }
.tier-btn { justify-self: end; padding: 4px 0; border: 0; background: none; font: 600 16px/1.3 var(--sans) }
.source { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: clamp(32px,8vw,128px) }
.source h2 { margin-top: 8px; max-width: 16ch }
.source-author { margin-top: 12px; color: var(--quiet) }
.book-details > p { max-width: 52ch; color: var(--body); font-size: clamp(18px,1.45vw,21px); line-height: 1.55; text-wrap: pretty }
#book-link { margin-top: 16px }
.text-link { font-weight: 600 }
.unavailable { color: var(--quiet); font-size: 16px }
.footer { border-top: 1px solid var(--rule); padding: 16px 0 24px; gap: 16px; color: var(--quiet); font-size: 16px }
.no-js { position: fixed; inset: auto 16px 16px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); padding: 16px }
dialog { border: 1px solid var(--rule); color: var(--ink); background: var(--paper); padding: 0 }
dialog::backdrop { background: rgb(34 31 33 / .48) }
#reader { width: min(100%,920px); max-width: 100%; height: min(96vh,1100px); height: min(96dvh,1100px); max-height: 100%; overflow: hidden }
#reader[open] { display: flex; flex-direction: column }
.reader-bar,.platform-head { gap: 16px }
.reader-bar { position: relative; padding: 8px 20px; border-bottom: 1px solid var(--rule); background: var(--paper) }
.reader-bar strong { display: block; font: 400 20px/1.3 var(--serif); letter-spacing: -.02em }
.reader-position { gap: 4px; margin-top: 4px; color: var(--quiet); font-size: 15px }
.reader-position select { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 2px; padding: 2px 4px }
.close { flex: 0 0 44px; font-size: 28px }
.reader-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; background: var(--soft) }
#panels { max-width: 800px; margin: auto }
.strip img { display: block; width: 100%; height: auto }
.image-error { padding: 16px; color: var(--rubric) }
.reader-end { text-align: center; padding: 32px 16px 48px; background: var(--paper) }
.reader-end .btn { margin-top: 12px }
.reader-end .next-release,.chapter-end .next-release,.page-end .next-release { margin: .5rem 0 1rem; font: 400 1.1rem/1.5 var(--sans); color: var(--body) }
.page-end .next-release { flex-basis: 100%; margin-bottom: .15rem }
.next-release time { white-space: nowrap }
#platforms { width: min(440px,calc(100vw - 24px)); padding: 24px; border-radius: 4px }
#platforms h2 { margin: 12px 0 8px; font-size: 32px }
#platform-price { color: var(--quiet); margin-bottom: 16px }
.platform-row { gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule) }
.platform-row > small { text-align: right; font-size: 15px; color: var(--quiet) }
@media (max-width: 920px) {
  .hero { min-height: 580px }
  .hero-text { width: 59% }
  .cover-stage { width: 54% }
  .tier { grid-template-columns: minmax(150px,.85fr) minmax(96px,.42fr) minmax(200px,1.4fr); gap: 8px 16px }
  .tier-btn { grid-column: 3; justify-self: start }
}
@media (max-width: 680px) {
  :root { --gutter: clamp(16px,5vw,32px) }
  .mast { min-height: 56px; gap: 12px }
  .mast nav { gap: clamp(12px,3vw,20px); font-size: 15px }
  .identity { font-size: 19px }
  .hero { grid-template-columns: minmax(0,1fr); min-height: unset; gap: 0; padding: 28px 0 32px }
  .hero-text { display: contents }
  .hero .kicker { grid-row: 1; font-size: 15px }
  h1 { grid-row: 2; margin: 12px 0 0; font-size: clamp(28px,9.2vw,56px) }
  .cover-stage { position: static; grid-row: 3; width: calc(100% + var(--gutter)); height: clamp(124px,38vw,252px); margin: 4px 0 8px }
  .cover-stage img { object-position: 50% 61%; mask-image: none }
  .synopsis { grid-row: 4; max-width: 48ch; font-size: 18px; line-height: 1.4 }
  .hero-actions { grid-row: 5; gap: 8px 20px; margin-top: 20px }
  .btn { min-height: 44px; font-size: 16px; padding: 8px 14px }
  .secondary { padding-inline: 0 }
  .hero .status:empty { display: none }
  .facts { margin-top: 20px; gap: 4px 20px }
  .section-head { align-items: start; gap: 8px; margin-bottom: 16px }
  .calendar .section-head { flex-direction: column }
  .filters { gap: 16px }
  .section-note { margin: 0 0 16px }
  .event { grid-template-columns: 68px minmax(0,1fr); gap: 2px 12px; min-height: 64px }
  .event time { grid-row: 1/3; align-self: start; font-size: 17px }
  .event-title { grid-column: 2; grid-row: 1; font-size: 18px }
  .event-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; grid-column: 2; grid-row: 2 }
  .pages,.access { font-size: 15px }
  .tier { grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 8px 12px; padding: 20px 0 }
  .price { text-align: right; font-size: 20px }
  .period { font-size: 14px }
  .perk,.tier-btn { grid-column: 1/-1 }
  .tier-btn { justify-self: start }
  .source { grid-template-columns: minmax(0,1fr); gap: 20px }
  .source-author { margin-top: 8px }
  #reader { width: 100%; height: 100vh; height: 100dvh; border: 0 }
  .reader-bar { padding: 8px 12px }
  .reader-scroll { scrollbar-gutter: auto }
}
@media (max-width: 370px) {
  .mast nav { font-size: 14px; gap: 12px }
  .mast .identity { gap: 5px; font-size: 16px }
  .author-portrait { width: 28px; height: 28px }
  .hero { padding-top: 20px }
  .synopsis { font-size: 17px }
  .hero-actions { gap: 4px 16px; margin-top: 12px }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
