@font-face {
  font-family: "Amatic SC";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/amatic-sc-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}

:root {
  --papier: #f7f3ec;
  --papier-donker: #efe8dc;
  --inkt: #2b2622;
  --grijs: #6b625a;
  --klei: #b5613f;
  --klei-donker: #94492c;
  --lijn: #ddd3c4;
  --breedte: 1100px;
  --kop: "Amatic SC", "Comic Sans MS", cursive;
  --tekst: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--tekst);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--kop);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(3.6rem, 10vw, 6rem); }
h2 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
h3 { font-size: 2.2rem; }

a { color: var(--klei-donker); }

/* Menu */
.menu {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--lijn);
}
.menu nav {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.menu .logo {
  font-family: var(--kop);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--inkt);
  text-decoration: none;
  white-space: nowrap;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu ul::-webkit-scrollbar { display: none; }
.menu ul a {
  color: var(--grijs);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.menu ul a:hover { color: var(--klei); }

/* Secties */
section {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 6.5rem 1rem;
  border-bottom: 1px solid var(--lijn);
}
.sectie-intro { max-width: 40rem; color: var(--grijs); margin: 0 0 2.5rem; }

/* Foto's: altijd in hun eigen verhouding, niets bijgesneden */
.foto {
  position: relative;
  margin: 0;
}
.foto img {
  display: block;
  width: 100%;
  height: auto;
}
/* Placeholder zolang een foto ontbreekt */
.foto > span { display: none; }
.foto:not(:has(img)) > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  text-align: center;
  color: var(--grijs);
  font-size: 0.95rem;
  background: var(--papier-donker);
  border: 2px dashed var(--lijn);
}
.foto > span small { opacity: 0.7; }
.foto figcaption {
  margin-top: 0.7rem;
  color: var(--grijs);
  font-size: 0.9rem;
  line-height: 1.45;
}
.foto figcaption strong {
  display: block;
  font-family: var(--kop);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--inkt);
}

/* Klikken om te vergroten */
.vergroot { cursor: zoom-in; }
.vergroot:focus-visible { outline: 2px solid var(--klei); outline-offset: 4px; }

.lightbox {
  border: none;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 26, 23, 0.94);
  color: #f7f3ec;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox p {
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #d9d0c3;
}
.lightbox p strong {
  font-family: var(--kop);
  font-size: 1.6rem;
  color: #f7f3ec;
  margin-right: 0.4rem;
}
.lightbox .sluit {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #f7f3ec;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Opening */
.opening {
  padding-top: 5rem;
}
.opening .naam {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}
.opening h1 { margin: 0; }
.opening .lead {
  font-size: 1.3rem;
  color: var(--grijs);
  max-width: 30rem;
  margin: 0;
}
/* Portret als cirkel naast de naam */
.opening .portret {
  flex: none;
  width: clamp(88px, 14vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--papier-donker);
}
.opening .portret img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.opening .portret:not(:has(img)) > span { aspect-ratio: 1; border-radius: 50%; font-size: 0.8rem; }

/* Intro */
.intro p {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  max-width: 46rem;
  margin: 0 auto;
}

/* Galerij: kolommen, elke foto in eigen verhouding */
.galerij {
  columns: 2;
  column-gap: 2.5rem;
}
/* Lesfoto's: vast raster, drie naast elkaar */
.galerij.drie {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.galerij .foto {
  /* inline-block voorkomt dat een foto over twee kolommen wordt verdeeld */
  display: inline-block;
  width: 100%;
  vertical-align: top;
  break-inside: avoid;
  margin-bottom: 2.5rem;
}
.galerij.drie .foto { display: block; margin-bottom: 0; }

/* Sociale projecten */
.blokken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.blok {
  display: flex;
  flex-direction: column;
}
.blok .foto {
  margin-bottom: 1.5rem;
  aspect-ratio: 4 / 3;
  background: var(--papier-donker);
}
.blok .foto img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}
.blok-tekst { flex: 1; margin-bottom: 1.5rem; }
.blok-tekst p { margin: 0 0 0.9rem; }
/* Kleuren van de Samenspraak-kaarten */
.kaart { font-weight: 600; }
.kaart.oranje { color: #a94f0f; }
.kaart.groen { color: #3b7a34; }
.kaart.blauw { color: #2b6394; }
.blok .knop { align-self: flex-start; }
.verbinding {
  font-family: var(--kop);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  text-align: center;
  max-width: 36rem;
  margin: 4rem auto 0;
}

/* Knoppen: sober, rechte hoeken */
.knop {
  display: inline-block;
  color: var(--inkt);
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--inkt);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.knop::after { content: " \2192"; }
.knop:hover {
  background: var(--klei);
  border-color: var(--klei);
  color: #fff;
}

/* Pappenkost */
.pappenkost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Over mij */
.over-tekst { max-width: 40rem; }
.over-tekst p { margin: 0 0 1rem; }

/* Uitnodiging tot contact */
.uitnodiging {
  margin: 0.5rem 0 0;
  color: var(--grijs);
}
.uitnodiging a {
  color: var(--inkt);
  font-weight: 500;
  text-decoration-color: var(--klei);
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.uitnodiging a::after { content: " \2192"; }
.uitnodiging a:hover { color: var(--klei); }

/* Contact */
.contact { text-align: center; border-bottom: none; }
.contact .gegevens { margin-top: 1.5rem; color: var(--grijs); }
.contact .social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact .social a {
  color: var(--inkt);
  font-weight: 500;
  text-decoration-color: var(--klei);
  text-underline-offset: 0.2em;
}
.contact .social a:hover { color: var(--klei); }

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--grijs);
  font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 900px) {
  .galerij.drie { grid-template-columns: repeat(2, 1fr); }
}

/* Mobiel */
@media (max-width: 760px) {
  .menu nav { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .menu ul { width: 100%; }
  html { scroll-padding-top: 6rem; }
  section { padding: 4rem 1rem; }
  .pappenkost, .blokken { grid-template-columns: 1fr; gap: 2rem; }
  .opening { padding-top: 3rem; }
  .blokken { gap: 3.5rem; }
  .galerij { columns: 1; }
  .galerij.drie { grid-template-columns: 1fr; gap: 2.5rem; }
}

.galerij.drie + .uitnodiging { margin-top: 2.25rem; }
