.publication-page[data-layout] {
  --ground: #38281e;
  --rule: #eee5d844;
  background: var(--ground);
  color: #eee5d8;
}

[data-layout] :is(.edition-note, .next-publication, footer) {
  background: var(--ground);
  color: inherit;
}
.publication-page[data-layout] .next-publication { background: var(--ground); border-color: var(--rule); }
.publication-page[data-layout] .site-header:not(.menu-header) {
  background: linear-gradient(to bottom, #120c0de0, transparent);
  backdrop-filter: none;
  color: #eee5d8;
}
[data-layout] .edition-note { border-block: 1px solid var(--rule); }
[data-layout] .sequence-description { font: clamp(20px, 2.1vw, 34px)/1.2 Newsreader, serif; }
.bespoke-plate button, .bespoke-plate img { display: block; width: 100%; height: auto; }
.bespoke-plate button { position: relative; }
.bespoke-plate button:focus-visible { outline: 3px solid #c49d61; outline-offset: -4px; z-index: 2; }
.bespoke-plate button:focus-visible::after {
  content: ''; position: absolute; inset: 2px; border: 2px solid #c49d61; pointer-events: none;
}
.bespoke-plate figcaption, .film-opening figcaption, .ratio-counter {
  font: 400 .76rem/1.3 Archivo, sans-serif; letter-spacing: .07em; font-variant-numeric: tabular-nums;
}
.bespoke-plate figcaption { padding: .8rem 0; }
.sequence-heading .eyebrow { display: block; margin-bottom: .8rem; }
.cinema-opening { position: relative; height: 100svh; isolation: isolate; }
.cinema-opening .film-opening, .cinema-opening .edition-film-surface {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
}
.cinema-opening .film-opening { isolation: isolate; }
.cinema-opening .edition-film-surface { isolation: isolate; }
.cinema-opening .film-opening::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(20deg, #160d09db, transparent 52%), linear-gradient(to top, #160d0975, transparent 24%);
}
.cinema-opening .sequence-heading {
  z-index: 2; position: absolute; bottom: clamp(5.5rem, 10svh, 9rem); left: var(--pad); pointer-events: none;
}
.cinema-opening h1 { font: 400 clamp(68px, 11vw, 180px)/.78 Cormorant, serif; letter-spacing: -.055em; }
.cinema-opening .film-opening figcaption {
  position: absolute; z-index: 1; inset: auto var(--pad) max(18px, 3svh);
  display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eee5d87a;
  min-height: 44px;
}
.cinema-opening .film-opening .pause-film { min-height: 44px; }
.cinema-lead { display: grid; align-items: center; grid-template-columns: 32% 68%; }
.cinema-lead .sequence-description { padding: 1.5rem var(--pad); max-width: 25ch; }
.cinema-lead figcaption { text-align: right; padding-right: var(--pad); }
.cinema-pair { position: relative; display: grid; grid-template-columns: repeat(20, 1fr); align-items: start; padding: 14svh 0; }
.cinema-pair figure:first-child { grid-area: 1 / 2 / 2 / 15; }
.cinema-pair figure:last-child { grid-area: 1 / 14 / 2 / 20; margin-top: 17vw; }
.cinema-finale { width: 84vw; margin: 4svh auto 14svh; }
[data-layout="morph-viewfinder"] .edition-stage .sequence-heading { margin: 0 var(--pad); padding-top: 6rem; }
[data-layout="morph-viewfinder"] h1 { font-size: clamp(60px, 7vw, 116px); line-height: .85; }
.viewfinder { margin-top: 2rem; }
.viewfinder figure { margin: 0 auto 10svh; width: 100%; }
.viewfinder figure:nth-child(2) { width: min(72%, 640px); margin-right: var(--pad); }
.viewfinder figure:nth-child(3) { width: min(88%, 720px); margin-left: 0; }
.viewfinder figure:nth-child(4) { width: min(61%, 440px); }
.viewfinder figcaption { padding-inline: 1rem; }
.ratio-counter { display: none; }
[data-layout="morph-viewfinder"] main > .sequence-description {
  max-width: 30ch; margin: 10svh var(--pad) 12svh auto; padding-left: var(--pad);
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .edition-track { position: relative; }
  .edition-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
  [data-layout="cinema-spread"] .edition-track { height: 200svh; }
  .cinema-opening { position: absolute; inset: 0; z-index: 1; transform-origin: left center; }
  .cinema-lead { position: absolute; inset: 0; }
  [data-layout="morph-viewfinder"] .edition-track { height: var(--travel); }
  [data-layout="morph-viewfinder"] .edition-stage {
    --frame-height: min(63svh, 61vw);
    display: grid; grid-template-rows: 1fr var(--frame-height) 1fr; justify-items: center; align-items: center;
  }
  [data-layout="morph-viewfinder"] .edition-stage .sequence-heading {
    display: flex; align-items: baseline; justify-content: space-between; width: calc(100% - 2 * var(--pad));
    align-self: end; margin: 0 0 2svh; padding: 0 0 1.5svh; border-bottom: 1px solid var(--rule);
  }
  [data-layout="morph-viewfinder"] .edition-stage .sequence-heading h1 { font-size: clamp(40px, 7svh, 88px); }
  .viewfinder {
    --ratio: 1.333333;
    position: relative; width: calc(var(--ratio) * var(--frame-height)); height: var(--frame-height);
    margin: 0; outline: 1px solid #eee5d84d; outline-offset: 6px;
  }
  .viewfinder figure:nth-child(n) {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; display: grid;
    place-content: center; overflow: clip; background: var(--ground);
  }
  .viewfinder button, .viewfinder img { width: auto; height: var(--frame-height); max-width: none; }
  .viewfinder figcaption { display: none; }
  .ratio-counter {
    display: block; margin-top: 2.5svh; align-self: start; width: calc(100% - 2 * var(--pad));
    text-align: right; padding-top: 1rem; border-top: 1px solid var(--rule);
  }
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .cinema-lead { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .cinema-lead .sequence-description { margin: 4svh auto 9svh var(--pad); padding: 0; max-width: 24ch; }
  .cinema-pair { display: block; padding: 8svh 0; }
  .cinema-pair figure:first-child { width: 78%; margin-left: auto; }
  .cinema-pair figure:last-child { width: min(64%, 520px); margin: 5svh 0 0 var(--pad); }
  .cinema-finale { width: 100%; margin: 0 0 8svh; }
  .cinema-finale figcaption { padding-left: var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-opening .film-opening::after { display: none; }
}

.photo-opening { position: relative; isolation: isolate; height: 100svh; }
.photo-opening .still-cover, .photo-opening .still-cover img {
  display: block; width: 100%; height: 100%;
}
.photo-opening .still-cover img { object-fit: cover; object-position: 50% 18%; }
.photo-opening::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(24deg, #110c0ae6, transparent 53%);
}
.photo-opening .sequence-heading {
  position: absolute; z-index: 1; left: var(--pad); bottom: 8svh; pointer-events: none;
}
.photo-opening .sequence-heading h1 {
  font: 400 clamp(62px, 10vw, 164px)/.85 Cormorant, serif; letter-spacing: -.055em;
}
[data-layout] :focus-visible { outline: 3px solid #c49d61; outline-offset: -4px; }
[data-layout] :is(.eyebrow, .ratio-counter, .bespoke-plate figcaption) { color: var(--accent, #eee5d8); }
.finder-subtitle { font: italic clamp(28px, 4vw, 65px)/1 Cormorant, serif; }
.monograph-intro {
  display: grid; grid-template-columns: 1fr 1.8fr; align-items: end;
  gap: 7vw; margin: 12svh var(--pad);
}
.monograph-intro .sequence-description { max-width: 24ch; }
.monograph-diptych {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: start;
  gap: 9vw; margin: 13svh var(--pad);
}
.monograph-right { display: grid; gap: 12svh; }
.monograph-right figure:nth-child(even) { width: 76%; margin-left: auto; }
.monograph-close { display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 8vw; margin: 14svh var(--pad); }
.monograph-close figure:last-child { width: 74%; grid-column: 1 / -1; margin: 0 auto; }
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .photo-opening.cinema-opening { position: absolute; }
  .monograph-diptych > figure { position: sticky; top: 10svh; }
}
@media (max-width: 700px) {
  .monograph-intro, .monograph-diptych, .monograph-close { display: block; margin: 8svh var(--pad); }
  .monograph-intro .sequence-description { margin-bottom: 5svh; }
  .monograph-diptych > figure { width: 83%; margin-bottom: 8svh; }
  .monograph-close figure + figure { margin-top: 6svh; }
}

@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .photo-opening + .cinema-lead { grid-template-rows: minmax(0, 1fr); }
  .photo-opening + .cinema-lead figure { justify-self: end; max-width: 100%; }
  .photo-opening + .cinema-lead img,
  .monograph-diptych > figure img {
    display: block; width: auto; max-width: 100%; max-height: min(78svh, calc(100svh - 9rem));
  }
  .monograph-diptych > figure { width: fit-content; max-width: 100%; justify-self: center; }
}
@media (min-width: 701px) {
  .cinema-pair + .cinema-pair figure:first-child { grid-column: 2 / 9; margin-top: 8vw; }
  .cinema-pair + .cinema-pair figure:last-child { grid-column: 10 / 21; margin-top: 0; }
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .cinema-pair + .cinema-pair figure:first-child { width: min(59%, 540px); margin: 0 var(--pad); }
  .cinema-pair + .cinema-pair figure:last-child { width: 84%; margin: 7svh 0 0 auto; }
}
