/* DJ Fingerspitzengefühl — één avond, van zonsondergang tot de zaallichten aangaan. */
:root {
  --zwart: #08070b;
  --wit: #f4f0e8;
  --grijs: rgba(244, 240, 232, .66);
  --rood: #e8323e;
  --amber: #ffb347;
  --inkt: #141018;
  --papier: #f3eee4;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --tekst: "Instrument Sans", "Helvetica Neue", sans-serif;
  --rand: clamp(16px, 4.5vw, 72px);
  --deck: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--zwart); }
body {
  margin: 0;
  background: var(--zwart);
  color: var(--wit);
  font-family: var(--tekst);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dicht { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

#zaal { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; }
#set { height: 1100vh; }
#top:focus { outline: none; }

/* ---------- vaste lagen (de film) ---------- */
.laag { position: fixed; inset: 0; z-index: 2; pointer-events: none; transition: opacity 1s .35s; }
body.dicht .laag { opacity: 0; transition: none; }
.laag a, .laag button { pointer-events: auto; }
.laag.links { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--rand) var(--deck); }
.laag.links h2 { max-width: min(30rem, 36vw); }
.laag.midden { display: grid; place-items: center; text-align: center; }

h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-weight: 820;
  font-size: clamp(2.3rem, 4.9vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}

.w-m { display: inline-block; overflow: clip; padding-bottom: .22em; margin-bottom: -.22em; vertical-align: top; }
.w { display: inline-block; will-change: transform; }

/* ---------- intro ---------- */
.naam {
  font-family: var(--display);
  font-weight: 860;
  line-height: .9;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -.015em;
  text-align: center;
}
.naam .l { display: inline-block; }
#hero-naam { position: absolute; left: 0; right: 0; top: 15vh; top: 15dvh; }
.intro {
  position: absolute; left: var(--rand); bottom: calc(var(--deck) + 5vh); margin: 0;
  max-width: min(22rem, 34vw); font-size: 1.05rem; line-height: 1.45; color: var(--wit);
}

/* ---------- drop ---------- */
#drop-naam { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); mix-blend-mode: difference; color: #fff; }
body.auto { cursor: none; }

/* ---------- tracklist ---------- */
.tracklist { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: min(30rem, 40vw); }
.tracklist li { position: relative; border-top: 1px solid rgba(244, 240, 232, .14); }
.tracklist li:last-child { border-bottom: 1px solid rgba(244, 240, 232, .14); }
.tracklist a {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: .6rem;
  padding: .5rem 0; text-decoration: none; color: var(--grijs);
}
.tracklist .nr { font-variant-numeric: tabular-nums; font-size: .85rem; opacity: .7; }
.tracklist .titel { font-family: var(--display); font-variation-settings: "wdth" 88; font-weight: 640; font-size: clamp(1rem, 1.35vw, 1.3rem); color: var(--wit); opacity: .5; transition: opacity .25s, color .25s; }
.tracklist .datum { font-size: .85rem; font-variant-numeric: tabular-nums; }
/* het nummer dat nu speelt: titel in de kleur van die avond, een lijn die meeloopt met je scroll */
.tracklist li.speelt .titel { opacity: 1; color: var(--kleur, var(--wit)); }
.tracklist li.speelt .nr { opacity: 1; color: var(--kleur); }
.tracklist li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--kleur, var(--wit)); transform-origin: left; transform: scaleX(0);
}
.tracklist li.speelt::after { transform: scaleX(var(--k, 0)); }
.tracklist a:hover .titel { opacity: 1; }

/* ---------- einde ---------- */
.einde-kop { position: absolute; left: var(--rand); top: 50%; transform: translateY(-60%); margin: 0; }
.groot { font-size: clamp(3rem, 10vw, 10.5rem); }
#stempel { position: absolute; right: calc(var(--rand) + 4vw); top: 50%; width: min(34vw, 50vh); aspect-ratio: 1; transform: translateY(-58%); }
body.licht { color: var(--inkt); }
body.licht .kop, body.licht #deck { color: var(--inkt); }
body.licht .xf-baan { background: rgba(20, 16, 24, .2); }
body.licht #xf-knop { background: var(--inkt); box-shadow: none; }
body.licht .vu i { background: rgba(20, 16, 24, .18); }
body.licht .vu i.aan { background: var(--inkt); }
body.licht .geluid { border-color: rgba(20, 16, 24, .3); }

