/* Merlijn en de Nachtbrakers, statische versie van de Wix site */

@font-face {
  font-family: "Stratum";
  src: url("../fonts/stratum-no2-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --geel: #ffed00;
  --zwart: #000;
  --wit: #fff;
  --kop: "Stratum", "Arial Narrow", Arial, sans-serif;
  --tekst: "Plex", "Helvetica Neue", Arial, sans-serif;
  --kaart-b: 372px;
  --gat: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wit);
  color: var(--zwart);
  font-family: var(--tekst);
  font-weight: 600;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Kop ---------- */
.hero { background: var(--zwart); padding: 38px 16px 47px; }
.hero-inner { max-width: 1072px; margin: 0 auto; }
.logo { display: block; position: relative; container-type: inline-size; text-decoration: none; }
.logo img { width: 100%; }
.tagline {
  position: absolute; left: 41.04%; top: 75.4%; width: 54%;
  color: var(--geel); font-family: var(--tekst); font-weight: 600;
  font-size: 1.77cqw; line-height: 1.4; white-space: nowrap;
}
.menu {
  list-style: none; margin: 65px 0 0; padding: 0;
  display: flex; justify-content: center; gap: 19px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 51px; padding: 0 44px;
  background: var(--geel); color: var(--zwart); border: 1px solid var(--zwart);
  font-family: var(--kop); font-weight: 700; font-size: 24px; letter-spacing: 1.2px;
  text-decoration: none; transition: background .15s, color .15s;
}
.menu li:nth-child(1) .btn { min-width: 364px; }
.menu li:nth-child(2) .btn { min-width: 292px; }
.menu li:nth-child(3) .btn { min-width: 227px; }
.btn:hover, .btn:focus-visible { background: var(--zwart); color: var(--geel); border-color: var(--geel); }

/* ---------- Afleveringen ---------- */
.grid {
  max-width: calc(var(--kaart-b) * 3 + var(--gat) * 2);
  margin: 0 auto; padding: 0 0 64px;
}
.grid--tags { padding-top: 77px; }
.grid--tags .row { margin-bottom: 78px; }
.grid--s1 { position: relative; margin-top: -16px; }
.grid--s1 .row { margin-bottom: 16px; }
.row { display: flex; gap: var(--gat); align-items: stretch; }

.card {
  position: relative; width: var(--kaart-b); flex: 0 0 var(--kaart-b);
  background: var(--wit); border: 1px solid var(--zwart); padding: 14px 14px 16px;
}
.card-media { position: relative; display: block; }
.card-media img:first-child { width: 100%; aspect-ratio: 342 / 192; object-fit: cover; background: #222; }
.card-icon { position: absolute; left: 15px; bottom: 15px; width: 41px; height: 41px; }
.card-title {
  margin: 21px 0 16px; font-family: var(--kop); font-weight: 700;
  font-size: 26px; line-height: 1.375; letter-spacing: .26px;
}
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-text, .card-cta { margin: 0; font-size: 16px; line-height: 1.8; }
.card-cta { margin-top: 28.8px; }

.tag {
  position: absolute; left: -49px; top: -21px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 175px; height: 45px;
  background: var(--geel); border: 1px solid var(--zwart);
  font-family: var(--kop); font-weight: 700; font-size: 22px; text-decoration: none;
}
.tag:hover, .tag:focus-visible { background: var(--zwart); color: var(--geel); }

/* ---------- Voet ---------- */
.footer {
  height: var(--footer-h, 500px);
  background-size: cover; background-position: center; background-color: var(--zwart);
}

/* ---------- 404 ---------- */
.notfound { max-width: 720px; margin: 64px auto; padding: 0 16px; text-align: center; font-size: 18px; }
.notfound h1 { font-family: var(--kop); font-size: 40px; }

/* ---------- Nieuwsbrief popup (maten 1 op 1 van de Wix versie, box 734 x 725) ---------- */
.popup {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .35);
}
.popup[hidden] { display: none; }
.popup-box {
  position: relative; width: 734px; height: 725px; max-width: 100%;
  max-height: calc(100dvh - 32px); overflow: hidden; background: #111;
  container-type: size;
}
.popup-box:focus { outline: none; }
.popup-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.popup-close {
  position: absolute; top: 11px; right: 17px; z-index: 2; width: 57px; height: 73px;
  padding: 8px; background: none; border: 0; cursor: pointer; color: #fff5f0;
}
.popup-close svg { width: 100%; height: 100%; fill: currentColor; }
.popup-close:hover, .popup-close:focus-visible { color: var(--geel); }
.popup-title, .popup-text, .popup-form { position: absolute; z-index: 1; margin: 0; }
.popup-title {
  top: 289px; left: 67px; width: 600px; text-align: center;
  color: var(--geel); font-family: var(--kop); font-weight: 700; font-size: 71px; line-height: 101px;
}
.popup-text {
  top: 418px; left: 99px; width: 535px; text-align: center;
  font-family: var(--tekst); font-weight: 600; font-size: 25px; line-height: 32.5px;
}
.popup-text span {
  background: var(--geel); color: var(--zwart);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.popup-form { top: 591px; left: 99px; width: 537px; }
.popup-form label { display: block; height: 17px; margin-bottom: 10px; color: var(--geel); font-weight: 700; font-size: 14px; line-height: 17px; }
.popup-row { display: flex; align-items: center; gap: 20px; }
.popup-row input {
  width: 387px; height: 40px; padding: 8px 8px; font: 600 16px/20px var(--tekst);
  background: var(--wit); border: 2px solid var(--zwart); border-radius: 0; color: var(--zwart);
}
.popup-row input:focus { outline: 3px solid var(--geel); outline-offset: 0; }
.popup-row button {
  width: 130px; height: 46px; background: var(--geel); border: 0; cursor: pointer; color: var(--zwart);
  font: 700 20px/26px var(--tekst);
}
.popup-row button:hover, .popup-row button:focus-visible { text-decoration: underline; }
/* Telefoon: zelfde opbouw als de mobiele Wix popup (280 x 561) */
@media (max-width: 760px) {
  .popup-box { width: 100%; max-width: 360px; height: 600px; }
  .popup-close { top: 6px; left: 50%; right: auto; transform: translateX(-50%); width: 48px; height: 56px; }
  .popup-title { top: 62px; left: 0; width: 100%; font-size: clamp(30px, 11cqw, 40px); line-height: 1.3; }
  .popup-text { top: auto; bottom: 200px; left: 18px; right: 18px; width: auto; font-size: 16px; line-height: 1.45; }
  .popup-form { top: auto; bottom: 28px; left: 34px; right: 34px; width: auto; }
  .popup-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .popup-row input { width: 100%; }
  .popup-row button { width: 100%; }
}
@media (max-height: 560px) and (max-width: 760px) {
  .popup-text { display: none; }
}

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1160px) {
  .grid { max-width: calc(var(--kaart-b) * 2 + var(--gat)); }
  .row { flex-wrap: wrap; row-gap: 24px; }
}
@media (max-width: 800px) {
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .menu { margin-top: 32px; flex-direction: column; align-items: center; gap: 12px; }
  .menu li { width: 100%; max-width: 364px; }
  .menu li:nth-child(n) .btn { min-width: 0; width: 100%; padding: 0 12px; font-size: 21px; }
  .tagline { position: static; display: block; width: auto; margin-top: 8px; text-align: center; white-space: normal; font-size: 15px; }
  .grid { max-width: none; padding-left: 16px; padding-right: 16px; }
  .grid--s1 { margin-top: 0; padding-top: 24px; }
  .grid--tags { padding-top: 48px; }
  .grid--tags .row { margin-bottom: 56px; }
  .row { flex-direction: column; align-items: center; }
  .card { width: 100%; max-width: var(--kaart-b); flex: none; }
  .tag { left: -8px; top: -24px; width: auto; padding: 0 16px; height: 40px; font-size: 20px; }
  .footer { height: min(var(--footer-h, 500px), 60vw); }
}
/* Lage desktop schermen (laptops): popup in zijn geheel verkleinen zodat alles zichtbaar blijft */
@media (min-width: 761px) and (max-height: 780px) { .popup-box { zoom: .85; max-height: none; } }
@media (min-width: 761px) and (max-height: 660px) { .popup-box { zoom: .7; } }
@media (min-width: 761px) and (max-height: 540px) { .popup-box { zoom: .55; } }
