.anthology-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px clamp(18px, 4vw, 52px);
  margin-bottom: clamp(32px, 5vw, 68px);
}
.anthology-index > div { border-top: 1px solid #20172865; padding-top: 14px; }
.anthology-index h3 { font: 400 clamp(1.7rem, 3vw, 2.7rem)/1 var(--serif); }
.anthology-index ul { list-style: none; padding: 0; margin: 13px 0 0; }
.anthology-index li + li { margin-top: 9px; }
.anthology-index a { font-size: .82rem; line-height: 1.5; text-underline-offset: .25em; }

.anthology-reading { --head-bg: var(--bg); --head-ink: var(--fg); color: var(--fg); background: var(--bg); }
.anthology-reading .universe-verse figcaption,
.anthology-reading .universe-perspective summary,
.anthology-source { color: var(--accent); }
.anthology-source { display: inline-block; margin-top: 1rem; font-size: .78rem; text-underline-offset: .25em; }
.anthology-figure .poem-art { aspect-ratio: 5 / 4; }

.santiago-reading { --bg: #151322; --fg: #f8edf0; --accent: #ffadae; --rule: #ffb8ca58; }
.rhythm-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 78% 50%, #422234, #151322 72%);
}
.rhythm-track {
  position: relative;
  width: 87%;
  height: 53%;
  color: #ff9c9e;
}
.rhythm-track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 24%, currentColor 81%, transparent);
  opacity: .48;
}
.rhythm-track i {
  position: absolute;
  left: var(--beat);
  bottom: 50%;
  width: clamp(2px, .34vw, 5px);
  height: var(--height);
  background: linear-gradient(0deg, #ff7c8f, #ffe5c6);
  transform-origin: center bottom;
  transform: scaleY(.12);
  opacity: .32;
}
.rhythm-track i:first-child { transform: scaleY(.65); opacity: 1; }
.anthology-figure:has(.scene-in-view, details[open]) .rhythm-track i {
  animation: anthology-beat 520ms var(--delay) ease-out both;
}
@keyframes anthology-beat {
  0% { transform: scaleY(.12); opacity: .32; }
  64% { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(1); opacity: .84; }
}

.suardiaz-reading { --bg: #172b33; --fg: #f7e9d6; --accent: #ffc78d; --rule: #f4d7aa65; }
.plates-art {
  isolation: isolate;
  background: linear-gradient(#e6c3a2, #f4ddbd 58%, #afbbb2 58%, #647f83);
}
.plates-flag, .plates-horse {
  position: absolute;
  top: 19%;
  width: 51%;
  height: 59%;
  transform-origin: center;
  transition: transform 850ms cubic-bezier(.2,.7,.25,1);
}
.plates-flag { left: 3%; color: #91483d; }
.plates-horse { right: 4%; color: #20414a; mix-blend-mode: multiply; }
.plates-flag::before {
  content: "";
  position: absolute;
  left: 16%;
  height: 93%;
  width: 2%;
  background: #543a31;
  transform: rotate(-10deg);
}
.plates-flag i, .plates-horse i { position: absolute; inset: 0; background: currentColor; }
.plates-flag i {
  clip-path: polygon(15% 4%, 31% 7%, 49% 5%, 62% 11%, 73% 23%, 92% 28%, 96% 35%, 88% 43%, 74% 45%, 66% 40%, 57% 48%, 54% 64%, 45% 56%, 35% 44%, 21% 47%);
}
.plates-horse i {
  clip-path: polygon(18% 81%, 25% 63%, 33% 40%, 42% 23%, 40% 7%, 47% 10%, 53% 19%, 58% 8%, 63% 17%, 65% 24%, 75% 34%, 80% 47%, 96% 61%, 94% 68%, 87% 72%, 75% 68%, 66% 58%, 57% 57%, 57% 74%, 66% 87%, 37% 93%);
}
.plates-horse::after {
  content: "";
  position: absolute;
  top: 41%;
  left: 72%;
  width: 2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffdda5;
}
.plates-horizon {
  position: absolute;
  z-index: -1;
  inset: 65% -6% auto;
  height: 22%;
  border-radius: 50%;
  border-top: 1px solid #fff3d578;
  box-shadow: 0 -11px 0 -10px #fff3d566, 0 -21px 0 -20px #fff3d566;
  transform: rotate(-4deg);
}
.anthology-figure:has(.scene-in-view, details[open]) .plates-flag { transform: translate(48%, 10%) rotate(6deg); }
.anthology-figure:has(.scene-in-view, details[open]) .plates-horse { transform: translate(-42%, -9%) rotate(-7deg); }

@media (prefers-reduced-motion: reduce) {
  .anthology-figure:has(.scene-in-view, details[open]) .rhythm-track i { animation: none; transform: scaleY(1); opacity: .84; }
  .plates-flag, .plates-horse { transition: none; }
}

.chalk-reading { --bg: #1d211f; --fg: #eee8d9; --accent: #e0ba94; --rule: #e0ba945c; }
.chalk-art {
  background:
    radial-gradient(ellipse at 35% 32%, #53534a38, transparent 52%),
    linear-gradient(154deg, #373831, #272a27 68%, #30302b);
}
.chalk-reading .action:hover { background: var(--accent); color: var(--bg); }

.gate-reading { --bg: #211b1c; --fg: #f3e6db; --accent: #e8be83; --rule: #e8be8356; }
.gate-art {
  isolation: isolate;
  background: radial-gradient(ellipse at 52% 43%, #393136, #221e26 60%, #141318 91%);
}
.gate-bars, .gate-shine {
  position: absolute;
  inset: 12% 8% 8%;
  transform: rotate(-4deg) skewY(4deg);
  mask-image:
    repeating-linear-gradient(90deg, #000 0 3%, transparent 3% 13.8%, #000 13.8% 14.4%, transparent 14.4% 16.2%),
    linear-gradient(0deg, transparent 0 17%, #000 17% 20%, transparent 20% 83%, #000 83% 85%, transparent 85%);
}
.gate-bars { background: linear-gradient(106deg, #181519, #3d2527 38%, #2c2226 67%, #17161c); }
.gate-reading input[type="range"] { width: min(12rem, 100%); accent-color: var(--accent); }
.gate-reading figcaption label { font-size: .77rem; }
.gate-reading input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.inocentes-reading { --bg: #221c1d; --fg: #f3e9dc; --accent: #e7ac9e; --rule: #e7ac9e60; }
.inocentes-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 40% 37%, #53423b, #302526 72%);
}
.inocentes-print {
  position: relative;
  isolation: isolate;
  width: 73%;
  aspect-ratio: 1.57;
  background: linear-gradient(142deg, #b9a691, #d1bca0 54%, #9a836e);
  transform: rotate(-5deg);
  box-shadow: 1.1rem 1.4rem 2rem #160d11a0;
}
.inocentes-print::before, .inocentes-print::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.inocentes-print::before {
  inset: 9% 8%;
  background:
    linear-gradient(90deg, transparent 45%, #bca78d 45% 56%, transparent 56%),
    repeating-linear-gradient(0deg, #5a463c6b 0 1px, transparent 1px 6px);
  opacity: .54;
}
.inocentes-print::after {
  inset: 0;
  z-index: 3;
  background: linear-gradient(118deg, transparent 51%, #33221c26 51.3%, #f7d7ac25 52%, transparent 53%);
}
.inocentes-ink {
  position: absolute;
  inset: 25% 8% auto;
  color: #652f2c;
  font: 500 clamp(1.5rem, 4.3vw, 4.3rem)/.88 var(--display);
  letter-spacing: -.075em;
  opacity: .13;
  transform: translateX(.3rem);
  transition: opacity 490ms ease, transform 490ms ease-out;
}
.inocentes-slip {
  position: absolute;
  z-index: 1;
  top: 38%;
  right: -5%;
  left: -4%;
  padding: 5% 9% 5% 8%;
  background: #d7c7ac;
  color: #332825;
  font: 400 clamp(.94rem, 2.5vw, 1.75rem)/1.2 var(--serif);
  box-shadow: 0 .24rem .44rem #321e1b50;
  clip-path: polygon(0 3%, 23% 0, 51% 3%, 77% 0, 100% 4%, 99% 91%, 75% 100%, 49% 94%, 24% 99%, 1% 95%);
  transform: rotate(3deg);
  transition: transform 440ms cubic-bezier(.22,.7,.25,1);
}
.inocentes-reading .anthology-figure:has(.scene-in-view, details[open]) .inocentes-ink {
  opacity: .9;
  transform: translateX(0);
}
.inocentes-reading .anthology-figure:has(.scene-in-view, details[open]) .inocentes-slip {
  transform: translate(4%, 122%) rotate(-1deg);
}
@media (prefers-reduced-motion: reduce) {
  .inocentes-ink, .inocentes-slip { transition: none; }
}

.penelopea-reading { --bg: #191e20; --fg: #dedfd7; --accent: #d9b68a; --rule: #d9b68a55; }
.penelopea-reading .poem-copy h1 { font-size: clamp(2.65rem, 5.5vw, 5.7rem); }
.penelopea-reading .poem-copy h1 span {
  display: block;
  margin-bottom: .7rem;
  font: 400 .76rem/1.35 var(--mono);
  letter-spacing: .05em;
}
.penelopea-reading .poem-copy h1 em { display: block; }
.lima-window {
  --lamp-x: 56%;
  --lamp-y: 44%;
  isolation: isolate;
  background:
    linear-gradient(104deg, #141716 1%, transparent 34%, transparent 79%, #0e1112 100%),
    linear-gradient(165deg, #353b3b, #2e3538 42%, #242b2d 68%, #171c1e);
}
.lima-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: solid #141617;
  border-width: 5px 9px 12px 7px;
  box-shadow: inset 0 0 1.8rem #0c1011ab;
  background:
    linear-gradient(106deg, transparent 13%, #b3ae9c31 13.2%, transparent 13.7%),
    linear-gradient(82deg, transparent 79%, #9c9e9038 79.15%, transparent 79.55%),
    linear-gradient(174deg, transparent 73%, #7d775c28 73.14%, transparent 73.45%);
  pointer-events: none;
}
.lima-neighbor {
  position: absolute;
  inset: 59% 0 0;
  background: #1a1d1e;
  clip-path: polygon(0 16%, 16% 16%, 16% 38%, 29% 38%, 29% 57%, 66% 57%, 66% 14%, 84% 9%, 84% 24%, 100% 24%, 100% 100%, 0 100%);
}
.lima-post {
  position: absolute;
  left: var(--lamp-x);
  top: calc(var(--lamp-y) + 2%);
  bottom: 0;
  width: 1.1%;
  background: linear-gradient(90deg, #131719, #423933 65%, #201b19);
  transform: translateX(-50%);
}
.lima-lamp, .lima-reflection {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.lima-lamp {
  left: var(--lamp-x);
  top: var(--lamp-y);
  width: 31%;
  background: radial-gradient(circle, #eee1ac 0 6%, #d39c5b 9%, #bc78376b 19%, #9760372e 36%, transparent 66%);
}
.lima-reflection {
  left: 43%;
  top: 35%;
  width: 25%;
  background: radial-gradient(circle, #d7ddd0a8 0 11%, #aebdb96b 14%, #96aaa949 26%, transparent 61%);
  opacity: .9;
  transition: left 880ms ease-in-out, top 880ms ease-in-out, opacity 880ms ease-in-out;
}
.penelopea-reading .anthology-figure:has(.scene-in-view, details[open]) .lima-reflection {
  left: var(--lamp-x);
  top: var(--lamp-y);
  opacity: .68;
}
@media (prefers-reduced-motion: reduce) {
  .lima-reflection { transition: none; }
}

@property --gate-reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 23%;
}
.gate-shine {
  background: radial-gradient(ellipse 30% 79% at var(--light, var(--gate-reveal)) 57%, #f3ca83bd, #a34e4182 43%, transparent 100%);
}
.gate-art.scene-in-view .gate-shine { animation: gate-lantern 1.65s ease-in-out both; }
@keyframes gate-lantern {
  from { --gate-reveal: 23%; }
  to { --gate-reveal: 76%; }
}
