/* karelwasch.nl - 1-op-1 nabouw van het WordPress/Salient-thema.
   Maten gemeten op de oude site (desktop 1440 en mobiel 390). */

@font-face { font-family: "Assistant"; src: url(/fonts/assistant-latin.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-latin.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --blauw: #1700ff;
  --zwart: #171717;
  --licht: #f1f1f1;
  --boek: #232233;
  --wit: #fff;
  --rand: 90px;            /* zijmarge van de inhoud */
  --kop: 116px;            /* hoogte header */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--licht); color: var(--wit);
  font: 300 23px/35px var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 0; }
p + p, ul + p, p + ul { margin-top: 0; }
h1, h2, h3, h4 { margin: 0; }
h2, .h2-stijl { font: 900 38px/46px var(--serif); margin-bottom: 7px; }
em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tegel:focus-visible { outline-color: var(--blauw); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; left: 16px; top: 16px; z-index: 200; width: auto; height: auto; clip: auto; padding: 8px 16px; background: var(--wit); color: var(--blauw); }

.binnen { padding-left: var(--rand); padding-right: var(--rand); }
.vlak-blauw { background: var(--blauw); color: var(--wit); }
.vlak-licht { background: var(--licht); color: #000; }
.midden { text-align: center; }

/* ---------- Header (global section) ---------- */
.kop {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kop);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background-color .35s;
}
.kop.verstopt { transform: translateY(-100%); }
.kop.vast { background: var(--zwart); }
.kop-logo img { width: 60px; height: 60px; }
.kop-menu { display: flex; gap: 21px; list-style: none; margin: 0; padding: 0; }
.kop-menu a {
  position: relative; display: block; text-decoration: none;
  font: 500 18px/26px var(--sans); text-transform: uppercase; color: var(--wit);
}
.kop-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.kop-menu a:hover::after, .kop-menu a[aria-current]::after { transform: scaleX(1); }
.kop-ruimte { height: var(--kop); background: var(--zwart); }

.menu-knop { display: none; background: none; border: 0; padding: 14px 0 14px 10px; cursor: pointer; color: var(--wit); }
.menu-knop span, .menu-knop span::before, .menu-knop span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-knop span::before { position: absolute; top: -7px; }
.menu-knop span::after { position: absolute; top: 7px; width: 16px; }

.uitmenu { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .5s; }
.uitmenu-bg { position: absolute; inset: 0; background: var(--blauw); opacity: 0; transition: opacity .4s; }
.uitmenu-paneel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(85vw, 420px); padding: 84px 40px;
  display: flex; flex-direction: column; justify-content: center; transform: translateX(100%);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.uitmenu ul { list-style: none; margin: 0; padding: 0; }
.uitmenu li + li { margin-top: 13px; }
.uitmenu a { font: 200 30px/30px var(--sans); color: #eefbfa; text-decoration: none; }
.uitmenu a[aria-current] { color: var(--wit); }
.uitmenu-dicht {
  position: absolute; top: 22px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--wit); border: 0; cursor: pointer; color: var(--blauw);
}
.uitmenu-dicht::before, .uitmenu-dicht::after {
  content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg);
}
.uitmenu-dicht::after { transform: rotate(-45deg); }
.menu-open .uitmenu { visibility: visible; transition-delay: 0s; }
.menu-open .uitmenu-bg { opacity: 1; }
.menu-open .uitmenu-paneel { transform: none; }

