/*
 * Richting 3: tentoonstelling. Wit als een zaal, zwarte tekst, dunne lijnen. De werken hangen groot en verspringend
 * onder elkaar in hun eigen verhouding, met een klein bordje ernaast. Geen kaders, schaduwen of animaties.
 * Lettertype Schibsted Grotesk komt in de schets van Google Fonts; de echte site host het zelf (ADR-002 van het CMS).
 */
@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --bg: #ffffff;
  --inkt: #161616;
  --tekst: #3b3b3b;
  --grijs: #6b6b6b;
  --lijn: #e3e3e0;
  --vlak: #f2f2f0;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --rand: 48px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--inkt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--inkt); outline-offset: 3px; }

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

/* Kop: naam links, menu rechts, gewoon tekst */
.kop {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--rand) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.woordmerk { display: flex; align-items: baseline; gap: 16px; text-decoration: none; }
.naam { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.tagline { font-size: 0.875rem; color: var(--grijs); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.menu a {
  display: block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--tekst);
}
.menu a:hover { color: var(--inkt); border-bottom-color: var(--lijn); }
.menu a[aria-current="page"] { color: var(--inkt); border-bottom-color: var(--inkt); }

/* Introductie */
.intro { padding: 88px 0 80px; }
.intro h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.intro p { margin: 0; max-width: 38rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.6; color: var(--tekst); }
.pagina-leeg { min-height: 60vh; }

.kleine-kop { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; }
.kleine-kop span { margin-left: 6px; font-weight: 400; color: var(--grijs); }

/* Kunst: de zaal links, de titellijst rechts */
.werkveld {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  grid-template-areas: "wall titels";
  column-gap: clamp(40px, 5vw, 88px);
  align-items: start;
  padding-bottom: 140px;
}
.wall { grid-area: wall; }
.titels {
  grid-area: titels;
  position: sticky;
  top: 32px;
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding-left: 14px;
  scrollbar-width: none;
}
.titels::-webkit-scrollbar { display: none; }
.index { list-style: none; margin: 0; padding: 0; }
.index li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; font-size: 0.875rem; line-height: 1.3; }
.index li.nieuw-jaar { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--lijn); }
.index li.nieuw-jaar:first-child { margin-top: 0; }
.ix-jaar { padding: 3px 0; font-size: 0.8125rem; color: var(--grijs); font-variant-numeric: tabular-nums; }
.index a { position: relative; padding: 3px 0; color: var(--grijs); text-decoration: none; }
.index a:hover { color: var(--inkt); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.index a.is-hier { color: var(--inkt); }
.index a.is-hier::before {
  content: "";
  position: absolute;
  left: -62px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--inkt);
}
.weergave { display: none; }

/* De zaal: rijen met een werk alleen of twee werken naast elkaar */
.zaal { container-type: inline-size; }
.rij { display: flex; align-items: flex-start; }
.rij + .rij { margin-top: clamp(64px, 12cqi, 150px); }
.stuk {
  position: relative;
  flex: none;
  width: min(calc(var(--b) * 1%), calc(80vh * var(--r)));
  margin: 0 0 0 calc(var(--x) * 1%);
}
.rij-duo .stuk + .stuk { margin-left: auto; margin-right: calc(var(--x) * 1%); margin-top: clamp(48px, 10cqi, 130px); }
.rij-duo.omgekeerd .stuk:first-child { margin-top: clamp(48px, 10cqi, 130px); }
.rij-duo.omgekeerd .stuk + .stuk { margin-top: 0; }
.doek { display: block; width: 100%; padding: 0; border: 0; background: none; }
button.doek { cursor: zoom-in; }
.doek img { width: 100%; height: auto; aspect-ratio: var(--r); background: var(--vlak); }

