/* Four spreads share a print table; the documents stay in native reading order. */
html:has(body.page-home) { --folio-mast: 70px; scroll-padding-top: var(--folio-mast); }
.page-home {
  --edition-paper: #f7f3e9;
  --edition-ink: #191821;
  --edition-blue: #243cc3;
  --edition-red: #ff6148;
  --studio-stock: #e9e5d9;
  --folio-gutter: clamp(1.25rem, 4.1vw, 5.5rem);
  --mast-h: var(--folio-mast, 70px);
  --stage-h: calc(100svh - var(--mast-h));
  background: var(--edition-paper);
}
.page-home .site-head { background: var(--edition-paper); color: var(--edition-ink); }
.page-home .site-bar { height: var(--mast-h); }
.page-home .site-head :is(.lang-pop, .mobile-panel) { background: var(--edition-paper); }
.home { color: var(--edition-ink); background: var(--edition-paper); overflow: clip; }
.home :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.edition { position: relative; isolation: isolate; }
.edition :where(p, h1, h2, figure) { margin: 0; }
.folio-leaf { position: relative; }
.folio-page { position: relative; min-height: var(--stage-h); }
.edition-rig, .edition-tools[hidden] { display: none; }

.cover-page {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.6rem, 3.5svh, 3.5rem) var(--folio-gutter) 0;
  background: var(--edition-paper);
}
.cover-layout {
  flex: 1; display: grid; grid-template-columns: minmax(0, .90fr) minmax(0, 1fr);
  grid-template-rows: 1.12fr .82fr; column-gap: clamp(1.25rem, 2.8vw, 3rem);
  padding-block: clamp(1.8rem, 5.2svh, 4.2rem);
}
#home-title {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 1;
  font: 700 var(--type-cover)/.87 var(--display);
  font-stretch: 80%; letter-spacing: -.03em;
  color: var(--edition-ink); touch-action: pan-y pinch-zoom;
}
.home-title__line { display: block; }
.home-title__word { display: inline-block; white-space: nowrap; }
.home-title__glyph { display: inline-block; transform-origin: center; }
.cover-intro {
  grid-area: 2 / 1; align-self: start; margin-top: clamp(1.35rem, 3.6svh, 3rem);
  max-width: 29ch; font: 400 var(--type-lead)/1.4 var(--display);
}
.cover-archive {
  grid-area: 1 / 2 / 3 / 3; align-self: center; position: relative; min-width: 0;
  margin-right: calc(-.35 * var(--folio-gutter));
}
.cover-prints { position: relative; aspect-ratio: 1.30; }
.print-slot { position: absolute; }
.print-slot--opening { inset: 18% 7% 6% 0; }
.print-slot--verso { inset: 0 4% 20% 22%; }
.archive-print {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  transform: rotate(var(--rest-angle, 0deg)); transform-origin: 0 0;
}
.archive-print img { display: block; width: 100%; height: 100%; object-fit: contain; }
.archive-print--opening {
  --rest-angle: -1.25deg; padding: clamp(3px, .32vw, 6px);
  background: #fffdf7; box-shadow: 3px 5px 0 #243cc3;
}
.archive-print--opening img, .archive-print--verso img { object-fit: cover; }
.archive-print--verso {
  --rest-angle: 5deg; padding: clamp(3px, .32vw, 6px);
  background: var(--edition-red); box-shadow: 1px 3px 3px #19182124;
}
.cover-imprint {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem;
  position: relative; margin: max(.7rem, 1.6svh) 7% 0 0; padding: .65rem 0 .25rem; border-top: 1px solid #19182155;
  background: var(--edition-paper); opacity: var(--imprint-ink, 1);
  font: 400 var(--type-caption)/1.15 var(--body);
}
.cover-imprint:focus-within { opacity: 1; }
.cover-imprint a, .cover-index a { text-decoration: none; }
.cover-imprint a:hover, .cover-index a:hover { text-decoration: underline; text-underline-offset: .2em; }
.cover-register {
  min-height: clamp(4rem, 9svh, 6.5rem); border-top: 1px solid #19182168;
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(2rem, 9vw, 10rem);
  padding-block: .4rem; padding-right: min(21%, 13rem);
  background: var(--edition-paper); box-shadow: calc(0px - var(--folio-gutter)) 0 var(--edition-paper), var(--folio-gutter) 0 var(--edition-paper);
  font: 400 var(--type-ui)/1.15 var(--body);
}
.cover-enter { text-decoration: none; display: inline-flex; align-items: center; gap: .75em; min-height: 44px; }
.cover-enter span { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: var(--edition-red); color: var(--edition-ink); }
.cover-enter:hover span { background: var(--edition-ink); color: var(--edition-paper); }
.cover-index { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.9rem, 2vw, 2rem); }
.cover-index a { display: inline-flex; min-height: 36px; align-items: center; }

