:root {
  --paper: #f3f1ec;
  --paper-deep: #e7e3db;
  --ink: #181817;
  --muted: #686761;
  --line: rgba(24, 24, 23, .17);
  --white: #fff;
  --header-height: 76px;
  --page-pad: clamp(20px, 4.5vw, 72px);
  --content: 1540px;
  --radius-small: 10px;
  --radius: 16px;
  --radius-large: 24px;
  --shadow-soft: 0 16px 45px rgba(32, 30, 25, .09);
  --shadow-photo: 0 8px 24px rgba(32, 30, 25, .12);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%);
  padding: 10px 14px; background: var(--ink); color: var(--white); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-height); padding: 0 var(--page-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: rgba(243, 241, 236, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 5px 22px rgba(32, 30, 25, .035);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 800; letter-spacing: .11em;
  border-radius: var(--radius-small);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .015em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.site-nav a, .site-footer nav a { color: var(--ink); font-size: 13px; text-decoration: none; text-underline-offset: 5px; }
.site-nav a { padding: 8px 11px; border-radius: 999px; transition: background-color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(24, 24, 23, .07); outline: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { text-decoration: underline; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: var(--radius-small); background: rgba(24, 24, 23, .05); cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }

.intro-section {
  width: min(100%, var(--content)); margin: 0 auto; padding: clamp(50px, 8vw, 118px) var(--page-pad) clamp(70px, 10vw, 144px);
  display: grid; grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr); align-items: center; gap: clamp(42px, 7vw, 116px);
}
.intro-copy { max-width: 510px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 62px); }
h2 { font-size: clamp(31px, 3.5vw, 46px); }
h3 { font-size: clamp(23px, 2.2vw, 31px); }
.intro-copy__lead { max-width: 46ch; margin: 25px 0 30px; color: #44433f; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.75; }
.text-link, .back-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .35); font-size: 13px; font-weight: 650; text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.text-link:hover, .back-link:hover { background: var(--white); border-color: rgba(24, 24, 23, .35); transform: translateY(-1px); }
.text-link:hover span { transform: translateY(3px); }
.text-link span { transition: transform .2s; }
.intro-photo { margin: 0; min-height: 360px; aspect-ratio: 1.42; overflow: hidden; background: var(--paper-deep); border-radius: var(--radius-large); box-shadow: var(--shadow-soft); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.intro-photo:hover img { transform: scale(1.015); }

.gallery-section { padding: clamp(68px, 8vw, 118px) var(--page-pad); background: var(--white); border-radius: 32px 32px 0 0; }
.gallery-section > * { width: min(100%, var(--content)); margin-inline: auto; }
.section-heading { margin-bottom: clamp(34px, 5vw, 64px); display: grid; grid-template-columns: 1fr minmax(280px, 460px); align-items: end; gap: 40px; }
.section-heading p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  padding: 8px 14px; border: 1px solid #ccc8c0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; transition: background-color .2s, color .2s, border-color .2s;
}
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.photo-grid { columns: 3 320px; column-gap: 14px; }
.photo-card {
  width: 100%; margin: 0 0 14px; padding: 0; display: block; break-inside: avoid; overflow: hidden;
  border: 0; border-radius: var(--radius); background: #ddd9d1; cursor: zoom-in;
  box-shadow: 0 3px 12px rgba(32, 30, 25, .08); transition: transform .25s ease, box-shadow .25s ease;
}
.photo-card[hidden] { display: none; }
.photo-card img { width: 100%; height: auto; transition: transform .4s ease, opacity .35s ease; }
.photo-card:hover, .photo-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-photo); }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.018); opacity: .94; }
.photo-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.empty-state { color: var(--muted); }

