/* Fonts (self-hosted, see docs/static-bestanden.md), reset and base elements. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: var(--sa-text-body);
  color: var(--sa-ink);
  background: var(--sa-color-surface-subtle);
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1 {
  font: var(--sa-text-heading-1);
}

h2 {
  font: var(--sa-text-heading-2);
}

a {
  color: var(--sa-color-blue-700);
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

/* Visible focus for keyboard users everywhere. */
:focus-visible {
  outline: 2px solid var(--sa-focus-ring);
  outline-offset: 2px;
}

/* On navy surfaces a navy ring is invisible. */
.sa-on-primary :focus-visible {
  outline-color: var(--sa-focus-ring-on-primary);
}

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

.sa-skip-link {
  position: absolute;
  top: var(--sa-space-2);
  left: var(--sa-space-2);
  z-index: 100;
  padding: var(--sa-space-2) var(--sa-space-4);
  border-radius: var(--sa-radius-md);
  background: var(--sa-color-surface);
  color: var(--sa-ink);
  font: var(--sa-text-body-strong);
  transform: translateY(-200%);
}

.sa-skip-link:focus {
  transform: none;
}

.sa-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.sa-muted {
  color: var(--sa-ink-muted);
}

.sa-stack {
  display: grid;
  gap: var(--sa-space-4);
}

.sa-stack--lg {
  gap: var(--sa-space-5);
}

/* Small screens: form controls at least 16px, so iOS does not zoom in on focus. */
@media (max-width: 759.98px) {
  input,
  select,
  textarea {
    font: var(--sa-text-input-mobile);
  }
}
