/* Bote al Agua — "Bitácora de río" */
@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/BigShouldersDisplay-600-900.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-400-650.woff2") format("woff2"); font-weight: 400 650; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-Italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --abyss: #071c2e;
  --navy: #0c2c47;
  --chart: #123b5e;
  --line: rgba(255, 207, 138, .16);
  --text: #e8eef3;
  --muted: #a9bccb;
  --gold: #ffcf8a;
  --signal: #ff8a4c;
  --river: #1f6a96;
  --paper: #efe3cb;
  --ink: #2a1a0c;
  --ink-2: #6b4a2b;
  --rust: #9a330a;
  --f-head: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Source Serif 4", ui-serif, Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--abyss); color: var(--text); font: 400 1.125rem/1.65 var(--f-body); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: .95; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.7rem; line-height: 1.05; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--gold); color: var(--abyss); padding: .6rem 1rem; }
.skip:focus { top: 3rem; }
.ico { width: 1.4rem; height: 1.4rem; flex: none; }
.ico-sm { width: 1.05rem; height: 1.05rem; vertical-align: -.15em; }
.mono-label { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; font: 500 1rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--signal); color: var(--abyss); border: 2px solid var(--signal); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--abyss); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-line:hover { background: var(--text); color: var(--abyss); border-color: var(--text); }

/* Fixed header */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 110; }
.bridge { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--pad); background: linear-gradient(180deg, rgba(7,28,46,.92), rgba(7,28,46,.55)); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bridge-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font: 800 1.6rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.bridge-brand img { width: 44px; height: 44px; border-radius: 6px; }
.bridge-coord { margin: 0; font: 400 1rem var(--f-mono); color: var(--muted); letter-spacing: .08em; }
.bridge-menu { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .9rem; background: transparent; color: var(--text); border: 1.5px solid var(--muted); font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.bridge-menu:hover, .bridge-menu[aria-expanded="true"] { background: var(--gold); color: var(--abyss); border-color: var(--gold); }

.lang-switch { display: flex; align-items: center; gap: .35rem; margin-left: auto; font: 500 1rem var(--f-mono); letter-spacing: .08em; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--gold); text-decoration: underline; text-underline-offset: .3em; }
.lang-switch a:hover { color: #fff; }
.lang-switch span { color: var(--muted); }
.news-en-note { font-size: 1.2rem; max-width: 46rem; }
.landing-context { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); }
@media (max-width: 420px) { .bridge-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Chapter index overlay */
.logindex { position: fixed; inset: 0; z-index: 105; background: rgba(7,28,46,.97); padding: 6rem var(--pad) 3rem; overflow-y: auto; }
.logindex[hidden] { display: none; }
.logindex-inner { max-width: 60rem; }
.logindex ol { list-style: none; margin: 1rem 0 2rem; padding: 0; columns: 2 18rem; }
.logindex li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.logindex a { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; color: var(--text); text-decoration: none; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--f-head); text-transform: uppercase; }
.logindex a span { font: 500 1rem var(--f-mono); color: var(--gold); }
.logindex a:hover { color: var(--gold); }

/* Progress rail */
.rail { position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: .6rem; font: 500 1rem var(--f-mono); color: var(--gold); }
.rail-track { position: relative; width: 2px; height: 34vh; background: repeating-linear-gradient(180deg, var(--muted) 0 6px, transparent 6px 12px); opacity: .7; }
.rail-fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--gold); }
.rail-total { color: var(--muted); }

/* Nautical chart background */
.chart-bg { background-color: var(--abyss); background-image:
  radial-gradient(circle at 78% 40%, transparent 0 9rem, rgba(255,207,138,.10) 9rem calc(9rem + 1px), transparent calc(9rem + 2px) 14rem, rgba(255,207,138,.08) 14rem calc(14rem + 1px), transparent calc(14rem + 2px) 20rem, rgba(255,207,138,.06) 20rem calc(20rem + 1px), transparent calc(20rem + 2px)),
  repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 88px),
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 88px); }

