/* Layout: like a chalked scoreboard. Title and scorer panel up top, then the bracket path, the prize board, the person, the club. Capitals only in the big display headings; everything else is sentence case. */
:root {
  --bg: #ffffff;
  --surface: #f3f2f1;
  --ink: #141414;
  --muted: #5b5856;
  --line: #dcdad8;
  --red: #c8202a;          /* flight red from the logo, double/treble ring */
  --green: #17734a;        /* board green: the other ring colour */
  --on-red: #ffffff;
  --board: #141414;        /* scorer panel */
  --on-board: #f4f3f2;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --plate: transparent;   /* behind the logo; white in dark mode so the black lettering stays readable */
  --wrap: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --surface: #1b1b1b; --ink: #f2f1f0; --muted: #a8a4a1; --line: #2e2d2c;
    --red: #e5484d; --green: #3aa872; --on-red: #ffffff; --board: #000000; --on-board: #f2f1f0; --plate: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --surface: #1b1b1b; --ink: #f2f1f0; --muted: #a8a4a1; --line: #2e2d2c;
  --red: #e5484d; --green: #3aa872; --on-red: #ffffff; --board: #000000; --on-board: #f2f1f0; --plate: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0; max-width: 65ch; }
.label { font-family: var(--font-label); font-weight: 600; font-size: .9375rem; letter-spacing: .01em; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .625rem; }
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; }
.logo { background: var(--plate); border-radius: 10px; display: block; max-width: 100%; height: auto; }
.brand .logo { width: 2.75rem; height: 2.75rem; padding: 2px; }
.top-right { display: flex; align-items: center; gap: 1.5rem; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--muted); transition: color .15s var(--ease); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }
.theme { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease); }
.theme:hover { color: var(--ink); background: var(--surface); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero-logo { display: flex; gap: 1rem; align-items: center; }
.hero .logo { width: 4.5rem; flex: none; padding: 4px; border-radius: 12px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 .accent { display: block; color: var(--red); }
.hero .lede { margin-top: 1.25rem; font-size: 1.1875rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.25rem; font-weight: 600; font-size: 1.0625rem; text-decoration: none; border-radius: 8px; border: 1px solid var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease), filter .15s var(--ease); }
.btn:active { transform: scale(.98); }
/* fill stays the logo red in both themes: white text keeps 5:1 contrast */
.btn-primary { background: #c8202a; border-color: #c8202a; color: #ffffff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* scorer panel: the countdown reads like a darts scoreboard */
.scorer { background: var(--board); color: var(--on-board); border-radius: 6px; padding: 1.5rem; display: grid; gap: 1.25rem; }
.scorer .label { color: #b9b6b3; }
.score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #2c2c2c; padding-bottom: 1rem; }
.score-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 12vw, 7rem); line-height: .85; font-variant-numeric: tabular-nums; }
.score-unit { font-family: var(--font-label); font-weight: 600; font-size: 1.125rem; line-height: 1.25; color: #b9b6b3; text-align: right; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-label); font-size: .9375rem; color: #b9b6b3; }
.facts dd { margin: .125rem 0 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.checkout { font-family: var(--font-label); font-size: .9375rem; color: #b9b6b3; }
.checkout b { color: #ff6b70; font-weight: 600; }

/* sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.alt { background: var(--surface); }
.head { display: grid; gap: .75rem; margin-bottom: 2.25rem; }
.head p { color: var(--muted); }

/* bracket path */
.path { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 1rem; align-items: stretch; }
.stage { border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; display: grid; gap: .5rem; align-content: start; background: var(--bg); }
.stage .chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.chip { font-family: var(--font-label); font-weight: 600; font-size: .875rem; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); }
.arrow { display: flex; align-items: center; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.split { display: grid; gap: 1rem; }
.stage.win { border-color: var(--red); }
.stage.win h3 { color: var(--red); }
.stage.cons { border-color: var(--green); }
.stage.cons h3 { color: var(--green); }
.rounds { display: grid; grid-template-columns: auto auto; justify-content: start; gap: .125rem 1.25rem; font-size: .9375rem; }
.rounds span:nth-child(odd) { color: var(--muted); }
@media (max-width: 760px) {
  .path { grid-template-columns: minmax(0, 1fr); }
  .arrow { justify-content: center; transform: rotate(90deg); height: 2rem; }
}

/* prize board */
.prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.board { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.board h3 { padding: .9rem 1.25rem; color: var(--on-red); font-size: 1.375rem; }
.board.win h3 { background: var(--red); }
.board.cons h3 { background: var(--green); }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board td { padding: .85rem 1.25rem; border-top: 1px solid var(--line); }
.board td:first-child { font-family: var(--font-label); font-weight: 600; font-size: 1.0625rem; color: var(--muted); width: 50%; }
.board td:last-child { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.board tr:first-child td:last-child { font-size: 2.25rem; }
.pot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); }
.pot strong { color: var(--ink); }
@media (max-width: 640px) { .prizes { grid-template-columns: minmax(0, 1fr); } }

/* Big-T */
.memoriam .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.memoriam .name { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); line-height: .85; text-transform: uppercase; }
.memoriam .name small { display: block; font-family: var(--font-label); font-weight: 600; font-size: 1.125rem; letter-spacing: .01em; text-transform: none; color: var(--muted); margin-top: .75rem; }
.memoriam .person { display: grid; gap: 1.5rem; justify-items: start; }
.memoriam .portrait { display: block; width: min(100%, 15rem); height: auto; aspect-ratio: 244 / 281; object-fit: cover; border-radius: 12px; }
.memoriam .text { display: grid; gap: 1rem; }
.memoriam blockquote { margin: .5rem 0 0; padding-left: 1rem; border-left: 2px solid var(--red); font-size: 1.1875rem; font-weight: 500; max-width: 60ch; }
@media (max-width: 760px) { .memoriam .wrap, .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* club */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pillar { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.pillar p { color: var(--muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.contact .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; }
.mail code { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: .01em; user-select: all; word-break: break-all; }
.copy { font: inherit; font-family: var(--font-label); font-weight: 600; font-size: .9375rem; padding: .45rem .8rem; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
address { font-style: normal; margin-top: .75rem; font-size: 1.125rem; }
@media (max-width: 640px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }

/* agenda */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.event { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; }
.date { display: grid; justify-items: center; line-height: 1; border-right: 2px solid var(--red); padding-right: 1.25rem; }
.date .day { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; }
.date .month { font-family: var(--font-label); font-weight: 600; font-size: .9375rem; color: var(--muted); margin-top: .25rem; white-space: nowrap; }
.event-info { min-width: 0; display: grid; gap: .25rem; }
.event-meta { color: var(--muted); font-size: .9375rem; }
.event-desc { font-size: .9375rem; }
.event .btn { padding: .5rem .9rem; font-size: .9375rem; }
.empty { color: var(--muted); }
@media (max-width: 640px) {
  .event { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .event .btn { grid-column: 1 / -1; justify-self: start; }
  .date { padding-right: .75rem; }
  .date .day { font-size: 2.25rem; }
}

/* nieuws */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.post { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--red); }
.post time { font-family: var(--font-label); font-weight: 600; font-size: .9375rem; color: var(--muted); }
.post .post-body { display: grid; gap: .6rem; color: var(--ink); }
.post details summary { cursor: pointer; font-family: var(--font-label); font-weight: 600; font-size: .9375rem; color: var(--red); }

/* sponsors */
.sponsors { display: grid; gap: 2rem; }
.tier { display: grid; gap: .75rem; }
.tier-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.tier.hoofd .tier-logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.sponsor { display: grid; place-items: center; min-height: 6.5rem; padding: 1rem; background: #ffffff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: #141414; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-align: center; }
.tier.hoofd .sponsor { min-height: 9rem; }
.sponsor img { max-height: 4.5rem; width: auto; object-fit: contain; }
.tier.hoofd .sponsor img { max-height: 6.5rem; }
a.sponsor:hover { border-color: var(--red); }

/* tweedehands */
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.ad { display: grid; grid-template-rows: auto 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ad-photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface); display: block; }
.ad-photo.none { display: grid; place-items: center; color: var(--muted); font-family: var(--font-label); font-size: .9375rem; }
.ad-body { display: grid; gap: .4rem; align-content: start; padding: 1rem 1.1rem 1.2rem; }
.ad-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.ad-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--red); white-space: nowrap; }
.ad-top h3 { text-transform: none; font-size: 1.375rem; }
.ad-desc { font-size: .9375rem; white-space: pre-line; overflow-wrap: anywhere; }
.ad-contact { font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
.ad-contact strong { color: var(--ink); font-weight: 600; }
.place { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.place summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; font-size: 1.0625rem; }
.place summary::marker { color: var(--red); }
.place-body { display: grid; gap: 1rem; padding: 0 1.25rem 1.25rem; }
.place-body .rules { color: var(--muted); font-size: .9375rem; padding-left: 1.2rem; margin: 0; display: grid; gap: .25rem; }
.fform { display: grid; gap: .9rem; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; align-items: end; }
.fform label { display: grid; gap: .3rem; font-family: var(--font-label); font-weight: 600; font-size: .9375rem; color: var(--muted); }
.fform label.check { display: flex; align-items: flex-start; gap: .5rem; font-family: var(--font-body); font-weight: 400; font-size: .9375rem; color: var(--ink); }
.fform .hint { font-family: var(--font-body); font-weight: 400; font-size: .875rem; }
.fform input, .fform textarea, .fform select { font: inherit; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .75rem; width: 100%; min-width: 0; }
.fform input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; }
.fform textarea { min-height: 7rem; resize: vertical; }
.fform button { cursor: pointer; justify-self: start; }
.fform button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmsg { min-height: 1.4em; font-size: .9375rem; }
.fmsg.err { color: var(--red); }
.fmsg.ok { color: var(--green); font-weight: 600; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; font-size: .875rem; color: var(--muted); }

/* subpages: page title band, readable legal text */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero + section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.page-hero p { color: var(--muted); max-width: 40rem; margin-top: .75rem; }
.more { margin-top: 1.5rem; }
.prose { max-width: 52rem; display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-top: 1.5rem; }
.prose h3 { font-size: 1.25rem; text-transform: none; margin-top: .5rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-label); font-weight: 600; color: var(--muted); }
.prose dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .5rem 1.5rem; margin: 0; }
.prose dt { font-family: var(--font-label); font-weight: 600; color: var(--muted); }
.prose dd { margin: 0; }
@media (max-width: 640px) { .prose dl { grid-template-columns: minmax(0, 1fr); gap: .15rem; } .prose dd { margin-bottom: .6rem; } .prose table { display: block; overflow-x: auto; } }
.updated { color: var(--muted); font-size: .9375rem; }
.todo { background: color-mix(in srgb, var(--red) 12%, transparent); border-bottom: 1px dashed var(--red); padding: 0 .2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }
