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

html {
  min-width: 320px;
  background: var(--vsf-paper);
  color: var(--vsf-ink);
  font-family: var(--vsf-body);
  font-size: 100%;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--vsf-paper);
  color: var(--vsf-ink);
  font-family: var(--vsf-body);
  font-size: 1rem;
  line-height: 1.625;
  text-rendering: optimizeLegibility;
}

body.vsf-menu-open {
  overflow: hidden;
}

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

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

button,
[type="button"],
[type="submit"] {
  min-height: 44px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--vsf-accent);
}

:focus-visible {
  outline: 2px solid var(--vsf-focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin-block: 0 0.5em;
  font-family: var(--vsf-display);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin-block: 0 1em;
}

ul,
ol {
  margin-block: 0 1em;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: var(--vsf-space-2);
  left: var(--vsf-space-2);
  width: auto;
  height: auto;
  padding: 12px 16px;
  overflow: visible;
  clip: auto;
  background: var(--vsf-paper-raised);
  color: var(--vsf-ink);
  white-space: normal;
}

@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;
  }
}
