/* loremechelaere.com · speels papier */

:root {
  --papier: #f6efe3;
  --papier-2: #eee3cf;
  --inkt: #3f3c52;
  --inkt-zacht: #6a6780;
  --kroko: #2e8b57;
  --munt: #cdeadb;
  --lila: #cdbdf2;
  --tomaat: #f0968b;
  --roze: #f5b3c3;
  --mosterd: #f5d27e;
  --lucht: #b4daf5;
  --wit: #fffdf8;
  --schaduw: 4px 6px 16px rgba(36, 33, 61, .14);
  --schaduw-hard: 3px 4px 0 rgba(36, 33, 61, .16);
  --breed: 1180px;
  --rand: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background-color: var(--papier);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .29  0 0 0 0 .18  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--inkt);
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tomaat); }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.45rem; }

.hand { font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 700; }

.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 var(--rand); }

:focus-visible { outline: 3px solid var(--inkt); outline-offset: 3px; border-radius: 6px; }

.overslaan {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--inkt); color: var(--papier); padding: 10px 16px; border-radius: 999px;
}
.overslaan:focus { top: 12px; }

/* ---------- kop ---------- */

.kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.merk {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.2rem;
}
.merk img { height: 52px; width: auto; mix-blend-mode: multiply; }
.kop nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.kop nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.kop nav a:hover { background: var(--munt); }
.kop nav a[aria-current="page"] { background: var(--roze); }
.kop nav .taal { border: 2px solid var(--inkt); padding: 5px 12px; font-weight: 700; }

/* ---------- geplakt papier ---------- */

.geplakt {
  position: relative; background: var(--wit); padding: 10px 10px 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), var(--schaduw);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s ease;
}
.geplakt.tape::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(243, 189, 79, .72);
  clip-path: polygon(0 10%, 4% 0, 9% 12%, 14% 0, 100% 6%, 96% 50%, 100% 92%, 92% 100%, 6% 94%, 0 100%, 3% 52%);
}
.geplakt.tape-lila::before { background: rgba(205, 189, 242, .85); }
.geplakt.tape-munt::before { background: rgba(205, 234, 219, .9); }
.geplakt.tape-roze::before { background: rgba(245, 179, 195, .85); }
.geplakt figcaption { font-size: .85rem; color: var(--inkt-zacht); padding: 8px 2px 0; }

.strook {
  display: inline-block; background: var(--mosterd); color: var(--inkt);
  padding: .1em .65em .15em; transform: rotate(-2deg);
  box-shadow: var(--schaduw-hard);
  clip-path: polygon(0 8%, 3% 0, 50% 5%, 97% 0, 100% 10%, 99% 90%, 100% 100%, 60% 95%, 2% 100%, 0 90%);
}

/* ---------- knoppen ---------- */

.knoppen { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.knop {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--roze); color: var(--inkt); text-decoration: none; font-weight: 700; border: 2px solid var(--inkt);
  box-shadow: 3px 4px 0 var(--inkt); transition: transform .15s ease, box-shadow .15s ease;
}
.knop:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--inkt); }
.knop.licht { background: var(--wit); box-shadow: 3px 4px 0 var(--lila); }
.knop.licht:hover { box-shadow: 5px 6px 0 var(--lila); }

/* ---------- held ---------- */