.bordje { display: flex; flex-direction: column; margin-top: 12px; font-size: 0.8125rem; line-height: 1.4; color: var(--grijs); }
.bordje a { color: var(--inkt); text-decoration: none; }
.b-titel { font-size: 0.9375rem; font-style: italic; }
.stuk:hover .b-titel, .bordje a:focus-visible .b-titel { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.stuk[data-bordje="rechts"] .bordje { position: absolute; bottom: 0; left: calc(100% + 24px); width: 180px; margin: 0; }
.stuk[data-bordje="links"] .bordje { position: absolute; bottom: 0; right: calc(100% + 24px); width: 180px; margin: 0; align-items: flex-end; text-align: right; }

@container (max-width: 860px) {
  .stuk[data-bordje] .bordje { position: static; width: auto; margin-top: 12px; align-items: flex-start; text-align: left; }
}
@container (max-width: 560px) {
  .rij + .rij { margin-top: 56px; }
  .stuk { width: min(calc(var(--bm) * 1%), calc(72vh * var(--r))); margin-left: calc(var(--xm) * 1%); }
  .rij-duo { flex-direction: column; }
  .rij-duo .stuk, .rij-duo.omgekeerd .stuk:first-child { margin: 0; }
  .rij-duo .stuk + .stuk, .rij-duo.omgekeerd .stuk + .stuk { margin: 40px 0 0 auto; }
}

/* Werkpagina: een eigen zaal */
.terug { display: inline-block; margin-top: 56px; font-size: 0.875rem; color: var(--grijs); text-decoration: none; }
.terug:hover { color: var(--inkt); }
.werk { padding: 28px 0 0; }
.werk-kop { max-width: 60rem; margin-bottom: 44px; }
.werk-kop h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.werk-ondertitel { margin: 14px 0 0; font-size: 1.25rem; color: var(--tekst); }
.werk-jaar { margin: 14px 0 0; color: var(--grijs); font-variant-numeric: tabular-nums; }
.held { position: relative; margin: 0; width: min(100%, calc(84vh * var(--r))); }
.held[data-i] { cursor: zoom-in; }
.held img { width: 100%; height: auto; aspect-ratio: var(--r); background: var(--vlak); }
.film {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--inkt);
  color: #fff;
  font-size: 0.875rem;
}
.film i { font-style: normal; font-size: 0.75rem; }

