/* Native document snapshots dissolve like two printed pages. Navigation remains
   entirely browser-owned: no intercepted links, hidden body or delayed request. */
@view-transition { navigation: auto; }

::view-transition-group(root) { animation-duration: 280ms; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}

/* The retired hand's right gutter is not needed in either footer. Both footers
   use the content gutter (--gutter: 8.4%, 6% on phones) so the wordmark lines up
   with it; the wordmark itself is defined once in frontispiece.css. */
.home-page .site-footer,
.collection-page .series-footer {
  flex-wrap: wrap;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  column-gap: clamp(20px, 3vw, 42px);
  row-gap: 20px;
}
/* Between the phone and the roomy single-row footers (651–760px) the row would overflow by up to ~50px and drop
   the back-to-top arrow onto a line of its own: the row stays whole and only the tagline wraps, balanced. */
@media (min-width: 651px) and (max-width: 760px) {
  .home-page .site-footer,
  .collection-page .series-footer { flex-wrap: nowrap; }
  .home-page .site-footer > *,
  .collection-page .series-footer > * { flex-shrink: 0; }
  .home-page .site-footer > p,
  .collection-page .series-footer > p { flex: 0 1 auto; min-width: 0; text-wrap: balance; }
}
/* Wide phones (560–650px) would fit the copyright on the first row and leave the arrow alone on the second: the
   tagline fills the first row (set to its right edge, as from 480px), so the copyright and the arrow share the
   second, as on narrower phones. */
@media (min-width: 560px) and (max-width: 650px) {
  .home-page .site-footer > p,
  .collection-page .series-footer > p { flex: 1 1 calc(100% - 260px); text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
