@font-face {
  font-family: Newsreader;
  src: url("./fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("./fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("./fonts/plex-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("./fonts/mono-latin.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f3efe7;
  --ink: #30332e;
  --muted: #6f7067;
  --line: #d7d3c9;
  --accent: #556354;
  --serif: Newsreader, Georgia, serif;
  --sans: Plex, Arial, sans-serif;
  --mono: Mono, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body[data-theme="night"] {
  --paper: #171c1e;
  --ink: #e8e2d6;
  --muted: #a3aaa7;
  --line: #343c3c;
  --accent: #c4b294;
  color-scheme: dark;
}
::selection {
  background: #a8956b55;
}
a,
button,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button,
a {
  transition:
    color 180ms,
    background-color 180ms;
}
button:hover,
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
.masthead {
  height: 72px;
  max-width: 1480px;
  margin: auto;
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back {
  font-size: 10px;
  letter-spacing: 0.1em;
  display: flex;
  gap: 14px;
  align-items: center;
}
.back > span:first-child {
  font-size: 20px;
}
.back-section {
  color: var(--muted);
  font-size: 9px;
}
.quiet {
  font-size: 11px;
  min-height: 44px;
  color: var(--muted);
}
.quiet span {
  margin-left: 10px;
}
main {
  max-width: 1480px;
  padding: 0 4.5%;
  margin: auto;
}
.intro {
  padding: 35px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.eyebrow {
  font: 400 9px/1.7 var(--sans);
  letter-spacing: 0.16em;
}
.intro .eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
}
h1 {
  font: 350 clamp(56px, 6.2vw, 88px)/1.02 var(--serif);
  letter-spacing: -0.045em;
  margin: 0;
}
h1 em {
  font-weight: 350;
  color: var(--accent);
}
.intro-copy {
  font: italic 18px/1.4 var(--serif);
  color: var(--muted);
  margin: 0 0 5px;
}
.authors {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  margin: 0 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.author-tab {
  position: relative;
  padding: 18px 0 17px;
  min-height: 54px;
  font: 19px/1.1 var(--serif);
  color: var(--muted);
  white-space: nowrap;
}
.author-tab span {
  display: none;
}
.author-tab[aria-current="true"] {
  color: var(--ink);
}
.author-tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}
.reading-room {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 62px);
}
.contents {
  padding-top: 15px;
}
.compact-contents {
  display: none;
}
.author-heading .eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.author-heading .eyebrow:empty {
  display: none;
}
.author-heading h2 {
  font: 400 32px/1.07 var(--serif);
  letter-spacing: -0.025em;
  margin: 9px 0 14px;
}
.author-heading p {
  font: italic 17px/1.45 var(--serif);
  color: var(--muted);
  margin: 0 0 37px;
  max-width: 185px;
}
.contents-label {
  color: var(--muted);
  font-size: 9px;
  margin: 0 0 14px;
}
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.poem-choice {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  font: 17px/1.3 var(--serif);
  color: var(--muted);
  min-height: 48px;
}
.poem-choice .num {
  font: 10px var(--sans);
  font-variant-numeric: tabular-nums;
  flex: 0 0 17px;
  opacity: 0.65;
}
.poem-choice[aria-current="true"] {
  color: var(--ink);
}
.poem-choice[aria-current="true"] .num {
  color: var(--accent);
  opacity: 1;
}
.poem-choice[aria-current="true"] .title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.book {
  border: 1px solid var(--line);
  min-width: 0;
  position: relative;
  background: var(--paper);
  box-shadow: 0 20px 60px #17211c08;
}
.book-toolbar,
.book-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  height: 52px;
  background: var(--paper);
}
.book-toolbar {
  border-bottom: 1px solid var(--line);
}
.book-toolbar .eyebrow {
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.07em;
}
.tools {
  display: flex;
  gap: 22px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  min-height: 44px;
  padding: 0;
}
.tool > span:first-child {
  font-size: 16px;
}
.tool[aria-pressed="true"],
.contemplate {
  color: var(--accent);
}
.contemplate > span:first-child {
  font-size: 20px;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: clamp(580px, 72svh, 780px);
  position: relative;
  overflow: hidden;
  background: #faf7f0;
}
.scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #263d49;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.scene canvas,
.gallery-art canvas {
  position: absolute;
  inset: 0;
}
#poem {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 44px 34px 48px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #a3ad9b70 transparent;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  outline: none;
}
#poem:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -5px;
}
.poem-header .eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
}
.poem-header h2 {
  font: 400 clamp(30px, 3vw, 43px)/1.1 var(--serif);
  letter-spacing: -0.027em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.poem-header > p:last-child {
  font: italic 16px/1.4 var(--serif);
  color: var(--muted);
  margin: 0 0 38px;
}
#poem-text {
  font: 19px/1.78 var(--serif);
  letter-spacing: 0.002em;
}
.stanza {
  margin: 0 0 32px;
  white-space: pre-wrap;
}
.verse {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
}
.poem-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 38px;
}
.finish-mark {
  font: 24px var(--serif);
  color: var(--accent);
}
.poem-footer a {
  font: 10px/1.6 var(--sans);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
#editorial-info {
  font: 12px/1.6 var(--sans);
  width: 100%;
  border-top: 1px solid #ffffff25;
  padding-top: 19px;
  color: #d9cbb6;
}
#editorial-info summary {
  cursor: pointer;
  min-height: 40px;
}
#editorial-fields {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px 16px;
}
#editorial-fields dt {
  color: #aeb8bd;
}
#editorial-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.scene-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 45px 23px 23px;
  background: linear-gradient(transparent, #10202f70);
  pointer-events: none;
  font: 9px/1.6 var(--sans);
  letter-spacing: 0.17em;
  color: #fff4dfbd;
  text-align: right;
}
.book-bottom {
  border-top: 1px solid var(--line);
}
.turn-page {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  min-height: 44px;
}
.turn-page span {
  font: 22px var(--serif);
}
.page-dots {
  display: flex;
  gap: 9px;
}
.page-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
}
.page-dots i.active {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 3px #a3927130;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0 40px;
  color: var(--muted);
  gap: 8px 20px;
}
.colophon p {
  margin: 0;
  font: 11px/1.5 var(--sans);
}
.colophon p span {
  padding: 0 8px;
}
.colophon button {
  font: italic 17px var(--serif);
  min-height: 44px;
}
.colophon button span {
  margin-left: 13px;
  font-style: normal;
}
.colophon #preview-note {
  width: 100%;
  font-size: 10px;
  opacity: 0.85;
}
.book.reading-only .scene {
  display: none;
}
.book.reading-only .page {
  grid-template-columns: minmax(0, 1fr);
}
.book.reading-only #poem {
  width: 100%;
  max-width: 790px;
  margin: auto;
  height: 100%;
  padding-left: 7%;
  padding-right: 7%;
}
.book.reading-only #poem-text {
  font-size: 20px;
}
/* Reading in the landscape, shared by every collection. */
.book.illustrated {
  color: #eee5d5;
}
.book.illustrated .page {
  display: block;
  background: #101924;
}
.book.illustrated .scene {
  position: absolute;
  inset: 0;
}
.book.illustrated .page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #09111aef, #09111abe 35%, #09111a63 57%, #09111a00 80%);
}
.book.illustrated #poem {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 100%;
  padding: 46px 30px 52px 42px;
  scrollbar-color: #c7b79526 transparent;
  mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.book.illustrated #poem-text {
  font-size: 20px;
  line-height: 1.8;
  text-shadow: 0 1px 12px #030b1699;
}
.book.illustrated .scene-caption {
  left: 65%;
  background: none;
  font-size: 8px;
  padding-left: 0;
}
.book.illustrated.reading-only #poem {
  width: 100%;
  max-width: 790px;
  margin: auto;
}
.book.illustrated.reading-only .page::after {
  display: none;
}
.book.long-title .poem-header h2 {
  font-size: clamp(27px, 2.55vw, 37px);
  line-height: 1.15;
}
/* A quiet, full-bleed reading room. */
body.contemplating {
  overflow: hidden;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 600px;
  max-width: calc(100vw - 32px);
  padding: 50px;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #111918df;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font: 400 40px/1.1 var(--serif);
  letter-spacing: -0.025em;
  margin: 25px 0;
}
dialog > p:not(.eyebrow) {
  font: 13px/1.8 var(--sans);
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 8px;
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
}
.about-credit {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.gallery-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #14202c;
  color: #f5ede0;
}
.gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-art {
  position: absolute;
  inset: 0;
}
.gallery-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0b1724ed, #0b1724c9 44%, #0b172485 58%, transparent 78%);
}
.gallery-top,
.gallery-bottom {
  position: absolute;
  left: clamp(24px, 4.5vw, 90px);
  right: clamp(24px, 4.5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.gallery-top {
  top: 24px;
}
.gallery-signature {
  font: italic 21px var(--serif);
  letter-spacing: -0.02em;
  color: #f5ede0ae;
}
.gallery-actions {
  display: flex;
  gap: 18px;
}
.gallery-bottom {
  bottom: 24px;
  justify-content: flex-end;
}
.gallery-reader {
  position: absolute;
  top: 112px;
  left: clamp(24px, 4.5vw, 90px);
  bottom: 88px;
  width: min(620px, 52%);
  padding: 14px 26px 40px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #fff2d936 transparent;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 15px), transparent);
}
.gallery-reader:focus-visible {
  outline: 1px solid #fff2d980;
  outline-offset: 5px;
}
.gallery-caption > p:first-child {
  margin: 0 0 20px;
  font: italic 17px var(--serif);
  color: #e8d6bcbf;
}
.gallery-caption h2 {
  margin: 0 0 42px;
  font: 400 clamp(34px, 3.6vw, 52px)/1.08 var(--serif);
  letter-spacing: -0.027em;
  text-wrap: balance;
}
.gallery-dialog.long-title .gallery-caption h2 {
  font-size: clamp(29px, 3.05vw, 44px);
  line-height: 1.15;
}
#gallery-text {
  font: 21px/1.8 var(--serif);
  color: #f5ede0;
  text-shadow: 0 1px 12px #07111b66;
}
#gallery-text .stanza {
  margin-bottom: 36px;
}
.gallery-source {
  display: inline-block;
  margin-top: 18px;
  font: 10px/1.7 var(--sans);
  color: #e3d2b9bd;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#gallery-verse {
  margin: 0;
  font: italic 19px/1.45 var(--serif);
  color: #e6d7c3c9;
  max-width: 620px;
}
.gallery-control {
  pointer-events: auto;
  color: #eee3d2;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  background: #0a17201a;
  border-radius: 0;
  font-size: 11px;
}
.gallery-control:hover {
  color: white;
  background: #fff5db0d;
}
.gallery-control:focus-visible {
  outline-color: #fff4d1;
}
#gallery-reading {
  padding: 0 10px;
}
#gallery-close {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px;
}
#gallery-close span {
  font-size: 24px;
}
.gallery-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  flex-shrink: 0;
}
#gallery-index {
  font: 10px var(--mono);
  color: #e3d2b9bd;
  min-width: 60px;
  text-align: center;
}
#gallery-previous,
#gallery-next {
  font: 25px var(--serif);
}
#gallery-pause {
  padding: 0 18px;
  min-width: 92px;
  margin-left: 14px;
  border-left-color: #fff5db29;
}
.gallery-dialog .gallery-shade {
  background: linear-gradient(90deg, #07101bed, #07101bb8 34%, #07101b60 55%, transparent 79%);
}
.gallery-dialog.landscape-only .gallery-shade {
  background: linear-gradient(
    180deg,
    #06121d38,
    transparent 24%,
    transparent 49%,
    #06121d77 80%,
    #06121dd6
  );
}
.gallery-dialog.landscape-only .gallery-reader {
  top: auto;
  bottom: 100px;
  width: 75%;
  max-height: 40%;
  padding: 10px 0;
  overflow: hidden;
}
.gallery-dialog.landscape-only .gallery-caption h2 {
  font-size: clamp(32px, 4.4vw, 64px);
  margin-bottom: 18px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: var(--paper);
  padding: 15px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.no-script {
  margin: 30px 5%;
}
@media (max-width: 1100px) {
  .intro {
    padding-top: 28px;
  }
  .reading-room {
    display: block;
  }
  .authors {
    margin-bottom: 18px;
  }
  .contents {
    padding: 0;
  }
  .author-heading,
  .contents-label,
  #poem-list {
    display: none;
  }
  .compact-contents {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 24px;
  }
  .compact-contents label {
    flex-shrink: 0;
    font: italic 15px/1.4 var(--serif);
    color: var(--muted);
  }
  #poem-select {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 32px 10px 0;
    border-radius: 0;
    background-color: var(--paper);
    color: var(--ink);
    font: 17px var(--serif);
    text-overflow: ellipsis;
    cursor: pointer;
  }
  #poem {
    padding: 36px 28px 44px;
  }
  .book.illustrated #poem {
    width: 64%;
    padding: 40px 24px 44px 34px;
  }
  #poem-text,
  .book.illustrated #poem-text {
    font-size: 19px;
  }
  .gallery-reader {
    width: 55%;
  }
  #gallery-text {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .masthead {
    height: 60px;
  }
  .back {
    font-size: 9px;
    gap: 10px;
  }
  .back-section {
    display: none;
  }
  .intro {
    display: block;
    padding: 25px 0 23px;
  }
  .intro .eyebrow {
    font-size: 8px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: clamp(46px, 9vw, 64px);
  }
  .intro-copy {
    font-size: 16px;
    margin-top: 17px;
  }
  .intro-copy br {
    display: none;
  }
  .authors {
    gap: 25px;
  }
  .author-tab {
    font-size: 17px;
    padding: 14px 0;
    min-height: 48px;
  }
  .compact-contents {
    display: block;
    margin-bottom: 20px;
  }
  .compact-contents label {
    font-size: 13px;
  }
  #poem-select {
    font-size: 17px;
  }
  .book-toolbar,
  .book-bottom {
    padding: 0 19px;
  }
  .tools {
    gap: 17px;
  }
  .tool {
    font-size: 10px;
  }
  .colophon {
    padding: 19px 0 28px;
    gap: 4px 20px;
  }
  .colophon p {
    font-size: 10px;
  }
  .colophon button {
    font-size: 15px;
  }
  .gallery-signature {
    font-size: 18px;
  }
  .gallery-reader {
    left: 28px;
    width: 55%;
    padding-right: 20px;
  }
  .gallery-caption h2 {
    font-size: 34px;
  }
  #gallery-text {
    font-size: 19px;
  }
  dialog {
    padding: 35px 25px;
  }
  dialog h2 {
    font-size: 34px;
  }
}
@media (max-width: 600px) {
  .book-toolbar {
    height: 49px;
  }
  .book-toolbar > .eyebrow {
    display: none;
  }
  .tools {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(170px, 29%) minmax(0, 1fr);
    height: clamp(590px, 82svh, 750px);
  }
  .scene {
    grid-column: 1;
    grid-row: 1;
  }
  #poem {
    grid-column: 1;
    grid-row: 2;
    padding: 29px 24px 38px;
  }
  .poem-header h2 {
    font-size: 32px;
  }
  .poem-header .eyebrow {
    font-size: 8px;
    margin-bottom: 16px;
  }
  .poem-header > p:last-child {
    font-size: 15px;
    margin-bottom: 29px;
  }
  #poem-text,
  .book.illustrated #poem-text {
    font-size: 19px;
    line-height: 1.75;
  }
  .stanza {
    margin-bottom: 30px;
  }
  .scene-caption {
    padding: 25px 20px 16px;
    font-size: 8px;
  }
  .book.reading-only .page {
    grid-template-rows: minmax(0, 1fr);
  }
  .book.reading-only #poem {
    grid-row: 1;
  }
  .book.illustrated .scene {
    height: 100%;
  }
  .book.illustrated .page::after {
    background: linear-gradient(180deg, #07101b00, #07101b25 15%, #07101bb8 35%, #07101bdd 100%);
  }
  .book.illustrated #poem {
    width: 100%;
    height: calc(100% - 170px);
    top: 170px;
    padding: 22px 24px 40px;
  }
  .book.illustrated .scene-caption {
    left: 24px;
    right: 24px;
    top: 136px;
    bottom: auto;
    padding: 0;
  }
  .book.illustrated.reading-only #poem {
    top: 0;
    height: 100%;
  }
  .gallery-top {
    top: max(12px, env(safe-area-inset-top));
    left: 16px;
    right: 16px;
  }
  .gallery-signature {
    display: none;
  }
  .gallery-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .gallery-control {
    font-size: 11px;
    background: #0b172430;
  }
  .gallery-art {
    inset: 65px 0 auto;
    height: 28%;
  }
  .gallery-shade {
    background: linear-gradient(180deg, #091622ad, transparent 18%, transparent 27%, #14202c 39%);
  }
  .gallery-reader {
    top: calc(28% + 65px);
    bottom: 83px;
    left: 25px;
    right: 25px;
    width: auto;
    padding: 20px 0 30px;
  }
  .gallery-caption > p:first-child {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .gallery-caption h2 {
    font-size: 34px;
    margin-bottom: 32px;
  }
  #gallery-text {
    font-size: 19px;
    line-height: 1.75;
  }
  .gallery-bottom {
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    justify-content: flex-start;
  }
  .gallery-navigation {
    justify-content: space-between;
    width: 100%;
    gap: 5px;
  }
  #gallery-pause {
    min-width: 82px;
    margin-left: 6px;
    padding: 0 12px;
  }
  .gallery-dialog .gallery-art {
    inset: 0;
    height: 100%;
  }
  .gallery-dialog .gallery-shade {
    background: linear-gradient(180deg, #07101b00, #07101b25 13%, #07101bc4 36%, #07101be8 100%);
  }
  .gallery-dialog .gallery-reader {
    top: 25%;
  }
  .gallery-dialog.landscape-only .gallery-art {
    inset: 0;
    height: 100%;
  }
  .gallery-dialog.landscape-only .gallery-reader {
    top: auto;
    bottom: 100px;
    width: auto;
    padding: 10px 0;
  }
}
@media (max-height: 550px) and (min-width: 600px) {
  .gallery-art {
    inset: 0;
    height: 100%;
  }
  .gallery-reader {
    top: 78px;
    bottom: 75px;
    width: 54%;
  }
  .gallery-caption h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* A collection is a reading path, independently of its credited authors. */
.collections[hidden],
.authors[hidden] {
  display: none;
}
.collections {
  display: flex;
  gap: 32px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.collection-tab {
  background: none;
  border: 0;
  padding: 4px 0 9px;
  color: var(--muted);
  cursor: pointer;
  font: 21px var(--serif);
  border-bottom: 1px solid transparent;
}
.collection-tab[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.in-collection #poem-list {
  max-height: 590px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9ab8b30 transparent;
}
.poem-choice small {
  display: block;
  font: 11px/1.6 var(--sans);
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.01em;
}
.translation-note {
  font: italic 13px/1.7 var(--serif);
  color: #d0c2adbb;
  margin: -16px 0 32px;
}
.awaiting-text {
  padding: 24px 0;
  max-width: 340px;
}
.awaiting-text p:first-child {
  font: italic 25px/1.35 var(--serif);
  color: #ddd0bc;
}
.awaiting-text p:nth-of-type(2) {
  font: 15px/1.8 var(--serif);
  color: #c1bbaca6;
}
.prose .verse {
  padding-left: 0;
  text-indent: 0;
}
.prose .stanza {
  white-space: normal;
}
.book.illustrated #poem {
  width: 59%;
}
.book.illustrated #poem-text {
  font-size: 19px;
  line-height: 1.83;
}
.book.illustrated .page::after {
  background: linear-gradient(
    90deg,
    #101a20f2,
    #101a20d1 30%,
    #101a2094 48%,
    #101a2033 64%,
    transparent 82%
  );
}
.book.illustrated.reading-only #poem {
  width: 100%;
}
@media (max-width: 960px) {
  .book.illustrated #poem {
    width: 67%;
  }
}
@media (max-width: 600px) {
  .collections {
    gap: 25px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .collection-tab {
    font-size: 20px;
  }
  .book.illustrated #poem {
    width: 100%;
    padding: 34px 22px;
  }
  .book.illustrated .page::after {
    background: linear-gradient(90deg, #101a20ed, #101a20c9 60%, #101a208a);
  }
  .book.illustrated #poem-text {
    font-size: 18px;
  }
  .book.illustrated .scene-caption {
    display: none;
  }
}

