*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compact header clearance; must sit above the scroll-spy line. */
  scroll-padding-top: calc(var(--nav-h-mobile-compact) + var(--space-2));
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: calc(var(--nav-h-compact) + var(--space-2));
  }
}

body {
  margin: 0;
  min-width: 20rem;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--flav-navy);
  color: var(--flav-white);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-label-size);
  line-height: var(--type-label-lh);
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.skip-link:focus-visible {
  outline: 2px solid var(--flav-white);
  outline-offset: 2px;
}

/*
  Accessibility interaction refinements.
  site.css owns the component visuals; these higher-specificity rules keep
  keyboard focus and interactive text legible in every state.
*/
.hero a:focus-visible,
.final-cta a:focus-visible,
.site-nav__overlay a:focus-visible,
.site-nav__overlay button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--flav-white);
}

.site-nav__overlay .site-nav__overlay-link.is-active {
  color: var(--flav-gold);
  text-decoration: underline;
  text-decoration-color: var(--flav-gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Gold is an accent on light surfaces, not a small-text colour. */
.button.button--outline:hover {
  color: var(--flav-navy);
}

.button.button--tertiary:hover {
  color: var(--flav-navy);
  text-decoration: underline;
  text-decoration-color: var(--flav-gold);
  text-underline-offset: 3px;
}

.site-nav .site-nav__link:hover,
.site-nav .site-nav__link.is-active {
  color: var(--flav-navy);
  text-decoration-color: var(--flav-gold);
}

.contact-header .contact-header__home:hover {
  color: var(--flav-navy);
  text-decoration: underline;
  text-decoration-color: var(--flav-gold);
  text-underline-offset: 3px;
}

.contact-card .contact-card__row-meta {
  color: var(--flav-navy-596);
}

.contact-card .contact-card__row:hover,
.contact-card .contact-card__row:hover .contact-card__row-meta {
  color: var(--flav-navy);
}

.contact-card .contact-card__row:hover .contact-card__row-label {
  text-decoration: underline;
  text-decoration-color: var(--flav-gold);
  text-underline-offset: 3px;
}

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