/* ================================================================
   vanmansvelt.nl — style.css  v6
   Fonts   : Lora (headings) · Source Sans 3 (body)
   Palette : warm paper  #f5f0ea  |  rust  #8b3a1a
   Contrast: all text/bg combos verified WCAG 2.0 AA
   ================================================================ */

/* ── Fonts lokaal geladen ─────────────────────────────────────── */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v37-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --paper: #f5f0ea;
  --paper-warm: #ede6dc;
  --card-bg: #faf7f3;

  /* Text — all pass WCAG AA on their surfaces */
  --ink: #1e1510;
  /* 16.8:1 on card-bg */
  --ink-mid: #5a4435;
  /*  8.5:1 on card-bg */
  --ink-soft: #6b5146;
  /*  6.4:1 on paper  (was #9c8070 = 3.2 FAIL) */

  /* Brand */
  --rust: #8b3a1a;
  /*  7.2:1 on card-bg */
  --rust-hover: #7a3117;
  --rust-mid: #b04e28;
  /*  4.6:1 on card-bg */
  --rust-lt: #d47a52;
  /* decorative only   */

  /* Chip / eyebrow */
  --chip-bg: #e6ddd5;
  --chip-txt: #6f2f18;
  /*  7.5:1 on chip-bg */

  /* Borders */
  --line: rgba(90, 68, 53, .15);

  /* Type scale (fluid where useful) */
  --t-xs: .72rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.075rem;
  --t-lg: 1.3rem;
  --t-xl: 1.7rem;
  --t-2xl: 2.1rem;
  --t-3xl: clamp(1.9rem, 4vw + .5rem, 2.9rem);

  /* Spacing */
  --s1: .5rem;
  --s2: .875rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;

  /* Shape */
  --r: 6px;
  --r-s: 4px;
  --r-p: 999px;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(30, 21, 16, .07);
  --sh-sm: 0 2px 8px rgba(30, 21, 16, .09), 0 1px 2px rgba(30, 21, 16, .05);
  --sh-md: 0 6px 20px rgba(30, 21, 16, .11), 0 2px 6px rgba(30, 21, 16, .06);
  --sh-hv: 0 10px 32px rgba(30, 21, 16, .13), 0 3px 8px rgba(30, 21, 16, .07);

  /* Motion */
  --ease: cubic-bezier(.25, .46, .45, .94);

  /* Layout */
  --max-w: 1080px;
  --pad-x: 2rem;
  --gap: 1.25rem;
  /* uniform gap between cards */
  --header-h: 64px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

p {
  color: var(--ink-mid);
}

p+p {
  margin-top: .8rem;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* ── Accessibility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -64px;
  left: var(--pad-x);
  background: var(--rust);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--r-s) var(--r-s);
  font-size: var(--t-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top .2s var(--ease);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Focus ring — all interactive elements */
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--r-s);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Layout container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Header ─────────────────────────────────────────────────────── */
.header-wrap {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--s5);
  position: relative;
  /* anchor for mobile panel */
}

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 0 var(--s4);
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.brand-title {
  font-family: 'Lora', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--rust);
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: var(--t-xs);
  color: var(--ink-soft);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Desktop nav ────────────────────────────────────────────────── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-desktop a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-mid);
  padding: .4rem .7rem;
  border-radius: var(--r-s);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--paper-warm);
  color: var(--rust);
}

.nav-desktop a.active {
  font-weight: 600;
}

/* ── Language dropdown ──────────────────────────────────────────── */
.lang-wrap {
  position: relative;
  margin-left: var(--s1);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: .38rem .65rem;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-mid);
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: var(--paper-warm);
  border-color: var(--rust-lt);
  color: var(--rust);
}

