:root {
  --ash: #E7EAE9;
  --surface: #F2F4F3;
  --ink: #2A1C16;
  --muted: #5B5049;
  --ring: #A93A33;
  --on-ring: #FFFFFF;
  --fjord: #2C5C70;
  --contour: #2C5C70;
  --sea: #D6E2E6;
  --land: #F2F4F3;
  --rule: rgba(42, 28, 22, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ash: #12262F;
    --surface: #183240;
    --ink: #E8ECEA;
    --muted: #A9B8B8;
    --ring: #F0958B;
    --on-ring: #2A1C16;
    --fjord: #8CC3D8;
    --contour: #7DB7CC;
    --sea: #0F2029;
    --land: #1D3B4B;
    --rule: rgba(232, 236, 234, .2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--ring); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fjord); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ash); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--pad); }

/* Header */
.site-header { position: relative; z-index: 2; padding-block: 1.25rem; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: .25rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ring); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 6.5rem) clamp(3rem, 8vw, 7rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
  max-width: 9em;
}
.hero h1 span { display: block; }
.hero p.lead { font-size: 1.2rem; max-width: 33rem; margin: 0 0 2rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: .4rem; font-weight: 600; text-decoration: none; border: 2px solid var(--ring); }
.btn-primary { background: var(--ring); color: var(--on-ring); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { color: var(--fjord); border-color: var(--fjord); }
.btn-quiet:hover { background: var(--fjord); color: var(--ash); }

.slice {
  position: absolute; right: -16%; top: 50%; width: min(70vw, 62rem); height: auto; transform: translateY(-50%); z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
}
.contours .c { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.8s cubic-bezier(.3, .6, .3, 1) backwards; animation-delay: calc(var(--i) * .16s); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .contours .c { animation: none; } }

/* Secties */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.split { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.section p { max-width: 34rem; margin: 0 0 1rem; }
.note { color: var(--muted); font-size: .9rem; }

/* Rookboek */
.logbook caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding-bottom: .75rem; }
.logbook { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.logbook th { text-align: left; font-weight: 600; font-size: .9rem; color: var(--muted); padding: .5rem .5rem .5rem 0; border-bottom: 2px solid var(--ink); }
.logbook td { padding: .9rem .5rem .9rem 0; border-bottom: 1px solid var(--rule); }
.logbook tbody th { font-weight: 600; font-size: inherit; color: inherit; padding: .9rem .5rem .9rem 0; border-bottom: 1px solid var(--rule); }
.logbook th:not(:first-child), .logbook td:not(:first-child) { text-align: right; padding-right: 0; padding-left: .75rem; white-space: nowrap; }
.tag { display: inline-block; font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--muted); border: 1px dashed var(--muted); border-radius: .3rem; padding: .05rem .5rem; margin-left: .5rem; vertical-align: .1em; }

/* Kaartplaats */
.mapframe { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: .5rem; background: var(--surface); border: 1px solid var(--rule); }
.mapart { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapframe p { position: absolute; left: 1.25rem; bottom: 1rem; right: 1.25rem; margin: 0; max-width: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }

.about p { max-width: 38rem; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; max-width: 40rem; }

@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .slice { position: relative; right: auto; top: auto; transform: none; width: 135%; margin: 2.5rem 0 -1rem -17%; }
  .hero { padding-bottom: 2rem; }
}

/* Huidige pagina in het menu */
.site-nav a[aria-current="page"] { border-bottom-color: var(--ring); }

/* Paginakop (binnenpagina's) */
.page-intro { position: relative; overflow: hidden; min-height: 27rem; display: flex; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.page-intro .wrap { position: relative; z-index: 1; }
.page-intro h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 1.25rem; }
.page-intro p.lead { font-size: 1.2rem; max-width: 33rem; margin: 0; }
.page-intro .slice { right: -8%; width: min(46vw, 36rem); }
.page-intro .contours .c { animation: none; }

/* Rookboek */
.cook { display: grid; gap: .75rem clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding-block: 2rem; border-top: 1px solid var(--rule); }
.cook:last-of-type { border-bottom: 1px solid var(--rule); }
.cook h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 0; font-variant-numeric: tabular-nums; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.cook p { margin: 0 0 .75rem; max-width: 34rem; }
.section-head { margin-bottom: 1.5rem; }
.section-head p { max-width: 34rem; margin: 0; }
.more { margin-top: 1.25rem; }

@media (max-width: 52rem) {
  .cook { grid-template-columns: 1fr; }
  .page-intro { display: block; min-height: 0; }
  .page-intro .slice { position: relative; right: auto; top: auto; transform: none; width: 130%; margin: 2rem 0 -1rem -15%; }
}

/* Reiskaart */
.page-intro.compact { min-height: 0; display: block; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); }
.travel { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-bottom: clamp(3rem, 7vw, 6rem); }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.stops li:last-child { border-bottom: 1px solid var(--rule); }
.stops .num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ring); color: var(--on-ring); font-weight: 700; font-variant-numeric: tabular-nums; }
.stops h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: .2rem 0 .35rem; }
.stops p { margin: 0; max-width: 30rem; }
.travel-map { position: sticky; top: 1.5rem; }
.travelmap { display: block; width: 100%; height: auto; border-radius: .5rem; border: 1px solid var(--rule); background: var(--sea); }
.travelmap .land { fill: var(--land); }
.travelmap .border { stroke: var(--rule); stroke-width: .8; fill: none; }
.travelmap .heen { fill: none; stroke: var(--ring); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 3.2s cubic-bezier(.3, .6, .3, 1) backwards; }
.travelmap .terug { fill: none; stroke: var(--fjord); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; animation: fade 1s ease-out 3.2s backwards; }
.travelmap .pin { fill: var(--ring); stroke: var(--land); stroke-width: 2.5; }
.travelmap text { fill: var(--on-ring); font: 700 14px var(--sans); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .travelmap .heen, .travelmap .terug { animation: none; } }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .9rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: .6rem; }
.legend i { display: inline-block; width: 2rem; border-top: 3px solid var(--ring); }
.legend i.back { border-top: 3px dotted var(--fjord); }
.map-note { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; max-width: 34rem; }
@media (max-width: 52rem) {
  .travel { grid-template-columns: 1fr; }
  .travel-map { position: static; order: -1; }
}