.held { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding-block: clamp(20px, 5vw, 64px) clamp(48px, 8vw, 96px); }
.held h1 { font-size: clamp(3.1rem, 9vw, 6.6rem); font-weight: 800; margin-bottom: .2em; }
.held .strook { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.held .intro { font-size: clamp(1.12rem, 2vw, 1.3rem); max-width: 36ch; margin-top: 26px; }

.held-beeld { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.held-beeld .groot { position: relative; z-index: 1; --r: 2deg; }

/* ---------- gekleurde stroken met scheurrand ---------- */

.scheur { position: relative; padding: clamp(56px, 8vw, 96px) 0; margin: 28px 0; }
.scheur::before, .scheur::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px; background: inherit;
  -webkit-mask: var(--rand-svg) repeat-x; mask: var(--rand-svg) repeat-x;
  -webkit-mask-size: 120px 18px; mask-size: 120px 18px;
}
.scheur::before { top: -17px; }
.scheur::after { bottom: -17px; transform: scaleY(-1); }
.scheur {
  --rand-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'><path d='M0 18 L0 10 L7 6 L13 11 L21 4 L28 9 L36 2 L44 8 L51 5 L58 12 L66 3 L74 9 L81 6 L89 11 L97 2 L104 8 L112 4 L120 10 L120 18 Z'/></svg>");
}
.munt { background: var(--munt); }
.lila { background: var(--lila); }

/* ---------- uitgelicht ---------- */

.uitgelicht { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.uitgelicht .poster { position: relative; max-width: 380px; width: 100%; justify-self: center; --r: -2.5deg; }
.bovenregel { font: 700 .82rem/1 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--inkt); margin-bottom: 14px; }

/* ---------- werk ---------- */

.sectie { padding-block: clamp(48px, 8vw, 96px); }
.sectiekop { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sectiekop h2 { margin: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--inkt); background: transparent; color: var(--inkt); border-radius: 999px;
  padding: 7px 16px; font: 500 .98rem "DM Sans", sans-serif; cursor: pointer;
}
.chip:hover { background: var(--munt); }
.chip[aria-pressed="true"] { background: var(--roze); }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px); }
.kaart { position: relative; display: block; text-decoration: none; color: inherit; }
.kaart:nth-child(4n+1) { --r: -1.6deg; }
.kaart:nth-child(4n+2) { --r: 1.2deg; }
.kaart:nth-child(4n+3) { --r: -.6deg; }
.kaart:nth-child(4n+4) { --r: 1.8deg; }
.kaart .geplakt, .kaart .notitie { transform: rotate(var(--r)); }
a.kaart:hover .geplakt, a.kaart:hover .notitie { transform: rotate(0deg) translateY(-5px); }
.kaart .geplakt img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.kaart .geplakt img.passend { aspect-ratio: auto; }
.kaart h3 { margin: 18px 0 4px; }
.kaart .kaartlabel { margin: 18px 0 -8px; }
a.kaart h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
a.kaart:hover h3 { text-decoration-color: var(--tomaat); }
.meta { font-size: .9rem; color: var(--inkt-zacht); }
.kaart .kort { font-size: .98rem; margin: 8px 0 0; }
.kaart .verder { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .95rem; }
.kaart[hidden] { display: none; }

.pijl { display: inline-block; width: 1.5em; height: auto; margin-left: .35em; vertical-align: -.05em; fill: currentColor; transition: transform .2s ease; }
.pijl.naar-links { margin: 0 .35em 0 0; transform: scaleX(-1); }
.pijl.schuin { transform: rotate(-35deg); }
a:hover > .pijl:not(.naar-links):not(.schuin), a:hover .verder .pijl:not(.schuin) { transform: translateX(4px); }

.notitie {
  position: relative; background: var(--c, var(--munt)); padding: 22px 22px 20px;
  box-shadow: var(--schaduw); transition: transform .25s ease;
}
.notitie h3 { margin-top: 0; }
.notitie .bovenregel { margin-bottom: 12px; }
.notitie .krabbel { float: right; width: 72px; margin: -10px -8px 4px 10px; }

/* ---------- over (kort) ---------- */

.over-kort { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.over-kort .portret { max-width: 320px; width: 100%; justify-self: center; --r: -2deg; }
.citaat { font: italic 500 clamp(1.45rem, 2.6vw, 1.85rem)/1.25 "Fraunces", Georgia, serif; color: var(--inkt); margin: 10px 0 22px; max-width: 24ch; }
.citaat img { width: 50px; margin-bottom: 8px; filter: brightness(.55) saturate(1.5); }

/* ---------- contact ---------- */

.contact {
  position: relative; background: var(--mosterd); color: var(--inkt);
  padding: clamp(36px, 6vw, 68px) var(--rand); text-align: center; margin: clamp(32px, 6vw, 72px) 0;
  box-shadow: var(--schaduw); transform: rotate(-.5deg);
}
.contact .wuif { width: clamp(84px, 12vw, 120px); margin: 0 auto 10px; transform-origin: 60% 85%; mix-blend-mode: multiply; }
.contact:hover .wuif { animation: wuif .8s ease-in-out 2; }
@keyframes wuif { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-12deg); } 70% { transform: rotate(10deg); } }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.contact p { max-width: 44ch; margin: 0 auto 8px; }
.contact .knoppen { justify-content: center; }
.contact .knop { background: var(--wit); }
.contact .sociaal { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-weight: 500; }

/* ---------- voet ---------- */

.voet { padding: 28px 0 48px; font-size: .92rem; color: var(--inkt-zacht); }
.voet .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }


/* ---------- detailpagina ---------- */

.terug { display: inline-block; margin: 8px 0 24px; font-weight: 700; text-decoration: none; }
.terug:hover { text-decoration: underline; }
.detail-kop { padding: clamp(12px, 3vw, 32px) 0 clamp(28px, 5vw, 48px); max-width: 860px; }
.detail-kop h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 800; }
.detail-kop .orig { display: block; font-size: .42em; font-weight: 500; font-style: italic; margin-top: .3em; color: var(--inkt-zacht); }
.detail-kop .lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 40ch; }
.detail-kop .meta { font-size: 1rem; margin-bottom: 14px; }
.detail-kop .meta .strook { font-size: 1.5rem; margin-right: 10px; }

