/* Cross-application accessibility and small-screen safety layer. */
html {
  overflow-x: clip;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-wrap: anywhere;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #c76f52;
  outline-offset: 3px;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

/* Keep desktop navigation readable over every hero photograph. */
@media (min-width: 1024px) {
  header {
    background: rgba(250, 248, 243, 0.9) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

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

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