/* MKBA in de Regio — modern journal layout */
:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --text: #15251f;
  --muted: #5a6d66;
  --accent: #0d6e6e;
  --accent-dark: #0a5252;
  --line: #d5e3df;
  --hero-from: #0c3d3d;
  --hero-to: #145858;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(21, 37, 31, 0.08);
  --content: 42rem;
  --grid: 73.75rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(13, 110, 110, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20, 88, 88, 0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--grid);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  position: relative;
  color: #f4fbfa;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
  min-height: min(72vh, 40rem);
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 40, 40, 0.35) 0%, rgba(8, 40, 40, 0.72) 70%, rgba(8, 40, 40, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--grid);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(244, 251, 250, 0.92);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #e8f7f4;
  color: var(--accent-dark);
}

.btn-primary:hover {
  background: #fff;
  color: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  max-width: var(--grid);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-narrow {
  max-width: calc(var(--content) + 2.5rem);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section .intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.prose {
  max-width: var(--content);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
  color: var(--accent-dark);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(21, 37, 31, 0.1);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.card a {
  font-weight: 650;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: flex-start;
}

.partners img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
}

.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.tree details {
  border-bottom: 1px solid var(--line);
}

.tree details:last-child {
  border-bottom: 0;
}

.tree summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent-dark);
}

.tree summary::-webkit-details-marker {
  display: none;
}

.tree summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}

.tree details[open] summary::after {
  content: "–";
}

.tree ul {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem 1rem 1.35rem;
}

.tree li {
  margin: 0.35rem 0;
  color: var(--text);
  font-size: 1rem;
}

.tree .chapter {
  font-weight: 650;
  color: var(--text);
  margin-top: 0.75rem;
}

.tree .chapter:first-child {
  margin-top: 0;
}

.tree .muted {
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-bar input[type="text"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.search-bar button {
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--accent-dark);
}

.site-footer {
  margin-top: 2rem;
  background: #103333;
  color: rgba(244, 251, 250, 0.88);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--grid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
}

.site-footer a {
  color: #dff5f1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
  color: #fff;
}

.site-footer p,
.site-footer li {
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-copy {
  max-width: var(--grid);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(244, 251, 250, 0.7);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.form-grid input,
.form-grid textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-grid textarea {
  min-height: 8rem;
  resize: vertical;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 3.5rem;
  }
}

@media (max-width: 360px) {
  .header-inner,
  .section,
  .hero-content {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .brand-mark {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
