:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --text: #1d2a2e;
  --muted: #5a6669;
  --accent: #0e5a6b;
  --accent-hover: #0a4451;
  --line: #e4dfd5;
  --row-hover: #f1f6f6;
  --badge-bg: #e3eff1;
  --badge-text: #0e5a6b;
  --shadow: 0 10px 30px rgba(15, 35, 40, 0.10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1518;
    --surface: #172024;
    --text: #e5eaeb;
    --muted: #9aa7aa;
    --accent: #72c4d4;
    --accent-hover: #9ad7e3;
    --line: #26343a;
    --row-hover: #1d2a2f;
    --badge-bg: #1f363c;
    --badge-text: #9ad7e3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Kop met foto */
.hero {
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 6rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(4, 28, 36, 0.55), rgba(4, 28, 36, 0.72)),
    url("/assets/hero-1600.jpg") center / cover no-repeat #0e4a57;
}
@media (max-width: 1200px) {
  .hero { background-image: linear-gradient(180deg, rgba(4, 28, 36, 0.55), rgba(4, 28, 36, 0.72)), url("/assets/hero-1200.jpg"); }
}
@media (max-width: 700px) {
  .hero { background-image: linear-gradient(180deg, rgba(4, 28, 36, 0.55), rgba(4, 28, 36, 0.72)), url("/assets/hero-960.jpg"); }
}
.hero-tekst { max-width: 44rem; }
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.hero p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  opacity: 0.92;
}

/* Inhoud */
.inhoud {
  max-width: 46rem;
  margin: -4rem auto 0;
  padding: 1rem 2.75rem 1.5rem;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 760px) {
  .inhoud { margin: -3.5rem 1rem 0; padding: 0.5rem 1.25rem 1rem; }
}

section { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--text);
}
p { margin: 0 0 0.8rem; }
p:last-child { margin-bottom: 0; }

ul.bestuur { margin: 0; padding-left: 1.2rem; }
ul.bestuur li { margin: 0.2rem 0; }

dl.gegevens {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0.4rem 0 0;
}
dl.gegevens dt { color: var(--muted); }
dl.gegevens dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

address { font-style: normal; }

/* Publicaties */
ul.publicaties { list-style: none; margin: 0.4rem 0 0; padding: 0; }
ul.publicaties li { border-top: 1px solid var(--line); }
ul.publicaties li:last-child { border-bottom: 1px solid var(--line); }
ul.publicaties a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
}
ul.publicaties a:hover { background: var(--row-hover); }
ul.publicaties a::after {
  content: "PDF";
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

/* Alleen voor schermlezers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Voet */
.voet {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 404 */
.melding { text-align: center; padding: 2.5rem 0; }
