/* The home page: a game table on felt, the games on a shelf, the rules as data, four ways in. */
body.thuis {
  --felt: #163028; --felt-2: #1e3f35; --felt-ink: #eef3ef; --felt-muted: #a9bdb4;
  --brass: #f0a202; --walnut: #7a5a3e;
  --f-display: "Big Shoulders Display", "Overpass", system-ui, sans-serif;
}
.thuis h1, .thuis h2, .thuis h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: .005em; }

/* ── hero: the table, lying on felt and spilling over its edge ─────── */
.h-hero { background: radial-gradient(80% 85% at 72% 78%, var(--felt-2), var(--felt) 78%); color: var(--felt-ink); border-bottom: 3px solid var(--walnut); margin-bottom: 120px; }
.h-hero-in { max-width: 1080px; margin: 0 auto; padding: 64px 20px 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "kop kop" "tekst tafel"; column-gap: 28px; align-items: start; }
.h-hero h1 { grid-area: kop; font-size: clamp(3rem, 8.6vw, 7rem); line-height: .9; margin: 0 0 28px; color: #fff; text-wrap: balance; }
.h-hero-tekst { grid-area: tekst; padding: 8px 0 64px; }
.h-tafel { grid-area: tafel; align-self: end; }
.h-lead { font-size: 1.1rem; line-height: 1.6; color: var(--felt-muted); max-width: 30em; margin: 0 0 30px; }
.h-knoppen { display: flex; flex-wrap: wrap; gap: 12px; }
.h-knop { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--felt-ink); border: 1.5px solid color-mix(in srgb, var(--felt-ink) 45%, transparent); }
.h-knop:hover { border-color: var(--felt-ink); }
.h-knop.vol { background: var(--brass); border-color: var(--brass); color: #1b1407; }
.h-knop.vol:hover { background: #ffb81c; border-color: #ffb81c; }
.h-knop:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.h-tafel { margin: -20px min(-40px, calc((1040px - 100vw) / 2)) -120px -24px; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); }
.h-tafel img { display: block; width: 100%; height: auto; animation: h-neer 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes h-neer { from { opacity: 0; transform: translateY(-26px) scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .h-tafel img { animation: none; } }

/* ── section heads ─────────────────────────────────────────────────── */
.thuis main h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; margin: 0; }
.h-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.h-kop a, .h-weg-tekst a, .h-plank a:not(.h-spellen a) { font-weight: 700; }

/* ── the shelf: real tables, one per game ──────────────────────────── */
.h-plank { padding-top: 24px; padding-bottom: 72px; }
.h-spellen { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.h-spellen li { scroll-snap-align: start; }
.h-spellen a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.h-spellen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--felt); margin-bottom: 8px; transition: transform .18s ease; }
.h-spellen a:hover img, .h-spellen a:focus-visible img { transform: translateY(-4px); }
.h-spellen a:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; border-radius: 10px; }
.h-spellen b { font-size: 1.02rem; }
.h-spellen span { font-size: .9rem; line-height: 1.45; color: var(--muted); }

/* ── written once, as rules ────────────────────────────────────────── */
.h-regels { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-bottom: 96px; }
.h-regels-tekst > p { color: var(--muted); max-width: 34em; margin: 16px 0 28px; }
.h-uit { margin: 0; display: grid; gap: 18px; }
.h-uit div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.h-uit dt { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.h-uit dd { margin: 0; color: var(--muted); }
.h-code { margin: 0; background: var(--felt); color: var(--felt-ink); border-radius: 14px; padding: 18px 0 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), 0 18px 40px -18px rgb(10 30 22 / .55); overflow: hidden; }
.h-code figcaption { font-size: .82rem; color: var(--felt-muted); padding: 0 22px 10px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.h-code pre { margin: 0; padding: 18px 22px 22px; overflow-x: auto; font: 400 .86rem/1.7 var(--f-mono); }
.h-code .k { color: #f6c96b; }
.h-code .s { color: #bfe3c9; }
.h-code .x { color: #9cc3ff; }

/* ── four ways in ──────────────────────────────────────────────────── */
.h-wegen { padding-bottom: 96px; }
.h-wegen > h2 { margin-bottom: 40px; }
.h-weg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.h-weg:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.h-weg:nth-of-type(even) .h-weg-tekst { order: 2; }
.h-weg h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1; margin: 0 0 14px; }
.h-weg p { margin: 0 0 16px; color: var(--muted); max-width: 32em; }
.h-weg img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 50px -28px rgb(22 48 40 / .45); }
.h-weg img.hoog { max-height: 460px; width: auto; max-width: 100%; justify-self: center; object-fit: contain; }

/* ── closing band ──────────────────────────────────────────────────── */
.h-slot { background: var(--felt); color: var(--felt-ink); border-top: 3px solid var(--walnut); }
.h-slot-in { padding-top: 64px; padding-bottom: 72px; }
.h-slot h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem) !important; }
.h-slot p { color: var(--felt-muted); max-width: 38em; margin: 16px 0 26px; font-size: 1.08rem; }
.h-slot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.h-slot-links a { color: var(--brass); font-weight: 800; font-size: 1.05rem; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.thuis footer { border-top: 0; }

/* ── narrow screens ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .h-hero { margin-bottom: 64px; }
  .h-hero-in { grid-template-columns: 1fr; grid-template-areas: "kop" "tekst" "tafel"; padding-top: 36px; }
  .h-hero-tekst { padding-bottom: 8px; }
  .h-tafel { margin: 0 -20px -64px; }
  .h-hero h1 { margin-bottom: 18px; }
  .h-regels, .h-weg, .h-weg:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
  .h-weg:nth-of-type(even) .h-weg-tekst { order: 0; }
  .h-uit div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  .h-spellen { grid-auto-columns: 72%; }
  .h-code pre { font-size: .76rem; }
}

/* the header lies on the same felt as the hero */
body.thuis > .wrap:first-child { background: var(--felt); box-shadow: 0 0 0 100vmax var(--felt); clip-path: inset(0 -100vmax); }
.thuis header.top .logo { color: #fff; }
.thuis nav.hoofd a { color: var(--felt-muted); }
.thuis nav.hoofd a:hover, .thuis nav.hoofd a:focus-visible { color: #fff; }
.thuis nav.hoofd .talen select { background: var(--felt-2); color: var(--felt-ink); border-color: rgb(255 255 255 / .18); }
.h-weg-tekst a + a { display: block; margin-top: 10px; }