/* Kaart op de homepage */
.mapframe.live { display: block; aspect-ratio: 10 / 9; background: var(--sea); color: inherit; text-decoration: none; }
.mapframe.live .travelmap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.mapframe.live .mapcap { position: absolute; right: 1rem; bottom: .8rem; padding: .25rem .6rem; border-radius: .3rem; background: var(--surface); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.mapframe.live:hover .mapcap, .mapframe.live:focus-visible .mapcap { text-decoration: underline; }

/* Reizenoverzicht en verslagen */
.crumb { margin: 0 0 1rem; font-size: .95rem; }
.crumb a { color: var(--muted); }
.trips { list-style: none; margin: 0; padding: 0; }
.trips li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.trips li:last-child { border-bottom: 1px solid var(--rule); }
.trips .year { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ring); }
.trips h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 .4rem; }
.trips p { margin: 0 0 .6rem; max-width: 36rem; }
.trips .more { margin: 0; }
.trips li.planned .year { color: var(--fjord); }
.story p { max-width: 38rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots img, .shots .ph { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .4rem; background: var(--sea); }
.shots .ph { display: grid; place-items: center; color: var(--muted); font-size: .9rem; border: 1px dashed var(--rule); }
.shots figcaption { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 52rem) { .trips li { grid-template-columns: 1fr; } .trips .year { margin-bottom: .3rem; } }

.shots a { display: block; border-radius: .4rem; }
.shots a:hover img { opacity: .9; }
.shots a:focus-visible { outline: 3px solid var(--fjord); outline-offset: 3px; }

/* Foto's groot bekijken */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 16, 20, .94); color: #E8ECEA; }
.lightbox::backdrop { background: rgba(10, 16, 20, .94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: .25rem; }
.lightbox figcaption { margin-top: .75rem; font-size: .95rem; text-align: center; max-width: 40rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: inherit; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .28); }
.lightbox .lb-close { top: .75rem; right: .75rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 52rem) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: .75rem; transform: none; } .lightbox figure { padding-bottom: 5rem; } .lightbox img { max-height: calc(100vh - 11rem); } }

/* Dagpagina's */
.trips.days li { grid-template-columns: 7rem minmax(0, 1fr); }
.trips.days .year { font-size: 1.5rem; }
.daynav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.daynav a { font-weight: 600; }
.daynav .up { color: var(--muted); font-weight: 500; }
@media (max-width: 52rem) { .trips.days li { grid-template-columns: 1fr; } .daynav { font-size: .95rem; } }

.story .facts { margin-bottom: 1.5rem; }
