[hidden] { display: none !important; }

@font-face {
  font-family: "Corinth Display";
  src: url("/canalul-corint/assets/fonts/barlowcondensed-latin.6553a31e71bb.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans Local";
  src: url("/canalul-corint/assets/fonts/ibmplexsans-latin.056e4e2459f5.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Plex Sans Local";
  src: url("/canalul-corint/assets/fonts/ibmplexsans-latin-ext.ae1d854fefa1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono Local";
  src: url("/canalul-corint/assets/fonts/ibmplexmono-latin.81fc864103e7.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans Local";
  src: url("/canalul-corint/assets/fonts/barlowcondensed-latin.6553a31e71bb.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  unicode-range: U+2212;
}
@font-face {
  font-family: "Plex Mono Local";
  src: url("/canalul-corint/assets/fonts/ibmplexsans-latin.056e4e2459f5.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  unicode-range: U+2013, U+201E, U+201D, U+2019;
}

:root {
  color-scheme: dark;
  --ink: #e8e2d6;
  --ink-soft: #bac5bd;
  --ink-dim: #8fa09b;
  --water: #7cb9b7;
  --water-deep: #23494b;
  --signal: #d3a45c;
  --stone: #89796a;
  --line-soft: rgba(216, 208, 190, .22);
  --line-strong: rgba(216, 208, 190, .42);
  --page: #0b252a;
  --page-2: #102c31;
  --panel: #183338;
  --panel-deep: #0d2024;
  --topbar-h: 4rem;
  --content: 72rem;
  --measure: 43rem;
  --display: "Corinth Display", "Arial Narrow", sans-serif;
  --sans: "Plex Sans Local", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono Local", ui-monospace, monospace;
  --focus: #f1c77e;
  --shadow: 0 18px 54px rgba(0, 0, 0, .24);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #192c2e;
  --ink-soft: #34484a;
  --ink-dim: #52676a;
  --water: #286f72;
  --water-deep: #c1d9d4;
  --signal: #8c571a;
  --stone: #756355;
  --line-soft: rgba(25, 44, 46, .18);
  --line-strong: rgba(25, 44, 46, .38);
  --page: #e8e3d7;
  --page-2: #ded8ca;
  --panel: #f2eee4;
  --panel-deep: #d4cec0;
  --focus: #784b12;
  --shadow: 0 18px 54px rgba(42, 37, 26, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 1rem); background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #0b252a; background: #d3a45c; }
a { color: var(--water); text-decoration-thickness: .08em; text-underline-offset: .19em; }
a:hover { color: var(--signal); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
svg { display: block; max-width: 100%; }
figure { margin: 0; }

.skip-link {
  position: fixed; z-index: 100; top: .6rem; left: .6rem; padding: .65rem 1rem;
  transform: translateY(-160%); background: var(--ink); color: var(--page); border-radius: .2rem;
}
.skip-link:focus { transform: translateY(0); }
.site-topbar {
  position: sticky; z-index: 40; top: 0; min-height: var(--topbar-h);
  background: color-mix(in srgb, var(--page) 93%, transparent);
  border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(14px);
}
.topbar-inner {
  width: min(100% - 2.5rem, 88rem); min-height: var(--topbar-h); margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .86rem; font-weight: 700; letter-spacing: .015em; }
.brand-mark { width: 1.7rem; height: 1.7rem; }
.top-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.4rem, 1.2vw, 1.2rem); overflow: hidden; }
.top-nav a { color: var(--ink-soft); font-size: .72rem; text-decoration: none; white-space: nowrap; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--signal); }
.edition-tools { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.language-switch { display: flex; align-items: center; gap: .3rem; padding-right: .7rem; border-right: 1px solid var(--line-soft); font: 700 .72rem/1 var(--mono); }
.language-switch a { color: var(--ink-dim); text-decoration: none; padding: .35rem .25rem; }
.language-switch a[aria-current="page"] { color: var(--signal); }
.theme-control { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-control svg { width: 1.05rem; height: 1.05rem; }
#progress-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; pointer-events: none; }
#progress-boat { position: absolute; top: -8px; left: 0; width: 24px; height: 13px; transform: translateX(-50%); color: var(--signal); }
#progress-boat path { fill: currentColor; }

.hero {
  position: relative; isolation: isolate; width: min(100% - 3rem, var(--content)); margin: 0 auto;
  min-height: min(780px, calc(100svh - var(--topbar-h))); padding: clamp(4rem, 9vh, 8rem) 0 4.5rem;
  display: grid; grid-template-columns: minmax(18rem, .82fr) minmax(26rem, 1.18fr); align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.hero::before { content: ""; position: absolute; z-index: 0; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(90deg, var(--page) 15%, var(--page-2) 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 39rem; }
.eyebrow, .section-index, .figure-label, .micro-label { color: var(--signal); font: 600 .7rem/1.35 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 11ch; margin: .9rem 0 1.25rem; font: 700 clamp(3.5rem, 7vw, 6.8rem)/.91 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.hero-deck { max-width: 37rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.5; }
.hero-open { max-width: 31rem; margin: 1.3rem 0 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.hero-visual { position: relative; z-index: 2; align-self: stretch; min-height: 26rem; display: flex; align-items: center; }
.hero-visual::after { content: ""; position: absolute; inset: 12% 0 7%; border: 1px solid var(--line-soft); border-radius: 47% 53% 8% 10% / 34% 32% 8% 10%; pointer-events: none; }
.hero-svg { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 22px 42px rgba(0,0,0,.24)); }
.hero-vessel { transform-box: fill-box; transform-origin: center; animation: vessel-float 4.8s ease-in-out infinite alternate; }
@keyframes vessel-float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.hero-caption { position: absolute; z-index: 2; right: 0; bottom: 1rem; max-width: 15rem; padding: .55rem .75rem; background: var(--page); border-left: 2px solid var(--water); color: var(--ink-soft); font: .68rem/1.45 var(--mono); }
.hero-credit { margin-top: .75rem; color: var(--ink-dim); font-size: .68rem; }
.hero-credit a { color: inherit; }
.hero-photo-figure { height: min(66svh, 42rem); min-height: 26rem; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel-deep); box-shadow: var(--shadow); }
.hero-photo-figure::after { display: none; }
.hero-photo { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--panel-deep); }
.hero-photo-figure figcaption { position: relative; z-index: 3; padding: .75rem .9rem; background: var(--panel); border-top: 1px solid var(--line-soft); }
.share-section { width: min(100% - 3rem, var(--content)); margin: 0 auto 2.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.share-line { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.share-label { margin-right: .3rem; color: var(--ink-dim); font-size: .75rem; }
.share-row { display: inline-flex; gap: .45rem; align-items: center; }
.share-icon { width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0; color: var(--ink-soft); border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; text-decoration: none; cursor: pointer; }
.share-icon svg { width: 1.1rem; height: 1.1rem; }
.share-icon:hover, .share-icon:focus-visible { color: var(--signal); border-color: var(--signal); }
.share-status { min-height: 1.35em; color: var(--ink-dim); font-size: .76rem; }
.copy-fallback { width: min(100%, 30rem); margin-top: .5rem; padding: .4rem .6rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line-soft); }

.rail {
  position: fixed; z-index: 20; top: 50%; right: max(1.1rem, calc((100vw - 89rem) / 2));
  transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: .68rem;
  padding: .65rem; border: 1px solid var(--line-soft); border-radius: 2rem; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px);
}
.rail a { position: relative; width: .68rem; height: .68rem; display: block; color: var(--ink); text-decoration: none; }
.rail .rail-dot { display: block; width: 100%; height: 100%; border: 1px solid var(--ink-dim); border-radius: 50%; background: transparent; }
.rail a[aria-current="location"] .rail-dot { transform: scale(1.2); border-color: var(--signal); background: var(--signal); }
.rail a::after { content: attr(data-label); position: absolute; top: 50%; right: calc(100% + .65rem); width: max-content; max-width: 12rem; padding: .22rem .5rem; transform: translateY(-50%); opacity: 0; pointer-events: none; background: var(--panel); border: 1px solid var(--line-soft); color: var(--ink); font: .69rem/1.4 var(--sans); }
.rail a:hover::after, .rail a:focus-visible::after { opacity: 1; }

.story { width: min(100% - 3rem, var(--content)); margin: 0 auto; }
.story-section { position: relative; padding: clamp(4.6rem, 9vw, 8rem) 0; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.section-heading { max-width: var(--measure); margin: 0 0 2.3rem; }
.section-index { display: flex; gap: .85rem; align-items: center; margin-bottom: .75rem; }
.section-index::before { content: ""; width: 2.4rem; height: 1px; background: var(--signal); }
.story-section h2 { margin: 0; font: 650 clamp(2.5rem, 4.6vw, 4.35rem)/.98 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.story-section h3 { margin: 0 0 .65rem; font: 650 clamp(1.55rem, 2.8vw, 2.2rem)/1.05 var(--display); }
.story-section p { max-width: var(--measure); margin: 0 0 1.15rem; color: var(--ink-soft); font-size: clamp(1rem, 1.14vw, 1.1rem); line-height: 1.78; }
.story-section p:last-child { margin-bottom: 0; }
.story-section p a { color: var(--water); }
.section-intro { max-width: 42rem; margin: -1.3rem 0 1.8rem; color: var(--ink-soft); font-size: 1.12rem; }
.body-copy { max-width: var(--measure); }
.body-copy p + p { margin-top: 1.15rem; }
.citations { display: inline-flex; gap: .18rem; margin-left: .35rem; vertical-align: .12em; white-space: nowrap; }
.citations a { color: var(--water); font: .66rem/1 var(--mono); text-decoration: none; }
.citations a:hover { color: var(--signal); text-decoration: underline; }
.section-with-figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .82fr); align-items: start; gap: clamp(2.25rem, 6vw, 6rem); }
.section-with-figure .section-heading, .section-with-figure .section-body { grid-column: 1; }
.section-with-figure .diagram { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--topbar-h) + 1.5rem); }
.diagram { overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.diagram svg { width: 100%; }
.diagram figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; color: var(--ink-dim); border-top: 1px solid var(--line-soft); font: .68rem/1.5 var(--mono); }
.diagram-credit { color: var(--ink-soft); text-align: right; }
.svg-label { fill: #e8e2d6; font: 13px var(--mono); letter-spacing: .03em; }
.svg-label-small { fill: #bac5bd; font: 11px var(--mono); }
.svg-dim { fill: #d3a45c; font: 700 16px var(--mono); }
.hero-art .svg-label, .journey-figure .svg-label, .diagram .svg-label { fill: #e8e2d6; }
.hero-art .svg-label-small, .journey-figure .svg-label-small, .diagram .svg-label-small { fill: #bac5bd; }
.hero-art .svg-dim, .journey-figure .svg-dim, .diagram .svg-dim { fill: #d3a45c; }
.svg-water { fill: #32666a; }
.svg-waterline { fill: none; stroke: #8fd3ca; stroke-width: 3; }
.svg-rock { fill: #786755; }
.svg-rock-light { fill: #a08b73; }
.svg-cut { fill: #0b252a; }
.svg-dash { fill: none; stroke: #d3a45c; stroke-width: 3; stroke-dasharray: 8 8; }
.svg-line { fill: none; stroke: var(--line-strong); stroke-width: 2; }

.figure-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); align-items: start; gap: clamp(1rem, 2.4vw, 2rem); width: min(100%, 72rem); margin: 2rem auto 0; }
.figure-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 58rem; }
.commons-figure { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); box-shadow: var(--shadow); }
.commons-photo { display: block; width: 100%; height: auto; background: var(--panel-deep); }
.commons-photo--modest { width: min(100%, 15rem); margin: .6rem auto 0; }
.commons-figure figcaption { padding: .85rem 1rem 1rem; border-top: 1px solid var(--line-soft); }
.figure-caption { display: block; max-width: 68ch; color: var(--ink); font-size: .9rem; line-height: 1.55; }
.image-credit { margin: .55rem 0 0; color: var(--ink-dim); font: .68rem/1.55 var(--mono); overflow-wrap: anywhere; }
.image-credit a { color: inherit; text-decoration-thickness: .06em; }
.image-credit a:hover { color: var(--signal); }

.journey { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(19rem, .92fr); align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.journey-visual-column { position: sticky; top: calc(var(--topbar-h) + 1rem); align-self: start; min-width: 0; }
.chapter-section { --chapter-grade: var(--signal); }
.chapter-section[data-grade="coast"] { --chapter-grade: #73bdb8; }
.chapter-section[data-grade="mechanism"] { --chapter-grade: #e3ad61; }
.chapter-section[data-grade="stone"] { --chapter-grade: #b5a38a; }
.chapter-section[data-grade="ochre"] { --chapter-grade: #d6b860; }
.chapter-section[data-grade="evidence"] { --chapter-grade: #9cbbb0; }
.chapter-section[data-grade="burnished"] { --chapter-grade: #d7895a; }
.chapter-section[data-grade="waterline"] { --chapter-grade: #73b9c0; }
.chapter-section[data-grade="moss"] { --chapter-grade: #a3b67c; }
.chapter-section[data-grade="rust"] { --chapter-grade: #cf785e; }
.chapter-heading { position: relative; }
.chapter-heading .section-index { color: var(--chapter-grade); }
.chapter-heading .section-index::before { background: var(--chapter-grade); }
.chapter-number { font-size: 1.15rem; }
.chapter-total { color: var(--ink-dim); }
.chapter-arc { margin-left: auto; color: var(--chapter-grade); font-size: .62rem; }
.journey-figure { position: relative; min-width: 0; height: clamp(34rem, 68svh, 42rem); overflow: hidden; background: var(--panel-deep); border: 1px solid var(--line-soft); border-top: 3px solid var(--chapter-grade); box-shadow: var(--shadow); }
.journey-figure svg { width: 100%; }
.journey-figure .chapter-svg { background: var(--panel-deep); }
.journey-figure figcaption { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; color: var(--ink-dim); background: var(--panel); border-top: 1px solid var(--line-soft); font: .6rem/1.4 var(--mono); }
.journey-figure figcaption > span:nth-child(2) { flex: 1; }
.scene-readout { display: grid; grid-template-columns: 1fr auto; gap: .18rem .75rem; padding: .72rem .85rem .8rem; background: var(--panel); border-top: 1px solid var(--line-soft); }
.scene-kicker { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .8rem; margin: 0; color: var(--chapter-grade); font: 600 .62rem/1.25 var(--mono); letter-spacing: .1em; }
.scene-counter { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.scene-label { color: var(--ink); font: 650 1.28rem/1.1 var(--display); }
.scene-time { align-self: end; min-height: 2.6em; max-width: 14rem; color: var(--chapter-grade); text-align: right; font: .61rem/1.3 var(--mono); }
.scene-scope { grid-column: 1 / -1; min-height: 2.6em; margin: .22rem 0 0; color: var(--ink-dim); font: .66rem/1.4 var(--sans); }
.scene-measures { grid-column: 1 / -1; display: grid; min-height: 6rem; align-content: start; gap: .35rem; margin-top: .4rem; }
.scene-measure { display: grid; grid-template-columns: minmax(4.5rem, .66fr) auto minmax(0, 1.34fr); align-items: baseline; gap: .08rem .5rem; padding-top: .34rem; border-top: 1px solid var(--line-soft); }
.scene-measure-label { grid-column: 1; color: var(--ink-dim); font: .6rem/1.25 var(--mono); }
.scene-measure-value { grid-column: 2; color: var(--chapter-grade); font: 650 1.1rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scene-measure-unit { grid-column: 3; color: var(--ink); font: .68rem/1.2 var(--mono); }
.scene-measure-date, .scene-measure-scope { grid-column: 1 / -1; color: var(--ink-dim); font: .58rem/1.35 var(--sans); }
.scene-progress { position: absolute; z-index: 3; top: .7rem; right: .75rem; display: flex; gap: .24rem; }
.scene-progress i { width: .38rem; height: .38rem; border: 1px solid var(--chapter-grade); border-radius: 50%; background: transparent; }
.scene-progress i.is-past { background: color-mix(in srgb, var(--chapter-grade) 45%, transparent); }
.scene-progress i.is-active { transform: scale(1.35); background: var(--chapter-grade); }
.scene-toggle { position: absolute; z-index: 4; top: .55rem; left: .6rem; display: inline-flex; align-items: center; gap: .35rem; max-width: calc(100% - 5rem); padding: .28rem .48rem; border: 1px solid rgba(232,226,214,.45); background: rgba(11,37,42,.9); color: #f2eadb; cursor: pointer; font: .59rem/1.2 var(--mono); }
.scene-toggle:hover { border-color: #f1c77e; color: #f1c77e; }
.scene-toggle input { width: .85rem; height: .85rem; margin: 0; accent-color: #d3a45c; }
.journey-controls { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .5rem; }
.journey-controls button { width: 2.55rem; height: 2.35rem; padding: 0; border: 1px solid var(--line-soft); background: var(--page-2); color: var(--ink); cursor: pointer; font: 1.2rem/1 var(--sans); }
.journey-controls button:hover { border-color: var(--chapter-grade); color: var(--chapter-grade); }
.journey-status { min-height: 1.2rem; margin: .15rem 0 0; color: var(--ink-dim); font-size: .68rem; }
.journey-steps { display: flex; flex-direction: column; min-width: 0; }
.journey-step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 2.8rem 0; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--topbar-h) + 2rem); outline: none; }
.journey-step:first-child { border-top: 0; }
.journey-step .step-time { display: block; margin-bottom: .72rem; color: var(--chapter-grade); font: 600 .67rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.journey-step h3 { max-width: 16ch; margin-bottom: .8rem; }
.journey-step p { margin: 0; }
.journey-step .step-scope { margin-top: .82rem; padding-left: .75rem; border-left: 2px solid var(--chapter-grade); color: var(--ink-dim); font-size: .78rem; line-height: 1.5; }
.journey-step.on h3 { color: var(--chapter-grade); }
.journey-step:focus-visible { outline-offset: .25rem; }
.journey-next-link { align-self: flex-start; margin-top: 1.1rem; padding: .52rem .7rem; border: 1px solid var(--line-soft); color: var(--ink); font: .72rem var(--mono); text-decoration: none; }
.journey-next-link:hover { border-color: var(--chapter-grade); color: var(--chapter-grade); }
.journey-postscript { margin-top: 2.4rem; }
.figure-gallery.chapter-art-gallery { display: block; width: auto; max-width: none; height: var(--chapter-media-height); margin: 0; }
.journey-figure:not(.has-active-art) .chapter-art-gallery,
.journey-figure.has-active-art .chapter-svg { display: none; }
.chapter-artwork { position: relative; height: 100%; }
.chapter-art-frame { box-shadow: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.chapter-art-frame { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.chapter-art-frame .commons-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: var(--panel-deep); }
.chapter-art-frame figcaption { display: grid; grid-template-columns: minmax(0, 1fr); gap: .22rem; padding: .42rem .65rem; border-top: 0; }
.chapter-art-frame .figure-caption { flex: 1; font-size: .76rem; }
.chapter-art-frame .image-credit { max-width: none; margin: 0; font-size: .58rem; line-height: 1.4; text-align: left; }
.chapter-svg { display: block; width: 100%; height: var(--chapter-media-height) !important; object-fit: contain; }
.journey-figure { --chapter-media-height: clamp(13rem, 34svh, 24rem); }
.chapter-svg .svg-label, .chapter-svg .scene-label { fill: #f0e7d7; }
.chapter-svg .svg-label-small { fill: #c5cdc4; }
.chapter-svg .svg-dim { fill: #e4b86d; }
.stage { display: none; }
.journey-figure[data-state="passage-isthmia"] .route-ship--isthmia,
.journey-figure[data-state="passage-cut"] .route-ship--cut,
.journey-figure[data-state="passage-posidonia"] .route-ship--posidonia,
.journey-figure[data-state="route-gulfs"] .route-ship--gulfs,
.journey-figure[data-state="route-around"] .route-ship--around { opacity: 1; }
.route-ship { opacity: 0; fill: #f0e7d7; stroke: #0b252a; stroke-width: 2; transition: opacity .25s ease; }
.route-pin { fill: var(--chapter-grade); opacity: .24; }
.journey-figure[data-state="route-gulfs"] .pin-east,
.journey-figure[data-state="route-around"] .pin-middle,
.journey-figure[data-state="passage-isthmia"] .pin-east,
.journey-figure[data-state="passage-cut"] .pin-middle,
.journey-figure[data-state="passage-posidonia"] .pin-west { opacity: 1; }
.bridge-lowered-deck, .bridge-mid-deck, .bridge-warning, .bridge-return-mark { opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.journey-figure[data-state="bridge-prepare"] .bridge-warning,
.journey-figure[data-state="bridge-lowering"] .bridge-mid-deck,
.journey-figure[data-state="bridge-cleared"] .bridge-lowered-deck,
.journey-figure[data-state="bridge-return"] .bridge-return-mark { opacity: 1; }
.journey-figure[data-state="bridge-cleared"] #road-overlay { opacity: 0; }
.journey-figure[data-state="bridge-lowering"] #road-overlay { opacity: .58; transform: translateY(14px); transform-box: fill-box; }
.journey-figure.hide-stage-layer #road-overlay,
.journey-figure.hide-stage-layer #reconstruction-overlay { opacity: 0 !important; }
.diolkos-hypothesis, .paving-width, .track-grooves { opacity: .22; transition: opacity .25s ease; }
.journey-figure[data-state="diolkos-road"] .diolkos-hypothesis,
.journey-figure[data-state="diolkos-unknowns"] .diolkos-hypothesis { opacity: .92; }
.journey-figure[data-state="diolkos-width"] .paving-width,
.journey-figure[data-state="diolkos-grooves"] .track-grooves { opacity: 1; }
.source-event { opacity: .24; transition: opacity .25s ease; }
.journey-figure[data-state="periander"] .source-event[data-event="0"],
.journey-figure[data-state="demetrius"] .source-event[data-event="1"],
.journey-figure[data-state="caesar-caligula"] .source-event[data-event="2"],
.journey-figure[data-state="nero-start"] .source-event[data-event="4"],
.journey-figure[data-state="accounts-disagree"] .source-event[data-event="4"],
.journey-figure[data-state="attempt-end"] .source-event[data-event="4"] { opacity: 1; }
.trace-west, .trace-east, .trace-probe, .dimension-width, .dimension-bottom, .dimension-depth, .dimension-relief, .dimension-beam, .dimension-current { opacity: .18; transition: opacity .25s ease; }
.journey-figure[data-state="gerster-lengths"] .trace-west,
.journey-figure[data-state="gerster-lengths"] .trace-east,
.journey-figure[data-state="gerster-survey"] .trace-west,
.journey-figure[data-state="gerster-survey"] .trace-east { opacity: 1; }
.journey-figure[data-state="gerster-probe"] .trace-probe { opacity: 1; }
.journey-figure[data-state="gerster-erased"] .trace-west,
.journey-figure[data-state="gerster-erased"] .trace-east { opacity: .55; }
.build-event { opacity: .22; transition: opacity .25s ease; }
.journey-figure[data-state="concessions"] .build-event[data-event="0"],
.journey-figure[data-state="construction-start"] .build-event[data-event="1"],
.journey-figure[data-state="funding-ends"] .build-event[data-event="2"],
.journey-figure[data-state="formal-opening"] .build-event[data-event="3"],
.journey-figure[data-state="general-navigation"] .build-event[data-event="3"] { opacity: 1; }
.journey-figure[data-state="surface-width"] .dimension-width,
.journey-figure[data-state="bottom-width"] .dimension-bottom,
.journey-figure[data-state="axis-depth"] .dimension-depth,
.journey-figure[data-state="vessel-beam"] .dimension-beam,
.journey-figure[data-state="maximum-relief"] .dimension-relief,
.journey-figure[data-state="currents-and-slopes"] .dimension-current { opacity: 1; }
.traffic-volume, .traffic-mix, .traffic-channel { opacity: .08; transition: opacity .25s ease; }
.journey-figure[data-state="traffic-volume"] .traffic-volume,
.journey-figure[data-state="traffic-mix"] .traffic-mix,
.journey-figure[data-state="traffic-channel"] .traffic-channel { opacity: 1; }
.closure-event { opacity: .2; transition: opacity .25s ease; }
.journey-figure[data-state="closure-1923"] .closure-event[data-event="0"],
.journey-figure[data-state="closure-war"] .closure-event[data-event="1"],
.journey-figure[data-state="closure-2021"] .closure-event[data-event="2"],
.journey-figure[data-state="closure-2022"] .closure-event[data-event="3"],
.journey-figure[data-state="closure-works"] .closure-event[data-event="4"],
.journey-figure[data-state="closure-return"] .closure-event[data-event="5"] { opacity: 1; }
.scene-water { fill: #2e7778; }
.scene-wall { fill: #695b4e; }
.scene-wall-light { fill: #96826b; }
.scene-boat { fill: #d8d0be; stroke: #0b252a; stroke-width: 2; }
.scene-deck { stroke: #d3a45c; stroke-width: 5; }
.scene-deck-under { stroke: #7cb9b7; stroke-width: 5; stroke-dasharray: 9 7; }
.journey-figure svg .scene-label { fill: #f0e7d7; font: 14px var(--mono); letter-spacing: .06em; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 1.7rem 0 2rem; border-top: 1px solid var(--line-strong); }
.timeline-item { position: relative; min-height: 8.5rem; padding: 1.35rem 1.25rem 1rem 0; border-right: 1px solid var(--line-soft); }
.timeline-item:not(:first-child) { padding-left: 1.25rem; }
.timeline-item::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--signal); border-radius: 50%; }
.timeline-item strong { display: block; margin-bottom: .45rem; color: var(--signal); font: 600 .78rem var(--mono); }
.timeline-item span { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.dimension-band { width: min(100%, 56rem); margin: 1rem auto 2rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line-soft); }
.dimension-band svg { width: 100%; }
.measure-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin: 1.25rem 0 1.8rem; }
.measure-pairs div { padding: .75rem 0; border-top: 1px solid var(--line-soft); }
.measure-pairs dt { color: var(--ink-dim); font: .65rem/1.35 var(--mono); text-transform: uppercase; }
.measure-pairs dd { margin: .25rem 0 0; color: var(--ink); font: 650 1.5rem/1.15 var(--display); }
.closure-list { display: grid; grid-template-columns: minmax(5.5rem, .25fr) minmax(0, 1fr); max-width: 43rem; margin: 1.5rem 0 2rem; border-top: 1px solid var(--line-soft); }
.closure-list dt, .closure-list dd { margin: 0; padding: .8rem .4rem; border-bottom: 1px solid var(--line-soft); }
.closure-list dt { color: var(--signal); font: .74rem var(--mono); }
.closure-list dd { color: var(--ink-soft); font-size: .88rem; }
.sources-section { padding-bottom: 6rem; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.source-list li { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); font: .66rem/1.5 var(--mono); }
.source-list a { display: block; margin-top: .15rem; color: var(--ink-soft); font: .86rem/1.45 var(--sans); }
.source-list a:hover { color: var(--signal); }
.site-footer { padding: 1.3rem 1.5rem 2rem; border-top: 1px solid var(--line-soft); color: var(--ink-dim); text-align: center; font-size: .74rem; }
.site-footer a { color: inherit; }
.to-top { position: fixed; z-index: 35; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); min-width: 3rem; min-height: 3rem; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--line-soft); border-radius: 2rem; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font-size: .78rem; }
.to-top svg { width: 1rem; height: 1rem; }
.to-top:hover { border-color: var(--signal); color: var(--signal); }

@media (max-width: 1120px) {
  .rail { display: none; }
  .topbar-inner { width: min(100% - 1.5rem, 88rem); gap: .7rem; }
  .top-nav { justify-content: flex-start; }
  .top-nav a:nth-child(n+6) { display: none; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 3.55rem; }
  .topbar-inner { grid-template-columns: auto 1fr auto; width: calc(100% - 1rem); gap: .55rem; }
  .brand { gap: .35rem; font-size: .68rem; }
  .brand-mark { width: 1.45rem; height: 1.45rem; }
  .top-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: .6rem; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { font-size: .64rem; }
  .top-nav a:nth-child(n+5) { display: none; }
  .edition-tools { gap: .35rem; }
  .language-switch { gap: .12rem; padding-right: .35rem; font-size: .64rem; }
  .theme-control { width: 2.2rem; height: 2.2rem; }
  .hero { width: calc(100% - 2rem); min-height: 0; padding: 3.25rem 0 2.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .hero::before { inset-block: 0; }
  .hero h1 { max-width: 10ch; margin-top: .7rem; font-size: clamp(3.35rem, 14vw, 5.5rem); }
  .hero-deck { font-size: 1.05rem; }
  .hero-open { margin-top: .9rem; font-size: .94rem; }
  .hero-visual { min-height: 0; margin: -.3rem -.5rem 0; }
  .hero-photo-figure { height: auto; min-height: 0; margin: 0; }
  .hero-photo { height: min(54svh, 30rem); max-height: 54svh; object-fit: contain; }
  .hero-visual::after { inset: 8% 0; }
  .hero-caption { bottom: .2rem; right: .25rem; max-width: 12.5rem; font-size: .58rem; }
  .share-section, .story { width: calc(100% - 2rem); }
  .share-section { margin-bottom: 1.8rem; }
  .share-label { width: 100%; }
  .share-icon { width: 2.75rem; height: 2.75rem; }
  .story-section { padding: 4rem 0; }
  .story-section h2 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .section-heading { margin-bottom: 1.7rem; }
  .section-with-figure { display: flex; flex-direction: column; gap: 1.35rem; }
  .section-with-figure .diagram { position: static; width: 100%; order: 2; }
  .section-with-figure .section-body { order: 3; }
  .section-with-figure .section-heading { order: 1; }
  .diagram figcaption { font-size: .58rem; }
  .figure-gallery { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
  .figure-gallery[data-count="1"] { max-width: none; }
  .commons-figure figcaption { padding: .75rem .8rem .85rem; }
  .figure-caption { font-size: .88rem; line-height: 1.55; }
  .image-credit { font-size: .68rem; }
  .journey { display: flex; flex-direction: column; gap: .35rem; }
  .journey-visual-column { display: contents; }
  .journey-figure { --chapter-media-height: 26svh; position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 12; height: 60svh; max-height: none; }
  .journey-figure > svg.chapter-svg { width: 100%; height: var(--chapter-media-height) !important; max-height: none; object-fit: contain; }
  .journey-figure > figcaption { display: none; }
  .scene-readout { gap: .12rem .5rem; padding: .45rem .55rem .5rem; }
  .scene-label { font-size: 1.08rem; }
  .scene-time { max-width: 12rem; min-height: 2.6em; font-size: .56rem; }
  .scene-scope { min-height: 2.6em; margin-top: .15rem; font-size: .61rem; line-height: 1.32; }
  .scene-measures { min-height: 4.75rem; gap: .2rem; margin-top: .25rem; }
  .scene-measure { grid-template-columns: minmax(4rem, .62fr) auto minmax(0, 1.38fr); gap: .04rem .36rem; padding-top: .22rem; }
  .scene-measure-label { font-size: .55rem; }
  .scene-measure-value { font-size: .98rem; }
  .scene-measure-unit { font-size: .61rem; }
  .scene-measure-date, .scene-measure-scope { font-size: .54rem; line-height: 1.27; }
  .scene-progress { top: .48rem; right: .55rem; gap: .2rem; }
  .scene-progress i { width: .34rem; height: .34rem; }
  .scene-toggle { top: .4rem; left: .42rem; padding: .23rem .37rem; font-size: .55rem; }
  .journey-controls { position: relative; z-index: 11; margin-top: .35rem; }
  .journey-controls button { width: 2.65rem; height: 2.45rem; }
  .journey-status { position: relative; z-index: 11; min-height: 1rem; }
  .journey-steps { width: 100%; }
  .journey-step { min-height: 68svh; padding: 2.2rem 0; scroll-margin-top: calc(var(--topbar-h) + 50svh + 2rem); }
  .journey-step h3 { font-size: 2rem; }
  .journey-step p { font-size: .98rem; }
  .journey-step .step-scope { font-size: .76rem; }
  .chapter-artwork { height: 100%; min-height: 0; }
  .chapter-art-frame .commons-photo { height: 100%; object-position: center; }
  .chapter-art-frame figcaption { gap: .2rem; padding: .3rem .45rem; }
  .chapter-art-frame .figure-caption { font-size: .875rem; }
  .chapter-art-frame .image-credit { max-width: none; font-size: .54rem; }
  .journey-postscript { margin-top: .7rem; }
  .timeline { grid-template-columns: 1fr; margin-top: 1.4rem; }
  .timeline-item, .timeline-item:not(:first-child) { min-height: 0; padding: .9rem .1rem .9rem 1.2rem; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .timeline-item::before { top: 1.1rem; }
  .measure-pairs { gap: .45rem .8rem; }
  .measure-pairs dd { font-size: 1.3rem; }
  .closure-list { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .source-list { grid-template-columns: 1fr; }
  .to-top { right: max(.7rem, env(safe-area-inset-right)); bottom: max(.7rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 375px) {
  .brand span { max-width: 5.6rem; overflow: hidden; text-overflow: ellipsis; }
  .top-nav { display: none; }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .hero h1 { font-size: 3.15rem; }
  .scene-readout { padding-inline: .45rem; }
  .scene-measure { grid-template-columns: minmax(3.6rem, .6fr) auto minmax(0, 1.4fr); }
  .scene-measure-value { font-size: .9rem; }
  .chapter-art-frame .image-credit { font-size: .51rem; }
}
@media (pointer: coarse) { .share-icon { min-width: 2.75rem; min-height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-topbar, .rail, .share-section, .to-top, .journey-controls, #progress-track { display: none !important; }
  body { background: #fff; color: #111; }
  .story-section, .hero { break-inside: avoid; }
  .diagram, .journey-figure { box-shadow: none; }
}
