/* Boekje: lichte papierstijl in de letters en kleuren van Reisdagboek, maar zonder
   gekantelde foto's en plakband: die drukken niet goed af. Op het scherm een voorbeeld op papier, bij afdrukken A4. */
body.boekje {
  --bg: #fffdf9;
  --bg-2: #fffdf9;
  --ink: #1f1b17;
  --ink-soft: #3b342d;
  --muted: #6b6259;
  --accent: #9c4420;
  --accent-2: #2a676c;
  --on-accent: #fffdf9;
  --line: rgba(31, 27, 23, .16);
  --display: "Playfair Display", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --nick-font: "Caveat", cursive;
  --label-font: "Special Elite", "Courier New", monospace;
  background: #e6d9bf;
  color: var(--ink);
}

/* ---------- Werkbalk (alleen scherm) ---------- */
.bk-balk { background: #33291f; color: #f6eedd; padding: 1.4rem 16px 1.6rem; border-bottom: 12px solid transparent; border-image: repeating-linear-gradient(135deg, #c8342b 0 18px, #fbf6ea 18px 30px, #23507f 30px 48px, #fbf6ea 48px 60px) 12; }
.bk-balk-binnen { max-width: 210mm; margin: 0 auto; display: grid; gap: .8rem; }
.bk-balk h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.bk-balk p { margin: 0; color: #e3d6bf; }
.bk-balk strong { color: #f6eedd; }
.bk-terug { color: #f0c27b; font-weight: 700; text-decoration: none; }
.bk-keuze { border: 1px solid rgba(242, 233, 216, .2); border-radius: 8px; padding: .7rem 1rem .9rem; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.bk-keuze legend { padding: 0 .4rem; font-weight: 700; }
.bk-keuze label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.bk-keuze input { width: 1.15rem; height: 1.15rem; accent-color: #c8342b; }
.bk-acties { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
#afdrukken { font: 700 1.05rem var(--sans); cursor: pointer; background: #9c4420; color: #fff8ec; border: 0; border-radius: 3px; padding: .8rem 1.5rem; }
#afdrukken:disabled { opacity: .65; cursor: wait; }
.bk-status { min-height: 1.4em; }

/* ---------- Papier ---------- */
.bk-papier { max-width: 210mm; margin: 2rem auto 3rem; background: var(--bg); box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 18mm 16mm; }
.bk-papier:focus { outline: none; }
.bk-deel { padding: 0; border-top: 1px dashed var(--line); margin-top: 14mm; padding-top: 12mm; }
.bk-deel > h2 { font-size: 2.1rem; margin: 0 0 1.2rem; color: var(--ink); }
.bk-deel > .eyebrow { margin: 0 0 .5rem; color: var(--accent); }
.bk-intro { color: var(--ink-soft); margin: -.6rem 0 1rem; }

.bk-omslag { text-align: center; padding: 0 0 6mm; }
.bk-omslag img { width: 100%; height: auto; margin: 0 0 12mm; }
.bk-omslag .eyebrow { color: var(--accent); }
.bk-omslag h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 500; line-height: 1.1; }
.bk-omslag .nick { display: block; font-style: italic; color: var(--accent); font-weight: 700; font-size: 1.15em; }
.bk-omslag .years { color: var(--ink-soft); margin: 1rem 0 .3rem; }
.bk-omslag .tagline { color: var(--muted); letter-spacing: .06em; }

/* Verhaal en artikel: tekststijl van de site, maar volle breedte */
.boekje .story-text, .boekje .article { max-width: none; padding: 0; margin: 0; }
.boekje .story-text h3 { margin-top: 1.6rem; }
.boekje .article h2 { font-size: 1.45rem; margin: 1.6rem 0 .5rem; }
.boekje .travels { grid-template-columns: repeat(5, 1fr); }
.boekje .bron { background: #f3eee6; }

/* Tijdlijn */
.boekje .timeline { margin: 0; max-width: none; }
.boekje .tl-item::before { box-shadow: 0 0 0 4px var(--bg); }
.boekje .quote { margin-top: 2rem; }

/* Reiskaart: geen animatie, geen vervaagde randen */
.boekje .reiskaart { margin: 0; }
.boekje .reiskaart-vlak { -webkit-mask-image: none; mask-image: none; width: auto; }
.boekje .rk-land { fill: #ddd5c8; stroke: var(--bg); }

/* Foto's: twee kolommen, onderschrift eronder */
.bk-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm 6mm; }
.bk-fotos:not(:empty) { margin-top: 8mm; }
.bk-inhoud + .bk-fotos:empty { display: none; }
.bk-fotos figure { margin: 0; break-inside: avoid; }
.bk-fotos img { width: 100%; height: 62mm; object-fit: contain; background: #f3eee6; }
.bk-fotos figcaption { margin-top: 2mm; font-size: .85rem; color: var(--muted); text-align: center; }

.bk-slot { text-align: center; margin-top: 14mm; padding: 12mm 0 0; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.bk-slot p { margin: .3rem 0; }
.bk-slot .footer-name { font-style: italic; font-size: 2.2rem; color: var(--accent); margin: 0; font-family: var(--display); }
.bk-slot .small { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

@media (max-width: 700px) {
  .bk-papier { margin: 0; padding: 1.5rem 16px 2.5rem; box-shadow: none; }
  .bk-fotos { grid-template-columns: 1fr; }
  .bk-fotos img { height: auto; max-height: 70vh; }
  .boekje .travels { grid-template-columns: repeat(2, 1fr); }
  .boekje .reiskaart-vlak { width: auto; }
}

/* ---------- Afdrukken ---------- */
@page { size: A4; margin: 16mm 16mm 18mm; }
@page { @bottom-center { content: counter(page); font: 9pt "Karla", system-ui, sans-serif; color: #6b6259; } }
@page :first { @bottom-center { content: none; } }

@media print {
  body.boekje { background: #fff; font-size: 10.5pt; line-height: 1.55; }
  body.boekje { --bg: #fff; }
  .bk-balk, .skip-link { display: none !important; }
  .bk-papier { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  .bk-omslag { min-height: 250mm; display: flex; flex-direction: column; justify-content: center; }
  .bk-omslag img { max-height: 130mm; object-fit: contain; }
  .bk-deel, .bk-slot { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; }
  /* De reiskaart past direct na het verhaal, zonder nieuwe pagina */
  .bk-deel[data-deel="reiskaart"] { break-before: auto; break-inside: avoid; margin-top: 10mm; }
  .bk-slot { min-height: 240mm; display: flex; flex-direction: column; justify-content: center; }
  .bk-deel > h2 { font-size: 22pt; }
  .boekje h2, .boekje h3 { break-after: avoid; }
  .boekje p, .boekje .tl-item { orphans: 3; widows: 3; }
  .boekje .tl-item { break-inside: avoid; }
  .boekje .verhaal-foto { break-inside: avoid; max-width: 120mm; }
  .boekje .story-text .lead { font-size: 14pt; }
  .boekje .portrait, .boekje img { box-shadow: none !important; }
  .boekje a { color: inherit; text-decoration: none; }
  .boekje .bron { break-inside: avoid; }
  .boekje .bron a[href^="http"]::after { content: " – " attr(href); font-size: 8pt; word-break: break-all; }
  .bk-fotos { gap: 6mm 6mm; }
  .bk-fotos img { height: 70mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
