.nav-links [aria-current="page"] {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .42em;
}

.nav-cta[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--yellow);
}

.footer-layout {
  grid-template-columns: minmax(8rem, .65fr) minmax(15rem, 1.35fr) minmax(10rem, 1fr);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem 1rem;
}

.footer-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  width: fit-content;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:is(:hover, [aria-current="page"]) {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-contact .text-link { margin-top: .4rem; }

.home-project-link { text-underline-offset: .2em; }
.home-project-link:hover { text-decoration-thickness: .14em; }
.home-details { margin-top: 1.35rem; }
.pricing .home-details { color: var(--yellow); }
.home-contact .contact-copy h2 { max-width: 12ch; }
.home-contact .contact-links { display: grid; align-content: center; justify-items: start; margin-top: 0; }

@media (max-width: 720px) {
  .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .footer-layout > .footer-contact { grid-column: 1 / -1; grid-row: auto; }
  .footer-nav { grid-column: 1 / -1; }
}

html { scrollbar-gutter: stable; scroll-padding-top: 120px; }
.rd-route-wipe {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: var(--yellow);
  transform: translateX(-101%);
}
.rd-route-error {
  position: fixed;
  z-index: 12;
  inset: auto max(1rem, var(--pad, 1rem)) 1rem;
  margin-inline-start: auto;
  width: min(26rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.rd-route-error button {
  display: block;
  margin-block-start: .65rem;
  padding: .5rem .75rem;
  border: 1px solid currentColor;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .rd-route-wipe { display: none; }
}

/* Former public fragments point to the matching section in the new layout. */
.anchor-alias { display: block; block-size: 0; }

.footer-contact-links { margin-top: .65rem; }
.footer-contact-links a { text-underline-offset: .18em; }
