/* Papavertje — dag (B3 + B4) en nacht (B2 + B5)
   Layout: a theme-specific opening page, followed by an endless masonry wall of works.
   Theme: follows the system by default; the three-way switch in the header overrides it.
   Everything visual is CSS: colours (light-dark), theme and layout switch (:has),
   category filter (:has), save state (:checked), marquee and fade-in (CSS animation). */

:root {
  color-scheme: light dark;

  --bg:            light-dark(#FFE6D8, #240B1F);
  --tekst:         light-dark(#3A1030, #FFF0E6);
  --vlak:          light-dark(#FFFFFF, #3A1632);
  --gedempt:       light-dark(#6E4A62, #C9AFBF);
  --accent:        light-dark(#A3245A, #FF7A55);
  --op-accent:     light-dark(#FFFFFF, #240B1F);
  --tweede:        light-dark(#5B3A8C, #E87BB0);
  --op-tweede:     light-dark(#FFFFFF, #240B1F);
  --omgekeerd:     light-dark(#3A1030, #FFF0E6);
  --op-omgekeerd:  light-dark(#FFE6D8, #240B1F);
  --gedempt-omg:   light-dark(#C9AFBF, #6E4A62);
  --pollen:        #F4C542;
  --op-pollen:     #2E0C27;
  --nacht-kaart:   #240B1F;
  --nacht-tekst:   #FFF0E6;
  --nav-vlak:      light-dark(#FFFFFF, transparent);
  --nav-rand:      light-dark(transparent, #FFF0E6);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-groot: 2.25rem;
  --r-kaart: 1.4rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

/* The hidden attribute always wins: main.js uses it on the loader, end message, empty state and badges,
   which have their own display (e.g. .laden is a grid) and would otherwise stay visible. */
[hidden] { display: none !important; }

/* width/height attributes are there to reserve space; the CSS decides the rendered size. */
img { max-width: 100%; height: auto; }

/* Theme: the viewer's explicit choice beats the system setting. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }
:root:has(#thema-licht:checked)  { color-scheme: light; }
:root:has(#thema-donker:checked) { color-scheme: dark; }

/* Layout: day shows the B3 page, night the B2 page. */
.nacht-only { display: none; }
:root:has(#thema-donker:checked) .nacht-only,
:root[data-theme="dark"]:has(#thema-auto:checked) .nacht-only { display: block; }
:root:has(#thema-donker:checked) .dag-only,
:root[data-theme="dark"]:has(#thema-auto:checked) .dag-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):has(#thema-auto:checked) .nacht-only { display: block; }
  :root:not([data-theme="light"]):has(#thema-auto:checked) .dag-only { display: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.03em; line-height: .92; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: .5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.binnen {
  max-width: 85rem;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 48rem) {
  .binnen { padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px)); }
}

/* Buttons and pills */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.5rem; padding-inline: 1.9rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1.125rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease;
}
.knop:hover { transform: translateY(-2px); }
.knop--accent { background: var(--accent); color: var(--op-accent); }
.knop--rand { border-color: currentColor; }
.knop--licht { background: var(--nacht-tekst); color: var(--nacht-kaart); }
.knop--donker { background: var(--nacht-kaart); color: var(--nacht-tekst); }

/* ───────── Header ───────── */
.kop { padding-block: 1.25rem; }
.kop .binnen { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.logo { display: grid; font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -0.04em; text-decoration: none; color: var(--accent); }
.logo__naam { font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--gedempt); margin-top: .3rem; }

.talen { display: flex; gap: .2rem; padding: .3rem; border-radius: 999px; background: var(--vlak); }
.talen a {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: .5rem;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--gedempt);
}
.talen a[aria-current="page"] { background: var(--omgekeerd); color: var(--op-omgekeerd); }
.kop__rechts { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.menu { display: flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; border-radius: 999px; background: var(--nav-vlak); }
.menu a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.1rem;
  border-radius: 999px; border: 2px solid var(--nav-rand); text-decoration: none; font-weight: 600;
}
.menu a.menu__accent { background: var(--omgekeerd); color: var(--op-omgekeerd); border-color: var(--omgekeerd); }

/* Theme switch: three radio buttons, no JavaScript needed */
.thema { border: 0; margin: 0; padding: .3rem; display: flex; gap: .2rem; border-radius: 999px; background: var(--vlak); }
.thema label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; color: var(--gedempt);
}
.thema input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.thema label:has(input:checked) { background: var(--omgekeerd); color: var(--op-omgekeerd); }
.thema label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.thema svg { width: 1.25rem; height: 1.25rem; }

/* ───────── Day page (B3) ───────── */
.dag-held .binnen { padding-block: 2rem 5rem; display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.dag-held__tekst { flex: 1 1 30rem; min-width: 0; }
.dag-held h1 { font-weight: 800; font-size: clamp(3.75rem, 9vw, 8.75rem); line-height: .86; letter-spacing: -0.05em; }
.dag-held h1 span { color: var(--accent); }
.dag-held__intro { margin-top: 1.75rem; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; max-width: 32rem; }
.knoppen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.dag-held__beeld { flex: 1 1 26rem; min-width: 0; position: relative; }
.dag-held__beeld img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; }
.sticker {
  position: absolute; right: .5rem; bottom: 2.5rem; width: 8.25rem; height: 8.25rem; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: var(--pollen); color: var(--op-pollen); font-weight: 800; font-size: 1.1rem; line-height: 1.1; rotate: 10deg;
}

.sectiekop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: 1.75rem; }
.sectiekop h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; }
.sectiekop a { font-weight: 600; font-size: 1.125rem; }

.vers { padding-block: 0 6rem; }
.vers__rij {
  display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.vers__kaart { flex: 0 0 min(17.5rem, 78vw); scroll-snap-align: start; background: var(--vlak); border-radius: 1.75rem; padding: .75rem; }
.vers__kaart img { width: 100%; height: 18.75rem; object-fit: cover; border-radius: 1.25rem; }
.vers__kaart p { display: flex; justify-content: space-between; gap: .5rem; padding: .9rem .5rem .4rem; }
.vers__kaart strong { font-weight: 600; }

.vdm { padding-block: 0 6rem; }
.vdm__kaart { background: var(--vlak); border-radius: 2.5rem; padding: 2rem; display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.vdm__kaart > a { flex: 1 1 26rem; min-width: 0; border-radius: 1.75rem; }
.vdm__kaart img { display: block; width: 100%; max-height: 35rem; aspect-ratio: 1; object-fit: cover; border-radius: 1.75rem; }
.vdm__spec { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.vdm__tekst { flex: 1 1 26rem; min-width: 0; display: grid; gap: 1.25rem; justify-items: start; }
.label { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: var(--accent); color: var(--op-accent); font-weight: 600; }
.vdm h2 { font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; }
.vdm__verhaal { font-size: 1.25rem; max-width: 34rem; }
.vdm__spec { color: var(--gedempt); }

.blokken { padding-block: 0 2.5rem; }
.blokken .binnen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.25rem; }
.blok {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 20rem;
  padding: 2.5rem; border-radius: 2.5rem; text-decoration: none;
}
.blok strong { font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: .9; }
.blok--accent { background: var(--accent); color: var(--op-accent); }
.blok--tweede { background: var(--tweede); color: var(--op-tweede); }

/* ───────── Night page (B2) ───────── */
.nacht-held { padding-top: .5rem; }
.nacht-held__kader { position: relative; border-radius: var(--r-groot); overflow: hidden; min-height: clamp(30rem, 70vh, 40rem); display: flex; align-items: flex-end; }
.nacht-held__kader > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nacht-held__kaart {
  position: relative; margin: clamp(1rem, 3vw, 2rem); max-width: 39rem;
  background: var(--nacht-kaart); color: var(--nacht-tekst); border-radius: 1.75rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1rem; justify-items: start;
}
.nacht-held__kaart h1 { font-weight: 800; font-size: clamp(3rem, 6vw, 5.25rem); line-height: .9; letter-spacing: -0.04em; }
.nacht-held__kaart p { font-size: 1.25rem; line-height: 1.4; color: #EBD3DF; }
.badge { padding: .4rem .9rem; border-radius: 999px; background: var(--pollen); color: var(--op-pollen); font-weight: 600; rotate: -4deg; }

.looptekst { margin-top: 3.5rem; background: var(--accent); color: var(--op-accent); overflow: hidden; }
.looptekst__spoor { display: flex; width: max-content; animation: lopen 40s linear infinite; }
.looptekst p { padding: 1.1rem 1rem; white-space: nowrap; font-size: 1.375rem; font-weight: 600; }
@keyframes lopen { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .looptekst__spoor { animation: none; } }

.gezichten { padding-block: 5rem 2.5rem; }
.gezichten h2 { font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; margin-bottom: 2rem; }
.drie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1.25rem; }
.drie figure { margin: 0; background: var(--vlak); border-radius: 1.75rem; padding: .9rem; }
.drie figure:nth-child(2) { translate: 0 2.5rem; }
@media (max-width: 40rem) { .drie figure:nth-child(2) { translate: none; } }
.drie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.1rem; }
.drie figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .9rem .5rem .4rem; }
.drie figcaption strong { font-weight: 600; }

.tegels { padding-block: 2.5rem 6rem; }
.tegels .binnen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr)); gap: 1.25rem; }
.tegel { position: relative; min-height: 23.75rem; border-radius: 1.75rem; overflow: hidden; display: flex; align-items: flex-end; padding: 1.5rem; text-decoration: none; background: var(--vlak); }
.tegel--breed { grid-column: span 2; }
@media (max-width: 40rem) { .tegel--breed { grid-column: auto; } }
.tegel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .5s ease; }
.tegel:hover img { scale: 1.04; }
.tegel span { position: relative; padding: .75rem 1.25rem; border-radius: 999px; background: var(--nacht-kaart); color: var(--nacht-tekst); font-weight: 800; font-size: 1.75rem; }

.citaatband { background: var(--pollen); color: var(--op-pollen); }
.citaatband .binnen { padding-block: 6rem; display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.citaatband h2 { flex: 1 1 32rem; min-width: 0; font-size: clamp(3rem, 6vw, 6rem); font-weight: 800; letter-spacing: -0.04em; }
.citaatband__tekst { flex: 1 1 22rem; min-width: 0; display: grid; gap: 1.75rem; justify-items: start; font-size: 1.25rem; }

/* ───────── The wall (B4 by day, B5 by night) ───────── */
.wand { padding-block: 3.5rem 0; }
.wand__kop { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.wand__kop h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
.wand__tools { flex: 1 1 22rem; max-width: 40rem; display: flex; gap: .5rem; }
.zoek { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding-inline: 1.25rem; border-radius: 999px; background: var(--vlak); color: var(--gedempt); }
.zoek:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.zoek input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--tekst); }
.zoek input::placeholder { color: var(--gedempt); }
.bewaard { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 3.25rem; padding-inline: 1.25rem; border-radius: 999px; background: var(--vlak); font-weight: 600; font-variant-numeric: tabular-nums; }

.filters { border: 0; margin: 0; padding: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filters label { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.1rem; border-radius: 999px; background: var(--vlak); font-weight: 600; cursor: pointer; }
.filters input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.filters label:has(input:checked) { background: var(--omgekeerd); color: var(--op-omgekeerd); }
.filters label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* CSS-only category filter */
:root:not(.js-filter):has(#f-bloemen:checked)      .pin:not([data-cat="bloemen"]),
:root:not(.js-filter):has(#f-portretten:checked)   .pin:not([data-cat="portretten"]),
:root:not(.js-filter):has(#f-landschappen:checked) .pin:not([data-cat="landschappen"]),
:root:not(.js-filter):has(#f-stillevens:checked)   .pin:not([data-cat="stillevens"]),
:root:not(.js-filter):has(#f-dieren:checked)       .pin:not([data-cat="dieren"]),
:root:not(.js-filter):has(#f-keramiek:checked)     .pin:not([data-cat="keramiek"]),
.pin.uit { display: none; }

/* Animated filter (View Transitions). main.js adds .js-filter only where the browser supports it,
   and then hides pins with .uit inside a transition: leaving works blur away, the others glide to
   their new place, arriving works blur in. Without support it is the instant CSS filter above. */
.js-filter .pin { view-transition-class: pin; }
::view-transition-group(*.pin) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(*.pin):only-child { animation: pin-weg .45s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(*.pin):only-child { animation: pin-terug .65s .2s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes pin-weg { to { opacity: 0; filter: blur(14px); scale: .9; } }
@keyframes pin-terug { from { opacity: 0; filter: blur(14px); scale: .9; } }

/* Masonry: every loaded batch is its own column block, so earlier works never shift. */
.strook { columns: 15rem; column-gap: 1rem; }
.pin { break-inside: avoid; margin: 0 0 1.4rem; display: grid; gap: .5rem; }

.pin__beeld { position: relative; }
.pin__beeld img { width: 100%; height: auto; aspect-ratio: var(--verhouding, auto); object-fit: cover; border-radius: var(--r-kaart); background: var(--vlak); }
/* Phones: the wall is one column there, so tall works would fill the screen. Show them as squares instead. */
@media (max-width: 33rem) { .pin__beeld img { aspect-ratio: 1; } }
.pin__bewaar {
  position: absolute; top: .65rem; right: .65rem;
  display: inline-flex; align-items: center; min-height: 2.5rem; padding-inline: .9rem; border-radius: 999px;
  background: var(--accent); color: var(--op-accent); font-weight: 600; font-size: .875rem; cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.pin:hover .pin__bewaar, .pin__beeld:focus-within .pin__bewaar, .pin__bewaar-input:checked + .pin__bewaar { opacity: 1; }
@media (hover: none) { .pin__bewaar { opacity: 1; } }
.pin__bewaar .ja { display: none; }
.pin__bewaar-input:checked + .pin__bewaar { background: var(--omgekeerd); color: var(--op-omgekeerd); }
.pin__bewaar-input:checked + .pin__bewaar .ja { display: inline; }
.pin__bewaar-input:checked + .pin__bewaar .nee { display: none; }
.pin__bewaar-input:focus-visible + .pin__bewaar { opacity: 1; outline: 3px solid var(--tekst); outline-offset: 2px; }

.pin__info { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-inline: .4rem; font-weight: 600; }
.pin__reserveer { flex: 0 0 auto; font-weight: 600; font-size: .9rem; color: var(--accent); text-underline-offset: .2em; }
.pin__verkocht, .status-verkocht {
  display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 999px;
  background: var(--pollen); color: var(--op-pollen); font-weight: 700; font-size: .85rem;
}
.pin__verkocht { position: absolute; left: .65rem; bottom: .65rem; rotate: -4deg; }
.vers__kaart a, .drie figcaption a { font-weight: 600; color: var(--accent); }
.tekstpin__kop { font-size: 1.4rem; }
.pin__meta { padding-inline: .4rem; margin-top: -.35rem; font-size: .875rem; color: var(--gedempt); }

.tekstpin { border-radius: var(--r-kaart); padding: 1.6rem 1.5rem; display: grid; gap: .8rem; justify-items: start; text-decoration: none; }
.tekstpin--citaat { background: var(--pollen); color: var(--op-pollen); }
.tekstpin--citaat p { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.tekstpin--woord { background: var(--omgekeerd); color: var(--op-omgekeerd); }
.tekstpin--woord small { color: var(--gedempt-omg); font-size: 1rem; }
.tekstpin--accent { background: var(--accent); color: var(--op-accent); }
.tekstpin--tweede { background: var(--tweede); color: var(--op-tweede); }
.tekstpin strong { font-size: 2.35rem; font-weight: 800; line-height: .9; letter-spacing: -0.03em; }

/* Gentle fade-in as pins scroll into view; no JavaScript, and fully visible at rest. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pin { animation: opduiken linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes opduiken { from { opacity: .35; translate: 0 1.5rem; } }

.laden { display: grid; gap: 1rem; justify-items: center; padding-block: 1.5rem 3rem; color: var(--gedempt); font-weight: 600; }
.laden__blokken { display: flex; gap: 1rem; width: 100%; }
.laden__blokken span { flex: 1; border-radius: var(--r-kaart); background: var(--vlak); animation: pulseren 1.4s ease-in-out infinite alternate; }
.laden__blokken span:nth-child(1) { height: 13rem; } .laden__blokken span:nth-child(2) { height: 18rem; }
.laden__blokken span:nth-child(3) { height: 11rem; } .laden__blokken span:nth-child(4) { height: 16rem; }
@keyframes pulseren { to { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .laden__blokken span { animation: none; } }

.einde {
  margin: 2rem auto 0; max-width: 45rem; padding: 2.5rem; border-radius: 2rem; text-align: center;
  background: var(--omgekeerd); color: var(--op-omgekeerd); display: grid; gap: 1rem; justify-items: center;
}
.einde h3 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; }
.einde small { color: var(--gedempt-omg); font-weight: 600; font-size: .95rem; }
.einde .knop { background: var(--accent); color: var(--op-accent); }
.leeg { padding-block: 2rem; color: var(--gedempt); text-align: center; }

/* ───────── Contact ───────── */
.contact { padding-block: 5rem 1rem; }
.contact .binnen { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.contact__intro { flex: 1 1 20rem; min-width: 0; display: grid; gap: 1.25rem; align-content: start; }
.contact__intro h2 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; }
.contact__intro > p { font-size: 1.25rem; max-width: 30rem; }
.contact__sociaal { display: grid; gap: .75rem; margin-top: .5rem; }
.contact__kleintje { color: var(--gedempt); font-weight: 600; }

.formulier {
  flex: 2 1 32rem; min-width: 0; background: var(--vlak); border-radius: 2rem; padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.25rem;
}
.veld { display: grid; gap: .4rem; min-width: 0; }
.veld--breed { grid-column: 1 / -1; }
.veld label { font-weight: 600; }
.veld small { color: var(--gedempt); }
.veld input, .veld select, .veld textarea {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border-radius: 1rem;
  border: 2px solid light-dark(#EBCFC0, #5A2E52); background: var(--bg); color: var(--tekst); font: inherit;
}
.veld textarea { resize: vertical; min-height: 8rem; }
.veld input:focus-visible, .veld select:focus-visible, .veld textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.veld input:user-invalid, .veld textarea:user-invalid { border-color: var(--accent); }
/* The "which work" field only matters when reserving. */
.formulier:not(:has(#veld-onderwerp option[value="reservatie"]:checked)) .veld--werk { display: none; }
.formulier__voet { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.formulier__status { flex: 1 1 16rem; padding: .9rem 1.1rem; border-radius: 1rem; background: var(--pollen); color: var(--op-pollen); font-weight: 600; }

/* ───────── Footer ───────── */
.voet .binnen { padding-block: 4.5rem; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-end; }
.voet__groet { font-size: clamp(4rem, 9vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .85; color: var(--accent); }
.voet__info { display: grid; gap: 1.25rem; }
.voet__klein { color: var(--gedempt); font-size: .9rem; }
.voet address { font-style: normal; line-height: 1.8; }
.sociaal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sociaal a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.1rem;
  border-radius: 999px; border: 2px solid currentColor; text-decoration: none; font-weight: 600;
}
.sociaal a:hover { background: var(--accent); border-color: var(--accent); color: var(--op-accent); }
/* Links that still point to "#" are placeholders: visibly marked so they are not forgotten. */
.sociaal a[href="#"] { border-style: dashed; }

/* ── Work page (/werk/<id>/, /fr/oeuvre/<id>/, /en/work/<id>/), generated by tools/maak_werkpaginas.py ── */
.werk .binnen { padding-block: 1rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.werk__beeld { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; background: var(--vlak); border-radius: var(--r-groot); padding: clamp(.75rem, 3vw, 2rem); }
.werk__beeld img { width: auto; max-width: 100%; height: auto; max-height: min(78vh, 1600px); border-radius: var(--r-kaart); }
.werk__info { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.werk__info h1 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.werk__meta { margin-top: .5rem; color: var(--gedempt); font-weight: 600; }
.werk__status { font-weight: 600; color: var(--accent); }
.werk__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.werk__nav a { display: grid; align-content: center; gap: .2rem; min-height: 2.75rem; padding: 1rem 1.25rem; border-radius: var(--r-kaart); background: var(--vlak); color: inherit; text-decoration: none; }
.werk__nav a[rel="next"] { text-align: right; }
.werk__nav small { color: var(--gedempt); font-weight: 600; font-size: .85rem; }
.werk__nav span { font-weight: 700; }
.werk__nav a:hover span, .werk__nav a:focus-visible span { color: var(--accent); }

/* Thumbnails link to their work page. */
.pin__link, .vers__kaart > a, .vdm__kaart > a, .drie figure > a { display: block; cursor: zoom-in; border-radius: inherit; }

/* A soft cross-fade between pages, where the browser supports it. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Work page: see-through arrows left and right of the photo, and a keyboard hint for mouse users. */
.werk__beeld { position: relative; }
.werk__pijl {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 3.75rem; height: 3.75rem; display: grid; place-items: center; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--tekst);
  border: 1px solid color-mix(in srgb, var(--tekst) 22%, transparent);
  box-shadow: 0 .4rem 1.2rem color-mix(in srgb, #000 22%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: .9; transition: opacity .25s ease, background-color .25s ease, color .25s ease, scale .25s ease;
}
.werk__pijl--vorige { left: clamp(.35rem, 1.5vw, 1.25rem); }
.werk__pijl--volgende { right: clamp(.35rem, 1.5vw, 1.25rem); }
.werk__pijl svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.werk__beeld:hover .werk__pijl { opacity: 1; }
.werk__pijl:hover, .werk__pijl:focus-visible { opacity: 1; scale: 1.08; background: var(--accent); color: var(--op-accent); border-color: transparent; }
.werk__pijl:focus-visible { outline: 3px solid var(--tekst); outline-offset: 3px; }
.werk__tip { display: none; text-align: center; color: var(--gedempt); font-size: .9rem; font-weight: 600; }
.werk__tip kbd { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .4rem; border-radius: .5rem; background: var(--vlak); color: var(--tekst); font: inherit; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tekst) 18%, transparent); }
@media (hover: hover) and (pointer: fine) { .werk__tip { display: block; } }
