/* Reset + basistypografie. */

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
}

h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.625rem;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  /* Donkergoud (5,0:1 op wit) met onderstreping, zodat links niet alleen
     op kleur van de lopende tekst te onderscheiden zijn. Knoppen, nav- en
     footerlinks overschrijven dit verderop met text-decoration: none. */
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-navy);
}

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

ul,
ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

button,
input,
textarea {
  font-family: inherit;
}

/* Sectiedoelen liggen niet onder de plakkende header als je erheen scrolt. */
[id] {
  scroll-margin-top: var(--header-height);
}

/* Hulpklasse: visueel verbergen, wel beschikbaar voor screenreaders. */
.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;
}

/* Skip-link: verborgen tot hij met het toetsenbord focus krijgt. */
.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-2);
  z-index: 1000;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}

.skip-link:focus {
  top: var(--space-2);
}

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