@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

[hidden] { display: none !important; }

html {
  font-size: var(--font-grootte-basis);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-basis);
  font-size: 1rem;
  line-height: var(--lijnhoogte-basis);
  color: var(--kleur-tekst);
  background-color: var(--kleur-achtergrond);
  min-height: 100vh;
  overflow-x: hidden;
}

h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }

p { margin-bottom: var(--ruimte-m); }
p:last-child { margin-bottom: 0; }

button {
  font-family: var(--font-basis);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  min-height: 44px;
  min-width: 44px;
  transition: background-color var(--duur-kort) var(--timing),
              transform var(--duur-kort) var(--timing),
              box-shadow var(--duur-kort) var(--timing);
}

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

button:active { transform: translateY(1px); }

textarea {
  font-family: var(--font-basis);
  font-size: 1rem;
  line-height: var(--lijnhoogte-basis);
  border: 2px solid #D0D5DD;
  border-radius: 8px;
  padding: var(--ruimte-m);
  width: 100%;
  resize: vertical;
  transition: border-color var(--duur-kort) var(--timing);
  background: white;
  color: var(--kleur-tekst);
}

textarea:focus {
  outline: none;
  border-color: var(--kleur-secundair);
  box-shadow: 0 0 0 3px rgba(59, 110, 145, 0.15);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--ruimte-s);
  font-size: 0.95rem;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--kleur-primair);
  cursor: pointer;
}

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

a { color: var(--kleur-secundair); }

ul, ol { padding-left: 1.5em; }

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

dialog {
  border: none;
  border-radius: var(--radius-kaart);
  box-shadow: 0 8px 32px rgba(26, 31, 44, 0.2);
  padding: var(--ruimte-xl);
  max-width: 480px;
  width: 90%;
}

dialog::backdrop {
  background: rgba(26, 31, 44, 0.5);
}
