/* ==========================================================================
   BASE: algemene opmaak (lettertype, achtergrond, layout)
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

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

a {
  color: var(--color-primary);
}

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

/* Elementen met het attribuut "hidden" altijd verbergen */
[hidden] {
  display: none !important;
}

/* Alleen voor schermlezers (onzichtbaar op het scherm) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

main.container {
  flex: 1;
  padding-top: var(--space-5);
  padding-bottom: var(--space-7);
}