/* ---------- knoppen ---------- */
.knop {
  display: inline-block; padding: 1rem 1.6rem; border: 0; border-radius: 2px;
  background: var(--rood); color: #fff; text-decoration: none; font: 600 1rem var(--tekst); cursor: pointer;
  transition: background .2s;
}
.knop:hover { background: #c9232f; }
.tekstknop {
  background: none; border: 0; padding: .3rem 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}

/* ---------- kop ---------- */
.kop {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--rand);
  opacity: 0; transition: opacity .6s, color .4s;
}
body.binnen .kop { opacity: 1; }
body.auto .kop, body.auto #deck { opacity: 0; transition: opacity .4s; }
.kop-merk { font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 760; text-decoration: none; font-size: 1rem; transition: opacity .5s; }
body.held .kop-merk { opacity: 0; }
.kop-boek { text-decoration: none; font-weight: 600; padding: .5rem 1rem; border: 1px solid currentColor; border-radius: 2px; font-size: .92rem; }
.kop-boek:hover { background: var(--rood); border-color: var(--rood); color: #fff; }

/* ---------- deck ---------- */
#deck {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--deck);
  display: grid; grid-template-columns: 56px minmax(0, 15rem) 1fr auto auto; align-items: center; gap: 18px;
  padding: 0 var(--rand);
  opacity: 0; transform: translateY(100%); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1), color .4s;
}
body.binnen #deck { opacity: 1; transform: none; }
body.boeken #deck { background: var(--papier); }
#jog { width: 56px; height: 56px; border-radius: 50%; }
.np { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.np-titel { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 760; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.np-titel:hover { text-decoration: underline; }
.np-info { font-size: .82rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#np-tijd { font-variant-numeric: tabular-nums; }
.xf { display: flex; align-items: center; gap: 12px; font-size: .78rem; opacity: .8; min-width: 0; }
.xf-label { white-space: nowrap; }
.xf-baan { position: relative; flex: 1; height: 2px; background: rgba(244, 240, 232, .22); min-width: 60px; }
#xf-knop { position: absolute; top: 50%; left: 0; width: 26px; height: 12px; margin: -6px 0 0 -13px; border-radius: 2px; background: var(--wit); }
.vu { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.vu i { width: 4px; height: 100%; background: rgba(244, 240, 232, .16); }
.vu i.aan { background: var(--kleur, var(--wit)); }
.geluid { font: inherit; font-size: .85rem; color: inherit; background: none; border: 1px solid rgba(244, 240, 232, .3); border-radius: 2px; padding: .4rem .9rem; cursor: pointer; white-space: nowrap; }
.geluid:hover { border-color: currentColor; }

#sc { position: fixed; left: -9999px; top: 0; width: 300px; height: 166px; border: 0; opacity: 0; pointer-events: none; }

/* ---------- poort ---------- */
#poort {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center; grid-template-rows: auto 1fr auto; gap: 1rem;
  padding: 5vh var(--rand) 7vh; text-align: center;
  transition: opacity .7s;
}
#poort.weg { opacity: 0; pointer-events: none; }
.poort-merk { font-family: var(--display); font-variation-settings: "wdth" 130; font-weight: 760; margin: 0; font-size: 1.05rem; }
.plaatknop {
  width: min(62vw, 62vh); aspect-ratio: 1; border-radius: 50%;
  background: none; border: 0; cursor: pointer; color: var(--wit); padding: 0;
  display: grid; place-items: center;
}
.plaatknop-tekst {
  font-family: var(--display); font-variation-settings: "wdth" 90; font-weight: 760;
  font-size: clamp(1rem, 1.9vmin, 1.25rem);
  transform: translateY(calc(min(62vw, 62vh) * .5 + 1.8rem));
}
.plaatknop:hover .plaatknop-tekst, .plaatknop:focus-visible .plaatknop-tekst { color: var(--amber); }
#poort .tekstknop { color: var(--grijs); font-size: .9rem; }

/* ---------- boeken (gewone pagina na de film) ---------- */
#boeken {
  position: relative; z-index: 4; background: var(--papier); color: var(--inkt);
  padding: 16vh var(--rand) calc(var(--deck) + 6vh);
}
.boek-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; max-width: 1320px; }
#boeken h2 { font-size: clamp(2.4rem, 5vw, 5rem); margin-bottom: .8em; }
.feiten { margin: 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: .9rem 1rem; font-size: .98rem; }
.feiten dt { font-weight: 600; }
.feiten dd { margin: 0; color: rgba(20, 16, 24, .75); }

.boekform { display: grid; gap: 1.6rem; }
.rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.6rem; }
.rij .kort { max-width: 8rem; }
.veld { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.lbl, legend { font-size: .85rem; font-weight: 600; padding: 0; }
legend { margin-bottom: .6rem; }
.lbl em, legend em { font-style: normal; font-weight: 400; opacity: .6; }
.boekform input:not([type="radio"]), .boekform select, .boekform textarea {
  font: 1.05rem var(--tekst); color: var(--inkt); background: transparent;
  border: 0; border-bottom: 1px solid rgba(20, 16, 24, .35); border-radius: 0;
  padding: .5rem 0; width: 100%;
}
.boekform textarea { resize: vertical; min-height: 4.5rem; }
.boekform input:focus, .boekform select:focus, .boekform textarea:focus { outline: none; border-bottom: 2px solid var(--rood); padding-bottom: calc(.5rem - 1px); }
.boekform [aria-invalid="true"] { border-bottom-color: var(--rood) !important; }
.boekform ::placeholder { color: rgba(20, 16, 24, .35); }
.keuzes { display: flex; flex-wrap: wrap; gap: .5rem; }
.keuzes label { position: relative; }
.keuzes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.keuzes span { display: inline-block; padding: .5rem .85rem; border: 1px solid rgba(20, 16, 24, .25); border-radius: 2px; font-size: .95rem; cursor: pointer; }
.keuzes input:checked + span { background: var(--inkt); color: var(--papier); border-color: var(--inkt); }
.keuzes input:focus-visible + span { outline: 2px solid var(--rood); outline-offset: 2px; }
fieldset[aria-invalid="true"] .keuzes span { border-color: var(--rood); }
.fout { color: #b3121e; margin: 0; min-height: 1.5em; font-size: .95rem; }
.boekform .knop { justify-self: start; }

.boek-klaar { border-top: 2px solid var(--inkt); padding-top: 1.4rem; }
.boek-klaar:focus { outline: none; }
.boek-klaar h3 { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 800; font-size: 2rem; margin: 0 0 .4rem; }
.boek-klaar p { margin: 0 0 1.2rem; max-width: 34rem; }
.boek-klaar pre { white-space: pre-wrap; font: .92rem/1.5 var(--tekst); background: rgba(20, 16, 24, .05); padding: 1rem 1.1rem; margin: 0 0 1.2rem; }
.knoppen { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.voet { margin: 12vh 0 0; font-size: .85rem; opacity: .65; }

/* ---------- ijken ---------- */
.ijk { position: fixed; top: 80px; right: 16px; z-index: 20; width: 300px; background: var(--papier); color: var(--inkt); padding: 1rem; font-size: .9rem; }
.ijk p { margin: .4rem 0 .8rem; }
.ijk pre { font-size: .85rem; white-space: pre-wrap; }
kbd { border: 1px solid currentColor; padding: 0 .3em; font-size: .85em; }

/* ---------- telefoon ---------- */
@media (max-width: 760px) {
  :root { --deck: 64px; }
  body { font-size: 16px; }
  .laag.links { justify-content: flex-end; padding-bottom: calc(var(--deck) + 6vh); }
  .laag.links h2 { max-width: none; }
  #act-zalen { justify-content: flex-start; padding-top: 12vh; }
  .tracklist { max-width: none; }
  .tracklist a { padding: .38rem 0; }
  #hero-naam { top: 13vh; }
  .intro { right: var(--rand); max-width: none; }
  #deck { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; }
  #jog { width: 44px; height: 44px; }
  .xf { display: none; }
  .vu i:nth-child(n+7) { display: none; }
  .np-titel { overflow: hidden; text-overflow: ellipsis; }
  .einde-kop { top: auto; bottom: calc(var(--deck) + 10vh); transform: none; }
  #stempel { right: 50%; top: 14vh; width: 64vw; transform: translateX(50%); }
  .boek-in { grid-template-columns: 1fr; }
  #boeken { padding-top: 10vh; }
  .rij .kort { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #deck, .kop, #poort { transition: opacity .3s; }
}