.lang-chevron {
  display: inline-block;
  transition: transform .2s var(--ease);
  font-style: normal;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  min-width: 140px;
  z-index: 300;
  overflow: hidden;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu a {
  display: block;
  padding: .55rem 1rem;
  font-size: var(--t-sm);
  color: var(--ink-mid);
  transition: background .12s;
}

.lang-menu a:hover {
  background: var(--paper-warm);
  color: var(--rust);
}

.lang-menu a.lang-current {
  color: var(--rust);
  font-weight: 600;
}

/* ── Mobile nav toggle ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--ink-mid);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--paper-warm);
  color: var(--rust);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--paper-warm);
  color: var(--rust);
  border-color: var(--rust-lt);
}

/* Hamburger icon via SVG-in-CSS */
.nav-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Mobile panel */
.nav-mobile {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  z-index: 999;
  padding: var(--s2);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--r-s);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-mid);
  transition: background .12s;
}

.nav-mobile a:hover {
  background: var(--paper-warm);
  color: var(--rust);
}

.nav-mobile a.active {
  background: var(--paper-warm);
  color: var(--rust);
  font-weight: 600;
}

.nav-mobile hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: .4rem 0;
}

.nav-mobile .lang-row {
  display: flex;
  gap: .25rem;
  padding: .2rem .4rem;
}

.nav-mobile .lang-row a {
  padding: .4rem .75rem;
  border-radius: var(--r-p);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-mid);
}

.nav-mobile .lang-row a.lang-current {
  background: var(--chip-bg);
  color: var(--chip-txt);
}

/* ── Main content ───────────────────────────────────────────────── */
#main {
  outline: none;
  padding-bottom: var(--s6);
}

#main>section+section,
#main>section+.grid-2,
#main>.grid-2+section,
#main>.grid-2+.grid-2 {
  margin-top: var(--gap);
}

/* ── Typography ─────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: var(--t-3xl);
  letter-spacing: -.02em;
}

h2 {
  font-size: var(--t-2xl);
  letter-spacing: -.015em;
}

h3 {
  font-size: var(--t-xl);
}

h4 {
  font-size: var(--t-lg);
}

.lead {
  font-size: var(--t-md);
  color: var(--ink-mid);
  line-height: 1.75;
}

/* Eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--chip-bg);
  color: var(--chip-txt);
  border-radius: var(--r-p);
  padding: .3rem .9rem;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  box-shadow: var(--sh-sm);
}

.card-warm {
  background: var(--paper-warm);
}

/* Flex column card: button always at bottom */
.card-col {
  display: flex;
  flex-direction: column;
}

.card-col .card-body {
  flex: 1;
}

.stack>*+* {
  margin-top: 0.9rem;
}

/* ── Two-column grid ────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

/* ── Three-column grid ──────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── Hero section ───────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

/* Left card: book cover */
.hero-book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
}

.hero-book-card .eyebrow {
  align-self: flex-start;
}

.hero-cover {
  width: 100%;
  max-width: 455px;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-s);
  box-shadow: var(--sh-md);
  align-self: center;
}

/* Right card: text */
.hero-text-card {
  display: flex;
  flex-direction: column;
}

.hero-text-card h1 {
  margin-top: .25rem;
}

.hero-text-card .lead {
  margin-top: 0.9rem;
  flex: 1;
}

/* ── Button row ─────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--s3);
}

/* Push button-row to bottom of flex cards */
.card-col .btn-row {
  margin-top: auto;
  padding-top: var(--s3);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .02em;
  padding: .65rem 1.4rem;
  border-radius: var(--r-p);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s, color .18s,
    transform .15s, box-shadow .18s;
}

.btn {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
  box-shadow: 0 2px 8px rgba(139, 58, 26, .2);
}

.btn:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  box-shadow: 0 4px 14px rgba(139, 58, 26, .3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}

.btn-ghost:hover {
  background: var(--rust);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Cover cards (edition cards) ────────────────────────────────── */
.cover-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.cover-card:hover {
  box-shadow: var(--sh-hv);
  transform: translateY(-3px);
}

.cover-card>img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  object-position: center top;
}

