@font-face {
  font-family: "Beforeword Serif";
  src: url("SourceBook.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Beforeword Display";
  src: url("SourceHead.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f6f0;
  --ink: #24241f;
  --blue: #233e85;
  --muted: #585b51;
  --faint: #cfc7b5;
  --reading-face: "Beforeword Serif", Georgia, serif;
  --title-face: "Beforeword Display", "Beforeword Serif", Georgia, serif;
  --body-size: clamp(1.1875rem, 1.03rem + .52vw, 1.375rem);
}
body, .mast, .ink-sheet {
  background: var(--paper) url("paper-stock.png") repeat 0 0 / 512px 512px;
}
.ink-sequence, footer { background: transparent; }
.ink-sequence .ink-frame, .ink-detail { mix-blend-mode: multiply; }
.album-photo img { mix-blend-mode: normal; }
.pen-fragment { display: inline-block; position: relative; max-width: 100%; vertical-align: middle; }
.pen-fragment img, .chapter-art .pen-fragment img {
  display: block; width: auto; height: 1em; max-width: 100%; object-fit: contain;
  object-position: left center; mix-blend-mode: multiply;
}
.pen-transcript { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: pre; }
.plate-label:has(.pen-fragment) { font-size: 1.32rem; }
.copybook .practice-row .pen-fragment { font-size: 1.7rem; }
.record-entry .pen-fragment { font-size: 1.25rem; }
.time-value .pen-fragment, .prediction-note .pen-fragment { font-size: 1.48rem; }
@media (forced-colors: active) {
  .pen-fragment img, .chapter-art .pen-fragment img { display: none; }
  .pen-transcript { position: static; width: auto; height: auto; clip-path: none; }
}
#dve-stroki .chapter-art img, #my-own-page .chapter-art img { max-height: none; }

.cover h1, .slip-title, .chapter h2, .toc h2, .preface h2,
.dedication-page h2, .perspective h2, .ink-answer h2, .margin-essay h3 {
  font-family: var(--title-face);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.cover h1 { font-size: clamp(2.85rem, 5.5vw, 5.45rem); }
.cover-phrase { white-space: nowrap; }
.cover-script {
  display: inline-block;
  position: relative;
  height: 0;
  width: 3.898em;
  margin-inline: .0612em;
  vertical-align: baseline;
}
html:lang(en) .cover-script { width: 5.408em; }
.cover-transcript { position: absolute; bottom: -.2em; left: 0; color: transparent; }
.cover-script img {
  position: absolute;
  width: 100%;
  height: auto;
  inset-inline-start: 0;
  bottom: -.045em;
  mix-blend-mode: multiply;
}
@media (forced-colors: active) {
  .cover-transcript { position: static; color: CanvasText; }
  .cover-script img { display: none; }
  html:lang(en) .cover-script, .cover-script { width: auto; height: auto; }
}
.cover .author { margin-bottom: 1.45rem; }
.cover .cover-note, .cover .subtitle, .prose, .dedication-prose p,
.perspective-exchange, .measured-pair dd, .copy-sample > div {
  font-family: var(--reading-face);
}
.prose, .dedication-prose p, .perspective-exchange {
  font-size: var(--body-size);
  line-height: 1.56;
}
.prose, .preface .prose, .ink-answer .prose { max-width: 59ch; }
.prose p + p, .dedication-prose p + p { margin-top: .85em; }
.prose p.question {
  margin-top: 1.25em;
  padding: .62em 0 0;
  border: 0;
  position: relative;
  font: 500 .99em/1.45 Golos, Arial, sans-serif;
}
.prose p.question::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.65rem;
  border-top: 1px solid currentColor;
}
.score-records > div:not(:last-child) dd { font-family: var(--reading-face); }
.cover .cover-note { font-size: clamp(1.08rem, 1.3vw, 1.24rem); }
.action-link { border-radius: 0; }
@media (max-width: 45em) {
  .cover h1 { font-size: clamp(2.7rem, 10vw, 4.1rem); }
  .chapter h2, .preface h2, .margin-essay h3, .perspective h2, .ink-answer h2 {
    font-size: clamp(2.12rem, 7.2vw, 3.2rem);
  }
}
@media (forced-colors: active) {
  body, .mast, .ink-sheet { background: Canvas; }
}
