/* Route-transition smoothing only.
   Every page on this site is served as a full document, so the browser used to
   keep painting the previous page until the next one was ready, which reads as
   a flash / lingering stale page during navigation. Opting both documents into
   cross-document view transitions replaces that with a short, neutral
   cross-fade of the root snapshot. No layout, colour or design value changes. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
  animation-timing-function: linear;
}

/* The new document must never be held back behind the outgoing snapshot. */
::view-transition-old(root) {
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
