/* Basis: lettertypes, kleuren, raster, kop en voet. Gedeeld door alle pagina's. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --papier: #f7f7f5;
  --wit: #ffffff;
  --inkt: #272727;
  --grijs: #666666;
  --lijn: #d5d5d2;
  --zwart: #272727;
  --diep: #050505;
  --op-zwart: #f5f5f2;

  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --kop: "Sora", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(16px, 2.8vw, 40px);
  --kop-hoogte: 72px;
  --traag: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
main#inhoud { min-height: calc(100svh - var(--kop-hoogte) - 72px); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
/* Typografie: Sora voor koppen, Sora thin in kapitalen voor subkoppen,
   JetBrains Mono thin voor kleine koppen en toelichting, Manrope voor tekst. */
h1 { font-family: var(--kop); font-weight: 400; letter-spacing: -.035em; }
h2 { font-family: var(--kop); font-weight: 200; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-family: var(--mono); font-weight: 200; letter-spacing: -.02em; }
.label, .nummer, .mono { font-weight: 200; }

.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grijs);
}
.nummer {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grijs);
}
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }

.sr-alleen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.overslaan {
  position: absolute; left: var(--rand); top: -60px; z-index: 20;
  background: var(--inkt); color: var(--wit); padding: 8px 12px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.overslaan:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--inkt); outline-offset: 3px; }
/* Op zwarte vlakken een lichte focusrand, anders zie je met Tab niet waar je bent. */
.donker :focus-visible, .voet :focus-visible, .tegels--donker :focus-visible, .sectie--donker :focus-visible { outline-color: var(--op-zwart); }

/* Pijl die bij hover een stukje opschuift */
.pijl {
  display: inline-block;
  width: 18px; height: 10px;
  transition: transform .35s var(--traag);
}
a:hover .pijl, a:focus-visible .pijl { transform: translateX(5px); }
.tekstlink--terug:hover .pijl, .tekstlink--terug:focus-visible .pijl { transform: translateX(-5px); }

.tekstlink {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; font-size: 16px;
}
.tekstlink.mono { font-size: 12.5px; }
.tekstlink span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
}

/* Vier plekken: vierkantjes die later de echte bezetting tonen */
.plekken { display: inline-flex; gap: 4px; vertical-align: middle; }
.plekken i { width: 9px; height: 9px; border: 1px solid var(--inkt); }
.plekken i.bezet { background: var(--inkt); }

