.legacy-skip {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fffdf9;
  background: #743b2e;
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.legacy-skip:focus {
  transform: translateY(0);
}

body :focus-visible {
  outline: 3px solid #fffdf9;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #101112;
}

.topbar {
  min-height: 4.75rem;
  padding: 0.65rem max(1rem, calc((100vw - 92rem) / 2 + 1rem));
}

.topbar .brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.topbar .brand-logo {
  display: block;
  width: clamp(7.5rem, 10vw, 9.4rem);
  height: auto;
  max-height: 3.45rem;
  object-fit: contain;
  object-position: left center;
}

.footer-logo-link {
  display: inline-block;
  flex: 0 0 auto;
}

.footer-logo {
  display: block;
  width: min(12rem, 100%);
  height: auto;
}

.topbar .nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
}

.topbar .nav > a:not(.legacy-phone) {
  font-size: 0.88rem;
  white-space: nowrap;
}

.topbar .nav > a[aria-current="page"] {
  color: #d38b70;
}

.topbar .legacy-phone {
  margin-left: 0;
}

.topbar .legacy-phone-fixed {
  flex: 0 0 auto;
}

.legacy-phone {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.78rem;
  color: #fffdf9 !important;
  background: #232527;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 3px;
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.legacy-phone:hover {
  color: #fff !important;
  background: #743b2e;
  border-color: #b9644d;
}

.legacy-mobile-cta {
  position: fixed;
  z-index: 90;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #aaa296;
  border: 1px solid #aaa296;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(16, 17, 18, 0.28);
  opacity: 0;
  transform: translateY(calc(100% + 1.5rem));
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.legacy-mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legacy-mobile-cta a {
  display: grid;
  min-height: 3.4rem;
  place-items: center;
  padding: 0.45rem 0.25rem;
  color: #101112;
  background: #fffdf9;
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  color: #fffdf9;
  background: #101112;
  border-top: 1px solid rgba(255, 253, 249, 0.2);
}

.site-footer .wrap {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-footer a {
  color: inherit;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
  align-items: start;
}

.site-footer .footer-main strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
}

.site-footer .footer-main p,
.site-footer .footer-main address {
  color: #d8d2c7;
  font-style: normal;
  line-height: 1.6;
}

.site-footer .footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.site-footer .footer-logo {
  display: block;
  width: min(13rem, 100%);
  height: auto;
}

.site-footer .footer-main address + .button {
  margin-top: 1rem;
}

.site-footer .footer-links {
  display: grid;
  justify-content: initial;
  gap: 0.5rem;
}

.site-footer .button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  color: #fffdf9;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: background 180ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer .button:hover {
  color: #fffdf9;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer .button:active {
  transform: translateY(1px);
}

.site-footer .button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.site-footer .footer-bottom {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  color: #d8d2c7;
  border-top: 1px solid rgba(255, 253, 249, 0.2);
  font-family: "Hyperlegible Sans", Arial, system-ui, sans-serif;
  font-size: 0.78rem;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: initial;
  gap: 1rem;
}

@media (max-width: 840px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3rem;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 840px) {
  body {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
  }

  .legacy-phone {
    width: 100%;
    margin-top: 0.5rem;
  }

  .legacy-phone-fixed {
    width: auto;
    margin-top: 0;
  }

  .legacy-mobile-cta {
    display: grid;
  }
}

@media (max-width: 960px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .topbar .menu-toggle,
  .topbar .blog-menu-toggle {
    display: grid;
    place-items: center;
  }

  .topbar .nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
    border-top: 1px solid rgba(255, 250, 243, 0.12);
    background: #111;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.26);
  }

  .topbar .nav.is-open {
    display: flex;
  }

  .topbar .nav > a {
    display: flex;
    min-height: 2.9rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 250, 243, 0.1);
  }

  .topbar .legacy-phone {
    width: 100%;
    margin-top: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  }

  .topbar .legacy-phone-fixed {
    width: auto;
    margin-top: 0;
    padding-inline: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
