/* Huisstijl "krabbelschrift": zie RAAMWERK.md, hoofdstuk 6. Bewust altijd licht: het is papier. */
:root {
  --papier: #fffdf6;
  --lijn: #d3e2f4;
  --marge: #f2a7a7;
  --inkt: #26323f;
  --zacht: #5c6672;
  --plakband: rgba(255, 236, 160, .75);
  --rood: #e23b3b;
  --geel: #f3d66f;
  --rond: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--inkt);
  font: 600 16px/1.45 var(--rond);
  /* schriftblad: rode kantlijn en blauwe lijntjes */
  background-color: var(--papier);
  background-image:
    linear-gradient(90deg, transparent 47px, var(--marge) 47px, var(--marge) 49px, transparent 49px),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--lijn) 31px 32px);
  background-attachment: local;
  min-height: 100vh;
}

/* ---------- Overzichtspagina ---------- */
.hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px 64px 64px;
}
@media (max-width: 600px) {
  .hub { padding-left: 16px; }
  body { background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--lijn) 31px 32px); }
}

.kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.boventitel {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--zacht);
}
.kop h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  /* dikke "stift"-letters met een harde schaduw */
  color: var(--papier);
  -webkit-text-stroke: 3px var(--inkt);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--inkt);
  position: relative;
}
.kop h1::after {
  /* gekrabbelde onderstreping */
  content: "";
  position: absolute;
  left: 4px;
  right: -8px;
  bottom: -10px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c30-7 60-6 90-2s70 4 106-4' fill='none' stroke='%23e23b3b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.sub { margin: 18px 0 0; color: var(--zacht); font-size: 17px; }
.zwaai { width: clamp(56px, 12vw, 88px); flex: none; margin-bottom: -6px; }
.zwaai .arm { transform-origin: 40px 44px; animation: zwaai 1.6s ease-in-out infinite; }
@keyframes zwaai {
  0%, 60%, 100% { transform: rotate(0); }
  15%, 45% { transform: rotate(-28deg); }
  30% { transform: rotate(6deg); }
}

.spellen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.spellen > li:nth-child(odd) .kaart { --draai: -1.2deg; }
.spellen > li:nth-child(even) .kaart { --draai: 1deg; }

.kaart {
  --kleur: var(--rood);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--papier);
  border: 3px solid var(--inkt);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--inkt);
  color: inherit;
  text-decoration: none;
  transform: rotate(var(--draai, 0deg));
  transition: transform .15s ease, box-shadow .15s ease;
}
li[style] .kaart { --kleur: inherit; }
.spellen li { --kleur: var(--rood); }
a.kaart:hover, a.kaart:focus-visible {
  transform: rotate(0) translateY(-4px) scale(1.02);
  box-shadow: 9px 10px 0 var(--inkt);
  outline: none;
}
a.kaart:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--inkt); }

.kaart img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--inkt);
  border-radius: 15px 15px 0 0;
}
.kaart .tekst { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.kaart strong { font-size: 1.55rem; font-weight: 900; line-height: 1.1; }
.kaart .tekst > span:not(.knop) { color: var(--zacht); font-size: 15px; }
.kaart .knop {
  align-self: flex-start;
  margin-top: auto;
  translate: 0 6px;
  padding: 6px 20px 7px;
  border: 3px solid var(--inkt);
  border-radius: 999px;
  background: var(--kleur);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 3px 3px 0 var(--inkt);
}
.kaart .knop::after { content: " ▶"; font-size: .8em; }

.plakband {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  translate: -50% 0;
  rotate: -3deg;
  background: var(--plakband);
  border-left: 2px dashed rgba(0, 0, 0, .08);
  border-right: 2px dashed rgba(0, 0, 0, .08);
  z-index: 1;
}
.nieuw {
  position: absolute;
  top: 12px;
  right: -10px;
  z-index: 1;
  rotate: 8deg;
  padding: 3px 12px 4px;
  background: var(--geel);
  border: 3px solid var(--inkt);
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 2px 2px 0 var(--inkt);
}

.kaart.binnenkort {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 300px;
  padding: 24px;
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 253, 246, .6);
}
.binnenkort svg { width: 120px; margin-bottom: 8px; }
.binnenkort strong { font-size: 1.35rem; }
.binnenkort span { color: var(--zacht); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .zwaai .arm { animation: none; }
  .kaart, a.kaart:hover { transition: none; }
}
