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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-height);
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-base);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.is-scroll-locked { overflow: hidden; }

img, picture, video, svg { display: block; max-width: 100%; }
img { image-orientation: from-image; }

a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

h1, h2, h3, p, dl, dd, ul, ol { margin-top: 0; }
h1, h2, h3 { color: var(--color-heading); line-height: 1.2; }
ul, ol { padding-left: 0; }

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-small);
  color: var(--color-surface);
  background: var(--color-main-blue);
}
.skip-link:focus { transform: translateY(0); }

.desktop-only { display: none; }

@media (min-width: 768px) {
  .desktop-only { display: initial; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
