/* Letterlijn — basis: reset, typografie, knoppen, focus, hulpklassen. Alleen tokens. */

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

html {
  font-family: var(--font-tekst);
  font-size: 100%;
  line-height: var(--regel);
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-block-size: 100dvh;
}

h1,
h2,
h3 {
  font-family: var(--font-spel);
  line-height: 1.15;
  margin: 0 0 var(--ruimte-3);
  font-weight: 800;
}

p {
  margin: 0 0 var(--ruimte-3);
}

a {
  color: var(--kleur-focus);
  text-underline-offset: 0.2em;
}

kbd {
  font-family: var(--font-tekst);
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.05em 0.45em;
  border-radius: var(--hoek-s);
  background: var(--kleur-sluier);
  color: var(--kleur-tekst);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ knoppen */

button {
  font: inherit;
  cursor: pointer;
}

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  min-block-size: 2.75rem;
  padding: var(--ruimte-2) var(--ruimte-4);
  font-family: var(--font-spel);
  font-weight: 700;
  color: var(--kleur-tekst);
  background: linear-gradient(to bottom, var(--paneel-hoog), var(--paneel));
  border: 1px solid var(--kleur-rand);
  border-radius: var(--hoek-rond);
  box-shadow: var(--schaduw-knop);
  transition: transform var(--duur-kort) var(--veer), box-shadow var(--duur-kort), filter var(--duur-kort);
}

.knop:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.knop:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--kleur-sluier);
}

.knop--hoofd {
  color: var(--kleur-tekst-op-licht);
  background: linear-gradient(135deg, var(--kleur-jij), var(--kleur-jij-2));
  border-color: transparent;
  font-size: var(--tekst-l);
  font-weight: 900;
  padding: var(--ruimte-3) var(--ruimte-6);
  box-shadow: 0 5px 0 var(--loc-romp-donker), var(--gloed-jij);
}

.knop--hoofd kbd {
  background: var(--tegel-licht);
  color: var(--kleur-tekst-op-licht);
}

.knop--rond {
  padding: var(--ruimte-2) var(--ruimte-3);
}

.knop[aria-pressed="false"] {
  color: var(--kleur-tekst-zacht);
}

.knop[aria-pressed="false"] .icoon {
  opacity: 0.55;
}

/* Zichtbare focus, altijd, maar alleen waar het toetsenbord hem heen bracht. */
:focus-visible {
  outline: var(--focus-dik) solid var(--kleur-focus);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

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