:root{--editorial-panorama-width:98rem}
.home-mobile-intro h1{max-width:48rem;margin:.45rem auto;line-height:1.15;text-wrap:balance}
.menu-link-copy{display:grid;gap:.2rem;min-width:0}
.menu-link-copy small{font-size:.72em;font-weight:400;line-height:1.25;opacity:.78}
.home-author-section{margin:clamp(1.5rem,4vw,4rem) auto;max-width:var(--editorial-panorama-width)}
.home-author-section h2{text-align:center;font-size:clamp(1.65rem,3.3vw,3rem);margin:0 .8rem .45rem;text-wrap:balance}
.home-author-intro{text-align:center;margin:0 auto 1.3rem;padding:0 1rem;max-width:50ch;line-height:1.45;text-wrap:balance}
.home-author-panels{display:grid;gap:.8rem}
.home-author-panel{position:relative;display:block;overflow:hidden;isolation:isolate;border-radius:1rem;aspect-ratio:3;color:#fff2d3;text-decoration:none;background:#10251d}
.home-author-panel picture,.home-author-panel img{display:block;width:100%;height:100%;object-fit:contain}
.home-author-panel.access-locked>picture img{transform:none}
.home-author-panel::after{content:"";position:absolute;inset:0;pointer-events:none}
.home-author-copy{position:absolute;inset:auto 5% 12%;z-index:1;color:#e8d5a4;text-shadow:0 1px 6px #06160f}
.home-author-copy strong{display:block;color:#efd08a;font-size:clamp(1.25rem,3.3vw,3.1rem);line-height:1.1;text-shadow:0 0 14px #dab36655,0 2px 8px #07150fdd}
.home-author-copy p{margin:.7em 0 0;font:clamp(.95rem,1.35vw,1.18rem)/1.43 Georgia,serif}
.home-author-controls{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1rem}
.home-author-controls button{min-width:44px;min-height:44px;border:1px solid #b99558;border-radius:50%;color:inherit;background:transparent;font-size:1.65rem;cursor:pointer}
.home-author-controls a{padding:.7rem .6rem}
.author-world .world-copy .work-context{margin:.7em 0 0;max-width:42ch;color:#e8d5a4;font:clamp(16px,1.35vw,20px)/1.43 Georgia,serif;text-shadow:0 1px 6px #06160f,0 0 13px #c6a15f22}
body[data-page="authors-index"] .art-wall,body[data-page="works"] .art-wall{max-width:var(--editorial-panorama-width);margin-inline:auto}
.author-world .world-image picture{display:block;width:100%;height:100%}
body[data-page="authors-index"] .author-world .world-image{inset:0;width:100%;height:100%;transform:none}
.author-world .world-image img{display:block;object-fit:contain;object-position:center}
body .author-world.access-locked>.world-open>.world-image img{filter:blur(2.6px) saturate(.86)}
.author-world, .author-world:nth-child(even){margin:0 0 .85rem;clip-path:none;border-radius:.95rem;scroll-margin-top:6rem}
.author-world::after{border-radius:inherit}
.author-world .world-copy h2{color:#efd08a;text-shadow:0 0 14px #dab36655,0 2px 8px #07150fdd}
.editorial-recommendations .related-card{min-height:17rem}
.editorial-recommendations .related-copy:has(p:empty) p{display:none}
@media(min-width:801px){
 .author-world{height:auto;min-height:0;aspect-ratio:3}
 .author-world .world-copy,.author-world[data-text-side] .world-copy{position:absolute;inset:auto 5% 14%;width:40%;margin:0;padding:0;z-index:1}
 .author-world .world-copy h2{font-size:clamp(1.8rem,3.6vw,3.6rem);line-height:1.06;overflow-wrap:break-word}
 .home-author-copy{width:40%}
 .author-world[data-text-side="right"] .world-copy,.home-author-panel[data-text-side="right"] .home-author-copy{left:auto}
 :is(.author-world,.home-author-panel)[data-text-side="left"]::after{background:linear-gradient(90deg,#0b1913eb 0%,#0b1913bd 32%,transparent 53%)}
 :is(.author-world,.home-author-panel)[data-text-side="right"]::after{background:linear-gradient(270deg,#0b1913eb 0%,#0b1913bd 32%,transparent 53%)}
}
@media(max-width:800px){
 .home-mobile-intro{display:block;text-align:center;padding:.6rem 1rem .75rem}
 .home-mobile-intro h1{font-size:clamp(.98rem,4.1vw,1.3rem);margin:.25rem auto;max-width:32ch}
 .home-author-section{padding-inline:.75rem}
 body[data-page="home"] #home-works{width:calc(100% - 1.5rem);margin-inline:auto}
 .home-author-panel{aspect-ratio:auto;min-height:0;display:grid}
 .home-author-panel picture,.home-author-panel img{aspect-ratio:3}
 .home-author-panel::after{display:none}
 .home-author-copy{position:relative;inset:auto;padding:.75rem 1rem .95rem}
 .home-author-copy strong{font-size:clamp(1.1rem,4.3vw,1.65rem)}
 .home-author-copy p{font-size:.91rem;margin:.35em 0 0}
 body[data-page="authors-index"] .art-wall{width:min(calc(100% - 1.5rem),33rem);overflow:visible}
 body .author-world{height:auto;min-height:0;max-height:none;aspect-ratio:2/3}
 body .author-world[data-text-side]::after{background:linear-gradient(0deg,#0b1913ee,#0b1913ab 26%,#0b191330 41%,transparent 58%)}
 body .author-world .world-copy,body .author-world[data-text-side] .world-copy{position:absolute;inset:auto 1.05rem 8%;width:auto;margin:0;padding:0;z-index:1}
 body .author-world .world-copy h2{font-size:clamp(25px,7.2vw,38px);line-height:1.08;max-width:none}
 .author-world .world-copy .work-context{font-size:clamp(14px,3.8vw,17px)}
}

/* The first carousel keeps the source image inside its desktop frame. */
@media (min-width: 801px) {
  body[data-page="home"] #home-works {
    width: min(100%, var(--editorial-panorama-width));
    margin-inline: auto;
    height: auto;
    min-height: 31rem;
    max-height: none;
    aspect-ratio: 1.775;
  }

  /* This original illustration is 3:2. */
  body[data-page="home"] #home-works:has(.hero-scene.current[data-work-id="snegurochka"]) {
    aspect-ratio: 3 / 2;
  }

  body[data-page="home"] #home-works .hero-scene img {
    display: block;
    object-fit: contain;
    object-position: center !important;
    transform: none !important;
  }

  body[data-page="home"] #home-works .hero-content h1 {
    font-size: clamp(2.3rem, 3.7vw, 4rem);
  }

  /* Keep the right-hand column relative to the card, including on wide screens. */
  body[data-page="works"] .art-wall .world[data-text-side="right"] .world-copy {
    position: absolute !important;
    inset: 50% 5% auto auto !important;
    width: 44% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  body[data-page="works"] .art-wall .world[data-text-side="right"] .world-copy h2 {
    max-width: none !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Keep the subscription seal clear of the author's name and annotation. */
body :is(.home-author-panel, .author-world).access-locked > .access-seal {
  top: 50%;
  left: 73%;
}

body :is(.home-author-panel, .author-world).access-locked[data-text-side="right"] > .access-seal {
  left: 27%;
}

@media (max-width: 800px) {
  body:is([data-page="works"], [data-page="authors-index"]) .art-wall .world.access-locked > .access-seal,
  body .home-author-panel.access-locked[data-text-side] > .access-seal {
    top: 22px;
    right: 12px;
    left: auto;
    transform: none;
    gap: 4px;
    font-size: 14px;
  }

  body :is(.world, .home-author-panel) .access-seal .access-seal-icon {
    width: 42px;
    height: 42px;
  }

  body :is(.world, .home-author-panel) .access-seal svg {
    width: 19px;
    height: 23px;
  }
}

/* Author pages use the same sticky scene and document layers as works. */
body[data-section="authors"] .reading-series {
  --reading-bar: 48px;
  --cover-header: 70px;
}

body[data-section="authors"] :is(.reading-cover, .reading-chapter) {
  width: min(100%, var(--editorial-panorama-width));
  margin-inline: auto;
}

body[data-section="authors"] .chapter-scene {
  top: var(--reading-bar);
}

body[data-section="authors"] :is(.reading-cover, .chapter-scene) img {
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 701px) {
  body[data-section="authors"] :is(.reading-cover, .reading-chapter) {
    --author-shade-direction: 90deg;
  }

  body[data-section="authors"] :is(.reading-cover[data-text-side="right"], .reading-chapter.text-right) {
    --author-shade-direction: 270deg;
  }

  body[data-section="authors"] .reading-cover {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3;
    margin-bottom: 0;
  }

  body[data-section="authors"] .reading-cover .cover-copy {
    width: 44%;
    padding: clamp(1rem, 4vw, 4rem) 0;
    margin-inline: 5% auto;
    text-align: left;
  }

  body[data-section="authors"] .reading-cover[data-text-side="right"] .cover-copy {
    margin-inline: auto 5%;
  }

  body[data-section="authors"] .cover-copy h1 {
    font-size: clamp(2rem, 4vw, 4.5rem);
    overflow-wrap: break-word;
  }

  body[data-section="authors"] .cover-copy p {
    font-size: clamp(1rem, 1.55vw, 1.5rem);
  }

  body[data-section="authors"] .reading-chapter {
    min-height: 0;
    margin-top: 0;
  }

  body[data-section="authors"] .chapter-scene {
    height: auto;
    aspect-ratio: 3;
    max-height: none;
  }

  body[data-section="authors"] .chapter-scene picture {
    position: absolute;
    inset: 0;
  }

  body[data-section="authors"] :is(.cover-shade, .chapter-shade) {
    background: linear-gradient(var(--author-shade-direction),
      #10251df7 0%, #10251de8 30%, #10251d90 41%, transparent 50%);
  }

  body[data-section="authors"] .chapter-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #081b14;
    opacity: calc(var(--reading-dim, 0) * .55);
    mask-image: linear-gradient(var(--author-shade-direction), #000 12%, transparent 50%);
  }

  body[data-section="authors"] .chapter-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(var(--reading-blur, 0px));
    mask-image: linear-gradient(var(--author-shade-direction), #000 12%, transparent 50%);
  }

  body[data-section="authors"] .reading-chapter .chapter-copy {
    width: 38%;
    max-width: none;
    margin-inline: 5% auto;
    padding-top: clamp(6.5rem, 12vw, 9rem);
  }

  body[data-section="authors"] .reading-chapter.text-right .chapter-copy {
    margin-inline: auto 5%;
  }
}

@media (max-width: 700px) {
  body[data-section="authors"] .reading-cover {
    min-height: min(540px, 142vw);
  }

  body[data-section="authors"] .reading-cover .cover-copy {
    background: linear-gradient(0deg, #10251d 0%, #10251dcb 62%, transparent);
  }

  body[data-section="authors"] .chapter-scene picture {
    transform: none;
  }
}

@media (min-width: 801px) {
  body[data-page="reading"] .golden-reading {
    --reading-panorama-width: 110rem;
    --reading-scene-height: calc(100svh - var(--reading-bar, 48px));
    container-type: inline-size;
  }

  body[data-page="reading"] .golden-reading .reading-cover,
  body[data-page="reading"] .golden-reading .reading-chapter {
    width: min(100%, var(--reading-panorama-width));
    margin-inline: auto;
  }

  body[data-page="reading"] .golden-reading .reading-cover {
    --reading-cover-height-limit: max(25rem, calc(var(--reading-scene-height) - var(--cover-header, 70px)));
    --reading-photo-ratio: var(--reading-image-ratio, 1.7778);
    display: flex;
    align-items: flex-end;
    width: min(100%, var(--reading-panorama-width), calc(var(--reading-cover-height-limit) * var(--reading-photo-ratio)));
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: var(--reading-photo-ratio);
    margin-bottom: 0;
    mask-image: none;
  }

  body[data-page="reading"] .golden-reading .reading-cover img {
    object-fit: contain;
    object-position: center top;
  }

  body[data-page="reading"] .golden-reading .reading-cover .cover-shade {
    background: linear-gradient(0deg, #10251d 0%, #10251de0 12%, #10251d75 30%, transparent 56%) !important;
  }

  body[data-page="reading"] .golden-reading .reading-cover .cover-copy {
    width: 80%;
    max-width: none;
    margin-inline: auto;
    padding: .75rem 0 clamp(.75rem, 2vh, 1.5rem);
    text-align: center;
  }

  body[data-page="reading"] .golden-reading .reading-cover .cover-copy h1 {
    font-size: min(clamp(2.4rem, 5vw, 5rem), var(--cover-title-fit, 5rem));
    white-space: nowrap;
    text-wrap: nowrap;
  }

  body[data-page="reading"] .golden-reading .cover-rule {
    margin-inline: auto;
  }

  body[data-page="reading"] .golden-reading:not([data-quiet="true"]) .reading-chapter {
    --reading-scene-width: min(100cqw, var(--reading-panorama-width));
    --reading-photo-ratio: var(--reading-image-ratio, 1.7778);
    --reading-photo-height: min(var(--reading-scene-height), calc(var(--reading-scene-width) / var(--reading-photo-ratio)));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(var(--reading-photo-height) + 12rem);
    margin-top: 0;
    padding: 0;
  }

  body[data-page="reading"] .golden-reading .reading-chapter::after,
  body[data-page="reading"] .golden-reading .chapter-scene::before {
    display: none;
  }

  body[data-page="reading"] .golden-reading .reading-chapter .chapter-scene {
    position: sticky;
    top: var(--reading-bar, 48px);
    height: var(--reading-photo-height, var(--reading-scene-height));
    max-height: none;
    aspect-ratio: auto;
    z-index: 0;
    mask-image: linear-gradient(transparent, #000 4%, #000 95%, transparent);
  }

  body[data-page="reading"] .golden-reading .chapter-scene picture {
    position: absolute;
    inset: 0;
    filter: blur(var(--reading-blur, 0px));
  }

  body[data-page="reading"] .golden-reading .chapter-scene img {
    object-fit: contain;
    object-position: center !important;
  }

  body[data-page="reading"] .golden-reading .chapter-scene :is(
    img[src="/assets/petrushka-reading-1.webp"],
    img[src="/assets/firebird-reading-4.webp"]
  ) {
    transform: none;
    mask-image: none;
  }

  body[data-page="reading"] .golden-reading .reading-chapter .chapter-shade {
    background: linear-gradient(0deg, #10251d 0%, #10251d90 14%, transparent 43%) !important;
  }

  body[data-page="reading"] .golden-reading .chapter-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #081b14;
    opacity: var(--reading-dim, 0);
    mask-image: none;
  }

  body[data-page="reading"] .golden-reading:not([data-quiet="true"]) .reading-chapter .chapter-copy {
    --reading-image-width: min(100%, calc(var(--reading-scene-height) * var(--reading-image-ratio, 1.7778)));
    width: calc(var(--reading-image-width) * .80);
    max-width: none;
    margin-inline: auto;
    padding: calc(var(--reading-photo-height) * .68) 0 clamp(3rem, 9vh, 7rem);
    text-shadow: 0 1px 5px #08130f, 0 2px 18px #08130f;
  }

  body[data-page="reading"] .golden-reading .chapter-copy h2 {
    max-width: none;
    overflow-wrap: anywhere;
  }

  body[data-page="reading"] .golden-reading:not([data-quiet="true"]) .chapter-text {
    width: 87.5%;
    margin-inline: auto;
  }

  body[data-page="reading"] .golden-reading:not([data-quiet="true"]) .reading-chapter[data-long-fragment]:not(.expanded) .chapter-text {
    max-height: min(48svh, 20rem);
  }
}

body[data-page="reading"] .golden-reading .reading-chapter:not([data-long-fragment]) .chapter-text {
  max-height: none;
  overflow: visible;
  mask-image: none;
}

body[data-page="reading"] .golden-reading .reading-chapter:not([data-long-fragment]) .read-toggle {
  display: none;
}

body[data-page="reading"] .golden-reading .cover-copy .cover-credit {
  margin: .55rem 0 0;
  color: #efd08a;
  font: 400 clamp(1.15rem, 2vw, 1.65rem)/1.28 Georgia, serif;
}

body[data-page="reading"] .golden-reading .cover-copy :is(.cover-identity, .cover-context) {
  max-width: 52ch;
  margin: .55rem auto 0;
  color: #f2e8ce;
  font: 400 clamp(1rem, 1.4vw, 1.26rem)/1.42 Georgia, serif;
  text-shadow: 0 1px 6px #08130f, 0 2px 12px #08130f;
}

@media (min-width: 801px) {
  body[data-page="reading"] .golden-reading .cover-copy :is(.cover-identity, .cover-context) {
    max-width: none;
  }
}

@media (max-width: 800px) {
  .cover-title-break {
    display: block;
  }

  body[data-page="reading"] .golden-reading .reading-cover:has(.cover-identity) {
    min-height: max(29rem, calc(100svh - var(--cover-header, 70px) - var(--reading-bar, 48px)));
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
  }

  body[data-page="reading"] .golden-reading .reading-cover:has(.cover-identity) .cover-shade {
    background: linear-gradient(0deg, #10251d 0%, #10251dee 25%, #10251d70 62%, transparent 92%) !important;
  }

  body[data-page="reading"] .golden-reading .cover-copy:has(.cover-identity) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.35rem 2rem;
    transform: none;
  }

  body[data-page="reading"] .golden-reading .cover-copy :is(.cover-identity, .cover-context) {
    margin-inline: 0;
    font-size: .95rem;
  }
}
