html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

main h1,
main h2,
main h3 {
  text-wrap: balance;
}

main p {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  border-radius: 999px;
  background: #3c0017;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 106, 106, 0.4);
  outline-offset: 3px;
}

.site-mobile-menu summary {
  list-style: none;
}

.site-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.site-mobile-menu[open] summary .menu-icon {
  transform: rotate(90deg);
}

.site-mobile-menu .menu-icon {
  transition: transform 0.2s ease;
}

.contact-form-note {
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  width: 2.625rem;
  height: 2.625rem;
  border: 1px solid rgba(79, 0, 7, 0.12);
  background: #4f0007;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(79, 0, 7, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-icon-link:hover {
  background: #721016;
  border-color: #721016;
  transform: translateY(-1px);
}

.social-icon-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-text-link {
  color: #4f0007;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.social-text-link:hover {
  color: #721016;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}

@media (max-width: 1400px) {
  nav > div:first-child {
    gap: 1rem;
  }

  nav > div:first-child > div:first-child {
    gap: 1rem !important;
  }

  nav > div:first-child > div:first-child > div {
    gap: 1.25rem !important;
  }

  nav > div:first-child > div:last-child {
    gap: 0.75rem !important;
  }
}

@media (max-width: 1279px) {
  nav [aria-label="Social links"] {
    display: none !important;
  }

  footer > div:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  footer > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
