/*
 * Richting 2: atelier. Wit, een heldere schreefloze letter, gegevens in een typemachineletter
 * en één accentkleur. De beelden hangen als een salonwand, de index staat rechts.
 * Lettertypes komen in de schets van Google Fonts; de echte site host ze zelf (ADR-002 van het CMS).
 */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #fbfbfa;
  --vlak: #efefec;
  --inkt: #141414;
  --zacht: #84847f;
  --lijn: #e2e2de;
  --accent: #d9441c;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rand: 40px;
  --max: 1560px;
}

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

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

/* Kop: één regel, naam links, menu rechts */
.kop {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--rand);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--inkt);
}
.woordmerk { text-decoration: none; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.naam { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.tagline { font-family: var(--mono); font-size: 0.75rem; color: var(--zacht); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.menu a { font-size: 0.9375rem; text-decoration: none; transition: color 0.15s; }
.menu a:hover { color: var(--accent); }
.menu a[aria-current="page"] { color: var(--accent); }
.menu a[aria-current="page"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--accent); vertical-align: 0.08em; }

/* Introductie: de paginanaam klein, de zin groot */
.intro { padding: 64px 0 56px; }
.intro h1 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--zacht);
}
.intro h1::before { content: "("; }
.intro h1::after { content: ")"; }
.intro p {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.5rem, 1.05rem + 1.35vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.pagina-leeg { min-height: 50vh; }

.kleine-kop {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--zacht);
}

/* Kunst: salonwand links, index rechts */
.werkveld {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 56px;
  align-items: start;
  padding-bottom: 96px;
}
.wall { grid-column: 1; grid-row: 1; }
.titels {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  scrollbar-width: none;
}
.titels::-webkit-scrollbar { display: none; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--inkt); }
.index a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0 7px;
  border-bottom: 1px solid var(--lijn);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.3;
  transition: color 0.12s;
}
.ix-jaar { font-family: var(--mono); font-size: 0.6875rem; color: var(--zacht); padding-top: 1px; }
.index a:hover,
.index a.is-actief { color: var(--accent); }
.index a.is-actief .ix-jaar { color: var(--accent); }

.salon { display: grid; grid-auto-rows: 4px; grid-auto-flow: row dense; row-gap: 0; }
.stuk { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.stuk img {
  width: var(--schaal, 100%);
  height: auto;
  aspect-ratio: var(--r, auto);
  object-fit: cover;
  background: var(--vlak);
  transition: opacity 0.25s, outline-color 0.15s;
  outline: 2px solid transparent;
  outline-offset: 5px;
}
.stuk-titel {
  height: 26px;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: var(--schaal, 100%);
  opacity: 0;
  transition: opacity 0.15s;
}
.stuk:hover .stuk-titel,
.stuk:focus-visible .stuk-titel,
.stuk.is-actief .stuk-titel { opacity: 1; }
.stuk.is-actief img { outline-color: var(--accent); }
.salon.vervaag .stuk:not(.is-actief) img { opacity: 0.22; }
.weergave { display: none; }

/* Werkpagina: kop met gegevens, daaronder de beelden als catalogus */
.terug {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--zacht);
}
.terug:hover { color: var(--accent); }
.werk { padding: 36px 0 40px; }
.werk-label { margin: 0 0 14px; font-family: var(--mono); font-size: 0.75rem; color: var(--zacht); }
.werk-label span { margin: 0 4px; }
.werk-info h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.2rem, 1.3rem + 3vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.werk-ondertitel { margin: 12px 0 0; font-size: 1.125rem; color: var(--zacht); }
.werk-onder {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--inkt);
}
.meta { margin: 0; }
.meta div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 8px 0 9px; border-bottom: 1px solid var(--lijn); }
.meta dt { font-family: var(--mono); font-size: 0.75rem; color: var(--zacht); padding-top: 2px; }
.meta dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.werk-citaat { margin: 0 0 24px; }
.werk-citaat p { margin: 0; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.01em; }
.werk-citaat p::before { content: "\201C"; }
.werk-citaat p::after { content: "\201D"; }
.werk-citaat footer { margin-top: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--zacht); }
.werk-tekst { margin: 0 0 24px; font-size: 1.0625rem; line-height: 1.55; }
.werk-link { margin: 0; font-family: var(--mono); font-size: 0.8125rem; }
.werk-link a { color: var(--accent); text-underline-offset: 3px; }

.reeks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 72px 24px;
  align-items: start;
  padding: 24px 0 72px;
}
.beeld { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; justify-self: start; }
.beeld img { width: 100%; height: auto; aspect-ratio: var(--r, auto); object-fit: cover; background: var(--vlak); }
.beeld-groot { width: 100%; }
.beeld-groot img { max-height: 86vh; object-fit: contain; object-position: left top; background: none; }
.film {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111 center / cover no-repeat;
  display: grid;
  place-items: center;
  color: #fff;
}
.film::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.speel {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.2rem;
  padding-left: 5px;
}
.werk-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 88px;
  border-top: 1px solid var(--inkt);
}
.werk-nav a { max-width: 46%; text-decoration: none; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.werk-nav a:hover { color: var(--accent); }
.werk-nav span { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--zacht); }
.werk-nav .volgende { margin-left: auto; text-align: right; }