.cover-card .cover-body {
  padding: var(--s3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cover-card h3 {
  font-size: var(--t-lg);
  color: var(--rust);
  font-weight: 500;
}

.cover-card p {
  font-size: var(--t-sm);
  color: var(--ink-mid);
  flex: 1;
}

/* Button always at bottom */
.cover-card .btn-slot {
  margin-top: auto;
  padding-top: var(--s3);
}

/* ── Quote grid ─────────────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--s3);
}

.quote-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--rust-lt);
  margin-bottom: .4rem;
  display: block;
}

.quote-card p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

/* ── Item grid ──────────────────────────────────────────────────── */
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--s3);
}

.item-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.item-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
  box-shadow: var(--sh-xs);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: box-shadow .2s, transform .2s;
}

.item-card:hover {
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}

.item-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--ink);
}

.item-card p {
  font-size: var(--t-sm);
  color: var(--ink-mid);
}

/* ── Poem cards ─────────────────────────────────────────────────── */
.poem-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
  box-shadow: var(--sh-xs);
}

.poem-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--rust);
  margin-bottom: .5rem;
}

.poem-card p {
  font-size: var(--t-sm);
  color: var(--ink-mid);
}

/* ── Inline link ────────────────────────────────────────────────── */
.link-inline {
  display: inline;
  color: var(--rust);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.link-inline:hover {
  color: var(--rust-mid);
}

/* Meta link (card footer link) */
.meta-link {
  display: inline-block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--rust);
  margin-top: var(--s1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.meta-link:hover {
  color: var(--rust-mid);
}

/* ── Author photo (auteurspagina) ───────────────────────────────── */
.author-media-portrait .author-img {
  width: 100%;
  border-radius: var(--r-s);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ── Lite YouTube embeds ───────────────────────────────────────── */
.youtube-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-s);
  margin: var(--s3) 0;
  box-shadow: var(--sh-md);
  background: linear-gradient(180deg, rgba(24,20,18,.92), rgba(52,36,26,.96));
}

.youtube-lite-button {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.youtube-lite-picture,
.youtube-lite-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.youtube-lite-picture img {
  object-fit: cover;
}

.youtube-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,16,14,.08), rgba(18,16,14,.28));
  pointer-events: none;
}

.youtube-lite-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 52px;
  transform: translate(-50%, -50%);
  background: rgba(14, 10, 8, 0.76);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.youtube-lite-play::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 15px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.youtube-lite-button:hover .youtube-lite-play,
.youtube-lite-button:focus-visible .youtube-lite-play {
  background: rgba(139, 58, 26, 0.92);
}

.youtube-lite-button:focus-visible {
  outline: 3px solid rgba(139,58,26,.55);
  outline-offset: 4px;
}

.youtube-lite iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-video-card .youtube-lite {
  margin-top: 1rem;
}

/* ── Video frame ────────────────────────────────────────────────── */
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--r-s);
  margin: var(--s3) 0;
  box-shadow: var(--sh-md);
}

/* ── List ───────────────────────────────────────────────────────── */
.disc-list {
  padding-left: 1.3rem;
  list-style: disc;
}

.disc-list li {
  color: var(--ink-mid);
  margin-bottom: .1rem;
  font-size: var(--t-md);
}

/* ── Blockquote ─────────────────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--rust-lt);
  padding-left: var(--s3);
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--rust-mid);
  line-height: 1.6;
}

/* ── Gedichtenpagina: afbeelding naast tekst ────────────────────── */
.author-media {
  display: block;
  width: 100%;
}

.author-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.card-poem {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.card-poem .author-media {
  flex: 0 0 min(50%, 560px);
  max-width: min(50%, 560px);
  order: 2;
}

.card-poem .author-media .author-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.card-poem .poem-text {
  flex: 1;
  min-width: 0;
  order: 1;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  margin-top: var(--s6);
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}

.footer p {
  color: var(--ink-soft);
}

.footer a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--rust-mid);
}

