/*
 * Richting 1: schreefletter op warm, gebroken wit. Rustig en literair.
 * 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=Inter:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&display=swap");

:root {
  --bg: #f3f0e8;
  --vlak: #e7e2d6;
  --inkt: #1d1c19;
  --zacht: #6b665c;
  --lijn: #d9d2c4;
  --accent: #4f6139;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: 40px;
  --goot: 16px;
  --max: 1480px;
}

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

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

/* Kop en menu */
.kop {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--rand) 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
}
.woordmerk { text-decoration: none; }
.naam { display: block; font-size: 1.625rem; line-height: 1.1; letter-spacing: 0.005em; }
.tagline {
  display: block;
  margin-top: 7px;
  font-family: var(--ui);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zacht);
}
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.menu a {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.menu a:hover { border-color: currentColor; }
.menu a[aria-current="page"] { border-color: var(--inkt); }

/* Korte introductie bovenaan elke pagina */
.intro { padding: 56px 0 44px; max-width: 44rem; }
.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 22px;
}
.intro p { font-size: 1.25rem; line-height: 1.5; margin: 0; }
.pagina-leeg { min-height: 50vh; }

.kleine-kop {
  font-family: var(--ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zacht);
  margin: 0 0 14px;
}

/* Kunst: titelkolom en wall */
.werkveld {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}
.titels {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}
.jaar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 6px;
  padding: 7px 0 8px;
  border-top: 1px solid var(--lijn);
}
.jaar > span { font-family: var(--ui); font-size: 0.75rem; color: var(--zacht); font-variant-numeric: tabular-nums; padding-top: 2px; }
.jaar ul { list-style: none; margin: 0; padding: 0; }
.jaar a { display: block; text-decoration: none; font-size: 0.9375rem; line-height: 1.3; padding: 1px 0 2px; transition: color 0.15s; }
.titels.heeft-focus a:not(.is-actief) { color: var(--zacht); }
.jaar a.is-actief { color: var(--accent); }

.wall { display: flex; gap: var(--goot); align-items: flex-start; }
.kolom { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--goot); }
.tegel { position: relative; display: block; background: var(--vlak); overflow: hidden; }
.tegel img { width: 100%; height: auto; aspect-ratio: var(--r, auto); object-fit: cover; transition: opacity 0.25s, filter 0.25s; }
.tegel-titel {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 9px 6px;
  background: var(--bg);
  font-family: var(--ui);
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}
.tegel-titel span { color: var(--zacht); margin-left: 4px; }
.tegel:hover .tegel-titel,
.tegel:focus-visible .tegel-titel,
.tegel.is-actief .tegel-titel { opacity: 1; transform: none; }
.wall.vervaag .tegel:not(.is-actief) img { opacity: 0.14; filter: grayscale(1); }

.zweef {
  position: fixed;
  z-index: 30;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.zweef.zichtbaar { opacity: 1; }
.weergave { display: none; }

/* Werkpagina */
.terug {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--zacht);
}
.terug:hover { color: var(--inkt); }
.werk {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 28px 0 64px;
}
.werk-info { position: sticky; top: 24px; }
.werk-info h1 {
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}
.werk-ondertitel { font-style: italic; color: var(--zacht); margin: 0 0 4px; line-height: 1.35; }
.werk-jaar { font-family: var(--ui); font-size: 0.8125rem; color: var(--zacht); margin: 0 0 28px; }
.werk-citaat { margin: 0 0 28px; padding-left: 16px; border-left: 1px solid var(--lijn); }
.werk-citaat p { margin: 0; font-style: italic; font-size: 1.0625rem; line-height: 1.5; }
.werk-citaat footer { margin-top: 8px; font-family: var(--ui); font-size: 0.75rem; color: var(--zacht); }
.werk-tekst { margin: 0 0 28px; font-size: 1.0625rem; line-height: 1.55; }
.meta { margin: 0; display: grid; gap: 14px; }
.meta dt { font-family: var(--ui); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zacht); margin: 0 0 2px; }
.meta dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.werk-link { margin: 26px 0 0; font-family: var(--ui); font-size: 0.8125rem; }
.werk-link a { text-underline-offset: 3px; }