.zaaltekst {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 80px;
  align-items: start;
  margin-top: 64px;
}
.zaaltekst.alleen-specs { display: block; max-width: 40rem; }
.werk-citaat { margin: 0; }
.werk-citaat p { margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; }
.werk-citaat footer { margin-top: 12px; font-size: 0.875rem; color: var(--grijs); }
.werk-tekst { margin: 24px 0 0; max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; color: var(--tekst); }
.werk-woorden > :first-child { margin-top: 0; }
.werk-link { margin: 24px 0 0; }
.werk-link a { font-size: 0.9375rem; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.specs { margin: 0; border-top: 1px solid var(--inkt); }
.spec { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--lijn); }
.spec dt { font-size: 0.875rem; color: var(--grijs); }
.spec dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.werk-beelden { margin-top: clamp(80px, 10vw, 150px); }
.werk-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(96px, 12vw, 170px);
  padding: 28px 0 110px;
  border-top: 1px solid var(--inkt);
}
.werk-nav a { text-decoration: none; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
.werk-nav small { display: block; margin-bottom: 6px; font-size: 0.8125rem; letter-spacing: 0; color: var(--grijs); }
.werk-nav a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.werk-nav .volgende { text-align: right; }

/* Lichtbak: het beeld alleen op wit */
.lichtbak { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--inkt); }
.lichtbak[open] { display: grid; place-items: center; }
.lichtbak::backdrop { background: #fff; }
.lichtbak img { max-width: calc(100vw - 160px); max-height: calc(100vh - 140px); object-fit: contain; }
.lichtbak button { position: fixed; padding: 10px 14px; border: 0; background: none; color: var(--inkt); font: 300 2.25rem/1 var(--font); cursor: pointer; }
.lichtbak button:hover { color: var(--grijs); }
.lb-sluit { top: 16px; right: 20px; }
.lb-vorige { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-volgende { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-teller { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.875rem; color: var(--grijs); font-variant-numeric: tabular-nums; }

/* Schrijven */
.sectie { padding: 0 0 96px; }
.sectie > .kleine-kop { margin-bottom: 0; padding-bottom: 10px; border-bottom: 1px solid var(--inkt); }
.uitgelicht { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.boek a { display: block; text-decoration: none; }
.omslag { display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 14px; background: var(--vlak); }
.omslag img { width: 100%; height: 100%; object-fit: contain; }
.omslag-typo { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; color: #fff; }
.omslag-typo b { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.omslag-typo small { font-size: 0.75rem; opacity: 0.85; }
.kleur-mos { background: #34503b; }
.kleur-roest { background: #a4502f; }
.kleur-nacht { background: #24272b; }
.boek-titel { margin: 0; font-size: 1rem; line-height: 1.35; }
.boek a:hover .boek-titel { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.boek-sub { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--grijs); }

.tekstlijst { list-style: none; margin: 0; padding: 0; }
.tekstlijst li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4px 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lijn);
  align-items: baseline;
}
.tl-jaar { font-size: 0.875rem; color: var(--grijs); font-variant-numeric: tabular-nums; }
.tl-titel { font-size: 1rem; line-height: 1.4; }
.tl-titel a { text-decoration: none; }
.tl-titel a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tl-soort { margin-left: 10px; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grijs); }
.tl-omschrijving { font-size: 0.875rem; line-height: 1.5; color: var(--grijs); }

.twee-kolommen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.opdrachtgevers { list-style: none; margin: 0 0 24px; padding: 0; }
.opdrachtgevers a { display: block; padding: 12px 0; border-bottom: 1px solid var(--lijn); font-size: 1.125rem; text-decoration: none; }
.opdrachtgevers a::after { content: " ↗"; color: var(--grijs); }
.opdrachtgevers a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.twee-kolommen p { margin: 0 0 12px; max-width: 32rem; color: var(--tekst); }
.twee-kolommen .sectie > .kleine-kop + p, .twee-kolommen .sectie > .kleine-kop + ul { margin-top: 16px; }
.lees-verder a { font-size: 0.9375rem; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nog-niet { color: var(--grijs); }

/* Voet */
.voet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rand) 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.8125rem;
  color: var(--grijs);
}
.voet::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 18px; background: var(--lijn); }
.voet nav { display: flex; gap: 20px; }
.voet a { text-decoration: none; }
.voet a:hover { color: var(--inkt); }

@media (max-width: 1100px) {
  .zaaltekst { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .uitgelicht { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --rand: 24px; }
  .kop { padding-top: 22px; }
  .intro { padding: 56px 0 48px; }
  .werkveld { grid-template-columns: minmax(0, 1fr); grid-template-areas: "weergave" "titels" "wall"; padding-bottom: 96px; }
  .weergave { grid-area: weergave; display: flex; gap: 20px; margin-bottom: 28px; }
  .weergave button {
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: var(--grijs);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .weergave button[aria-pressed="true"] { color: var(--inkt); border-bottom-color: var(--inkt); }
  .titels { position: static; max-height: none; overflow: visible; padding-left: 0; }
  .index a.is-hier::before { display: none; }
  .werkveld[data-weergave="beelden"] .titels { display: none; }
  .werkveld[data-weergave="titels"] .wall { display: none; }
  .twee-kolommen { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tekstlijst li { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; }
  .tl-omschrijving { grid-column: 2; }
}

@media (max-width: 600px) {
  :root { --rand: 18px; }
  .kop { flex-direction: column; gap: 14px; }
  .tagline { display: none; }
  .menu ul { gap: 6px 20px; }
  .terug { margin-top: 36px; }
  .werk-kop { margin-bottom: 28px; }
  .zaaltekst { margin-top: 44px; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .werk-nav { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .werk-nav .volgende { text-align: left; }
  .uitgelicht { gap: 32px 16px; }
  .lichtbak img { max-width: 100vw; max-height: calc(100vh - 160px); }
  .lb-vorige, .lb-volgende { top: auto; bottom: 8px; transform: none; }
}
