/* Letters zelf gehost: geen verzoek naar buiten (K4 in beslissingen.md). */
@font-face {
  font-family: "Sneeuwletter";
  src: url("letters/sneeuwletter.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("letters/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

/* Kleuren uit het schilderij: nachtlucht, maanlicht en het geel van de sterren. */
:root {
  --sc-canvas: #0b1446;
  --sc-surface: #16226b;
  --sc-ink: #f6f3e6;
  --sc-ink-soft: #d5dcff;
  --sc-accent: #ffd75a;
  --sc-accent-ink: #0f1a5c;
  --nacht: #14206b;
  --sc-font-display: "Sneeuwletter", Georgia, serif;
  --sc-font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --sc-track-tight: -0.012em;
  --sc-track-snug: -0.006em;
  --sc-leading-none: 1.04;
  --sc-t-4xl: clamp(3rem, 1.6rem + 5.6vw, 7rem);
}

/* Verticaal scrollen blijft van de browser, zijwaarts vegen is voor de ruit. */
main { position: relative; z-index: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; }

.doek {
  position: fixed; inset: 0; z-index: 0;
  background: var(--sc-canvas) url("beeld/schilderij.webp") 33% 20% / 172% auto no-repeat;
}
/* zonder WebGL: de storm als wit vlak, en een donkere hoek achter de tekst */
.doek::before, .doek::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.doek::before { background: linear-gradient(to top right, rgb(8 14 58 / .72), rgb(8 14 58 / .2) 62%); }
.doek::after { background: #eef2ff; opacity: var(--storm, 0); }
.verf { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms var(--sc-ease-out); }
.verf.klaar { opacity: 1; }
.sneeuw { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

.sc-stage { background: none; }
.sc-display { font-weight: 900; }
.kop { color: var(--sc-accent); }
.kop--nacht { color: var(--nacht); }
.sc-copy--lead { max-width: min(58rem, 88vw); }
.sc-copy--lead .kop { max-width: 11em; }
.slot .kop { max-width: 5.5em; }
.sc-copy .sc-lede { margin-top: var(--sc-5); max-width: 34ch; font-weight: 500; }
/* de ring van de å en de staart van de g vallen anders buiten het masker van de regel */
.sc-split { padding-top: 0.08em; margin-top: -0.08em; padding-bottom: 0.2em; margin-bottom: -0.2em; }

.plek { inset-inline: auto; width: max-content; max-width: min(50rem, 86vw); }
.plek--bergen { left: var(--sc-gutter); bottom: 14vh; }
.plek--meer { right: var(--sc-gutter); top: 14vh; max-width: min(40rem, 80vw); text-align: right; }
.plek--voorraad { left: var(--sc-gutter); top: 20vh; max-width: min(38rem, 82vw); }

.sc-copy.storm { inset-inline: auto; left: 50%; width: min(46rem, 86vw); max-width: none; }
.storm .sc-lede { color: var(--nacht); margin-inline: auto; }

.bel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-5); min-height: 3.4rem; margin: var(--sc-6) 0 0; }
.knop {
  flex: none; border: 0; border-radius: var(--sc-r-pill);
  padding: 0.95em 1.7em; background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sc-e2), inset 0 1px 0 rgb(255 255 255 / .5);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out);
}
.knop:active { background: #f2c53b; }
.knop:focus-visible { outline: 3px solid var(--sc-ink); outline-offset: 4px; border-radius: var(--sc-r-pill); }
@media (hover: hover) and (pointer: fine) { .knop:hover { background: #ffe38a; } }
.antwoord { font-weight: 600; color: var(--sc-ink); }
.voetnoot { margin: var(--sc-5) 0 0; max-width: 46ch; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty; }

/* De muis is een sneeuwbal; de gewone pijl gaat alleen weg als die getekend wordt. */
html.sneeuwbal, html.sneeuwbal * { cursor: none; }
html.sneeuwbal .knop { cursor: pointer; }

@media (max-width: 700px) {
  .sc-copy--lead { max-width: none; right: var(--sc-gutter); }
  .sc-copy--lead { bottom: clamp(2rem, 7vh, 5rem); }
  .plek { right: auto; width: auto; max-width: 84vw; }
  .plek--bergen { left: var(--sc-gutter); right: auto; }
  .plek--meer { left: auto; right: var(--sc-gutter); }
  .sc-display--lg { font-size: 2.9rem; }
  /* op een telefoon staat het torentje onderin: de tekst gaat naar boven */
  .slot .sc-copy--lead { bottom: auto; top: 19svh; }
  .slot .sc-lede { margin-top: var(--sc-4); }
  .bel { margin-top: var(--sc-5); }
  .voetnoot { max-width: 52vw; }
}
@media (max-height: 560px) {
  :root { --sc-t-4xl: clamp(2.2rem, 11vh, 3.4rem); }
  .voetnoot { display: none; }
}