/* ---------- Knop (global section) ---------- */
.knop {
  display: inline-flex; align-items: center; gap: 0; text-decoration: none;
  font: 500 18px/32px var(--sans); text-transform: uppercase; letter-spacing: 0;
  padding: 12px 30px; border: 1px solid var(--wit); border-radius: 200px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.knop-lijn { display: inline-block; width: 14px; height: 1px; background: currentColor; margin-right: 10px; transition: width .3s, margin .3s; }
.knop:hover .knop-lijn, .knop:focus-visible .knop-lijn { width: 0; margin-right: 0; }
.knop-pijl { width: 0; height: 14px; opacity: 0; overflow: visible; transition: width .3s, margin .3s, opacity .3s; }
.knop-pijl polyline { stroke: currentColor; }
.knop:hover .knop-pijl, .knop:focus-visible .knop-pijl { width: 9px; margin-left: 10px; opacity: 1; }
.knop-rand { color: var(--wit); background: transparent; }
.knop-blauw { color: var(--wit); background: var(--blauw); border-color: var(--blauw); padding: 9px 30px; }
.knop-wit { color: var(--blauw); background: var(--wit); border-color: var(--wit); }
.knop:hover, .knop:focus-visible { background: var(--wit); color: var(--blauw); border-color: var(--wit); }

/* ---------- Home ---------- */
.held {
  position: relative; height: 88vh; height: 88svh; overflow: hidden; background: #000; color: var(--wit);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 40px 30px;
}
.held-beeld { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.held-beeld img {
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  animation: uitzoomen 1.3s cubic-bezier(.12,.75,.4,1) both;
}
@keyframes uitzoomen { from { transform: scale(1.25); } to { transform: none; } }
.held-tekst { position: relative; container-type: inline-size; }
.held-sub { font: 300 2vw/1.2 var(--sans); margin-bottom: 10px; }
.held-naam {
  font: 900 calc(100cqw / 7.37) / .9 var(--serif); margin: 0; padding-bottom: 1%;
  white-space: nowrap; text-transform: uppercase;
}

.blok-kort { padding: 8% 12%; }
.blok-kort p { margin-top: 17px; }
.blok-kort .knop { margin-top: 44px; }

.parallax { position: relative; overflow: hidden; background: #000; }
.parallax-beeld { position: absolute; left: 0; right: 0; top: 0; height: 100%; will-change: transform; }
.parallax-beeld img { width: 100%; height: 100%; object-fit: cover; }
.home-landschap { height: calc(180px + (100vw - 2 * var(--rand)) * .16); }

.blok-nieuw {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; color: #000;
  padding-top: 7vw; padding-bottom: 6vw;
}
.nieuw-beeld { display: flex; justify-content: flex-end; padding-top: 2.2vw; }
.nieuw-beeld img { width: 75%; }
.nieuw-tekst { display: flex; flex-direction: column; justify-content: center; }
.nieuw-tekst h2 { color: var(--blauw); }
.nieuw-tekst p { margin-top: 10px; }
.knoppen { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.blok-citaat { padding: 6% 12%; }
.citaat { margin: 0 0 40px; }
.citaat-teken { display: block; font: 900 110px/110px var(--serif); margin-bottom: -30px; }
.citaat p { font: 900 38px/46px var(--serif); padding-bottom: 35px; }
.citaat footer { font: 300 22px/33px var(--sans); }

/* ---------- Over ---------- */
.blok-over {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px;
  padding-top: 8vw; padding-bottom: 5vw;
}
.over-beeld { display: flex; align-items: center; justify-content: center; }
.over-beeld img { width: 76%; }
.over-tekst p { margin-top: 17px; }
.over-tekst .knop { margin-top: 42px; padding-top: 6px; padding-bottom: 6px; }
.over-park { height: calc(220px + (100vw - 2 * var(--rand)) * .16); }

/* ---------- Werk ---------- */
.blok-werk-intro { padding: 5vw 12% 5vw; color: #000; }
.blok-werk-intro .binnen-pad { padding-top: 7vw; }
.blok-werk-intro .h2-stijl { color: var(--blauw); }
.blok-werk-intro p { margin-top: 17px; }
.blok-werk-intro .knop { margin-top: 42px; padding-top: 11px; padding-bottom: 11px; }

.blok-raster { padding-bottom: calc(4vw + 30px); }
.raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 20.5px; padding-top: 10px; }
.tegel { color: #000; text-decoration: none; display: block; }
.tegel-beeld { border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 5; transform: translateZ(0); }
.tegel-beeld img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.15,.75,.5,1); }
.tegel:hover .tegel-beeld img, .tegel:focus-visible .tegel-beeld img { transform: scale(1.08); }
.tegel-tekst { padding: 25px 0; }
.tegel-titel { font: 700 1.5vw/1.3 var(--serif); margin: 0; }
.tegel-sub { display: block; margin-top: 10px; font: 300 23px/1.6 var(--sans); max-width: 270px; }

.werk-backdrop { height: 400px; }

.blok-gedichten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding-top: 6vw; padding-bottom: 6vw; }
.gedicht:first-child { padding-right: 40%; }
.gedicht:last-child { padding-right: 20%; }
.gedicht hr { border: 0; height: 1px; background: var(--wit); margin: 50px 0; }
.gedicht h2 { margin-bottom: 10px; }
.gedicht p { margin-top: 25px; }

/* ---------- Boekpagina ---------- */
.boek-kop {
  height: 350px; background: var(--boek); display: flex; align-items: center; justify-content: center;
  padding: var(--kop) 160px 0; text-align: center;
}
.boek-kop h1 { font: 700 44px/54px var(--serif); margin-bottom: 8px; }
.boek-main { background: var(--boek); }
.boek { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.boek-tekst p + p, .boek-tekst ul + p, .boek-tekst p + ul { margin-top: 34.5px; }
.boek-tekst ul { margin: 34.5px 0 0; padding-left: 30px; }
.boek-tekst ul p { margin: 0; }
.boek-nav { margin-top: 40px; padding: 40px var(--rand); background: rgba(0,0,0,.03); display: flex; align-items: center; justify-content: space-between; }
.boek-nav a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 300 23px/50px var(--sans); }
.boek-nav a span { border-bottom: 1px solid currentColor; line-height: 1.4; }
.boek-nav .alle { display: grid; grid-template-columns: repeat(3, 6px); gap: 4px; padding: 10px; }
.boek-nav .alle i { width: 6px; height: 6px; background: #888; }
.boek-nav .leeg { width: 186px; }
.boek-nav svg { width: 10px; height: 16px; }

/* ---------- Footer (global section) ---------- */
.voet {
  background: var(--zwart); color: var(--wit);
  display: grid; grid-template-columns: 1fr 2fr; padding: 10vw 6vw;
}
.voet h2 { font-size: 2.5vw; line-height: 2.75vw; }
.voet a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s; }
.voet a:hover { background-size: 0 1px; background-position: 100% 100%; }
.kaart { height: 400px; background: #ddd; }
.kaart .leaflet-tile-pane { filter: grayscale(1); }
.kaart-speld { color: var(--blauw); }

.naar-boven {
  position: fixed; right: 17px; bottom: 17px; z-index: 40; width: 29px; height: 29px; border-radius: 50%;
  background: rgba(0,0,0,.25); color: var(--wit); display: grid; place-items: center; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.naar-boven.zichtbaar { opacity: 1; pointer-events: auto; }
.naar-boven svg { width: 12px; height: 8px; }

/* ---------- 404 ---------- */
.niet-gevonden { min-height: 60vh; padding: 20vh 12% 10vh; background: var(--boek); text-align: center; }
.niet-gevonden p { margin: 20px 0 40px; }

/* ---------- Tablet en mobiel ---------- */
@media (max-width: 999px) {
  :root { --rand: 6vw; --kop: 74px; }
  .kop { padding: 0 18px; }
  .kop-logo img { width: 50px; height: 50px; }
  .kop-menu { display: none; }
  .menu-knop { display: block; }
  .held { padding: 0 20px 15px; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .tegel-titel { font-size: 21px; }
  .boek-kop { padding: var(--kop) var(--rand) 0; }
}

@media (max-width: 690px) {
  body { font-size: 23px; line-height: 35px; }
  h2, .h2-stijl { font-size: 29px; line-height: 35px; }
  .knop { font-size: 17px; line-height: 26px; }
  .held { height: 575px; height: 68svh; padding: 0 19px 15px; }
  /* Mobiel: foto vult blok 1, zonder parallax-marge, zodat het hoofd niet te groot wordt. */
  .held-beeld { top: 0 !important; height: 100% !important; transform: none !important; }
  .held-sub { font-size: 5vw; }
  .held-naam { padding-bottom: 2%; }
  .blok-kort { padding: 20% 0; }
  .blok-nieuw, .blok-over, .blok-gedichten, .boek { grid-template-columns: 1fr; }
  .blok-nieuw { padding-top: 15vw; padding-bottom: 15vw; gap: 0; }
  .nieuw-beeld { justify-content: center; padding-top: 5vw; transform: translateX(-5%); }
  .nieuw-tekst { padding-top: 26px; }
  .knoppen { flex-direction: column; align-items: flex-start; gap: 17px; }
  .knoppen .knop { padding-top: 16px; padding-bottom: 16px; }
  .blok-citaat { padding: 8% 2%; }
  .citaat p { font-size: 29px; line-height: 35px; }
  .blok-over { padding-top: 115px; padding-bottom: 100px; }
  .over-beeld img { width: 77%; }
  .over-tekst { padding-top: 40px; }
  .blok-werk-intro { padding: 5vw 2% 10vw; }
  .blok-werk-intro .binnen-pad { padding-top: 42px; }
  .raster { gap: 20px 19px; }
  .tegel-titel { font-size: 5.5vw; }
  .tegel-sub { max-width: none; }
  .boek-kop { height: 260px; }
  .boek-kop h1 { font-size: 32px; line-height: 40px; }
  .boek-tekst { padding-top: 30px; }
  .boek-nav { padding: 30px var(--rand); }
  .boek-nav a span { display: none; }
  .boek-nav .leeg { width: 40px; }
  .voet { grid-template-columns: 1fr; padding: 70px 6vw 35px; }
  .voet h2 { font-size: 29px; line-height: 35px; }
  .voet > div:first-child { padding-bottom: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .held-beeld img { animation: none; }
}
