/* Blueprint global layer. Keep this small: accessibility, layout helpers and site-wide polish only. */

:where(html) {
  scroll-behavior: smooth;
}

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

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

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--wp--preset--color--focus);
  outline-offset: 3px;
}

.skip-link {
  background: var(--wp--preset--color--brand-primary);
  color: var(--wp--preset--color--background);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 1000;
}

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

.blueprint-container {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
  padding-inline: var(--wp--preset--spacing--24);
}

.blueprint-section {
  padding-block: var(--wp--preset--spacing--64);
}

.blueprint-visually-hidden:not(:focus):not(:active) {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