.werk-beelden { display: flex; flex-direction: column; gap: var(--goot); }
.beeld { display: block; width: 100%; padding: 0; border: 0; background: var(--vlak); cursor: zoom-in; }
.beeld img { width: 100%; height: auto; aspect-ratio: var(--r, auto); object-fit: cover; }
.beeld-groot { background: none; }
.beeld-groot img { width: auto; max-width: 100%; max-height: 82vh; }
.beelden-raster { display: flex; gap: var(--goot); align-items: flex-start; }
.film { 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(10, 10, 8, 0.35); }
.speel {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.1rem;
  padding-left: 4px;
}
.werk-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--lijn);
  padding: 22px 0 80px;
  font-family: var(--ui);
  font-size: 0.8125rem;
}
.werk-nav a { text-decoration: none; max-width: 45%; }
.werk-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.werk-nav span { display: block; color: var(--zacht); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.werk-nav .volgende { text-align: right; margin-left: auto; }

/* 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(14, 14, 12, 0.94); }
.lichtbak img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lichtbak button { position: fixed; border: 0; background: none; color: #fff; font: 300 2.25rem/1 var(--ui); padding: 12px 18px; cursor: pointer; opacity: 0.75; }
.lichtbak button:hover { opacity: 1; }
.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: 14px; left: 0; right: 0; margin: 0; text-align: center; font: 0.75rem var(--ui); letter-spacing: 0.1em; opacity: 0.7; }

/* Schrijven */
.sectie { padding: 0 0 64px; }
.sectie > .kleine-kop { padding-top: 14px; border-top: 1px solid var(--lijn); margin-bottom: 22px; }
.uitgelicht { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 210px)); gap: 40px; }
.boek a { display: block; text-decoration: none; }
.omslag { display: block; aspect-ratio: 2 / 3; background: var(--vlak); overflow: hidden; margin-bottom: 14px; transition: transform 0.25s; }
.boek a:hover .omslag { transform: translateY(-3px); }
.omslag img { width: 100%; height: 100%; object-fit: cover; }
.omslag-foto { background: #fff; }
.omslag-foto img { object-fit: contain; }
.omslag-typo { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 18px; color: #f3f0e8; }
.omslag-typo b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 0.85rem + 0.6vw, 1.5rem); line-height: 1.05; letter-spacing: 0.02em; }
.omslag-typo small { font-family: var(--ui); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.kleur-mos { background: #4f6139; }
.kleur-roest { background: #8b4a2b; }
.kleur-nacht { background: #2a2e35; }
.boek-titel { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.boek-sub { margin: 5px 0 0; font-family: var(--ui); font-size: 0.75rem; line-height: 1.4; color: var(--zacht); }

.tekstlijst { list-style: none; margin: 0; padding: 0; }
.tekstlijst li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2px 28px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--lijn);
  align-items: baseline;
}
.tl-jaar { font-family: var(--ui); font-size: 0.8125rem; color: var(--zacht); font-variant-numeric: tabular-nums; }
.tl-titel { font-size: 1.0625rem; line-height: 1.35; }
.tl-titel a { text-decoration: none; }
.tl-titel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-soort { margin-left: 8px; font-family: var(--ui); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--zacht); white-space: nowrap; }
.tl-omschrijving { font-size: 0.9375rem; line-height: 1.45; color: var(--zacht); }

.twee-kolommen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.opdrachtgevers { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 1.5rem; line-height: 1.3; }
.opdrachtgevers a { text-decoration: none; }
.opdrachtgevers a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lees-verder { font-family: var(--ui); font-size: 0.8125rem; }
.nog-niet { color: var(--zacht); }

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

@media (max-width: 860px) {
  .werkveld { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .weergave {
    display: inline-flex;
    justify-self: start;
    margin-bottom: 18px;
    padding: 3px;
    border: 1px solid var(--lijn);
    border-radius: 999px;
    font-family: var(--ui);
    font-size: 0.8125rem;
  }
  .weergave button { border: 0; border-radius: 999px; background: none; color: var(--zacht); font: inherit; padding: 6px 16px; cursor: pointer; }
  .weergave button[aria-pressed="true"] { background: var(--inkt); color: var(--bg); }
  .titels { position: static; max-height: none; overflow: visible; padding: 0; }
  .werkveld[data-weergave="beelden"] .titels { display: none; }
  .werkveld[data-weergave="titels"] .wall { display: none; }
  .werk { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .werk-info { position: static; }
  .twee-kolommen { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tekstlijst li { grid-template-columns: 52px minmax(0, 1fr); }
  .tl-omschrijving { grid-column: 2; }
}

@media (max-width: 600px) {
  :root { --rand: 16px; --goot: 10px; }
  body { font-size: 17px; }
  .kop { padding-top: 20px; padding-bottom: 18px; }
  .menu ul { gap: 6px 18px; }
  .intro { padding: 30px 0 26px; }
  .intro p { font-size: 1.125rem; }
  .uitgelicht { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .werk-nav a { max-width: 48%; }
}
