:root { --nav-height: 3.5rem; }
.home-nav, .page-nav {
  top: 0;
  z-index: 14;
  background: #11130fe8;
  color: #f3ede4;
  border-bottom: 1px solid #d2e2a92a;
}
.home-nav { position: fixed; inset-inline: 0; }
.page-nav { position: sticky; }
.home-nav nav, .page-nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  width: min(100%, 1640px);
  height: var(--nav-height);
  padding: 0 clamp(1.1rem, 4.5vw, 5rem);
  margin-inline: auto;
  font: 600 clamp(.66rem, 1.35vw, .78rem)/1.2 "Courier New", monospace;
  text-transform: uppercase;
}
.home-nav a { padding-block: .5rem; }
.home-nav a:hover, .page-nav nav > a:is([aria-current], :hover), nav a[data-route-active] {
  color: #ffab7e;
  text-decoration-color: currentColor;
}
body:has(.home-nav) > .skip:focus { z-index: 21; }

@view-transition { navigation: auto; }

::view-transition { pointer-events: auto; }
::view-transition-group(root) { animation-duration: .90s; }
::view-transition-image-pair(root) { isolation: isolate; }
::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: route-arrive .9s cubic-bezier(.22,.7,.28,1) both;
  mix-blend-mode: normal;
}
@keyframes route-arrive {
  from { opacity: .82; transform: translateY(7px); filter: drop-shadow(2px 0 2px #c7977855) drop-shadow(-2px 0 3px #9bc7bc55); }
  to { opacity: 1; transform: none; filter: none; }
}

.route-veil {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: #11130f;
  clip-path: circle(150% at var(--route-x, 50%) var(--route-y, 48%));
}
body[data-route-motion="leaving"] .route-veil { animation: route-close .39s cubic-bezier(.3,.6,.26,1) both; }
body[data-route-motion="entering"] .route-veil { animation: route-open .49s cubic-bezier(.26,.62,.26,1) both; }
@keyframes route-close {
  from { clip-path: circle(0% at var(--route-x, 50%) var(--route-y, 48%)); opacity: .68; }
}
@keyframes route-open {
  to { clip-path: circle(0% at var(--route-x, 50%) var(--route-y, 48%)); opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .route-veil { display: none; }
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .001s; }
}