.knop {
  display: inline-flex; align-items: center; gap: 16px;
  align-self: flex-start;
  padding: 15px 20px;
  font-family: var(--mono); font-size: 13px;
  text-decoration: none;
  background: var(--wit); color: var(--inkt);
  transition: background-color .3s;
}
.knop:hover { background: #fff; }

.knop--zwart { background: var(--inkt); color: var(--wit); margin-top: 32px; padding: 17px 24px; }
.knop--zwart:hover { background: #000; }

/* Generatief vak */
.kunst {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--lijn);
  background: var(--papier);
}
.kunst--zwart { background: var(--zwart); border-right-color: var(--zwart); }
.kunst canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Bediening rechtsonder in een generatief vak (generatief/bediening.js): strak in de hoek, knoppen
   tegen elkaar, geen rand. Pas zichtbaar bij aanwijzen. */
.kunst__bediening {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: stretch; gap: 0;
  background: var(--kunst-achter, #272727);
  opacity: 0; transition: opacity .3s;
}
.kunst:hover .kunst__bediening, .kunst:focus-within .kunst__bediening { opacity: 1; }
@media (hover: none) { .kunst__bediening { opacity: .7; } }
.kunst__bediening button {
  width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none;
  display: grid; place-items: center; cursor: pointer;
  color: var(--kunst-inkt, #f7f7f5); background: var(--kunst-achter, #272727);
}
.kunst__bediening button:hover, .kunst__bediening button:focus-visible { color: var(--kunst-achter, #272727); background: var(--kunst-inkt, #f7f7f5); }
.kunst__bediening svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.kunst__stand { display: flex; align-items: center; gap: 2px; padding: 0 8px; }
.kunst__stand i { width: 3px; height: 3px; background: color-mix(in srgb, var(--kunst-inkt, #f7f7f5) 30%, transparent); }
.kunst__stand i.aan { background: var(--kunst-inkt, #f7f7f5); }

/* ---------- Kop ---------- */
.kop {
  position: sticky; top: 0; z-index: 10;
  height: var(--kop-hoogte);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--rand);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lijn);
}
/* Woordmerk: asterisk en BEGEISTER uit het bestaande merk, [ LAB ] in Sora. Grootte via font-size. */
.woordmerk {
  display: inline-flex; align-items: center; gap: .32em;
  font-size: 22px; line-height: 1; color: inherit;
  text-decoration: none; white-space: nowrap; justify-self: start;
}
.woordmerk svg { display: block; width: auto; overflow: visible; }
.woordmerk__ster { height: .98em; width: .86em !important; }
.woordmerk__naam { height: .78em; width: 5.2em !important; }
.woordmerk__lab {
  position: relative; margin-left: .6em; padding: 0 1em;
  font-family: var(--kop); font-weight: 400; font-size: .5em; letter-spacing: .12em;
}
.woordmerk__lab::before, .woordmerk__lab::after {
  content: ""; position: absolute; top: -.62em; bottom: -.62em; width: .32em;
  border: 1px solid currentColor;
}
.woordmerk__lab::before { left: 0; border-right: 0; }
.woordmerk__lab::after { right: 0; border-left: 0; }

.hoofdmenu ul {
  display: flex; gap: clamp(20px, 3.4vw, 52px);
  list-style: none; margin: 0; padding: 0;
}
.hoofdmenu a {
  font-size: 14.5px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--traag);
}
.hoofdmenu a:hover, .hoofdmenu a[aria-current="page"] { background-size: 100% 1px; }

.taal {
  justify-self: end;
  font-family: var(--mono); font-size: 12px; color: var(--grijs);
  display: flex; gap: 8px;
}
.taal [aria-current="true"] { color: var(--inkt); }

.menuknop { display: none; }

/* ---------- Voet ---------- */
.voet {
  background: var(--diep);
  color: #cfcfcf;
  padding: 0 var(--rand);
}
.voet__rij {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  border-top: 1px solid #3a3a3a;
}
.voet .woordmerk { color: var(--op-zwart); font-size: 18px; }
.voet nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.voet nav a { font-size: 13px; text-decoration: none; color: #cfcfcf; }
.voet nav a:hover { color: var(--wit); }
.voet__klein { justify-self: end; font-family: var(--mono); font-size: 11.5px; color: #888888; }
.voet__klein a { color: inherit; text-underline-offset: 3px; }

/* ---------- Mobiel ---------- */
@media (max-width: 820px) {
  :root { --kop-hoogte: 60px; }
  .kop { grid-template-columns: 1fr auto; }
  .taal { display: none; }
  .menuknop {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 12px 0; min-height: 44px; color: inherit;
    font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    cursor: pointer;
  }
  .menuknop i { display: block; width: 18px; height: 1px; background: currentColor; box-shadow: 0 5px 0 currentColor; }
  .hoofdmenu {
    position: fixed; inset: var(--kop-hoogte) 0 auto 0;
    background: var(--papier); border-bottom: 1px solid var(--lijn);
    display: none;
  }
  .hoofdmenu.open { display: block; }
  .hoofdmenu ul { flex-direction: column; gap: 0; }
  .hoofdmenu li { border-top: 1px solid var(--lijn); }
  .hoofdmenu a { display: block; padding: 18px var(--rand); font-size: 22px; background: none; }
  .hoofdmenu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
  .voet nav a, .voet__klein a { display: inline-block; padding: 12px 0; }

  .voet__rij { grid-template-columns: 1fr; height: auto; gap: 18px; padding: 28px 0; }
  .voet nav ul { flex-wrap: wrap; gap: 0 24px; }
  .voet__klein { justify-self: start; }
}

/* Verminder beweging: ook geen overgangen (pijlen, uitklappers). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
