/* Side quest II, The Unfolding Self: poster proportions (1055×1491), Splendor Solis plates, closing poem footnote
   and the three-column sources section. The shared essay layout, reading table, margin notes and player come from
   ../assets/essay.css. */

:root {
  --essay-hero-w: clamp(320px, min(calc((100vh - 96px) * 0.7076), calc((100vw - 80px) * 0.52)), 700px);
  --essay-intro-w: minmax(360px, 520px);
  --essay-intro-min-h: max(620px, calc(var(--essay-hero-w) * 1491 / 1055));
  --essay-hero-gap: 48px;
  --essay-hero-mobile-w: 560px;
  --essay-toc-n: 20px;
  --essay-outline-col: 180px;
  --essay-title-size: clamp(2rem, 3.3vw, 2.75rem);
  --essay-title-track: 0.05em;
  --essay-the-size: 0.4em;
}
@supports (height: 100svh) {
  :root { --essay-hero-w: clamp(320px, min(calc((100svh - 96px) * 0.7076), calc((100vw - 80px) * 0.52)), 700px); }
}

.e-poster a:has(img) { background: #100d09 center / cover no-repeat; }
.e-poster img { aspect-ratio: 1055 / 1491; object-fit: cover; }

/* footnote reference and closing poem */
.fn-ref { margin-left: 1px; font-family: var(--font-ui); font-size: 0.68em; font-weight: 600; line-height: 0; }
.fn-ref a { padding: 0 3px; color: var(--gold-ink); text-decoration: none; }
.essay aside.coda { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hair); scroll-margin-top: calc(var(--nav-h) + 18px); }
.essay .coda-lead { margin-bottom: 0.8em; font-size: 1rem; color: var(--ink-2); }
.coda-lead sup { margin-right: 5px; font-family: var(--font-ui); font-size: 0.72em; font-weight: 600; line-height: 0; color: var(--gold-ink); }
.poem { margin: 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--gold); }
.essay .poem p { margin: 0 0 0.9em; font-size: 1.08rem; line-height: 1.75; text-wrap: initial; }
.essay .poem p:last-child { margin-bottom: 0; }
/* a line of verse too long for the screen turns under itself, indented */
.poem .s { display: block; padding-left: 1.3em; text-indent: -1.3em; }

/* Historical plates provide a pause in the reading; captions stay outside the narrated text. */
.essay-plate { margin: 32px 0 36px; border-block: 1px solid var(--hair-2); }
.essay-plate-image {
  display: grid; place-items: center; padding: 22px 18px;
  background: var(--surface); text-decoration: none;
}
.essay-plate-image img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 560px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.essay-plate-image:focus-visible { outline-offset: -4px; }
.essay-plate figcaption { padding: 18px 0 20px; }
.essay .essay-plate .plate-kicker {
  margin: 0 0 6px; font-family: var(--font-ui); font-size: 11.5px;
  line-height: 1.35; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink);
}
.plate-title { display: block; margin-bottom: 7px; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.essay .essay-plate .plate-note { margin: 0 0 10px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.essay .essay-plate .plate-credit { margin: 0; font-family: var(--font-ui); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.plate-credit a { text-underline-offset: 0.18em; color: var(--ink-2); }
@media (hover: hover) { .plate-credit a:hover { color: var(--gold-ink); } }
@media (max-width: 600px) {
  .essay-plate { margin-block: 26px; }
  .essay-plate-image { padding: 16px 12px; }
  .essay-plate-image img { max-height: 480px; }
}

/* three-section sources layout after the essay */
.src-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.src-more { margin-top: 36px; }
.src-grid .srclist { columns: auto; display: grid; gap: 12px; }
.srclist.cols { display: block; columns: 3 270px; column-gap: 32px; }
.srclist.cols li { break-inside: avoid; margin-bottom: 12px; }
.src-grid h3, .src-more h3 { margin: 0 0 10px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.srclist .ref { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-ink); }
@media (max-width: 700px) { .src-grid { grid-template-columns: minmax(0, 1fr); } }
