@font-face {
  font-family: "CD Baskerville";
  src: url("./assets/baskerville-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CD Baskerville";
  src: url("./assets/baskerville-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CD Baskerville";
  src: url("./assets/baskerville-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
}
body {
  font-family: "CD Baskerville", Baskerville, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button {
  border: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}
.artwork { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.layer { position: absolute; display: block; height: auto; }
.layer4 {
  z-index: 1;
  left: -3.406085%;
  bottom: -2.281746cqw;
  width: 33.69709%;
  aspect-ratio: 1019 / 914;
}
.layer4 img { display: block; width: 100%; height: 100%; }
.layer5 {
  z-index: 2;
  left: -1.554233%;
  bottom: -3.406085cqw;
  width: 32.473545%;
  mix-blend-mode: color-burn;
}
.layer7 {
  z-index: 3;
  left: 0;
  top: 0;
  width: 44.675926%;
  mix-blend-mode: color-burn;
}
.masthead {
  position: absolute;
  z-index: 5;
  left: 15.155105%;
  top: 44.6%;
}
.masthead h1 {
  margin: 0;
  font-size: clamp(24px, 1.757832cqw, 53.156843px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.brand { display: block; }
.sc { font-size: .707505em; text-transform: uppercase; }
.the { color: #aaa; }
.titles {
  position: absolute;
  z-index: 5;
  left: 82.166667%;
  right: 2.5%;
  top: 43.75%;
  font-size: clamp(14px, .684151cqw, 20.688702px);
  line-height: 1.2;
}
.titles ol { padding: 0; margin: 0; list-style: none; }
.chapter { display: block; width: 100%; text-align: left; }
.chapter:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.reader-shell {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 44.642857%;
  width: 29.662698%;
}
.reader-shell[hidden] { display: none; }
.reader {
  width: calc(100% + 12px);
  height: 100%;
  padding: 0 8px 24px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  font-size: max(18px, 1.372426cqw);
  line-height: 1.2;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  overflow-wrap: normal;
}
.reader:focus { outline: none; }
.reader::-webkit-scrollbar { width: 4px; }
.reader::-webkit-scrollbar-track { background: transparent; }
.reader::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.reader[data-hint="true"], .reader:focus-visible { scrollbar-color: #aaa transparent; }
.reader[data-hint="true"]::-webkit-scrollbar-thumb,
.reader:focus-visible::-webkit-scrollbar-thumb { background: #aaa; }
@media (hover: hover) and (pointer: fine) {
  .reader:hover { scrollbar-color: #aaa transparent; }
  .reader:hover::-webkit-scrollbar-thumb { background: #aaa; }
}
.reader p { margin: 0; }
.scroll-cue {
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.scroll-cue span {
  position: absolute;
  left: 0;
  width: 3px;
  min-height: 24px;
  border-radius: 3px;
  background: #aaa;
}
.reader[data-hint="true"] + .scroll-cue { opacity: 1; }
.reader em { font-style: italic; font-weight: 400; }
.continuation, .last-exchange { margin-top: .5em; }
.coda { margin-top: .2em; font-size: .941423em; }
/* Original photo-window effect from weirdverano.com: 880 ms, 4.8 s cadence.
   It is applied only to the original pixels of Capa 4. */
.layer4.is-transfer img { animation: wvPhotoFlash 880ms linear both; }
@keyframes wvPhotoFlash {
  0% { filter: brightness(1); }
  4% { filter: brightness(.12); }
  8% { filter: brightness(4) contrast(1.5); }
  17%, 45% { filter: brightness(1); }
  50% { filter: brightness(.2); }
  56% { filter: brightness(3.4) contrast(1.35); }
  69%, 100% { filter: brightness(1); }
}
@media (max-width: 900px) {
  .masthead { left: 6%; top: max(24px, env(safe-area-inset-top)); }
  .masthead h1 { font-size: clamp(24px, 4.1cqw, 34px); }
  .titles { left: 6%; right: 6%; top: max(72px, calc(env(safe-area-inset-top) + 58px)); font-size: 15px; }
  .chapter { text-align: right; }
  .reader-shell {
    left: 6%;
    top: max(118px, calc(env(safe-area-inset-top) + 104px));
    bottom: clamp(120px, 19dvh, 190px);
    width: 88%;
  }
  .reader {
    background: #fff;
    font-size: clamp(18px, 2.6cqw, 21px);
    padding-bottom: 16px;
  }
  .layer4 { width: 60%; left: -6.065%; bottom: -4.0625cqw; }
  .layer5 { width: 57.821393%; left: -2.767419%; bottom: -6.064769cqw; }
  .layer7 { width: 79.548577%; }
}
@media (max-width: 900px) and (max-height: 480px) {
  .masthead { top: 12px; }
  .titles { top: 45px; }
  .reader-shell { top: 80px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer4.is-transfer img { animation: none !important; filter: none; }
}
