/* Use room-specific artwork past the hero, with stronger tint where copy sits. */
.crimson-home .editorial { --page-art: url(/entrance-wide.webp); }
.crimson-catalogue { --page-art: url(/library-vault.webp); }
.crimson-author { --page-art: url(/drawing.webp); }
.crimson-journal, .dusk-interior:has(.journal-entry) { --page-art: url(/study.webp); }
.crimson-poetry, .poem-reading { --page-art: url(/garden.webp); }
.beyond-editorial { --page-art: url(/beyond.webp); }
.crimson-contact { --page-art: url(/correspondence.webp); }
.raven-editorial { --page-art: url(/raven.webp); }
.wool-edition { --page-art: url(/wool.webp); }
.respectable-edition { --page-art: url(/mockup-art/respectable-ballroom.webp); }
.dusk-interior:has(.locked) { --page-art: url(/locked.webp); }

main:is(.editorial, .crimson-catalogue, .crimson-author, .crimson-journal, .crimson-poetry,
         .poem-reading, .beyond-editorial, .crimson-contact, .raven-editorial),
.dusk-interior:has(.journal-entry, .locked) {
  background:
    linear-gradient(90deg, #100a0b61, #100a0bc4 29%, #100a0bc4 71%, #100a0b61),
    var(--page-art, none) center top / max(100%, 52rem) auto repeat-y,
    #100a0b;
}

.shelf-card:nth-child(1) { --book-art: url(/mockup-art/raven-manor.webp); }
.shelf-card:nth-child(2) { --book-art: url(/wool.webp); }
.shelf-card:nth-child(3) { --book-art: url(/mockup-art/respectable-ballroom.webp); }
.shelf-card {
  background:
    linear-gradient(to bottom, #100a0b33, #100a0bd9 52%, #100a0bf5 87%),
    var(--book-art) center top / auto 60% no-repeat,
    #161011;
}
.shelf-reviews, .author-world, .raven-listen, .hero-motion-switch { background-color: #100b0bd9; }
.crimson-journal .journal-process,
.crimson-author > .author-long-bio,
.dusk-interior .journal-entry {
  background: #160e10e8;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.poem-reading .illustrated-poem { background: #140e10e8; }
.crimson-poetry .garden-spread {
  background-color: #100b0b64;
}
body:has(.legal-reading) {
  background: linear-gradient(#100b0be0,#100b0bee), url(/correspondence.webp) center top / cover;
}
@media (max-width: 680px) {
  .shelf-card { background-size: auto, auto 65%, auto; }
}