.about-section {
  width: min(100%, var(--content)); margin: 0 auto; padding: clamp(82px, 10vw, 150px) var(--page-pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 10vw, 160px); align-items: start;
}
.about-section > div:first-child { padding-left: 20px; border-left: 3px solid var(--ink); }
.about-section p { max-width: 48ch; margin: 4px 0 0; color: #45443f; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.8; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 70px 1fr 70px; place-items: center; background: rgba(12, 12, 11, .96); color: var(--white); }
.lightbox figure { width: 100%; height: 100%; margin: 0; padding: 42px 0; display: grid; grid-template-rows: 1fr auto; place-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 105px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-small); box-shadow: 0 22px 70px rgba(0, 0, 0, .42); }
.lightbox figcaption { min-height: 22px; padding-top: 11px; color: #c9c7c2; font-size: 12px; text-align: center; }
.lightbox__close, .lightbox__nav { border: 0; background: transparent; color: inherit; cursor: pointer; }
.lightbox__close { position: absolute; top: 16px; right: 22px; z-index: 2; width: 44px; height: 44px; font-size: 36px; font-weight: 200; line-height: 1; }
.lightbox__nav { width: 52px; height: 52px; font-size: 27px; }
.lightbox__close:hover, .lightbox__nav:hover, .lightbox__close:focus-visible, .lightbox__nav:focus-visible { color: #aaa7a0; }

.text-page { width: min(820px, calc(100% - 2 * var(--page-pad))); min-height: 65vh; margin: clamp(38px, 6vw, 88px) auto; padding: clamp(38px, 6vw, 72px); background: rgba(255, 255, 255, .62); border: 1px solid rgba(24, 24, 23, .1); border-radius: var(--radius-large); box-shadow: var(--shadow-soft); }
.text-page h1 { margin: 26px 0 22px; }
.text-page__intro { margin: 0 0 42px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.text-page__image { width: 100%; margin: 34px 0; border-radius: var(--radius); }
.prose { color: #3f3e3a; }
.prose h2 { margin: 48px 0 16px; font-size: 31px; }
.prose h3 { margin: 36px 0 12px; font-size: 24px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose a { text-underline-offset: 3px; }
.not-found { min-height: 66vh; padding: clamp(90px, 13vw, 180px) var(--page-pad); text-align: center; }
.not-found p { margin: 22px 0 28px; color: var(--muted); }

.site-footer { padding: 56px var(--page-pad) 24px; background: var(--ink); color: #e6e3dc; border-radius: 28px 28px 0 0; }
.site-footer__main, .site-footer__bottom { width: min(100%, var(--content)); margin: 0 auto; }
.site-footer__main { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 60px; align-items: start; }
.brand--footer { color: var(--white); }
.brand--footer .brand__mark { background: var(--paper); color: var(--ink); }
.brand--footer small, .site-footer__main p { color: #aaa8a2; }
.site-footer__main p { max-width: 38ch; margin: 0; font-size: 14px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer nav a { color: #e6e3dc; }
.site-footer__bottom { margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #8f8d87; font-size: 11px; }
.site-footer__bottom a { color: inherit; text-underline-offset: 3px; }

/* Flexibele CMS-rijen sluiten aan op de rustige publieke stijl. */
.tekstrijen-zone { position: relative; }
.tekstrij .section { padding: clamp(70px, 9vw, 126px) var(--page-pad); }
.tekstrij .section.bg-mint { background: var(--paper-deep); }
.tekstrij .container { width: min(100%, 1100px); margin: 0 auto; }
.tekstrij .section-head { max-width: 720px; }
.tekstrij .eyebrow { margin-bottom: 12px; }
.tekstrij-kop { margin-bottom: 22px; }
.tekstrij-tekst { color: #45443f; }
.tekstrij-knop { margin-top: 25px; }
.tekstrij-knop .btn { display: inline-block; padding: 10px 15px; border: 1px solid var(--ink); text-decoration: none; }
.tekstrij-met-afbeelding, .tekstrij-kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tekstrij-met-afbeelding--links .tekstrij-inhoud { order: 2; }
.tekstrij-afbeelding { margin: 0; }
.tekstrij-afbeelding img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.tekstrij-kaarten { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tekstrij-kaart { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(32, 30, 25, .07); }
.tekstrij-kaart__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tekstrij-kaart__tekst { padding: 20px; }
.tekstrij-kaart__tekst h3 { margin-bottom: 9px; }
.tekstrij-kader { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .5); }

@media (max-width: 900px) {
  .intro-section { grid-template-columns: 1fr; gap: 42px; }
  .intro-copy { max-width: 640px; }
  .intro-photo { min-height: 0; }
  .section-heading, .about-section { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__main nav { grid-column: 2; grid-row: 1 / span 2; }
  .tekstrij-met-afbeelding, .tekstrij-kolommen { grid-template-columns: 1fr; }
  .tekstrij-met-afbeelding--links .tekstrij-inhoud { order: initial; }
}

@media (max-width: 700px) {
  :root { --header-height: 68px; }
  .site-header { gap: 16px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 22px var(--page-pad) 26px;
    align-items: stretch; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; font-size: 15px; }
  .intro-section { padding-top: 55px; padding-bottom: 76px; }
  .intro-photo { aspect-ratio: 1.18; }
  .photo-grid { columns: 2 150px; column-gap: 8px; }
  .photo-card { margin-bottom: 8px; }
  .lightbox { grid-template-columns: 46px 1fr 46px; }
  .lightbox figure { padding: 52px 0 28px; }
  .lightbox__nav { width: 42px; }
  .site-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__main nav { grid-column: auto; grid-row: auto; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .tekstrij-kaarten { grid-template-columns: 1fr; }
  .gallery-section { border-radius: 22px 22px 0 0; }
  .photo-card { border-radius: 12px; }
  .text-page { width: calc(100% - 2 * var(--page-pad)); margin-block: 24px; padding: 30px 22px; border-radius: 18px; }
}

@media (max-width: 420px) {
  h1 { font-size: 38px; }
  h2 { font-size: 31px; }
  .photo-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
