/* Each reading has its own composition. Navigation and poem text use the anthology markup. */
.halo-reading .poem-layout { position: relative; isolation: isolate; display: block; min-height: min(46rem, 82svh); }
.halo-reading .poem-copy { max-width: 37rem; }
.halo-reading .poem-copy h1 { font-family: var(--display); letter-spacing: -.09em; font-size: clamp(2.1rem, 7.1vw, 7rem); text-transform: uppercase; }
.halo-reading .poem-figure { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter)); }
.halo-reading .constellation-art { height: 100%; aspect-ratio: auto; border: 0; }
.halo-reading .constellation-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #100d1c 3%, #100d1ce8 24%, #100d1c54 58%, transparent 76%); }

.dawn-reading { background: #d1b6a1; color: #30282b; --accent: #62313b; --rule: #5f394b65; }
.dawn-reading .poem-layout { align-items: end; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.dawn-reading .poem-copy h1 { font: 700 clamp(2.25rem, 6vw, 5.8rem)/.98 "Space Mono", var(--mono); letter-spacing: -.1em; }
.dawn-art { aspect-ratio: 1.8; background: linear-gradient(#948c9d, #bc9d93 55%, #e2b38e); }
.dawn-roofs { position: absolute; inset: 0; background: #302b35; clip-path: polygon(0 75%, 13% 72%, 13% 46%, 20% 46%, 20% 70%, 36% 72%, 36% 62%, 48% 62%, 48% 33%, 54% 33%, 54% 58%, 70% 62%, 70% 58%, 79% 52%, 89% 62%, 100% 60%, 100% 100%, 0 100%); }
.dawn-windows { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #f6cf9d 55%, #bc806785 70%, transparent 80%) 0 0 / 15px 10px; clip-path: polygon(16% 79%, 24% 79%, 24% 83%, 16% 83%, 16% 79%, 48% 72%, 63% 72%, 63% 77%, 48% 77%, 48% 72%, 76% 78%, 89% 78%, 89% 82%, 76% 82%, 76% 78%); opacity: .15; transition: opacity .65s ease; }
.dawn:has(.scene-in-view, details[open]) .dawn-windows { opacity: .95; }

.road-reading { background: #202824; color: #ede6ce; --accent: #d6bc79; --rule: #d6bc795c; }
.road-reading .poem-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; }
.road-reading .poem-copy h1 { font: 400 clamp(2.35rem, min(5.4vw, 10svh), 5.8rem)/.9 var(--display); letter-spacing: -.09em; text-transform: uppercase; }
.road-art { aspect-ratio: 1.22; background: linear-gradient(#151e1c, #393f36 55%, #232a24); }
.road-shoulder { position: absolute; inset: 0; background: #111613; clip-path: polygon(53% 29%, 60% 29%, 100% 100%, 0 100%); opacity: .65; }
.road-marks { position: absolute; inset: 15% 0 0; background: repeating-linear-gradient(0deg, #ddc287 0 7%, transparent 7% 23%); clip-path: polygon(48% 0, 51% 0, 55% 30%, 51% 55%, 70% 100%, 44% 100%, 48% 58%, 47% 30%); transform: rotate(10deg) translateX(10%); transition: transform .85s ease, opacity .85s ease; opacity: .5; }
.road:has(.scene-in-view, details[open]) .road-marks { transform: rotate(-7deg); opacity: .9; }

.night-reading { --accent: #b8cef0; --rule: #7991b365; background: #171b25; color: #dce5ee; }
.night-reading .poem-layout { display: block; text-align: center; }
.night-reading .poem-layout:not([data-depth-panel]) { max-width: 52rem; margin: auto; }
.night-reading .poem-copy h1 { font-style: italic; margin-bottom: 1.2rem; }
.night-reading .poem-copy > p { margin-inline: auto; }
.night-reading .poem-figure { max-width: 40rem; margin: 2rem auto 0; }
.night-reading .poem-figure figcaption, .night-reading summary { justify-content: center; margin-inline: auto; }
.night-art { aspect-ratio: 3; background: linear-gradient(#0f131c, #222838); }
.night-rooms { position: absolute; inset: 20% 15%; display: flex; align-items: center; justify-content: center; gap: 26%; transition: gap .8s ease; }
.night-rooms i { width: 5%; height: 26%; min-width: 8px; background: #c9a882; box-shadow: 0 0 14px #cf9b644a; opacity: .73; }
.night-rooms i:nth-child(2) { align-self: start; background: #bccadd; }
.night-rooms i:last-child { align-self: end; opacity: .44; }
.night:has(.scene-in-view, details[open]) .night-rooms { gap: 8%; }

.glow-reading { background: #251b24; color: #f3dec7; --accent: #ffb56a; --rule: #ec9d7666; }
.glow-reading .poem-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; }
.glow-reading .poem-copy h1 { font: 400 clamp(2.2rem,6vw,6.4rem)/.84 var(--display); letter-spacing: -.085em; text-transform: uppercase; color: #fbd2a4; }
.glow-art { aspect-ratio: 1.5; background: #16284b; border: .55rem solid #35252b; outline: 1px solid var(--rule); }
.glow-emulsion, .glow-flare { position: absolute; inset: 0; }
.glow-emulsion { background: linear-gradient(162deg, #132345 15%, #314d85 51%, #62314c 51.5%, #df9f526e 82%, #1c2346 84%); }
.glow-flare { background: radial-gradient(ellipse at 48% 52%, #ffc879b0, #d24b527f 23%, transparent 61%); transform: translateX(-42%); transition: transform 1s ease; }
.glow:has(.scene-in-view, details[open]) .glow-flare { transform: translateX(34%); }

:is(.road-reading, .night-reading, .glow-reading, .dawn-reading) .universe-perspective summary,
:is(.road-reading, .night-reading, .glow-reading, .dawn-reading) .universe-verse figcaption { color: var(--accent); }
.dawn-reading .universe-verse .verse { color: inherit; }

.santiago-reading { --bg: #1c1720; --fg: #f0dfe0; --accent: #ffadae; }
.santiago-reading .poem-layout { display: block; }
.santiago-reading .poem-copy h1 { max-width: 16ch; font: 700 clamp(2.3rem, 6vw, 6.4rem)/.96 "Space Mono", var(--mono); letter-spacing: -.105em; }
.santiago-reading h1 em { font-style: normal; }
.santiago-reading .poem-figure { margin-top: 2.2rem; }
.santiago-reading .rhythm-art { width: 100%; aspect-ratio: 3.7; min-height: 10rem; border: 0; border-block: 1px solid var(--rule); }
.santiago-reading .rhythm-track { height: 70%; }

.suardiaz-reading { --bg: #e1d3b9; --fg: #26383a; --accent: #7d4038; --rule: #60483e66; }
.suardiaz-reading .poem-layout { align-items: start; }
.suardiaz-reading .poem-figure { align-self: center; padding: clamp(.55rem, 1.7vw, 1.35rem); background: #ecdfc5; border: 1px solid var(--rule); box-shadow: .24rem .4rem 0 #8e705239; }
.suardiaz-reading .plates-art { aspect-ratio: 1.85; }
.suardiaz-reading .universe-verse .verse,
.inocentes-reading .universe-verse .verse { color: inherit; }

.chalk-reading { --bg: #2c2e28; --fg: #eee6d4; }
.chalk-reading .poem-layout { display: block; }
.chalk-reading .poem-copy h1 { font: 700 clamp(2.4rem, 6.6vw, 6.8rem)/.91 var(--display); letter-spacing: -.09em; text-transform: uppercase; }
.chalk-reading .poem-copy h1 em { font-style: normal; }
.chalk-reading .poem-figure { margin: 2rem auto 0; max-width: 50rem; }
.chalk-reading .chalk-art { border: 0; box-shadow: 0 0 0 .6rem #35372f; }

.gate-reading .poem-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; }
.gate-reading .poem-copy h1 { font-size: clamp(3rem, 8.9vw, 9.5rem); line-height: .78; letter-spacing: -.05em; }
.gate-reading .poem-copy h1 em { display: block; }
.gate-reading .gate-art { aspect-ratio: .89; border: 0; }
.gate-reading .poem-figure { width: 78%; justify-self: end; border-right: 1px solid var(--rule); padding-right: 1rem; }

.inocentes-reading { --bg: #ddceb8; --fg: #352826; --accent: #7c3330; --rule: #7c33305e; }
.inocentes-reading .poem-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: start; }
.inocentes-reading .poem-copy h1 { font: 700 clamp(2.85rem,7.8vw,7.9rem)/.82 var(--display); letter-spacing: -.095em; text-transform: uppercase; }
.inocentes-reading .poem-copy h1 em { display: block; font-style: normal; }
.inocentes-reading .universe-verse { padding: .7rem 0 .7rem 1rem; border-left: 3px solid var(--accent); }
.inocentes-reading .poem-figure { padding-top: 1rem; }
.inocentes-reading .inocentes-art { box-shadow: .5rem .5rem 0 #8c443848; aspect-ratio: 1.2; }

.penelopea-reading .poem-layout { position: relative; isolation: isolate; display: block; min-height: min(43rem, 82svh); }
.penelopea-reading .poem-copy { max-width: 33rem; }
.penelopea-reading .poem-figure { display: contents; }
.penelopea-reading .lima-window { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter)); aspect-ratio: auto; border: 0; --lamp-x: 72%; --lamp-y: 47%; }
.penelopea-reading .lima-window::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, #191e20 3%, #191e20ed 29%, #191e207a 58%, transparent 73%); }
.penelopea-reading .lima-reflection { left: 64%; top: 39%; width: 17%; }
.penelopea-reading .lima-lamp { width: 21%; }
.penelopea-reading .poem-figure > figcaption { margin-top: 2.4rem; }
.penelopea-reading .poem-figure summary { padding: .5rem .65rem; border: 1px solid var(--rule); }

@media (max-width: 780px) {
  :is(.dawn-reading, .road-reading, .glow-reading, .gate-reading, .inocentes-reading) .poem-layout { grid-template-columns: minmax(0,1fr); }
  .gate-reading .poem-figure { width: min(100%, 28rem); justify-self: center; }
  .gate-reading .gate-art { aspect-ratio: 1.1; }
  .halo-reading .constellation-art::after { background: linear-gradient(90deg, #100d1c 0%, #100d1ca6 57%, #100d1c54 100%); }
  .penelopea-reading .poem-layout { min-height: 0; }
  .penelopea-reading .poem-figure { display: block; margin-top: 1.8rem; }
  .penelopea-reading .lima-window { position: relative; inset: auto; z-index: 0; aspect-ratio: 1.33; border: 1px solid var(--rule); --lamp-x: 59%; --lamp-y: 45%; }
  .penelopea-reading .lima-window::before { background: none; }
  .penelopea-reading .lima-reflection { left: 45%; top: 36%; width: 25%; }
  .penelopea-reading .lima-lamp { width: 31%; }
  .penelopea-reading .poem-figure > figcaption { margin-top: .8rem; }
}
