/* Reset en basisopmaak van elementen. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  /* ook wat de browser zelf tekent, krijgt de kleuren van het huis */
  accent-color: var(--oranje);
  caret-color: var(--oranje-diep);
  scrollbar-color: color-mix(in srgb, var(--inkt) 45%, var(--kalk)) var(--kalk);
}

body {
  margin: 0;
  background: var(--kalk);
  color: var(--inkt);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

/* Titels van secties: Michroma, in kapitalen, breed */
h1,
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}

/* Kleinere titels: de serif, de zachte stem van het merk */
h3,
h4 {
  font-family: var(--font-serif);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  margin: 0;
  max-width: var(--measure);
}

p + p {
  margin-top: var(--space-4);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
}

a {
  color: var(--oranje-diep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--duur-snel) var(--ease),
    text-decoration-thickness var(--duur-snel) var(--ease);
}

a:hover {
  color: var(--inkt);
  text-decoration-thickness: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

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

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

button {
  -webkit-tap-highlight-color: transparent;
}

/* Zichtbare focus voor toetsenbordgebruikers, ongeacht element */
:focus-visible {
  outline: 2px solid var(--oranje-diep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--oranje);
  color: var(--inkt);
}

/* Op de oranje vlakken zou een oranje selectie wegvallen: daar wordt het omgekeerd */
.hero ::selection,
.sectie--oranje ::selection,
.nav__paneel ::selection {
  background: var(--inkt);
  color: var(--oranje);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--inkt);
  color: var(--kalk);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  z-index: 100;
}

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

.skip-link:hover {
  color: var(--kalk);
}

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

/* Label: Michroma in kapitalen, ruim gespatieerd */
.label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