.concert-page { display: grid; align-content: end; background: #132d69; isolation: isolate; }
.concert-negative { position: absolute; inset: 0; z-index: -1; }
.concert-negative img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.concert-ticket {
  width: min(100%, 80rem); justify-self: start; position: relative;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .95fr); align-items: end;
  gap: clamp(1rem, 5vw, 5.5rem); padding: clamp(1.3rem, 3.9svh, 3.4rem) var(--folio-gutter);
  color: var(--edition-ink); background: var(--edition-paper);
  border-top: 5px solid var(--edition-red);
}
.folio-tag, .spread-credit { font: 400 var(--type-caption)/1.15 var(--body); }
.folio-tag { margin-bottom: .85rem; }
.folio-title {
  font: 700 var(--type-section)/.88 var(--display); font-stretch: 80%;
  letter-spacing: -.03em;
}
.work-heading .folio-title span { display: block; }
.work-note p { max-width: 43ch; font: 400 var(--type-copy)/1.625 var(--display); font-stretch: normal; letter-spacing: normal; }
.edition .folio-link {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px; margin-top: .35rem;
  color: inherit; font: 400 var(--type-ui)/1.15 var(--body); text-underline-offset: .24em;
}
.edition .folio-link span { text-decoration: none; display: inline-block; }
.edition .folio-link:hover span { transform: translate(2px, -2px); }
.spread-page {
  display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .82fr); align-items: center;
  gap: clamp(2rem, 6.5vw, 7rem); padding: clamp(2rem, 6svh, 6rem) var(--folio-gutter);
}
.spread-page--exhibit { background: var(--edition-blue); color: #fffdf7; }
.spread-page--studio {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.26fr);
  background: var(--studio-stock); color: var(--edition-ink);
}
.spread-page--studio .spread-story { grid-column: 1; grid-row: 1; }
.spread-page--studio .spread-art { grid-column: 2; grid-row: 1; }
.spread-story { width: min(100%, 37rem); }
.spread-story .folio-tag {
  border-top: 1px solid currentColor; padding-top: .8rem;
  margin-bottom: clamp(1.25rem, 3.5svh, 3.6rem);
}
.spread-story .work-note { margin-top: clamp(1.4rem, 4.6svh, 3.6rem); }
.spread-credit { margin-top: clamp(1.2rem, 5.8svh, 4.8rem); }
.spread-art { --art-height: min(77svh, 47rem); position: relative; width: 100%; height: var(--art-height); }
.print-slot--poster, .print-slot--drawing {
  width: min(75%, calc(var(--art-height) * .7056)); aspect-ratio: 866 / 1080;
  left: 8%; top: 6%;
}
.print-slot--proof {
  width: min(61%, calc(var(--art-height) * .5298)); aspect-ratio: 867 / 1080;
  left: 36%; top: 16%;
}
.archive-print--poster { --rest-angle: -3deg; background: #f6f1df; }
.archive-print--proof { --rest-angle: 8deg; background: #f6f1df; }
.print-slot--drawing {
  width: min(70%, calc(var(--art-height) * .6522)); aspect-ratio: 819 / 1080; left: 26%; top: 8%;
}
.print-slot--study { width: min(55%, calc(var(--art-height) * .4702)); aspect-ratio: 819 / 1080; left: 4%; top: 20%; }
.archive-print--drawing { --rest-angle: 2deg; }
.archive-print--study { --rest-angle: -8deg; }
.archive-print:is(.archive-print--poster, .archive-print--proof, .archive-print--drawing, .archive-print--study) {
  box-shadow: 2px 5px 10px #17151f23;
}
.archive-print--drawing img { object-fit: contain; }
.archive-print--study img { object-fit: cover; transform: scale(2.05); transform-origin: 110% 51%; }
.edition:has([data-flow-origin][data-flow-masked]) :is(.archive-print--study, .edition-tools) { visibility: hidden; }

.edition[data-ready] { display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; }
.edition[data-ready] .folio-cover { grid-area: 1 / 1; }
.edition[data-ready] .folio-concert { grid-area: 2 / 1; }
.edition[data-ready] .folio-exhibit { grid-area: 3 / 1; }
.edition[data-ready] .folio-studio { grid-area: 4 / 1; }
.edition[data-ready] .edition-rig {
  display: block; position: sticky; top: var(--mast-h); z-index: 0; grid-area: 1 / 1 / 5 / 2; align-self: start;
  width: 100%; height: var(--stage-h);
  overflow: hidden; isolation: isolate; pointer-events: none; background: var(--edition-paper);
}
.edition-rig .archive-print { inset: 0 auto auto 0; backface-visibility: hidden; }
.edition-rig .archive-print--opening, .edition-rig .archive-print--verso { padding: 0; box-shadow: none; }
.edition-rig .archive-print--opening img, .edition-rig .archive-print--verso img { position: absolute; max-width: none; object-fit: fill; transform-origin: top left; }
.edition-rig .archive-print--verso { z-index: 0; }
.edition-rig .archive-print--opening { z-index: 1; }
.folio-stock { position: absolute; inset: 0; }
.folio-stock--exhibit { background: var(--edition-blue); z-index: 2; }
.edition-rig .archive-print--proof { z-index: 3; }
.edition-rig .archive-print--poster { z-index: 4; }
.folio-stock--studio { background: var(--studio-stock); z-index: 5; }
.edition-rig .archive-print--study { z-index: 6; }
.edition-rig .archive-print--drawing { z-index: 7; }
.edition[data-ready] .folio-leaf { pointer-events: none; }
.edition[data-ready] :is(#home-title, .cover-intro, .cover-register) { opacity: var(--cover-ink, 1); }
.edition[data-cover-away] :is(#home-title, .cover-intro, .cover-register, .cover-imprint) { visibility: hidden; }
.edition[data-ready] .folio-leaf :is(a, h1) { pointer-events: auto; }
.edition[data-ready] .folio-page { background: transparent; }
.edition[data-ready] .concert-negative img { visibility: hidden; }
.edition[data-ready] .folio-leaf:not(.folio-cover) { min-height: calc(var(--stage-h) + 17svh); }
.edition[data-ready] .folio-page { position: sticky; top: var(--mast-h); }
.edition-tools:not([hidden]) {
  display: flex; align-items: flex-end; justify-content: end; position: sticky;
  grid-area: 1 / 1 / 5 / 2; align-self: start; height: 42px; top: calc(100svh - 52px);
  z-index: 5; padding-right: var(--folio-gutter); pointer-events: none;
}
.edition-nav {
  display: inline-flex; align-items: center; background: #fffdf7; color: var(--edition-ink);
  border: 1px solid #1918214a; pointer-events: auto;
}
.edition-nav a, .edition-play {
  width: 35px; height: 40px; display: grid; place-items: center; color: inherit;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.edition-nav a i { width: 17px; height: 2px; background: #989386; }
.edition-nav a[aria-current] i { height: 4px; background: var(--edition-ink); }
.edition-nav a:hover i { background: var(--edition-blue); }
.edition-play { width: 40px; border-left: 1px solid #1918214a; }
.edition-play i { height: 0; width: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.edition-play[aria-pressed="true"] i { height: 11px; width: 8px; border: solid currentColor; border-width: 0 3px; }
.edition-nav :is(a, button):focus-visible { outline-offset: -3px; }

@media (min-width: 64rem) and (max-width: 74rem) {
  .cover-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .89fr); column-gap: 1.25rem; }
  .concert-ticket { width: 100%; }
}
@media (max-width: 800px) {
  html:has(body.page-home) { --folio-mast: 59px; }
  .cover-layout { column-gap: 1rem; }
  .cover-register { gap: 1rem; }
  .concert-ticket { padding-bottom: 3.2rem; }
}
@media (max-width: 719px) {
  .page-home { --folio-gutter: clamp(1rem, 5vw, 2rem); }
  .cover-page { padding-top: clamp(1.25rem, 3.5svh, 2.5rem); justify-content: space-between; }
  .cover-layout {
    display: flex; flex: 1 0 auto; flex-direction: column; align-items: stretch; justify-content: center;
    padding: 0 0 clamp(1.15rem, 3.5svh, 2.3rem);
  }
  #home-title { align-self: stretch; }
  .cover-intro { align-self: stretch; max-width: 32ch; margin: clamp(1.1rem, 3.2svh, 2rem) 0 0; }
  .cover-archive { align-self: stretch; margin: clamp(.8rem, 1.8svh, 1.5rem) 0 0; }
  .cover-prints { aspect-ratio: 1.69; max-height: 33svh; }
  .print-slot--opening { inset: 17% 8% 3% .4%; }
  .print-slot--verso { inset: 0 5% 19% 23%; }
  .cover-imprint { margin: .85rem 3% 0 0; padding-top: .5rem; }
  .cover-register { gap: .1rem 1.1rem; display: grid; grid-template-columns: 1fr; padding: .35rem 0 .65rem; }
  .cover-enter { min-height: 39px; justify-self: start; }
  .cover-index { gap: .2rem 1.05rem; }
  .cover-index a { min-height: 36px; }
  .edition-tools:not([hidden]) { padding-right: .45rem; height: 38px; top: calc(100svh - 43px); }
  .edition[data-ready] .cover-register { padding-bottom: 3.05rem; }
  .spread-page--studio .spread-story { order: -1; }
  .edition-nav a { width: 28px; height: 36px; }
  .edition-play { width: 36px; height: 36px; }
  .edition-nav a i { width: 14px; }
  .concert-page { display: flex; flex-direction: column; justify-content: end; }
  .concert-negative { position: relative; min-height: 40svh; flex: 1; }
  .concert-negative img { position: absolute; inset: 0; }
  .concert-ticket { width: 100%; display: block; padding: 1rem var(--folio-gutter) clamp(2.9rem, 6svh, 4rem); }
  .work-heading .folio-title span { display: inline; }
  .concert-ticket .work-note { margin-top: .85rem; }
  .folio-tag { margin-bottom: .58rem; }
  .spread-page {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: clamp(.8rem, 2.5svh, 1.8rem); padding: clamp(1.3rem, 3.6svh, 3rem) var(--folio-gutter) 3.25rem;
  }
  .spread-art { --art-height: clamp(13.5rem, 42svh, 33rem); }
  .spread-story { width: 100%; }
  .spread-story .folio-tag { padding-top: .55rem; margin-bottom: .75rem; }
  .spread-story .work-note { margin-top: .8rem; }
  .spread-credit { margin-top: .7rem; }
  .print-slot--poster { width: min(61%, calc(var(--art-height) * .7297)); left: 12%; top: 6%; }
  .print-slot--proof { width: min(52%, calc(var(--art-height) * .578)); left: 41%; top: 12%; }
  .print-slot--drawing { width: min(61%, calc(var(--art-height) * .6673)); left: 34%; top: 4%; }
  .print-slot--study { width: min(50%, calc(var(--art-height) * .5081)); left: 10%; top: 18%; }
  .edition[data-ready] .concert-negative { position: absolute; width: 100%; height: 100%; }
}
@media (max-width: 719px) and (max-height: 740px) {
  .cover-layout { padding-bottom: 1rem; }
  .cover-register { display: flex; }
  .cover-index { gap: .2rem .8rem; }
  .cover-prints { max-height: 28svh; }
  .spread-art { --art-height: clamp(12rem, 37svh, 20rem); }
}
@media (max-width: 719px) and (max-height: 665px) {
  .edition-tools:not([hidden]) {
    top: calc(100svh - 39px); height: 39px; padding-inline: var(--folio-gutter);
    background: var(--edition-paper); border-top: 1px solid #19182155;
  }
  .edition-nav { border: none; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .edition .folio-link:hover span { transform: none; }
}
