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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--qv-color-canvas);
  color: var(--qv-color-ink);
  font-family: var(--qv-font-sans);
  line-height: 1.5;
}

a {
  color: var(--qv-color-brand-dark);
}

a:hover,
a:active,
a:focus-visible {
  color: var(--qv-color-brand);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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