/* Styled to match the printed flyer, but inverted: the flyer's black — its
   spiders and gravestones — becomes the surface, and its red (#8e1318,
   sampled from the artwork) becomes the accent. A full red page was too much
   at screen size.

   The red is a fill colour, never a text colour: on this background it manages
   only 2.07:1, while white on top of it reaches 9.31:1. Red text uses the
   lighter --accent-text (5.41:1) instead.

   Mobile-first: most visitors arrive from the flyer's QR code on a phone. */
:root {
  --bg: #0e0e0e;
  --bg-deep: #000000;
  --surface: #191919;
  --ink: #f6f6f6;
  --muted: #b9b9b9;
  --line: #352526;
  --accent: #8e1318;      /* the flyer's red, as a fill only */
  --accent-ink: #ffffff;
  --accent-text: #e8555c; /* the red that is legible on black */
  --shadow: #000000;
  --ok-bg: #16351b;
  --ok-ink: #b7e8c0;
  --err-bg: #3d0f12;
  --err-ink: #ff9b9b;
  --radius: 14px;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  background: var(--bg-deep);
  border-bottom: 3px solid var(--accent);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.topbar nav { display: flex; gap: 1.2rem; }
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a:focus-visible { border-bottom-color: var(--accent-text); }

main { max-width: 42rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
section { margin-block: 2.2rem; }

h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  margin: .3rem 0 .5rem;
  /* The flyer outlines its title; on black, the red does that job. */
  text-shadow: 3px 3px 0 var(--accent);
}
h2 { font-size: 1.25rem; letter-spacing: .01em; margin: 1.8rem 0 .6rem; }
h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
a { color: var(--accent-text); text-underline-offset: 3px; }

.hero { padding: 1.2rem 0 .3rem; }
.lead { font-size: 1.1rem; }
.meta {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--accent-text);
  margin: .2rem 0 .8rem;
}
.hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.count { font-family: var(--font-body); color: var(--muted); font-size: .85rem; font-weight: 400; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: .9rem;
}
.card h3 a { text-decoration: none; }

.flyer {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

.stops { list-style: none; padding: 0; margin: .4rem 0; }
.stops li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.stops li:last-child { border-bottom: 0; }

/* Forms: 16px text so iOS does not zoom on focus, 44px touch targets. */
form.stack { display: flex; flex-direction: column; gap: .85rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
input, textarea, select {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: .55rem .7rem;
  color: #2a0709;
  background: var(--ink);
  border: 1px solid var(--shadow);
  border-radius: 10px;
}
textarea { min-height: 5rem; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
}
.row { display: flex; gap: .7rem; }
.row > label { flex: 1; }
.row > .narrow { flex: 0 0 7.5rem; }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.check input { min-height: auto; width: 1.15rem; height: 1.15rem; margin-top: .3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: rgba(142, 19, 24, .35); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: #a81922; border-color: #a81922; }
.btn-danger { border-color: var(--err-ink); color: var(--err-ink); }

.flash { margin-top: .9rem; padding: .75rem 1rem; border-radius: 10px; }
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash.err { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-ink); }

.counter { text-align: center; color: var(--muted); }

footer {
  border-top: 3px solid var(--accent);
  background: var(--bg-deep);
  padding: 1.3rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
footer p { margin: .3rem 0; }
footer a { color: var(--accent-text); }

@media (min-width: 48rem) {
  body { font-size: 18px; }
  main { padding-inline: 2rem; }
  h1 { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The "400 kinderen" panel is the sponsor pitch, so it gets the accent as a
   fill — white on --accent is 9.31:1. The primary button has to invert inside
   it: a red button on a red panel would disappear. */
.bigdeal {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
}
.bigdeal h2 { margin-top: 0; }
.bigdeal .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
}
.bigdeal .btn-primary:hover, .bigdeal .btn-primary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
}
