@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --tekenfilm: #eef0ed;
  --kool: #0c0d0e;
  --inkt: #111214;
  --krijt: #e6e8e3;
  --oranje: #ff5a1e;
  --paper: var(--tekenfilm);
  --ink: var(--inkt);
  --licht: 1;
  --oranje-t: color-mix(in srgb, var(--oranje) calc(100% - 30% * var(--licht)), #111214);
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --ink-3: color-mix(in srgb, var(--ink) 30%, var(--paper));
  --marge: 40px;
  --goot: 24px;
  --kol: calc((100vw - 2 * var(--marge) - 11 * var(--goot)) / 12);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --t-hover: 150ms;
  --t-plot: 900ms;
  --ease: cubic-bezier(.3, 0, .2, 1);
  --kop-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 1100px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 26px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.overslaan { position: fixed; left: var(--marge); top: -60px; z-index: 50; background: var(--oranje); color: #0c0d0e; padding: var(--s2) var(--s3); font-weight: 620; text-decoration: none; }
.overslaan:focus { top: var(--s2); }

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

#tekening {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.terugval { display: none; }
.geen-webgl #tekening { display: none; }
.geen-webgl .terugval { display: block; position: fixed; inset: 0; z-index: 0; }
.geen-webgl .terugval img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

#labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.lbl {
  position: absolute;
  left: 0; top: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 620;
  font-variation-settings: "wdth" 118;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: opacity var(--t-hover) linear;
  will-change: transform;
}
.lbl::before {
  content: "";
  position: absolute;
  left: -3px; top: 5px;
  width: 5px; height: 5px;
  background: currentColor;
}
.lbl span { display: inline-block; padding-left: 10px; }
.lbl--oranje { color: var(--oranje-t); }
.lbl--laag { color: var(--ink-2); font-weight: 560; }
.lbl--laag::before { width: 14px; height: 1px; top: 7px; left: -18px; }
.lbl--laag span { padding-left: 2px; }

.schaal {
  position: fixed;
  z-index: 2;
  left: calc(var(--marge) + var(--kol) * 2 + var(--goot) * 1.5 + var(--s5));
  bottom: var(--s5);
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
  font-size: 11px;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.schaal i { display: block; width: 6px; border: 1px solid var(--ink); border-left: 0; }
.schaal span::after { content: " verticaal"; color: var(--ink-2); }
.geen-webgl .schaal { display: none; }
.kop {
  position: fixed;
  z-index: 5;
  top: 0; left: 0; right: 0;
  height: var(--kop-h);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--goot);
  align-items: center;
  padding: 0 var(--marge);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.kop__naam {
  grid-column: 1 / span 2;
  font-weight: 760;
  font-variation-settings: "wdth" 68;
  font-size: 22px;
  letter-spacing: .01em;
  text-decoration: none;
}
.kop__onder {
  grid-column: 3 / span 5;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  display: flex;
  gap: var(--s5);
  color: var(--ink-2);
}
.kop__onder span { font-variant-numeric: tabular-nums; }
.kop__nav {
  grid-column: 8 / span 5;
  display: flex;
  justify-content: space-between;
}
.kop__nav a, .knop {
  font-size: 11px;
  line-height: 14px;
  font-weight: 620;
  font-variation-settings: "wdth" 118;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s2) 0;
  background-image: linear-gradient(var(--oranje), var(--oranje));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-hover) var(--ease), color var(--t-hover) linear;
}
.kop__nav a:hover, .knop:hover, .kop__nav a[aria-current="true"] { background-size: 100% 2px; }
.kop__nav a:active, .knop:active { color: var(--oranje); }

.peil {
  position: fixed;
  z-index: 4;
  left: 0;
  top: var(--kop-h);
  bottom: 0;
  width: calc(var(--marge) + var(--kol) * 2 + var(--goot) * 1.5);
  padding: var(--s6) 0 var(--s6) var(--marge);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--ink);
}
.peil__label, .peil__laag {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 620;
  font-variation-settings: "wdth" 118;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.peil__label { color: var(--ink-2); }
.peil__cijfer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: var(--s4) 0 var(--s2);
  color: var(--oranje-t);
  height: 58px;
}
#peil-cijfers svg { height: 54px; width: auto; display: block; overflow: visible; }
.peil__m {
  font-size: 22px;
  line-height: 22px;
  font-weight: 700;
  font-variation-settings: "wdth" 68;
  color: var(--ink);
}
.peil__laag { color: var(--ink); min-height: 14px; }
.peil__lat {
  flex: 1;
  width: 100%;
  margin-top: var(--s5);
  overflow: visible;
}
.peil__lat text {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-variation-settings: "wdth" 100;
  font-variant-numeric: tabular-nums;
  fill: var(--ink);
}
.peil__lat .lat-v text { fill: var(--oranje-t); font-weight: 620; }
.peil__lat line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.peil__lat .lat-v line { stroke: var(--oranje); stroke-width: 2; }
.peil__lat .lat-j line { stroke: var(--ink); stroke-dasharray: 3 3; }
.peil__lat .wijzer line { stroke: var(--oranje); stroke-width: 2; }
.peil__lat .wijzer rect { fill: var(--oranje); }
.peil__lat a { cursor: pointer; }
.peil__lat a:hover text { text-decoration: underline; }

