/* One rounded sheet connects full document navigations across all browsers. */
@view-transition { navigation: none; }
html[data-route-phase]::after {
  content:""; position:fixed; inset:0; z-index:10000; background:#fff7bd;
  pointer-events:auto; transform:scaleY(1); will-change:transform,border-radius;
}
html[data-route-phase="leave"]::after { transform-origin:50% 100%; animation:route-cover 900ms cubic-bezier(.76,0,.24,1) both; }
html[data-route-phase="enter"]::after,html[data-route-phase="reveal"]::after { transform-origin:50% 0; }
html[data-route-phase="reveal"]::after { animation:route-uncover 1000ms cubic-bezier(.76,0,.24,1) both; }
html[data-route-phase="leave"] main { animation:route-page-away 900ms cubic-bezier(.76,0,.24,1) both; }
html[data-route-phase="enter"] main { translate:0 7vh; }
html[data-route-phase="reveal"] main { animation:route-page-in 1000ms cubic-bezier(.22,1,.36,1) both; }
@keyframes route-cover {
  from { transform:scaleY(0); border-radius:70vw 70vw 0 0; }
  to { transform:scaleY(1); border-radius:0; }
}
@keyframes route-uncover {
  from { transform:scaleY(1); border-radius:0; }
  to { transform:scaleY(0); border-radius:0 0 70vw 70vw; }
}
@keyframes route-page-away { to { translate:0 -7vh; } }
@keyframes route-page-in { from { translate:0 7vh; } to { translate:0 0; } }
@media(prefers-reduced-motion:reduce) {
  html[data-route-phase]::after { display:none; }
  html[data-route-phase] main { animation:none; translate:none; }
}
