/* Reset en basisstijl. Geen overflow-x: hidden op html of body (dat zet position: sticky uit
   en verbergt echte layoutfouten); de layout zelf voorkomt horizontale scroll met min-width: 0. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sv-soft);
  color: var(--sv-text);
  font-family: var(--sv-font-body);
  font-size: var(--sv-fs-body-md);
  line-height: var(--sv-lh-body-md);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

h1 {
  font-family: var(--sv-font-display);
  font-weight: 400;
  font-size: var(--sv-fs-display-lg);
  line-height: var(--sv-lh-display-lg);
  letter-spacing: var(--sv-ls-display-lg);
  color: var(--sv-ink);
  text-wrap: balance;
}

h2 {
  font-family: var(--sv-font-body);
  font-weight: 600;
  font-size: var(--sv-fs-heading-md);
  line-height: var(--sv-lh-heading-md);
  color: var(--sv-ink);
}

h3 {
  font-family: var(--sv-font-body);
  font-weight: 600;
  font-size: var(--sv-fs-heading-sm);
  line-height: var(--sv-lh-heading-sm);
  color: var(--sv-ink);
}

strong,
b {
  font-weight: 600;
  color: var(--sv-ink);
}

a {
  color: var(--sv-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

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

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled='true'] {
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
}

hr {
  border: 0;
  border-top: 1px solid var(--sv-line);
  margin: 0;
}

/* Toetsenbordfocus altijd zichtbaar */
:focus-visible {
  outline: 2px solid var(--sv-brand);
  outline-offset: 2px;
}

::selection {
  background: var(--sv-tint);
  color: var(--sv-ink);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--sv-radius-pill);
  background: var(--sv-ink);
  color: var(--sv-white);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--sv-muted-text);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

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