main { position: relative; z-index: 3; }

.station {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--goot);
  padding: 0 var(--marge);
  align-items: center;
  pointer-events: none;
}
.station > * { pointer-events: auto; }

.blok {
  grid-column: 9 / span 4;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0 var(--s5) var(--s5);
  transform: translateY(var(--blok-y, 0));
}
.blok > .blok__cel--kop {
  margin: 0 calc(-1 * var(--s5)) var(--s5);
  padding: var(--s2) var(--s5);
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  line-height: 14px;
  font-weight: 620;
  font-variation-settings: "wdth" 118;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blok__cel--kop span:last-child { color: var(--oranje-t); }
.blok h2 {
  margin: 0 0 var(--s4);
  font-size: 40px;
  line-height: 40px;
  font-weight: 640;
  font-variation-settings: "wdth" 68;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.blok p { margin: 0 0 var(--s3); text-wrap: pretty; hyphens: manual; }
.blok p:last-child { margin-bottom: 0; }
.blok__data { margin: var(--s5) 0 0; padding-top: var(--s3); border-top: 1px solid var(--ink); }
.blok__data dt { font-size: 11px; line-height: 14px; font-weight: 620; font-variation-settings: "wdth" 118; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.blok__data dd { margin: var(--s1) 0 0; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }

.station--titel { align-items: end; padding-bottom: var(--s7); }
.titel {
  grid-column: 3 / span 10;
  grid-row: 1;
  align-self: start;
  margin: calc(var(--kop-h) + var(--s7)) 0 0;
  color: var(--ink);
}
.titel__svg svg { width: 100%; height: auto; display: block; overflow: visible; }
.titel__svg path { stroke-dasharray: var(--len, 0) var(--len, 0); stroke-dashoffset: var(--len, 0); }
.titel--getekend .titel__svg path { transition: stroke-dashoffset var(--t-plot) var(--ease); stroke-dashoffset: 0; }
.blok--titel { grid-row: 1; align-self: end; }
.blok__lede { font-size: 20px; line-height: 28px; }
.blok__voet { color: var(--ink-2); font-size: 15px; line-height: 22px; }
.blok--titel .blok__cel--kop span:last-child { color: var(--ink); font-weight: 760; }

.station--einde { height: 120vh; }
.blok--breed { grid-column: 9 / span 4; }
.ton { margin: var(--s5) 0 0; padding-top: var(--s3); border-top: 1px solid var(--ink); }
.ton figcaption {
  display: flex; justify-content: space-between;
  font-size: 11px; line-height: 14px; font-weight: 620; font-variation-settings: "wdth" 118; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s4);
}
.ton figcaption span:last-child { color: var(--ink-2); }
.ton__rij { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: end; margin-bottom: var(--s4); }
.ton__vakken { display: grid; grid-template-columns: repeat(16, 9px); gap: 2px; }
.ton__vakken i { display: block; width: 9px; height: 9px; background: var(--oranje); }
.ton__vakken i.deel { background: linear-gradient(90deg, var(--oranje) var(--f), transparent var(--f)); box-shadow: inset 0 0 0 1px var(--oranje); }
.ton__naam { margin: 0; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.ton__naam b { font-weight: 700; font-variation-settings: "wdth" 68; font-size: 17px; }

.station--slot { height: auto; min-height: 100vh; align-content: center; row-gap: var(--s6); padding-top: var(--s9); padding-bottom: var(--s9); }
.knop { display: inline-block; color: var(--ink); }
.bronnen {
  grid-column: 9 / span 4;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s4) var(--s5);
}
.bronnen h2 { margin: 0 0 var(--s2); font-size: 11px; line-height: 14px; font-weight: 620; font-variation-settings: "wdth" 118; letter-spacing: .08em; text-transform: uppercase; }
.bronnen ul { margin: 0 0 var(--s3); padding: 0; list-style: none; }
.bronnen li { padding-left: var(--s4); text-indent: calc(-1 * var(--s4)); margin-bottom: var(--s1); }
.bronnen li::before { content: "– "; color: var(--ink-2); }
.bronnen p { margin: 0; color: var(--ink-2); }

.laden .blok, .laden .kop, .laden .peil { opacity: 0; }
.blok, .kop, .peil { transition: opacity 400ms linear; }

@media (prefers-reduced-motion: reduce) {
  .titel__svg path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .titel--getekend .titel__svg path { transition: none; }
  .blok, .kop, .peil, .lbl, .kop__nav a, .knop { transition: none; }
}