.awaiting-text a {
  display: block;
  margin-top: 2rem;
  font: 11px/1.8 var(--mono);
  color: #c0c6bd;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .book.illustrated .page-dots {
    display: none;
  }
}

/* The landscape remains a complete painting while the HTML reader stays still. */
.page,
.gallery-stage {
  container-type: inline-size;
  --painting-height: clamp(190px, 70cqw, 290px);
}
.book.illustrated #poem {
  color: #f0e9dc;
}
.book.illustrated .poem-header .eyebrow,
.book.illustrated .poem-header > p:last-child,
.book.illustrated .poem-footer,
.book.illustrated .poem-footer a {
  color: #c8c9bd;
}
.book.illustrated #poem-text,
#gallery-text {
  text-shadow: none;
}
.book.illustrated .page::after {
  background: linear-gradient(
    90deg,
    #081520f5,
    #081520e0 32%,
    #081520b5 49%,
    #08152040 66%,
    transparent 82%
  );
}
.gallery-shade,
.gallery-dialog .gallery-shade {
  background: linear-gradient(
    90deg,
    #081520f2,
    #081520dc 31%,
    #081520b5 46%,
    #08152032 66%,
    transparent 82%
  );
}
.book.illustrated .poem-header h2,
.gallery-caption h2 {
  text-wrap: balance;
}
@media (max-width: 600px) {
  .book.illustrated #poem {
    top: var(--painting-height);
    height: calc(100% - var(--painting-height));
    padding: 25px 24px 38px;
  }
  .book.illustrated .page::after,
  .gallery-dialog .gallery-shade {
    background: linear-gradient(
      180deg,
      transparent calc(var(--painting-height) - 85px),
      #081520 var(--painting-height)
    );
  }
  .gallery-dialog .gallery-art {
    inset: 0;
    height: 100%;
  }
  .gallery-dialog .gallery-reader {
    top: var(--painting-height);
    padding-top: 22px;
  }
  .gallery-dialog.landscape-only .gallery-reader {
    top: auto;
  }
  .gallery-dialog.landscape-only .gallery-shade {
    background: linear-gradient(180deg, #07101b40, transparent 30%, transparent 55%, #07101bd9);
  }
  .book.illustrated.reading-only #poem {
    top: 0;
    height: 100%;
  }
  .book.illustrated.reading-only .page::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .gallery-control {
    background: #08152099;
  }
}

/* The portrait walk and the grave occupy the lower frame; keep the short caption in the sky. */
@media (max-width: 600px) and (orientation: portrait) {
  .gallery-dialog[data-dedicated="true"].landscape-only .gallery-reader {
    top: 100px;
    bottom: auto;
  }
}