.tekst { max-width: 68ch; }
.tekst h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-top: 1.4em; }

.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  background: var(--inkt) center / cover no-repeat; overflow: hidden;
}
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(36, 33, 61, .45)); }
.video .speel {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 50%; background: var(--tomaat); box-shadow: var(--schaduw-hard); display: grid; place-items: center; transition: transform .2s;
}
.video:hover .speel { transform: translate(-50%, -50%) rotate(0deg) scale(1.06); }
.video .speel::before { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--wit); }
.video .titel { position: absolute; z-index: 1; left: 16px; bottom: 12px; right: 16px; color: var(--wit); font-weight: 700; text-align: left; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-noot { font-size: .82rem; color: var(--inkt-zacht); margin-top: 8px; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; margin: 8px 0 24px; }
.videos .geplakt:nth-child(odd) { --r: -1deg; }
.videos .geplakt:nth-child(even) { --r: 1deg; }
.video-groot { max-width: 920px; margin: 0 0 clamp(36px, 6vw, 64px); --r: -.8deg; }

.galerij { columns: 3 240px; column-gap: 28px; margin: clamp(32px, 5vw, 56px) 0; }
.galerij .geplakt { break-inside: avoid; margin: 0 0 30px; }
.galerij .geplakt:nth-child(3n+1) { --r: -1.4deg; }
.galerij .geplakt:nth-child(3n+2) { --r: 1deg; }
.galerij .geplakt:nth-child(3n) { --r: -.4deg; }

.twee { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.kader { background: var(--wit); padding: 26px 26px 20px; box-shadow: var(--schaduw); transform: rotate(.6deg); }
.kader h2 { font-size: 1.6rem; margin-top: 0; }
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .97rem; }
.credits dt { font-weight: 700; }
.credits dd { margin: 0; }

.prijzen { list-style: none; padding: 0; margin: 0 0 1em; }
.prijzen li { position: relative; padding: 10px 0 10px 34px; border-top: 1.5px dashed rgba(36, 33, 61, .22); }
.prijzen li::before { content: "★"; position: absolute; left: 4px; top: 9px; color: var(--tomaat); font-size: 1.15rem; }
.prijzen .wanneer { display: block; font-size: .85rem; color: var(--inkt-zacht); }

details { border-top: 2px solid var(--inkt); padding: 14px 0; }
details:last-of-type { border-bottom: 2px solid var(--inkt); }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details ul { margin: 12px 0 4px; padding-left: 20px; }
details h3 { font-size: 1.1rem; margin: 18px 0 4px; }

.links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.links a { font-weight: 700; }

.bladeren { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 2px solid var(--inkt); padding-top: 22px; margin-top: clamp(40px, 7vw, 80px); }
.bladeren a { text-decoration: none; font-weight: 700; }
.bladeren a span { display: block; font-weight: 400; font-size: .85rem; color: var(--inkt-zacht); }
.bladeren a:last-child { text-align: right; margin-left: auto; }

/* ---------- over-pagina ---------- */

.over-held { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding: clamp(12px, 3vw, 32px) 0 clamp(40px, 6vw, 72px); }
.over-held h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; }
.over-held .portret { max-width: 360px; width: 100%; justify-self: center; margin-top: 24px; --r: 2deg; }
.over-held .tekst p:first-of-type { font-size: 1.22rem; }

.cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px clamp(32px, 6vw, 72px); }
.cv h2 { font-size: 1.8rem; }
.cv ol { list-style: none; margin: 0 0 24px; padding: 0; }
.cv li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 14px; padding: 11px 0; border-top: 1.5px dashed rgba(36, 33, 61, .22); font-size: .98rem; }
.cv li .jaar { font-weight: 700; }

/* ---------- 404 ---------- */

.niet-gevonden { text-align: center; padding-block: clamp(48px, 10vw, 120px); }
.niet-gevonden img { width: 180px; margin: 0 auto 24px; }

/* ---------- smal scherm ---------- */

@media (max-width: 820px) {
  .held, .uitgelicht, .over-kort, .twee, .over-held { grid-template-columns: 1fr; }
  .held-beeld { max-width: 340px; }
  .uitgelicht .poster { max-width: 300px; }
  .over-held .portret { order: -1; max-width: 260px; margin-top: 0; }
  .over-kort .portret { max-width: 260px; }
}

@media (max-width: 520px) {
  .kop { justify-content: center; }
  .kop nav a { padding: 6px 10px; }
  .credits { grid-template-columns: 1fr; gap: 0; }
  .credits dd { margin-bottom: 8px; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
  .bladeren a:last-child { text-align: left; margin-left: 0; }
}

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

@media print {
  body { background: #fff; }
  .kop nav, .filters, .contact .knoppen, .video { display: none; }
}
