:root {
  color-scheme: dark;
  --cream: #f6e5c9;
  --gold: #d8ae73;
  --line: #ae895747;
  --paper: #fff6e5;
  --printed-ink: #2d2019;
  --binding: linear-gradient(90deg, #25151f, #4d2634 44%, #23131d 50%, #492536 56%, #25151f);
  --paper-edges: repeating-linear-gradient(0deg, #e4c880 0 1px, #ad814b 1px 2px, #f2dfa7 2px 4px);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--cream);
  background: #11100f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body {
  margin: 0;
  isolation: isolate;
}
.blog-viewport {
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding-top: var(--site-header-space);
  overflow: clip;
}
.blog-backdrop {
  position: fixed;
  inset: 0;
  height: 100lvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  background:
    radial-gradient(ellipse at 50% 42%, #93654d9c, transparent 62%),
    radial-gradient(ellipse at 8% 30%, #5133488c, transparent 58%),
    linear-gradient(140deg, #101728, #251a2b 60%, #101827);
}
.blog-backdrop-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: soft-light;
  opacity: .29;
}
.blog-backdrop .grain { opacity: .24; }
@media (orientation: landscape) {
  .blog-backdrop-art {
    inset: 50% auto auto 50%;
    width: 100cqh;
    height: 100cqw;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-backdrop .grain { display: none; }
}
a { color: inherit; text-decoration: none; }
#folio { text-shadow: 0 1px 2px #110a04, 0 0 8px #110a04; }

main {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: clamp(4px, 1.2dvh, 12px) 0 max(8px, env(safe-area-inset-bottom));
}
.reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: clamp(5px, 1dvh, 12px);
  width: min(98%, 104rem);
  margin: 0 auto;
}
.archive-controls {
  width: min(90%, 38rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(9rem, .75fr) minmax(0, 1.6fr);
  gap: 10px;
}
.archive-controls label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(145deg, #292533, #171923);
  box-shadow: 0 2px 8px #09091040;
}
.archive-controls label > span {
  color: #e2bc87;
  font: 600 .76rem/1 system-ui, sans-serif;
}
.archive-controls select {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 25px 6px 5px;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 50%, #d5a96f 50%) right 13px center / 5px 5px no-repeat,
    linear-gradient(135deg, #d5a96f 50%, transparent 50%) right 8px center / 5px 5px no-repeat;
  color: var(--cream);
  font: .93rem/1.25 Georgia, 'Times New Roman', serif;
  text-overflow: ellipsis;
  cursor: pointer;
}
.archive-controls option { background: #222332; }
.stage {
  --spread-gutter: 1.25cqw;
  --spread-top: 3px;
  --spread-bottom: 24px;
  --board-width-ratio: .494;
  --board-top-ratio: .008;
  --board-bottom-ratio: .004;
  --spread-height: calc(100cqh - var(--spread-top) - var(--spread-bottom));
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 138dvh, 80rem);
  margin: 0 auto;
  container-type: size;
  isolation: isolate;
}
.stage::before {
  content: '';
  position: absolute;
  inset: auto 0 -4% 0;
  height: 22%;
  background: radial-gradient(ellipse, #09060ec4, #110b1799 38%, transparent 69%);
  filter: blur(12px);
  pointer-events: none;
}
.book {
  --board-top: calc(100% * var(--board-top-ratio));
  --board-bottom: calc(100% * var(--board-bottom-ratio));
  --board-side: calc(100% * (.5 - var(--board-width-ratio)));
  --board-half: calc(100% * var(--board-width-ratio));
  --page-edge-depth: 15px;
  position: absolute;
  inset: var(--spread-top) var(--spread-gutter) var(--spread-bottom);
  container-type: size;
  transform-style: preserve-3d;
}
.binding, .cover-board, .page-block, .paper, .closed-cover, .closed-edges, .closed-plate { position: absolute; }
.binding {
  inset: 0 0 calc(var(--board-bottom) - var(--page-edge-depth));
  border-radius: 7px 7px 11px 11px;
  border: 1px solid #d1a46c85;
  background: var(--binding);
  box-shadow: 0 3px 0 #4f2838, 0 7px 0 #24121e, 0 16px 22px #110910ac;
}
.cover-board {
  top: var(--board-top);
  bottom: var(--board-bottom);
  width: var(--board-half);
  border-radius: 2px;
  border: 1px solid #b682463f;
  background: #4d2835;
  box-shadow: inset 0 0 0 3px #2b1724, inset 0 0 17px #1b0c1590;
}
.board-left { left: var(--board-side); }
.board-right { right: var(--board-side); }
.page-block {
  top: var(--board-top);
  width: var(--board-half);
  background:
    linear-gradient(90deg, #63402178, transparent 15% 82%, #76503269),
    var(--paper-edges);
  border-radius: 2px;
  box-shadow: inset 0 -2px 2px #88623e, 0 2px 3px #25140db0;
}
.block-left {
  left: var(--board-side);
  bottom: calc(var(--board-bottom) - var(--left-thickness, 8px));
}
.block-right {
  right: var(--board-side);
  bottom: calc(var(--board-bottom) - var(--right-thickness, 14px));
}
.book:not(.is-single-page) .block-right::after {
  position: absolute;
  right: 8%;
  bottom: -15px;
  width: clamp(.65rem, 1.35cqw, 1.2rem);
  height: 21px;
  background: linear-gradient(90deg, #4d1a30, #a9485d 45%, #672034);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  content: "";
}
.spread {
  position: absolute;
  inset: var(--board-top) var(--board-side) var(--board-bottom);
  perspective: 2450px;
  transform-style: preserve-3d;
}
.paper {
  top: 0;
  bottom: 0;
  width: 50%;
  border-radius: 2px;
  background: var(--paper-light), var(--paper);
  box-shadow: inset 0 0 9px #8f653128, 0 1px 2px #40271952;
}
.page-left, .leaf-back {
  --paper-light: linear-gradient(90deg, #af783727, #ffffff52 11%, transparent 84%, #aa7c4b23 94%, #41281972);
}
.page-right, .leaf-front {
  --paper-light: linear-gradient(90deg, #41281972, #aa7c4b23 3.5%, transparent 12%, #ffffff52 89%, #af783727);
}
.page-left { left: 0; }
.page-right { right: 0; }
.photo-print {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
  background: var(--paper);
}
.photo-print img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(.45rem, 1.5cqw, 1.4rem);
  background: var(--paper-light), var(--paper);
}
.manuscript-entry {
  position: absolute;
  inset: 5.5% 6.5% 4.5% 8%;
  display: flex;
  flex-direction: column;
  color: var(--printed-ink);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ae8c67 transparent;
}
.manuscript-entry time {
  color: #833822;
  font: 600 .79rem/1.15 system-ui, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.manuscript-entry h2 {
  margin: .4rem 0 .6rem;
  font-size: clamp(1.25rem, min(3.45cqw, 6.1cqh), 3.05rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.manuscript-entry h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: .55rem;
  background: #b47e2f;
}
.manuscript-entry p {
  margin: 0;
  font-size: clamp(.875rem, min(1.77cqw, 3.15cqh), 1.22rem);
  line-height: 1.38;
}
.manuscript-entry p + p { margin-top: .65em; }
.leaf {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
}
.curl-segment {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--segment-width);
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}
.curl-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}
.curl-face--back { transform: rotateY(180deg); }
.curl-face .paper {
  width: var(--leaf-width);
  left: var(--print-offset);
}
.curl-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #503522;
  opacity: var(--curl-shade, 0);
}
.spread::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 2%;
  background: linear-gradient(90deg, transparent 25%, #42271889 49%, #593e2467 52%, transparent 76%);
  opacity: var(--turn-shadow, 0);
  pointer-events: none;
}
.closed-book {
  --cover-tilt: rotateX(9deg) rotateY(-11deg);
  --book-depth: clamp(34px, 5.8vw, 76px);
  --board-depth: 6px;
  display: none;
  position: absolute;
  inset-inline: 0;
  top: calc(var(--spread-top) + var(--spread-height) * var(--board-top-ratio));
  width: calc((100cqw - 2 * var(--spread-gutter)) * var(--board-width-ratio));
  height: calc(var(--spread-height) * (1 - var(--board-top-ratio) - var(--board-bottom-ratio)));
  margin-inline: auto;
  perspective: 4400px;
  perspective-origin: 86% 85%;
}
.hardcover-model, .closed-edges, .closed-cover {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.hardcover-model { transform: var(--cover-tilt); }
.closed-cover { cursor: pointer; transform-origin: left center; }
.closed-book::before {
  content: '';
  position: absolute;
  inset: 10% -10% -6% 9%;
  border-radius: 20px;
  background: #100911b0;
  filter: blur(clamp(12px, 2vw, 29px));
  transform: skewY(-3deg);
  pointer-events: none;
}
.book-spine, .book-fore-edge, .book-tail, .book-back-board, .cover-board-rim {
  position: absolute;
}
.book-spine {
  inset: 0 auto 0 0;
  width: var(--book-depth);
  transform-origin: left;
  transform: rotateY(90deg);
  background:
    linear-gradient(0deg, transparent 8%, #d3a468 8.2% 8.5%, transparent 8.8% 91%, #d3a468 91.2% 91.5%, transparent 91.8%),
    linear-gradient(90deg, #68404a, #2c1422 65%, #160b15);
}
.book-fore-edge, .book-tail {
  background:
    linear-gradient(0deg, #6742226e, transparent 18% 79%, #9c72424d),
    repeating-linear-gradient(90deg, #ad8d62 0 1px, #f2dfb5 1px 2px, #cba878 2px 4px, #f8e7c0 4px 6px);
}
.book-fore-edge {
  inset: 3px 3px 3px auto;
  width: calc(var(--book-depth) - var(--board-depth));
  transform-origin: right;
  transform: rotateY(-90deg) translateX(calc(-1 * var(--board-depth)));
}
.book-tail {
  inset: auto 3px 3px;
  height: calc(var(--book-depth) - var(--board-depth));
  transform-origin: bottom;
  transform: rotateX(90deg) translateY(calc(-1 * var(--board-depth)));
  background:
    linear-gradient(90deg, #7d54338a, transparent 16% 88%, #8b5e3240),
    repeating-linear-gradient(0deg, #ae8c61 0 1px, #f3ddb3 1px 3px, #cbb084 3px 4px, #f5e2ba 4px 6px);
}
.book-back-board {
  inset: 0;
  border: 2px solid #7e5044;
  border-radius: 5px 8px 8px 5px;
  background: #391b2c;
  box-shadow: 0 2px 0 #24101d;
  transform: translateZ(calc(-1 * var(--book-depth)));
}
.cover-board-rim {
  inset: 0 0 0 auto;
  width: var(--board-depth);
  transform-origin: right;
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, #2b1423, #915c49 75%, #c48960);
}
.cover-board-tail {
  position: absolute;
  inset: auto 0 0;
  height: var(--board-depth);
  transform-origin: bottom;
  transform: rotateX(90deg);
  background: linear-gradient(#341a2b, #683f45 70%, #b98357);
}
.closed-plate {
  inset: 0;
  overflow: hidden;
  container-type: size;
  border: 1px solid #c18e60;
  border-radius: 5px 8px 8px 5px;
  backface-visibility: hidden;
  background: #25121d;
  box-shadow: 0 3px 0 #4b2832;
}
.closed-plate::before {
  position: absolute;
  z-index: 1;
  inset: 1.5% 1.7% 1.5% 3.2%;
  border: 3px double #e7b975bb;
  border-radius: 3px;
  box-shadow: 0 0 3px #170d17b3;
  content: '';
  pointer-events: none;
}
.closed-plate::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c0f1ce6, #b17e4d42 1.7%, #20131ba8 2.5%, transparent 4.8% 98%, #24122288);
  box-shadow: inset 0 0 0 2px #442432b3, inset 0 0 0 3px #d29a6266;
  content: '';
  pointer-events: none;
}
.cover-inlay {
  --cover-art-ratio: calc(1190 / 1322);
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100cqh * var(--cover-art-ratio)));
  aspect-ratio: var(--cover-art-ratio);
  transform: translate(-50%, -50%);
}
.cover-inlay img {
  display: block;
  width: 100%;
  height: 100%;
}
.cover-lamp-glow, .cover-lantern-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover-lamp-glow {
  background: radial-gradient(ellipse 13% 16% at 50% 48%, #ffcf6c70, #ee96152a 53%, transparent);
  animation: lamp-light 4.8s ease-in-out infinite;
}
.cover-lantern-glow {
  background:
    radial-gradient(ellipse 8% 7% at 41% 8%, #ffda8b91, transparent),
    radial-gradient(ellipse 7% 6% at 56% 9%, #ffb74180, transparent),
    radial-gradient(ellipse 8% 6% at 65% 5%, #ffce757d, transparent);
  animation: lamp-light 6.2s ease-in-out -2.4s infinite reverse;
}
@keyframes lamp-light {
  0%, 100% { opacity: .23; }
  32% { opacity: .8; }
  53% { opacity: .46; }
  76% { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-lamp-glow, .cover-lantern-glow { animation: none; opacity: .34; }
}
.page-right::after {
  position: absolute;
  inset: 2.3% 2.5%;
  border: 3px double #b9925961;
  content: "";
  pointer-events: none;
}
.manuscript-entry h2 { font-family: "Palatino Linotype", Palatino, Georgia, serif; }
.stage.is-closed .book { display: none; }
.stage.is-closed .closed-book { display: block; }
.stage.is-cover-turning .closed-book { visibility: hidden; }
.cover-turn-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: clip;
  pointer-events: none;
}
.cover-turn-layer .closed-book {
  display: block;
  top: 0;
  left: 0;
  right: auto;
  margin: 0;
  transform-origin: top left;
}
.cover-turn-back {
  position: absolute;
  inset: 0;
  border: 2px solid #583345;
  border-radius: 4px;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(calc(-1 * var(--board-depth))) rotateY(180deg);
  background: var(--binding);
}
.cover-turn-back .photo-print { inset: 2px; }

.reader-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 23px);
}
button {
  min-height: 42px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #222332;
  color: var(--cream);
  font: 14px/1.15 system-ui, sans-serif;
  padding: 7px 14px;
  cursor: pointer;
}
button:disabled { opacity: .35; cursor: default; }
button:hover:not(:disabled) { background: #3b2c21; border-color: #b68a56; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
output { min-width: 100px; text-align: center; font-variant-numeric: tabular-nums; font-size: 17px; }
output span { color: #c5ad88; }
#cover { position: absolute; right: 3%; }
.stage.is-closed + .reader-bar #cover:not(:disabled) {
  border-color: #f3d6a36e;
  background: linear-gradient(#f5dbac, #d8aa70);
  color: #271823;
  font-weight: 650;
}
.stage.is-closed + .reader-bar #cover:not(:disabled):hover { background: #ffe5b7; }

.stage.is-single-page {
  --single-book-width: min(98cqw, 38rem);
  --single-book-height: min(calc(100cqh - 19px), calc(var(--single-book-width) / .70));
  --single-spine: 3px;
  --single-board-top: 4px;
  --single-board-bottom: 4px;
  --single-page-edge: 10px;
}
.stage.is-single-page .closed-book {
  top: calc((100cqh - 14px - var(--single-book-height)) / 2 + var(--single-board-top));
  width: calc(var(--single-book-width) - 2 * var(--single-spine));
  height: calc(var(--single-book-height) - var(--single-board-top) - var(--single-board-bottom) - var(--single-page-edge));
}
.book.is-single-page {
  --board-top: var(--single-board-top);
  --board-bottom: var(--single-board-bottom);
  --board-side: var(--single-spine);
  --page-edge-depth: var(--single-page-edge);
  --folded-shift: -6px;
  inset: 0 0 14px;
  width: var(--single-book-width);
  height: var(--single-book-height);
  margin: auto;
}
.book.is-single-page .binding { bottom: 0; }
.book.is-single-page .board-right { display: none; }
.book.is-single-page .board-left {
  inset: 2px 0 -3px;
  width: auto;
  transform: translateX(var(--folded-shift));
}
.book.is-single-page .block-left {
  inset: 5px 0 -1px;
  width: auto;
  transform: translateX(calc(var(--folded-shift) * .75));
}
.book.is-single-page .block-right {
  left: var(--board-side);
  bottom: var(--board-bottom);
  width: auto;
}
.book.is-single-page .spread {
  bottom: calc(var(--board-bottom) + var(--page-edge-depth));
  background: #ecdfc8;
  border-radius: 2px;
}
.book.is-single-page .spread::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(9px, 4cqw, 22px);
  z-index: 1;
  background: linear-gradient(to right, #5834183d, #7b542613 38%, transparent);
  pointer-events: none;
}
.book.is-single-page .spread > .paper {
  inset: 0;
  width: 100%;
  backface-visibility: hidden;
}
.book.is-single-page .spread > .paper[inert] {
  left: -100%;
  transform-origin: right center;
  transform: rotateY(-180deg) translateZ(10px);
}
.book.is-single-page :is(.page-left, .page-right) {
  --paper-light: linear-gradient(180deg, #51342214, transparent 9% 93%, #4d301d1f);
}
.book.is-single-page .manuscript-entry { inset: 7% 6% 5%; }
.book.is-single-page .spread.is-turning { overflow: clip; }
.leaf.is-single-page-turn { inset: 0; }
.stage.is-single-page + .reader-bar #cover { position: static; flex: 0 0 auto; }
.stage.is-single-page + .reader-bar output { min-width: 56px; font-size: 15px; }
.stage.is-single-page + .reader-bar button {
  padding-inline: 9px;
  background: #15366a;
  border-color: #5779aa;
}
.stage.is-single-page + .reader-bar button:hover:not(:disabled) { background: #20477f; }

@media (max-width: 720px) {
  .reader { width: 98%; }
  .archive-controls {
    width: 92%;
    grid-template-columns: minmax(7.75rem, .74fr) minmax(0, 1.26fr);
  }
  .archive-controls label {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    padding: 4px 0 0;
  }
  .archive-controls label > span { padding-inline: 9px; }
  .archive-controls select { min-height: 29px; padding: 3px 25px 3px 9px; }
  .manuscript-entry time { font-size: .7rem; }
  .manuscript-entry h2 { font-size: clamp(1.14rem, min(5.45vw, 3.2dvh), 2rem); }
  .manuscript-entry p { font-size: clamp(.8rem, min(4.1cqw, 2.1dvh), 1.13rem); line-height: 1.37; }
}

.stage.is-closed + .reader-bar #cover { position: static; }
@media (max-width: 720px) and (max-height: 680px) {
  .archive-controls label { grid-template-columns: auto minmax(0, 1fr); padding: 0 0 0 7px; }
  .archive-controls label > span { padding: 0; }
  .archive-controls select { min-height: 32px; padding-left: 5px; }
  .book.is-single-page .manuscript-entry { inset: 5%; }
  .manuscript-entry h2 { font-size: clamp(1rem, 4.8vw, 1.35rem); margin-block: .27rem .4rem; }
  .manuscript-entry h2::after { margin-top: .35rem; }
  .manuscript-entry p { font-size: clamp(.75rem, 3.65cqw, .98rem); line-height: 1.31; }
  .reader-bar button { min-height: 36px; }
}

@media (min-width: 721px) and (max-height: 680px) {
  .stage { --spread-gutter: 1cqw; }
}

@media (min-width: 721px) and (max-height: 540px),
       (min-width: 721px) and (max-width: 900px) and (max-height: 660px) {
  .archive-controls select { min-height: 31px; }
  .reader-bar button { min-height: 34px; }
  .book { inset-block-end: 24px; }
  .manuscript-entry { inset: 5% 5% 4% 6%; }
  .manuscript-entry time { font-size: .69rem; }
  .manuscript-entry h2 { font-size: clamp(1rem, 6.5cqh, 1.55rem); margin-block: .25rem .36rem; }
  .manuscript-entry h2::after { margin-top: .3rem; }
  .manuscript-entry p { font-size: clamp(.75rem, 4.4cqh, .9rem); line-height: 1.28; }
}

@media (min-width: 721px) and (max-height: 480px) {
  main { display: block; }
  .reader { height: 100%; row-gap: 3px; }
  .archive-controls { width: min(80%, 38rem); margin-inline: auto; }
  .reader-bar button { min-height: 30px; padding-block: 5px; }
  .manuscript-entry { inset-block-start: 3%; }
  .manuscript-entry p { font-size: .75rem; line-height: 1.25; }
}

@media (min-width: 721px) and (max-height: 400px) {
  .manuscript-entry { inset-inline: 4%; }
  .manuscript-entry p { font-size: clamp(.6875rem, 4.75cqh, .75rem); line-height: 1.2; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .stage.is-single-page { --single-book-width: min(94cqw, 44rem); }
  .book.is-single-page .manuscript-entry { inset: 4% 5%; }
  .book.is-single-page .manuscript-entry h2 { font-size: clamp(1rem, 6.5cqh, 1.4rem); margin-block: .25rem .36rem; }
  .book.is-single-page .manuscript-entry h2::after { margin-top: .3rem; }
  .book.is-single-page .manuscript-entry p { font-size: clamp(.6875rem, 5cqh, .94rem); line-height: 1.25; }
}

@media (max-width: 720px) and (orientation: landscape) and (max-height: 500px) {
  main { display: block; }
  .reader { height: 100%; row-gap: 4px; }
  .archive-controls { width: min(80%, 33rem); margin-inline: auto; }
  .reader-bar button { min-height: 32px; padding-block: 5px; }
}

@media (max-width: 720px) and (orientation: landscape) and (max-height: 340px) {
  .stage.is-single-page {
    --single-book-width: 96cqw;
    --single-book-height: calc(100cqh - 14px);
    --single-page-edge: 5px;
  }
  .book.is-single-page .manuscript-entry { inset: 3% 4%; }
}


@media (min-width: 960px) and (min-height: 501px) {
  main {
    grid-template-rows: minmax(0, 1fr);
    padding-top: .65rem;
  }
  .archive-controls {
    width: min(58%, 42rem);
    margin-inline: auto;
  }
  .reader { row-gap: clamp(.6rem, 1.6dvh, 1rem); }
}