/* ── Responsive — tablet (≤ 860px) ─────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --pad-x: 1.25rem;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .item-grid.col-3 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cover {
    max-width: 455px;
  }

  /* Gedicht card: afbeelding bovenaan op tablet/mobiel */
  .card-poem {
    flex-direction: column;
  }

  .card-poem .author-media {
    flex: none;
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .card-poem .poem-text {
    order: 2;
  }
}

/* ── Responsive — mobile (≤ 540px) ─────────────────────────────── */
@media (max-width: 540px) {
  :root {
    --pad-x: 1rem;
    --gap: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .item-grid {
    grid-template-columns: 1fr;
  }

  .item-grid.col-3 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--s3);
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .site-header {
    min-height: 84px;
    height: auto;
    padding-top: .9rem;
    padding-bottom: .9rem;
    align-items: center;
  }

  .brand {
    justify-content: center;
    min-width: 0;
  }

  .brand-title {
    line-height: 1.22;
    padding-bottom: .08em;
  }

  .brand-sub {
    line-height: 1.25;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn,
  .btn-row .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-cover {
    max-width: 455px;
  }
}

/* ── Fade-up animation (JS adds classes) ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- book cover optimalisatie --- */

/* Bibliografie- en boekkaarten netjes gelijk trekken */
.item-grid {
  align-items: stretch;
}

.item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  min-height: 7.2rem;
}

.item-card p {
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.item-card .meta-link {
  margin-top: auto;
}

/* Nieuwe picture-wrapper voor de samengestelde boekenafbeelding */
.book-stack-single {
  display: block;
  width: 100%;
}

/* Alle boekafbeeldingen dezelfde media-zone geven */
.book-cover,
.book-stack-single img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Oude losse stacked layout uitschakelen zodra de nieuwe afbeelding wordt gebruikt */
.book-stack {
  display: none;
}


.memorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: .9rem;
  align-items: start;
}

.memorial-photo img {
  width: 100%;
  border-radius: 6px;
}

.memorial-photo figcaption {
  font-size: .85rem;
  color: var(--ink-mid);
  margin-top: .4rem;
}

@media (max-width: 800px) {
  .memorial-grid {
    grid-template-columns: 1fr;
  }
}

h1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

h2 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

/*
h1 {
  margin-top: 0 !important;
.rmt margin-top: 0.6rem;}

/* ── Media page ────────────────────────────────────────────────── */
.media-page-intro .lead {
  max-width: 68rem;
}

.media-hero-wrap {
  margin-top: 1.4rem;
}

.media-hero-picture,
.media-hero-picture img {
  display: block;
  width: 100%;
}

.media-hero-picture {
  max-width: 840px;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.media-hero-picture img {
  height: auto;
  background: var(--paper-warm);
}

.media-video-card .video-frame {
  margin-top: 1rem;
}

.media-docs {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.media-link-card {
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, .55);
}

.media-link-card h3 {
  margin: 0 0 .45rem;
  line-height: 1.15;
}

.media-link-card p {
  margin: 0;
  line-height: 1.5;
}

.media-link-card .meta-link {
  display: inline-block;
  margin-top: .9rem;
}

@media (min-width: 860px) {
  .media-docs {
    grid-template-columns: 1fr 1fr;
  }
}


/* ── Extra fix for very small mobile widths ───────────────────── */
@media (max-width: 540px) {
  .header-wrap {
    overflow: visible;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    column-gap: .75rem;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand-title,
  .brand-sub {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    justify-self: end;
    margin: 0;
  }
}

@media (max-width: 390px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 38px;
    column-gap: .6rem;
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .brand-title {
    font-size: clamp(1.05rem, 5.2vw, 1.2rem);
    line-height: 1.2;
  }

  .brand-sub {
    font-size: .68rem;
    letter-spacing: .04em;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-toggle svg {
    width: 18px;
    height: 18px;
  }
}