.turn-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
/* Full-width chapters remain in the natural scroll; only a chosen jump turns. */
html { scroll-padding-top:66px; }
#main > .section { box-shadow:inset 0 18px 22px -24px #251d2138; }
::view-transition-image-pair(root) { isolation:isolate; perspective:1800px; background:var(--ivory); }
::view-transition-old(root) {
  animation:page-turn 560ms cubic-bezier(.62,0,.18,1) both;
  transform-origin:left center;
  backface-visibility:hidden;
  mix-blend-mode:normal;
  z-index:2;
}
::view-transition-new(root) { animation:none; mix-blend-mode:normal; z-index:1; }
@keyframes page-turn {
  from { opacity:1; transform:rotateY(0); filter:drop-shadow(0 0 0 #1b171900); }
  75% { opacity:1; }
  to { opacity:0; transform:rotateY(-58deg); filter:drop-shadow(22px 0 24px #1b171955); }
}
.section h2[tabindex="-1"]:focus,.cover h1[tabindex="-1"]:focus { outline:none; }
@media(max-width:700px) {
  html { scroll-padding-top:64px; }
  ::view-transition-old(root) { animation-duration:460ms; }
}
@media(prefers-reduced-motion:reduce) {
  ::view-transition-old(root),::view-transition-new(root) { animation:none!important; }
}
