/* The landscape, film and folio take turns occupying the view. */
:root { --film-presence: 0; --veil-edge: 110%; }
.world .world-scene > img {
  opacity: calc(1 - var(--film-presence) * .96);
  transition: opacity .3s linear;
}
.world .world-scene > video {
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  opacity: var(--film-presence);
  filter: saturate(calc(.7 + var(--film-presence) * .3)) brightness(calc(.88 + var(--film-presence) * .12));
  mask-image: linear-gradient(90deg, transparent 0%, #000 var(--veil-edge));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 var(--veil-edge));
  transition: opacity .25s linear;
}
.world-scene { transition: opacity 1.6s ease; }
.world-scene[data-world="4"] { transition-duration: 2.5s; }
.world .world-scene[data-world="1"] > img { filter: saturate(.66) sepia(.07) contrast(1.06) brightness(.72); }
.world .world-scene[data-world="2"] > img { filter: saturate(.8) sepia(.03) contrast(1.08) brightness(.72); }
.world .world-scene[data-world="3"] > img { filter: saturate(.85) sepia(.16) contrast(1.1) brightness(.66); }
.world .world-scene[data-world="4"] > img { filter: saturate(.28) sepia(.04) contrast(1.05) brightness(.76); }
.world .world-shade {
  background: linear-gradient(0deg, #0c1d1ce6, #0c1d1c66 18%, transparent 60%), linear-gradient(90deg, #0b1a1b80, transparent 70%);
  opacity: calc(1 - var(--film-presence) * .55);
  transition: opacity .25s linear;
}
.world-grain { opacity: .018; }
.season-passage { position: relative; height: var(--passage-length); }
.season-view {
  position: sticky; top: 0;
  height: 100svh; min-height: 600px;
}
.season-title {
  opacity: calc(1 - var(--reveal, 0));
  transform: translateY(calc(var(--reveal, 0) * -24px));
  transition: opacity .25s linear;
  pointer-events: none;
}
.season-kanji { opacity: calc(1 - var(--reveal, 0)); transition: opacity .25s linear; }
.scene-link { z-index: 3; }
.scene-footnote {
  z-index: 3; display: inline-flex; gap: 18px; align-items: center;
  min-height: 44px; bottom: 110px; font-size: 12px;
  letter-spacing: .035em; opacity: .9;
  border-bottom: 1px solid #e5dbbf66;
}
.scene-footnote span { font-size: 19px; }
.film-signature {
  position: absolute; left: 6%; bottom: 168px;
  font: 26px var(--serif);
  opacity: var(--reveal, 0);
  transition: opacity .25s linear;
  text-shadow: 0 2px 15px #13231980;
}
.film-signature i { display: block; margin-top: 5px; font-size: 18px; opacity: .8; }
#summer .season-title { margin-left: 2%; }
#summer .season-title h2 { letter-spacing: -.025em; }
#autumn { --paper: #e5d9bf; --ink: #483b2e; }
#winter { --paper: #e7e5da; --ink: #394b4e; }
#winter .season-view { padding-bottom: 130px; }
#winter .season-title h2 { font-size: clamp(90px, 11vw, 190px); }
.folio-station { padding-top: 5vh; }

/* Individually composed spreads, with the original framed photographs intact. */
.book {
  display: flex; flex-direction: column;
  --book-height: clamp(365px, calc(100svh - 245px), 650px);
  height: var(--book-height);
  padding: 26px 4.2% 22px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-.3deg);
  box-shadow: 0 32px 80px #050c0b94, 0 5px 5px #0b110b77, 0 3px 0 #c7bea5, 0 6px 0 #ddd2b8;
}
.book-running, .book-foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
  font-size: 10px; letter-spacing: .13em;
}
.book-running { padding-bottom: 14px; border-bottom: 1px solid #66634325; }
.book-running i { font: 16px Georgia, 'Yu Mincho', serif; font-style: normal; margin-left: 18px; }
.book-foot { color: #66664f; font-size: 10px; }
.spread-number { font: 19px var(--serif); }
.folio-plates {
  position: relative; z-index: 3;
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 6%;
  padding: 24px 1% 20px;
  transition: opacity .26s ease, transform .45s ease;
}
.book.turning .folio-plates { opacity: 0; transform: translateY(7px); }
.folio-plate {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 15px;
}
.folio-plate .art-object { max-width: 94%; flex-shrink: 1; }
.folio-plate .art-object :is(img, .art-photo) { max-height: min(34svh, calc(var(--book-height) - 190px)); width: auto; max-width: 100%; }
.folio-plate .work-caption { font-size: 22px; }
.book[data-layout="paired"] .folio-plate:first-child { transform: translateY(-14px); }
.book[data-layout="paired"] .folio-plate:last-child { transform: translateY(16px); }
.book[data-layout="paired"] .folio-plate:last-child :is(img, .art-photo) { max-height: min(28svh, calc(var(--book-height) - 215px)); }
.book[data-layout="paired-reverse"] .folio-plate:first-child { transform: translateY(18px); }
.book[data-layout="paired-reverse"] .folio-plate:first-child :is(img, .art-photo) { max-height: min(27svh, calc(var(--book-height) - 220px)); }
.book[data-layout="paired-reverse"] .folio-plate:last-child { transform: translateY(-13px); }
.book[data-layout="solo"] .folio-plates, .book[data-layout="panorama"] .folio-plates { grid-template-columns: 1fr; }
.book[data-layout="solo"] .art-object :is(img, .art-photo) { max-height: calc(var(--book-height) - 190px); }
.book[data-layout="panorama"] .art-object :is(img, .art-photo) { max-height: calc(var(--book-height) - 190px); }
.book[data-layout="panorama"] .work-caption { font-size: 24px; }
.book[data-layout="constellation"] .folio-plates { grid-template-columns: .85fr 1.15fr .85fr; gap: 4%; }
.book[data-layout="constellation"] .folio-plate :is(img, .art-photo) { max-height: min(25svh, calc(var(--book-height) - 240px)); }
.book[data-layout="constellation"] .folio-plate:nth-child(2) { transform: translateY(20px); }
.book[data-layout="constellation"] .folio-plate:nth-child(2) :is(img, .art-photo) { max-height: min(30svh, calc(var(--book-height) - 210px)); }
.book[data-layout="constellation"] .work-caption { font-size: 19px; }
.book[data-layout="quiet"] .folio-plates { grid-template-columns: .75fr 1.25fr; }
.book[data-layout="quiet"] .art-object { max-width: 82%; }
.book[data-layout="quiet"] .art-object :is(img, .art-photo) { max-height: min(33svh, calc(var(--book-height) - 215px)); }
.quiet-mark { text-align: center; font: 110px Georgia, 'Yu Mincho', serif; opacity: .12; }
#winter .book { transform: rotate(.15deg); }
.book-controls { font-size: 12px; margin-top: 20px; }
.book-controls > button { display: inline-flex; align-items: center; min-height: 44px; }
.book-browse { gap: 18px; }
.book-browse button { min-height: 44px; min-width: 44px; font-size: 25px; }
.book-browse span { font-size: 11px; opacity: .85; letter-spacing: .06em; }
.folio-caption { font-size: 11px; letter-spacing: .13em; padding-bottom: 20px; }

/* Quiet controls should still be readable and easy to use. */
.site-header nav { font-size: 13px; }
.site-header nav a, .site-header nav button { min-height: 44px; display: inline-flex; align-items: center; }
.site-header .contents-button { width: 44px; height: 44px; align-items: flex-end; padding: 9px; }
.header-edition { font-size: 10px; }
.opening-top { font-size: 11px; }
.opening-top span:last-child { font-size: 12px; }
.opening-bottom { font-size: 13px; }
.enter-link, .listen-link { min-height: 44px; }
.opening-caption { font-size: 10px; }
.eyebrow { font-size: 11px; }
.scene-link { font-size: 13px; min-height: 52px; }
.scene-link small { font-size: 10px; }
.journey-bar { min-height: 86px; padding-top: 14px; padding-bottom: 14px; }
.journey-bar nav { gap: 28px; }
.journey-bar nav a { min-height: 44px; min-width: 58px; align-items: center; font-size: 13px; }
.motion-control { min-height: 44px; min-width: 100px; }
.motion-control small { font-size: 11px; }
.journey-end { min-height: 44px; align-items: center; font-size: 12px; }
.dialog-top { font-size: 11px; }
.dialog-top button, .filters button, .text-link, .voice-tracks button { min-height: 44px; }
.dialog-top button { font-size: 13px; }
.filters { font-size: 13px; }
.filters button, .work-pagination button { min-width: 44px; min-height: 44px; }
.text-link { font-size: 13px; align-items: center; }
.work-note, .artist-copy p { font-size: 14px; }
.record-note, .work-record, .work-layout aside > small, .voice-spread p { font-size: 11px; }
.colophon > div:last-child { font-size: 13px; }
.colophon > div:last-child a, .colophon button { min-height: 40px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  .folio-plate .work-caption { font-size: 20px; }
  .book[data-layout="constellation"] .work-caption { font-size: 17px; }
  .journey-bar nav { gap: 19px; }
}
@media (max-width: 600px) {
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .site-header nav { font-size: 12px; gap: 16px; }
  .site-header nav > a { display: none; }
  .opening-top { font-size: 10px; }
  .opening-top span:last-child { font-size: 11px; }
  .opening-bottom { gap: 18px; font-size: 11px; }
  .listen-link { white-space: nowrap; }
  .arrow-circle { width: 38px; height: 38px; }
  .opening-caption { font-size: 9px; }
  .season-view { height: 100svh; min-height: 600px; }
  .season-title { margin-bottom: 130px; }
  .season-title .eyebrow { font-size: 10px; }
  #winter .season-title h2 { font-size: 90px; }
  .scene-link { bottom: 166px; font-size: 12px; left: 7%; }
  .scene-link .play-outline { width: 44px; height: 44px; }
  .scene-link small { font-size: 9px; }
  .scene-footnote { bottom: 99px; left: 7%; font-size: 12px; }
  .film-signature { left: 7%; bottom: 256px; font-size: 28px; }
  .film-signature i { font-size: 19px; }
  .folio-station { padding-top: 28px; padding-bottom: 110px; }
  .folio-caption { font-size: 9px; letter-spacing: .06em; gap: 10px; }
  .folio-caption span:last-child { font-size: 17px; }
  .book { --book-height: 450px; height: var(--book-height); padding: 23px 8% 22px; }
  .book-running, .book-foot { font-size: 9px; letter-spacing: .06em; }
  .book-running i { margin-left: 9px; font-size: 15px; }
  .folio-plates { padding: 24px 0; gap: 0; }
  .book .folio-plate { transform: none; gap: 15px; }
  .book .folio-plate .art-object { max-width: 100%; }
  .book[data-layout] .art-object :is(img, .art-photo) { max-height: 270px; }
  .folio-plate .work-caption { font-size: 21px; }
  .book-controls { font-size: 11px; gap: 8px; }
  .book-browse { gap: 7px; }
  .book-browse span { font-size: 10px; letter-spacing: .01em; white-space: nowrap; }
  .book-browse button { min-width: 44px; min-height: 44px; }
  .journey-bar { min-height: 79px; padding: 13px 5%; gap: 7px; }
  .journey-bar nav { flex: 1; justify-content: space-between; gap: 4px; }
  .journey-bar nav a { display: flex; min-width: 50px; justify-content: center; font-size: 12px; }
  .journey-bar nav a i { display: none; }
  .motion-control { min-width: 44px; width: 44px; min-height: 44px; justify-content: center; }
  .journey-end { display: none; }
  .motion-control small { display: none; }
  .dialog-top { font-size: 9px; }
  .dialog-top button { font-size: 13px; }
  .filters { gap: 16px; font-size: 12px; }
  .voice-tracks button { font-size: 12px; }
  .book-foot > span:first-child { font-size: 8px; letter-spacing: .025em; }
}
@media (max-width: 360px) {
  .opening-bottom { gap: 10px; font-size: 10px; }
  .book-controls { flex-wrap: wrap; }
  .book-browse { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .season-passage { height: auto; }
  .season-view { position: relative; }
  .world .world-scene > video { opacity: 0; }
  .world .world-scene > img { opacity: 1; transform: none; }
  .season-title, .season-kanji { opacity: 1; transform: none; }
  .film-signature { display: none; }
  .book.turning .folio-plates { transform: none; }
}

/* A quiet signature in the landscape, close to the Japanese name's scale. */
.opening h1 { font-size: 26px; line-height: 1.2; letter-spacing: .06em; font-weight: 400; }
.opening-kicker { font-size: 18px; margin-bottom: 14px; }
.opening-bottom { margin-top: 28px; }
@media (max-width: 600px) {
  .opening h1 { font-size: 21px; }
  .opening-kicker { font-size: 16px; }
}