/* HERO */
.zarpada { position: relative; min-height: 100vh; padding: 6rem var(--pad) 0; display: flex; flex-direction: column; overflow: hidden; }
.zarpada-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .7fr); gap: 2rem; align-items: center; flex: 1; }
.zarpada-lead { font-size: 1.3rem; line-height: 1.5; max-width: 26rem; }
.zarpada-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.zarpada-model { margin: 0; position: relative; }
.boat-stage { position: relative; width: min(100%, calc(min(58vh, 520px) * 10 / 7)); aspect-ratio: 10 / 7; margin-inline: auto; }
.boat-poster, .boat-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.boat-poster { object-fit: contain; transition: opacity .6s ease; }
.boat-stage model-viewer { --poster-color: transparent; background: transparent; opacity: 0; transition: opacity .6s ease; }
.boat-stage.is-3d model-viewer { opacity: 1; }
.boat-stage.is-3d .boat-poster { opacity: 0; }
.zarpada-model figcaption { text-align: center; margin-top: .3rem; }
.zarpada-spec { margin: 0; display: grid; gap: .9rem; align-content: center; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.zarpada-spec dt { font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.zarpada-spec dd { margin: 0; min-height: 2rem; font: 800 2rem/1 var(--f-head); color: var(--gold); text-transform: uppercase; }
.zarpada-spec .spec-src dd { font: italic 400 1rem var(--f-body); color: var(--muted); text-transform: none; }
.zarpada-title { position: relative; z-index: 2; margin: 1rem 0 -.08em; font-size: clamp(4.2rem, 17vw, 17rem); line-height: .82; letter-spacing: -.01em; white-space: nowrap; color: var(--text); }
.zarpada-title .al { font: italic 400 .32em var(--f-body); text-transform: none; color: var(--gold); vertical-align: .9em; }
.river { position: relative; height: clamp(60px, 9vw, 130px); margin: 0 calc(var(--pad) * -1); }
.river svg { display: block; width: 100%; height: calc(100% + 2px); margin-bottom: -2px; }
.river .w1 { fill: var(--river); opacity: .55; transform-box: view-box; transform-origin: 0 100%; animation: swell 7s ease-in-out infinite alternate; }
.river .w2 { fill: #3d8fbf; opacity: .45; transform-box: view-box; transform-origin: 0 100%; animation: swell 9s ease-in-out infinite alternate-reverse; }
.river .w3 { fill: var(--chart); }
.river .w4 { fill: var(--navy); }
@keyframes swell { from { transform: scaleY(1); } to { transform: scaleY(1.1); } }

/* Log entries */
.entries { background: var(--navy); padding: 2.5rem var(--pad) 3.5rem; }
.entries-head { margin: 0 0 1rem; color: var(--gold); }
.entries-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.entries-list li { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.2rem 0; border-right: 1px dashed var(--line); }
.entries-list li:first-child { padding-left: 0; }
.entries-list li:last-child { border-right: 0; }
.e-key { font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.e-val { font: 900 clamp(3rem, 6vw, 5rem)/.9 var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; }
.e-src { font: italic 400 1rem var(--f-body); color: var(--muted); }

/* Chapters */
.chapter { position: relative; padding: clamp(4rem, 9vw, 7.5rem) var(--pad); background: var(--navy); }
.chapter--deep { background: var(--abyss); }
.chapter-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 60rem; }
.chapter-head--pad { padding: clamp(4rem, 9vw, 7.5rem) var(--pad) 2rem; margin: 0; }
.chapter-num { font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-bottom: .6rem; display: flex; align-items: center; gap: .8rem; }
.chapter-num::after { content: ""; flex: 0 0 4rem; height: 1px; background: var(--gold); }
.chapter-head h2 { font-size: clamp(3.2rem, 9vw, 7.5rem); margin-bottom: .2em; }

.c1-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.c1-text { max-width: 40rem; }
.dropline::first-letter { float: left; font: 900 4.6em/.8 var(--f-head); color: var(--gold); margin: .06em .12em 0 0; }
.logquote { margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--gold); }
.logquote p { font: italic 400 1.55rem/1.35 var(--f-body); color: var(--text); }
.plate { margin: 0; }
.plate img { width: 100%; border: 1px solid var(--line); filter: saturate(.9); }
.plate figcaption { margin-top: .6rem; font-size: 1rem; color: var(--muted); }
.plate figcaption .mono-label { color: var(--gold); margin-right: .5rem; }
.plate figcaption a { color: var(--muted); }
.legend { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.legend li { padding: 1.2rem 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); transition: background .25s; }
.legend li:hover { background: rgba(255,207,138,.06); }
.legend strong { display: block; color: var(--text); font: 800 1.4rem/1.1 var(--f-head); text-transform: uppercase; margin-bottom: .2rem; }
.legend-sym { float: right; font: 400 1.6rem/1 var(--f-mono); color: var(--gold); }

/* Sticky build steps (after Codrops StickySections, MIT) */
.build { background: var(--abyss); }
.build-intro { font-size: 1.25rem; max-width: 40rem; color: var(--muted); }
.stack { list-style: none; margin: 0; padding: 0; }
.stack-panel { position: sticky; top: 4.4rem; height: calc(100vh - 4.4rem); overflow: hidden; }
.stack-inner { height: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: 2rem var(--pad); background-color: var(--navy); border-top: 1px solid var(--gold); transform-origin: 50% 0; will-change: transform, filter; }
.stack-panel:nth-child(even) .stack-inner { background-color: var(--chart); }
.stack-copy h3 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; margin: .4rem 0 1rem; }
.stack-copy p:last-child { font-size: 1.2rem; max-width: 32rem; }
.stack-copy .mono-label { color: var(--gold); }
.stack-media { margin: 0; position: relative; will-change: transform; }
.stack-media img { width: 100%; max-height: 62vh; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.stack-media figcaption { margin-top: .5rem; }
.stack-media--chart { border: 1px dashed var(--muted); padding: 1.5rem; }
.archimedes { width: 100%; height: auto; }
.archimedes .a-water { stroke: var(--river); stroke-width: 3; stroke-dasharray: 10 6; fill: none; }
.archimedes .a-hull { fill: none; stroke: var(--gold); stroke-width: 3; }
.archimedes circle { fill: var(--signal); }
.archimedes .a-arrow { stroke: var(--text); stroke-width: 2; fill: none; }
.archimedes text { fill: var(--text); font: 500 18px var(--f-mono); text-anchor: middle; }

/* Fleet registry */
.fleet-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.table-wrap { overflow-x: auto; }
.registry { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.registry th, .registry td { text-align: left; padding: 1rem .8rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.registry thead th { font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--gold); }
.registry tbody th { font: italic 400 1.6rem/1.1 var(--f-body); color: var(--gold); white-space: nowrap; }
.registry td:first-child { font-family: var(--f-mono); color: var(--muted); }
.fleet-note { margin-top: 1.6rem; color: var(--muted); }
.fleet-photos { display: grid; gap: 1.5rem; }
.fleet-photos .plate:first-child { width: min(80%, 368px); justify-self: end; }

/* Route timeline on parchment */
.chapter--paper { background-color: var(--paper); color: var(--ink); background-image: repeating-linear-gradient(0deg, rgba(42,26,12,.08) 0 1px, transparent 1px 2.1rem); }
.chapter--paper h2, .chapter--paper h3 { color: var(--ink); }
.chapter--paper .chapter-num { color: var(--rust); }
.chapter--paper .chapter-num::after { background: var(--rust); }
.chapter--paper .mono-label { color: var(--ink-2); }
.route { list-style: none; padding: 0; margin: 0; position: relative; max-width: 64rem; }
.route::before { content: ""; position: absolute; left: 8.5rem; top: .5rem; bottom: .5rem; width: 2px; background: repeating-linear-gradient(180deg, var(--rust) 0 10px, transparent 10px 18px); }
.wp { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.5rem; padding: 0 0 2.2rem; position: relative; }
.wp::before { content: ""; position: absolute; left: calc(8.5rem - 8px); top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rust); }
.wp-date { font: 500 1rem/1.6 var(--f-mono); text-transform: uppercase; color: var(--rust); text-align: right; }
.wp h3 { font-size: 1.8rem; margin-bottom: .3rem; }
.wp p { margin: 0; color: #3d2b1a; max-width: 44rem; }

/* Ports */
.ports-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ports { list-style: none; padding: 0; margin: 0; }
.ports li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s; }
.ports li:hover { padding-left: .6rem; }
.port-code { font: 500 1rem/1 var(--f-mono); color: var(--abyss); background: var(--gold); padding: .45rem .5rem; align-self: start; text-align: center; letter-spacing: .08em; }
.ports h3 { font-size: 1.7rem; margin-bottom: .3rem; }
.ports p { margin: 0; color: var(--muted); }
.plate--tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Fullscreen slideshow (after Codrops FullscreenScroll, MIT) */
.postales { position: relative; background: #000; }
.postales-head { position: absolute; z-index: 5; top: 0; left: 0; padding: 2.5rem var(--pad); pointer-events: none; }
.postales-head h2 { font-size: clamp(3rem, 8vw, 6.5rem); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.postales-head .chapter-num { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.slides { position: relative; height: 100vh; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; overflow: hidden; transform: translateY(100%); visibility: hidden; }
.slide-inner { position: absolute; inset: 0; transform: translateY(-100%); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-current, .slide.is-leaving { visibility: visible; }
.slide.is-current, .slide.is-current .slide-inner { transform: none; }
.slide.anim, .slide.anim .slide-inner { transition: transform 1.2s cubic-bezier(.77, 0, .18, 1); }
.slide.from-prev { transform: translateY(-100%); }
.slide.from-prev .slide-inner { transform: translateY(100%); }
.slide.is-leaving.to-next { transform: translateY(-100%); }
.slide.is-leaving.to-next .slide-inner { transform: translateY(70%) scale(1.15); }
.slide.is-leaving.to-prev { transform: translateY(100%); }
.slide.is-leaving.to-prev .slide-inner { transform: translateY(-70%) scale(1.15); }
.slide-fig { margin: 0; position: absolute; inset: 0; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem var(--pad) 6rem; background: linear-gradient(0deg, rgba(7,28,46,.92), transparent); display: flex; flex-direction: column; gap: .3rem; }
.slide-title { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--f-head); text-transform: uppercase; color: #fff; }
.slide figcaption .mono-label { color: #dbe7f0; }
.slide figcaption a { color: #fff; }
.slides-ctrl { position: absolute; z-index: 6; right: var(--pad); bottom: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.slides-btn { width: 52px; height: 52px; display: grid; place-items: center; background: rgba(7,28,46,.75); color: #fff; border: 1.5px solid #fff; cursor: pointer; }
.slides-btn:hover { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.slides-count { margin: 0; color: #fff; }

/* Press clips */
.clips { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--gold); }
.clip { position: relative; display: grid; grid-template-columns: 8rem minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.clip:hover, .clip:focus-within { background: rgba(255,207,138,.05); }
.clip-date { font: 500 1rem/1.7 var(--f-mono); color: var(--gold); }
.clip-src { margin-bottom: .4rem; }
.clip h3, .clip-h { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; margin-bottom: .5rem; }
.clip h3 a, .clip-h a { color: var(--text); text-decoration: none; }
.clip h3 a::after, .clip-h a::after { content: ""; position: absolute; inset: 0; }
.clip h3 a:hover, .clip h3 a:focus-visible, .clip-h a:hover, .clip-h a:focus-visible { color: var(--gold); text-decoration: underline; }
.clip-body p:last-child { margin: 0; color: var(--muted); }
.clip-thumb { margin: 0; }
.clip-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s, transform .35s; }
.clip:hover .clip-thumb img, .clip:focus-within .clip-thumb img { filter: none; transform: rotate(-2deg) scale(1.04); }
.clip-thumb figcaption { margin-top: .3rem; font-size: 1rem; }

/* Press archive page + 404 */
.clips-more { margin: 2rem 0 0; }
.prensa-page, .lost { padding-top: 7.5rem; min-height: 70vh; }
.prensa-title, .lost h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); margin-bottom: .2em; }
.lost p { max-width: 36rem; font-size: 1.2rem; }

/* News ("Novedades", generated by tools/news.py) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.4rem; }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--abyss); border: 1px solid var(--line); border-top: 3px solid var(--gold); transition: transform .2s, background .2s; }
.chapter--deep .news-card { background: var(--navy); }
.news-card:hover, .news-card:focus-within { transform: translateY(-3px); background: var(--chart); }
.news-card-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.news-card-meta { margin: 0; color: var(--gold); }
.news-card-title { font-size: 1.8rem; line-height: 1; margin: 0; }
.news-card-title a { color: var(--text); text-decoration: none; }
.news-card-title a::after { content: ""; position: absolute; inset: 0; }
.news-card-title a:hover, .news-card-title a:focus-visible { color: var(--gold); text-decoration: underline; }
.news-card-summary { margin: 0; color: var(--muted); }
.news-home-more { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.news-home-rss, .news-rss a { color: var(--gold); }
.social-card { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: 1.6rem; border: 1px dashed var(--muted); }
.social-card h3 { color: var(--gold); margin-bottom: .3rem; }
.social-card p { margin: 0; max-width: 40rem; color: var(--muted); }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.news-listing, .news-article { padding-top: 7.5rem; min-height: 70vh; }
.news-listing h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); margin-bottom: .2em; }
.news-tags ul { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.news-tags a { display: inline-block; min-height: 44px; padding: .7rem .9rem; border: 1px solid var(--muted); color: var(--text); text-decoration: none; font: 500 1rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.news-tags a:hover, .news-tags a[aria-current="page"] { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.news-pagination { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.news-pagination a { padding: .6rem .9rem; border: 1px solid var(--line); color: var(--text); font-family: var(--f-mono); }
.news-pagination a[aria-current="page"] { background: var(--gold); color: var(--abyss); }
.news-rss { margin-top: 2rem; }
.news-article-head, .news-body, .news-after { max-width: 46rem; margin-inline: auto; }
.news-article h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin: .3rem 0 .6rem; overflow-wrap: break-word; }
.news-article-head .chapter-num { flex-wrap: wrap; }
.news-dek { font: italic 400 1.4rem/1.4 var(--f-body); color: var(--muted); }
.news-figure, .news-inline-figure { max-width: 900px; margin: 2.5rem auto; }
.news-figure img, .news-inline-figure img { width: 100%; border: 1px solid var(--line); }
.news-figure figcaption, .news-inline-figure figcaption { margin-top: .5rem; font-size: 1rem; color: var(--muted); }
.news-body { font-size: 1.2rem; }
.news-body h2 { font-size: 2.2rem; margin: 2rem 0 .6rem; color: var(--gold); }
.news-body ul { padding-left: 1.3rem; }
.news-body li { margin-bottom: .4rem; }
.news-body blockquote { margin: 1.6rem 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-style: italic; }
.news-source { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 1rem; color: var(--muted); }
.news-body .news-tags ul { margin-top: 1.2rem; }
.news-after { margin-top: 2.5rem; display: grid; gap: 2rem; }
.news-share { border: 1px solid var(--line); padding: 1.3rem; }
.news-share-title { font-size: 1.6rem; margin-bottom: .8rem; }
.news-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.news-share a, .news-share button { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; border: 1.5px solid var(--muted); background: transparent; color: var(--text); font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.news-share a:hover, .news-share button:hover { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.news-copy-status { margin: .6rem 0 0; color: var(--gold); min-height: 1.5em; }
.news-cta { padding: 1.6rem; background: linear-gradient(160deg, #8a4a1f, #5e3214); }
.news-cta-title { font-size: 2.2rem; color: #fff; margin-bottom: .4rem; }
.news-cta-text { color: #fbeee0; }
.news-cta-link { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.4rem; background: var(--cream, #fbf6ee); color: #5e3214; font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.news-cta-link:hover { background: #fff; color: #5e3214; }
.news-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.news-prevnext a { display: block; padding: 1rem; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.news-prevnext a span { display: block; font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.news-next { text-align: right; grid-column: 2; }
.news-prevnext a:hover { background: var(--chart); }
@media (max-width: 560px) { .news-prevnext { grid-template-columns: 1fr; } .news-next { grid-column: auto; text-align: left; } }

/* Landing pages + press kit */
.landing { padding-top: 7.5rem; }
.crumbs { margin: 0 auto 1.6rem; max-width: 46rem; }
.crumbs a { color: var(--gold); }
.landing-head, .landing-body { max-width: 46rem; margin-inline: auto; }
.landing-head h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin: .3rem 0 .6rem; overflow-wrap: break-word; }
.landing-head .chapter-num { flex-wrap: wrap; }
.landing-figure { max-width: 900px; margin: 2.5rem auto; }
.landing-figure img { width: 100%; border: 1px solid var(--line); }
.landing-figure figcaption { margin-top: .5rem; font-size: 1rem; color: var(--muted); }
.landing-body { font-size: 1.2rem; }
.landing-sec { margin-top: 2.6rem; }
.landing-sec h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold); margin-bottom: .7rem; }
.landing-sec ul, .landing-steps { padding-left: 1.3rem; }
.landing-sec li { margin-bottom: .5rem; }
.legend--page { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; padding: 0; }
.landing-cta { border: 1px dashed var(--muted); padding: 1.6rem; }
.landing-cta-text { color: var(--text); }
.landing-related { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.landing-related h2 { color: var(--gold); margin-bottom: .6rem; }
.landing-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.landing-related a { display: inline-block; padding: .5rem 0; font: 800 1.5rem/1.1 var(--f-head); text-transform: uppercase; color: var(--text); }
.landing-related a:hover { color: var(--gold); }
.berths-adults { margin: 1.6rem 0 0; font-size: 1.15rem; }
.foot-links ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .2rem; }
.foot-links a { display: inline-block; padding: .35rem 0; }
.kit { margin-bottom: 2rem; }
.kit-sec { margin: 0 0 3rem; max-width: 64rem; }
.kit-sec h2, .kit-press-title { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--text); margin-bottom: .8rem; }
.kit-sec h3 { color: var(--gold); margin: 1.2rem 0 .4rem; }
.kit-text { font-size: 1.2rem; max-width: 46rem; }
.kit-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem 2rem; }
.kit-facts dt { font: 500 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kit-facts dd { margin: .2rem 0 0; font-size: 1.15rem; }
.kit-logo { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.kit-logo img { border-radius: 10px; }
.kit-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.kit-downloads a { display: inline-block; padding: .45rem 0; font-family: var(--f-mono); }
.kit-photos { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.4rem; }
.kit-photo { display: flex; flex-direction: column; gap: .6rem; border: 1px solid var(--line); padding: .8rem; background: var(--navy); }
.kit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kit-photo p { margin: 0; color: var(--muted); font-size: 1rem; }
.kit-photo .btn { margin-top: auto; justify-content: center; text-align: center; line-height: 1.2; }
@media (max-width: 560px) { .legend--page { grid-template-columns: 1fr; } }

/* Guides + friends pages */
.guide-meta { margin: 0; font-size: .95rem; }
.guide-toc { margin-top: 2rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--muted); }
.guide-toc h2 { color: var(--gold); margin-bottom: .5rem; }
.guide-toc ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .2rem; font-size: 1.05rem; }
.guide-toc a { display: block; padding: .3rem 0; }
.guide-table { font-size: 1rem; }
.guide-table tbody th { font: 600 1.05rem/1.3 var(--f-body); color: var(--gold); white-space: normal; }
.guide-table td:first-child { font-family: var(--f-body); color: var(--text); }
.guide-sources ol { padding-left: 1.4rem; font-size: 1rem; color: var(--muted); display: grid; gap: .5rem; }
.guide-sources .mono-label { font-size: .9rem; }
.landing-sec .landing-figure { margin: 2rem 0 0; }
.guides-grid { margin-top: 2rem; }
.friends { margin-top: 2rem; }
.friends h2 { font-size: 1.9rem; margin-bottom: .3rem; color: var(--text); }
.friends .friend-place { margin-bottom: .6rem; font-size: .95rem; }
.friends p:not(.friend-place) { color: var(--text); }
.friends li > div > p:last-child { margin: 0; }

/* Berths + FAQ */
.berths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.berths li { padding: 2rem 1.6rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; transition: background .25s; }
.berths li:last-child { border-right: 0; }
.berths li:hover { background: rgba(255,207,138,.05); }
.berth-n { font: 900 4rem/1 var(--f-head); color: var(--gold); margin-bottom: .6rem; }
.berths h3 { font-size: 2rem; }
.berths p { color: var(--muted); flex: 1; }
.faq { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 54rem; }
.faq h3 { color: var(--gold); margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: 1rem 0; font: 800 1.6rem/1.1 var(--f-head); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--gold); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-lead { font-size: 1.3rem; max-width: 30rem; }
.signals { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.signals li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.15rem; }
.signals .ico { color: var(--gold); margin-top: .2rem; }
.signals a { font-family: var(--f-mono); font-weight: 500; }
.signal-card { border: 1px solid var(--line); padding: 1.8rem; background: var(--navy); }
.signal-card h3 { color: var(--gold); font-size: 2rem; }
.signal-card ul { margin: 0 0 1.6rem; padding-left: 1.2rem; color: var(--text); display: grid; gap: .4rem; }

/* Footer */
.logfoot { background: var(--navy); }
.river--foot { margin: 0; background: var(--abyss); }
.river--foot .w1 { fill: var(--river); opacity: .3; animation: none; }
.river--foot .w2 { fill: #3d8fbf; opacity: .25; animation: none; }
.river--foot .w3 { fill: var(--chart); }
.river--foot .w4 { fill: #04121f; }
.logfoot-body { background: #04121f; padding: 1.5rem var(--pad) 3rem; color: var(--muted); }
.logfoot-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 2.5rem; }
.logfoot-title { display: flex; align-items: center; gap: 1rem; font: 900 2.6rem/1 var(--f-head); text-transform: uppercase; color: var(--text); }
.logfoot-title img { width: 72px; height: 72px; border-radius: 8px; }
.credits h2 { color: var(--gold); margin-bottom: .6rem; }
.credits ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: 1rem; }

@media (min-width: 901px) {
  .zarpada, .entries, .chapter, .chapter-head--pad, .logfoot-body, .stack-inner { padding-right: calc(var(--pad) + 2.5rem); }
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .river path { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slide.anim, .slide.anim .slide-inner { transition: none; }
  .clip-thumb img, .btn, .ports li, .legend li { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .zarpada-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .zarpada-spec { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .boat-stage { width: 100%; }
  .rail, .bridge-coord { display: none; }
  .zarpada-grid, .c1-grid, .fleet-grid, .ports-grid, .contact-grid { grid-template-columns: 1fr; }
  .zarpada-spec { grid-template-columns: repeat(2, auto); }
  .entries-list { grid-template-columns: repeat(2, 1fr); }
  .entries-list li { border-right: 0; padding-left: 0; border-bottom: 1px dashed var(--line); padding-bottom: 1rem; }
  /* sticky steps fall back to a vertical list */
  .stack-panel { position: relative; top: auto; height: auto; }
  .stack-inner { grid-template-columns: 1fr; padding: 3rem var(--pad); transform: none !important; filter: none !important; }
  .stack-media { transform: none !important; }
  .stack-media img { max-height: none; }
  .berths { grid-template-columns: 1fr; }
  .berths li { border-right: 0; border-bottom: 1px solid var(--line); }
  .logfoot-grid { grid-template-columns: 1fr; }
  .clip { grid-template-columns: 1fr; gap: .6rem; }
  .clip-thumb { max-width: 16rem; }
  .slides { height: 75vh; }
  .route::before { left: .55rem; }
  .wp { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.4rem; }
  .wp::before { left: 0; }
  .wp-date { text-align: left; }
  .fleet-photos .plate:first-child { width: 100%; }
}
@media (max-width: 560px) {
  .legend, .entries-list { grid-template-columns: 1fr; }
  .bridge-brand span { font-size: 1.3rem; }
  .bridge-menu-label { display: none; }
  .zarpada-title { white-space: normal; font-size: clamp(3.6rem, 22vw, 6rem); }
  .zarpada-spec { grid-template-columns: 1fr 1fr; }
  .registry tbody th { white-space: normal; }
  .slides-ctrl { right: 1rem; }
}
