@font-face {
  font-family: 'Anybody';
  src: url('fonts/anybody-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Anybody';
  src: url('fonts/anybody-latin-standard-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: italic;
  font-display: swap;
}

:root {
  --papier: #FAFAF7;
  --inkt: #0B0B0C;
  --rood: #FF2B06;
  --kobalt: #1727F0;
  --grijs: #6E6E68;
}

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

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

body {
  background: var(--papier);
  color: var(--inkt);
  font-family: 'Anybody', sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--kobalt); color: var(--papier); }

a { color: var(--inkt); text-decoration: none; border-bottom: 2px solid var(--rood); }
a:hover { color: var(--rood); }
a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--kobalt);
  outline-offset: 3px;
}

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--papier);
  border-bottom: 3px solid var(--inkt);
}
.foundry {
  font-weight: 900;
  font-variation-settings: 'wdth' 125;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.top nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); }
.top nav a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-width: 3px;
}

/* Hero: het woord dat je met je muis verbuigt */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1rem, 3vw, 2.5rem) 3rem;
  cursor: crosshair;
}
.hero-instructie {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grijs);
  margin-bottom: 1rem;
}
.hero-woord {
  font-size: clamp(3rem, 13.5vw, 13rem);
  line-height: 0.92;
  font-weight: 500;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -0.015em;
  color: var(--inkt);
  user-select: none;
  will-change: font-variation-settings;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.as-uitlezing {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rood);
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--rood);
  padding: 0.3rem 0.7rem;
}
.hero-claim { font-size: 1rem; font-weight: 500; color: var(--grijs); }

/* Marquee-strook */
.strook {
  border-top: 3px solid var(--inkt);
  border-bottom: 3px solid var(--inkt);
  background: var(--rood);
  color: var(--papier);
  overflow: hidden;
  white-space: nowrap;
}
.strook-band {
  display: inline-flex;
  padding: 0.6rem 0;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 900;
  font-variation-settings: 'wdth' 130;
  animation: schuif 18s linear infinite;
}
@keyframes schuif { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strook-band { animation: none; } }

/* As-demonstraties */
.assen {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 88vh;
  padding: 4rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 3px solid var(--inkt);
}
.assen-b { background: var(--inkt); color: var(--papier); }
.sectie-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rood);
  margin-bottom: 1.1rem;
}
.assen h2, .glyphen-titel {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  font-weight: 900;
  font-variation-settings: 'wdth' 115;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.assen p { color: var(--grijs); max-width: 24rem; }
.assen-b p { color: #A8A8A2; }

.as-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  min-width: 0;
  overflow: hidden;
}
.as-woord {
  font-size: clamp(3.5rem, 9.5vw, 10rem);
  line-height: 1;
  color: var(--inkt);
  font-weight: 100;
  font-variation-settings: 'wdth' 100;
  will-change: font-variation-settings, font-weight;
}
.assen-b .as-woord { color: var(--papier); }
#wdth-demo .as-woord { font-weight: 800; }
.as-waarde {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  font-variation-settings: 'wdth' 50;
  color: var(--rood);
  font-variant-numeric: tabular-nums;
}

/* Waterval */
.waterval {
  padding: 6rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 3px solid var(--inkt);
}
.val {
  font-weight: var(--wght);
  font-variation-settings: 'wdth' var(--wdth);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin: 0.4rem 0;
}
.val:nth-child(3) { color: var(--kobalt); }

/* Glyph-grid */
.glyphen { padding: 5rem clamp(1.25rem, 4vw, 2.5rem) 6rem; border-bottom: 3px solid var(--inkt); }
.glyphen-titel { margin-bottom: 2.5rem; max-width: 40rem; }
.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  border-top: 2px solid var(--inkt);
  border-left: 2px solid var(--inkt);
}
.glyph {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 500;
  border-right: 2px solid var(--inkt);
  border-bottom: 2px solid var(--inkt);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}
.glyph:hover, .glyph:focus-visible {
  background: var(--kobalt);
  color: var(--papier);
  font-weight: 900;
  font-variation-settings: 'wdth' 135;
}
.glyph:nth-child(7n):hover { background: var(--rood); }

/* Tester */
.tester { padding: 5rem clamp(1.25rem, 4vw, 2.5rem) 7rem; }
.tester-veld {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--inkt);
  font-family: 'Anybody', sans-serif;
  font-size: 96px;
  font-weight: 700;
  font-variation-settings: 'wdth' 100;
  line-height: 1.05;
  resize: none;
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
  caret-color: var(--rood);
}
.tester-regelaars {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  border-top: 3px solid var(--inkt);
  padding-top: 1.75rem;
}
.tester-regelaars label { display: flex; flex-direction: column; gap: 0.6rem; min-width: 13rem; }
.tester-regelaars span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.tester-regelaars em { font-style: normal; color: var(--rood); font-variant-numeric: tabular-nums; }
input[type='range'] {
  appearance: none;
  height: 3px;
  background: var(--inkt);
  cursor: ew-resize;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  background: var(--rood);
  border: 3px solid var(--inkt);
  border-radius: 50%;
  cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--rood);
  border: 3px solid var(--inkt);
  border-radius: 50%;
}
.schakel { flex-direction: row !important; align-items: center; min-width: auto !important; }
.schakel input { width: 1.4rem; height: 1.4rem; accent-color: var(--rood); }

/* Colofon */
.colofon {
  background: var(--inkt);
  color: var(--papier);
  padding: 6rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
}
.colofon-statement {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.0;
  font-weight: 900;
  font-variation-settings: 'wdth' 120;
  margin-bottom: 4rem;
  text-wrap: balance;
}
.colofon-statement em { font-style: italic; color: var(--rood); }
.colofon-info { max-width: 40rem; }
.colofon-info p { color: #A8A8A2; font-size: 0.95rem; }
.colofon-info a { color: var(--papier); }

@media (max-width: 760px) {
  .assen { grid-template-columns: 1fr; min-height: auto; }
  .as-demo { min-height: 30vh; }
  .tester-veld { font-size: 3rem; }
  .top nav a { font-size: 0.7rem; }
}