/* Lichtbak */
.lichtbak { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lichtbak[open] { display: grid; place-items: center; }
.lichtbak::backdrop { background: rgba(251, 251, 250, 0.97); }
.lichtbak img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lichtbak button { position: fixed; border: 0; background: none; color: var(--inkt); font: 400 2rem/1 var(--sans); padding: 12px 18px; cursor: pointer; }
.lichtbak button:hover { color: var(--accent); }
.lb-sluit { top: 8px; right: 8px; }
.lb-vorige { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-volgende { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-teller { position: fixed; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font: 0.75rem var(--mono); color: var(--zacht); }

/* Schrijven */
.sectie { padding: 0 0 72px; }
.sectie > .kleine-kop { padding-top: 12px; border-top: 1px solid var(--inkt); }
.uitgelicht {
  list-style: none;
  margin: 0;
  padding: 56px 48px 44px;
  background: var(--vlak);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}
.boek a { display: block; text-decoration: none; }
.omslag {
  display: block;
  aspect-ratio: 2 / 3;
  max-width: 230px;
  margin: 0 auto 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s;
}
.boek a:hover .omslag { transform: translateY(-4px) rotate(-0.6deg); }
.omslag img { width: 100%; height: 100%; object-fit: cover; }
.omslag-foto img { object-fit: contain; }
.omslag-typo { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; color: #fbfbfa; }
.omslag-typo b { font-size: clamp(1.05rem, 0.8rem + 0.6vw, 1.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.omslag-typo small { font-family: var(--mono); font-size: 0.625rem; opacity: 0.85; }
.kleur-mos { background: #2f4a33; }
.kleur-roest { background: var(--accent); }
.kleur-nacht { background: #1c1c1c; }
.boek-titel, .boek-sub { max-width: 230px; margin-left: auto; margin-right: auto; }
.boek-titel { margin-top: 0; margin-bottom: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.boek a:hover .boek-titel { color: var(--accent); }
.boek-sub { margin-top: 6px; margin-bottom: 0; font-family: var(--mono); font-size: 0.6875rem; line-height: 1.45; color: var(--zacht); }

.tekstlijst { list-style: none; margin: 0; padding: 0; }
.tekstlijst li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2px 32px;
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--lijn);
  align-items: baseline;
}
.tl-jaar { font-family: var(--mono); font-size: 0.75rem; color: var(--zacht); }
.tl-titel { font-size: 1rem; line-height: 1.35; }
.tl-titel a { text-decoration: none; }
.tl-titel a:hover { color: var(--accent); }
.tl-soort {
  margin-left: 10px;
  padding: 1px 6px;
  border: 1px solid var(--lijn);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--zacht);
  white-space: nowrap;
  vertical-align: 0.1em;
}
.tl-omschrijving { font-size: 0.875rem; line-height: 1.45; color: var(--zacht); }

.twee-kolommen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
.opdrachtgevers { list-style: none; margin: 0 0 20px; padding: 0; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.opdrachtgevers li { display: inline; }
.opdrachtgevers li + li::before { content: " / "; color: var(--zacht); font-weight: 400; }
.opdrachtgevers a { text-decoration: none; }
.opdrachtgevers a:hover { color: var(--accent); }
.lees-verder { font-family: var(--mono); font-size: 0.8125rem; }
.lees-verder a { color: var(--accent); text-underline-offset: 3px; }
.nog-niet { color: var(--zacht); }

/* Voet */
.voet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--rand) 40px;
  border-top: 1px solid var(--inkt);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--zacht);
}
.voet nav { display: flex; gap: 20px; }
.voet a { text-decoration: none; }
.voet a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .uitgelicht { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 32px; }
  .werk-onder { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .werkveld { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wall, .titels { grid-column: 1; grid-row: auto; }
  .weergave {
    display: inline-flex;
    justify-self: start;
    margin-bottom: 20px;
    border: 1px solid var(--inkt);
    font-family: var(--mono);
    font-size: 0.75rem;
  }
  .weergave button { border: 0; background: none; color: var(--inkt); font: inherit; padding: 7px 14px; cursor: pointer; }
  .weergave button[aria-pressed="true"] { background: var(--inkt); color: var(--bg); }
  .titels { position: static; max-height: none; overflow: visible; }
  .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: 48px minmax(0, 1fr); }
  .tl-omschrijving { grid-column: 2; }
}

@media (max-width: 700px) {
  .reeks { gap: 28px 0; }
  .reeks .beeld { grid-column: 1 / -1 !important; }
  .meta div { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --rand: 16px; }
  .kop { padding-top: 16px; padding-bottom: 14px; }
  .menu ul { gap: 4px 18px; }
  .intro { padding: 36px 0 32px; }
  .uitgelicht { gap: 28px 20px; padding: 28px 20px; }
  .werk-nav a { max-width: 48%; }
}
