@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #fdfefe;
  --ink: #0f1b2d;
  --ink-2: #3c4a5c;
  --track: #b91c1c;
  --track-deep: #8f1414;
  --contour: #2f6188;
  --land: #efe3c2;
  --water: #d7eaf6;
  --water-ink: #1d5d8f;
  --rule: #0f1b2d;
  --hair: rgba(15, 27, 45, 0.16);
  --gutter: clamp(16px, 3vw, 40px);
  --measure: 62ch;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.4rem + 2.6vw, 3.6rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--contour) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  caret-color: var(--track);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--track); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:not(.btn):hover { color: var(--track-deep); }
:focus-visible { outline: 3px solid var(--track); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 760; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Wordmark: the sheet name, set wide like a Topo sheet title. */
.wordmark { font-stretch: 125%; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; font-size: 1rem; }

/* Buttons are map plates: square, solid, plainly clickable. */
.btn {
  text-align: center; line-height: 1.2; padding-block: 10px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font-weight: 650; font-size: 1.0625rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 2px;
  transition: background-color 160ms cubic-bezier(.16,1,.3,1), color 160ms cubic-bezier(.16,1,.3,1);
}
.btn-track { background: var(--track); border-color: var(--track); color: #fff; }
.btn-track:hover { background: var(--track-deep); border-color: var(--track-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: #fff; border-color: #fff; color: var(--track-deep); }
.btn-paper:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Sheet margins */
.margin-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 18px var(--gutter);
}
.margin-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.margin-top ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.margin-top ul a { text-decoration: none; font-weight: 560; display: inline-block; padding: 10px 0; }
.margin-top ul a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--track); text-decoration-thickness: 3px; }
.margin-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter) 40px; border-top: 2px solid var(--rule); margin-top: 0; font-size: var(--step--1); color: var(--ink-2);
}
.margin-bottom .wordmark { color: var(--ink); margin-right: 10px; font-size: var(--step--1); }

/* ===== The map sheet ===== */
.sheet { margin: 0 var(--gutter) 28px; position: relative; }
.sheet-grid { display: flex; justify-content: space-between; padding: 0 0 6px; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.neatline { position: relative; border: 1px solid var(--hair); overflow: hidden; background: var(--paper); }
.map { position: relative; aspect-ratio: 16 / 9; min-height: 620px; max-height: 86vh; width: 100%; }
.map > img, .map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map > img { object-fit: cover; object-position: center bottom; }

.route-casing { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-opacity: 0.85; }
.route { fill: none; stroke: var(--track); stroke-width: 2.5; stroke-linejoin: round; }
.sky-course { fill: none; stroke: #f4b6a6; stroke-width: 2.4; stroke-dasharray: 1 8; stroke-linecap: round; }
.vessel .hull, .vessel .sail { fill: var(--ink); stroke: var(--paper); stroke-width: 1.2; paint-order: stroke; }
.vessel .sail { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.vessel .mast { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.chart-note { display: none; margin: 8px 0 0; font-size: 0.875rem; font-style: italic; color: var(--ink-2); }
.sky-label { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 600; letter-spacing: 0.18em; font-size: 13px; fill: #e9eeff; }
.danger path, .danger .danger-line { fill: none; stroke: var(--ink-2); stroke-width: 1.3; }
.danger .danger-line { stroke-dasharray: 3 4; }
.danger text { font-family: 'Archivo', sans-serif; font-style: italic; font-weight: 450; font-size: 15px; fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.harbour { fill: var(--track); stroke: #fff; stroke-width: 3; }
.wpt { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
.wpt-dot { fill: var(--ink); }
.route-reveal { fill: none; stroke: #fff; stroke-width: 22; stroke-linecap: round; }
.leg { fill: none; stroke: var(--track); stroke-width: 9; stroke-linecap: round; opacity: 0; transition: opacity 220ms cubic-bezier(.16,1,.3,1); }
.wp { cursor: pointer; }
.wp text, .map-label {
  font-family: 'Archivo', sans-serif; font-stretch: 112%; font-weight: 600; letter-spacing: 0.07em;
  font-size: 16px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round;
}
.wp .note { font-stretch: 100%; font-weight: 560; letter-spacing: 0; font-size: 17px; fill: var(--track-deep); paint-order: stroke; stroke: #fff; stroke-width: 9px; opacity: 0; transition: opacity 200ms cubic-bezier(.16,1,.3,1); }
.wp .note.on { opacity: 1; }
.wp .mob-n { display: none; }
.sheet-line { font-size: 0.8125rem; font-stretch: 112%; letter-spacing: 0.04em; color: var(--ink-2); padding: 8px 0 0; text-align: right; }
.sheet-grid.bottom { padding: 6px 0 0; }
.map-key { display: none; }
.wp:hover text, .wp:focus-visible text { fill: var(--track-deep); }
.wp:focus { outline: none; }
.wp:hover .wpt, .wp:focus-visible .wpt { stroke: var(--track); stroke-width: 4; }

.title-block {
  position: absolute; z-index: 2; top: clamp(16px, 3vw, 40px); left: clamp(16px, 3vw, 40px);
  width: min(560px, calc(100% - 32px)); background: #fff; border: 1px solid var(--hair);
  padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 18px;
}
.title-block h1 { font-size: var(--step-3); font-stretch: 86%; font-weight: 780; letter-spacing: -0.015em; line-height: 1.02; }
.title-block p { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.legend {
  position: absolute; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  background: rgba(255,255,255,.92); border: 1px solid var(--hair); padding: 14px 16px; font-size: 0.875rem; display: grid; gap: 8px; color: var(--ink);
}
.legend div { display: flex; align-items: center; gap: 10px; }
.legend svg { width: 34px; height: 14px; flex: none; }
.legend .note { color: var(--ink-2); font-style: italic; }

@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .route-reveal { stroke-dasharray: var(--len); animation: draw 1900ms cubic-bezier(.16,1,.3,1) 250ms both; }
  .vessel { animation: settle 1100ms cubic-bezier(.16,1,.3,1) 1500ms both; }
}

/* ===== Sections below the sheet ===== */
.section { padding: clamp(72px, 9vw, 128px) var(--gutter); }
.wrap { max-width: 1240px; margin: 0 auto; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: start; }
.split > .lead { grid-column: 1 / span 5; display: grid; gap: 20px; }
.split > .body { grid-column: 7 / span 6; display: grid; gap: 24px; }
.section h2 { font-size: var(--step-3); font-stretch: 86%; line-height: 1.02; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }

.flow-mark { margin: 8px 0 0; display: grid; gap: 14px; max-width: 460px; }
.flow-mark svg { width: 100%; height: auto; }
.flow-mark .mark { fill: var(--ink); }
.mark-labels text { font-family: 'Archivo', sans-serif; font-stretch: 112%; font-weight: 650; letter-spacing: 0.07em; font-size: 40px; fill: var(--ink); }
.mark-labels .sub { font-stretch: 100%; font-weight: 400; letter-spacing: 0; font-size: 36px; fill: var(--ink-2); }
.flow-mark figcaption { color: var(--ink-2); font-size: 1rem; max-width: 44ch; }
.flow-body { gap: 28px; }
.flow-kind { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--rule); }
.flow-kind h3 { font-size: var(--step-1); font-weight: 700; }
.flow-kind p { color: var(--ink-2); max-width: var(--measure); }
.flow-map-head { font-size: 1rem; font-weight: 700; margin-bottom: -16px; }
.flow-map { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--hair); }
.flow-map div { padding: 14px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 2px; }
.flow-map dt { font-weight: 700; color: var(--ink); }
.flow-map dd { margin: 0; color: var(--ink-2); }
.flow-src { font-size: var(--step--1); color: var(--ink-2); max-width: var(--measure); }
.hazards { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.hazards li { padding: 20px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.hazards h3 { font-size: var(--step-1); font-weight: 700; }
.hazards p { color: var(--ink-2); max-width: var(--measure); }

/* Route section: elevation profile + legs */
.section { position: relative; }
.section:not(.trailhead):not(.night-panel):not(.sea-field):not(.water-field)::before {
  content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 2px; background: var(--rule);
}
.route-section { background: #fff; }
.route-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 48px; }
.passage { width: 100%; height: auto; overflow: visible; }
.passage-line { fill: none; stroke: var(--track); stroke-width: 3; }
.passage-head { fill: var(--track); }
.legs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; counter-reset: leg; }
.legs li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--rule); scroll-margin-top: 24px; }
.legs li:target { border-top-color: var(--track); }
.route-more { margin: 32px 0 0; }
.legs h3 { font-size: var(--step-1); font-stretch: 100%; display: flex; gap: 10px; align-items: baseline; }
.legs .n { font-variant-numeric: tabular-nums; color: var(--track-deep); font-weight: 780; }
.legs p { color: var(--ink-2); font-size: 1.0625rem; }
.legs .keep { color: var(--ink); font-size: 1rem; padding-top: 10px; border-top: 1px solid var(--hair); }
.legs .keep b { font-weight: 700; }
.loop { margin-top: 48px; font-size: 1.0625rem; color: var(--ink-2); max-width: 52ch; display: grid; gap: 12px; }
.loop b { color: var(--ink); font-weight: 680; }

/* Water field: workflows as recipes */
.water-field { background: var(--water); }
.water-field .lede { color: #23384a; }
.recipe { background: #fff; border: 2px solid var(--rule); padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; }
.copy-status:empty { display: none; }
.recipe h3 { font-size: var(--step-2); font-stretch: 90%; }
.recipe .tag { color: var(--water-ink); font-style: italic; }
.recipe dl { margin: 0; display: grid; gap: 16px; }
.recipe dt { font-weight: 720; }
.recipe dd { margin: 4px 0 0; color: var(--ink-2); }
.recipe ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: step; }
.recipe ol li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 4px 8px; padding: 12px 0; border-top: 1px solid var(--hair); }
.recipe ol li::before { content: counter(step); font-weight: 780; color: var(--track-deep); font-variant-numeric: tabular-nums; }
.recipe ol li span { grid-column: 2; color: var(--ink-2); font-size: 1rem; }
.recipe ol li b { grid-column: 2; font-weight: 680; color: var(--ink); }
.copy-status { font-size: 1rem; color: var(--contour); min-height: 1.5em; }

.honest { border: 2px solid var(--rule); padding: 24px 26px; display: grid; gap: 8px; background: #fff; }
.honest h3 { font-size: var(--step-1); }
.honest p { color: var(--ink-2); }

.questions { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.questions li { border-bottom: 1px solid var(--hair); }
.thoughts-row { display: grid; gap: 40px; }
.thoughts-row .lead { max-width: 760px; display: grid; gap: 20px; }
.questions a { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 8px 32px; padding: 26px 0; text-decoration: none; align-items: baseline; }
.questions .topic { grid-row: 1; grid-column: 1; }
.questions .q { grid-column: 2; }
.questions .topic { font-stretch: 118%; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--step--1); color: var(--contour); }
.questions .q { font-size: var(--step-2); font-stretch: 92%; font-weight: 640; line-height: 1.15; }
.questions a:hover .q { color: var(--track-deep); text-decoration: underline; text-decoration-thickness: 2px; }

/* Trailhead close: the one red field */
.trailhead { background: var(--track); color: #fff; }
.trailhead h2 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem); font-stretch: 86%; max-width: 14ch; }
.trailhead p { font-size: var(--step-1); max-width: 40ch; color: #fff; }
.trailhead ::selection { background: #fff; color: var(--track-deep); }
.trailhead :focus-visible { outline-color: #fff; }
.trailhead .addr { font-size: 1rem; }
.trailhead a:not(.btn) { color: #fff; }


.page-head h1 { font-size: var(--step-3); font-stretch: 86%; font-weight: 780; letter-spacing: -0.015em; line-height: 1.02; }
.page-head .method { color: var(--ink-2); max-width: var(--measure); }

.crew { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.crew li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.crew .sym { width: 40px; height: 40px; }
.crew h3 { font-size: var(--step-1); font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.crew h3 span { font-size: 1rem; font-weight: 500; color: var(--contour); }
.crew p { color: var(--ink-2); margin-top: 6px; max-width: var(--measure); }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey li { position: relative; padding: 0 0 48px 64px; display: grid; gap: 8px; max-width: 760px; }
.journey li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 3px solid var(--track); }
.journey li.last { padding-bottom: 0; }
.journey li.last::before { display: none; }
.journey .marker { position: absolute; left: 3px; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 3.5px, #fff 4px); border: 2.5px solid var(--ink); }
.journey li.last .marker { background: var(--track); border-radius: 50%; }
.journey h3 { font-size: var(--step-2); font-stretch: 90%; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.journey h3 span { font-size: 1rem; font-stretch: 100%; font-weight: 500; font-style: italic; color: var(--contour); }
.journey .text { color: var(--ink-2); max-width: var(--measure); }
.journey .keep { padding-top: 10px; border-top: 1px solid var(--hair); max-width: var(--measure); }
.journey .keep b { font-weight: 700; }

.pull { margin: 0; }
.pull p { max-width: 22ch; }
.sticky { position: sticky; top: 32px; }
.pull p { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); font-stretch: 86%; font-weight: 760; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }

.gaz-h { font-size: var(--step-2) !important; font-stretch: 90% !important; margin-bottom: 28px; }
.gazetteer { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); }
.gazetteer thead th { text-align: left; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.gazetteer tbody th { text-align: left; vertical-align: top; padding: 26px 24px 26px 0; width: 22%; color: var(--contour); font-stretch: 118%; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1rem; }
.gazetteer td { vertical-align: top; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--hair); }
.gazetteer tbody th { border-bottom: 1px solid var(--hair); }
.gazetteer .q { font-size: var(--step-1); font-weight: 600; line-height: 1.3; max-width: 52ch; }
.gazetteer tr:target th { color: var(--track-deep); }

.prompt { margin: 8px 0 0; padding: 18px 20px; background: var(--paper); border: 0; font-family: 'Archivo', sans-serif; font-size: 1.125rem; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.neatline.stacked .title-block { position: relative; inset: auto; width: auto; border-width: 0 0 2px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
.neatline.stacked .title-block h1 { grid-row: 1 / span 2; max-width: 14ch; }
.neatline.stacked .title-block p { max-width: 40ch; }
.map.band { aspect-ratio: 1600 / 560; height: auto; min-height: 0; max-height: none; }
.map.band > img { object-position: center bottom; }
.anatomy { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .legs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .neatline { overflow: visible; }
  .title-block { position: relative; inset: auto; width: auto; border-width: 0 0 2px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; row-gap: 12px; padding: 16px 24px; align-items: start; }
  .title-block h1 { grid-row: 1 / span 2; font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem); }
  .title-block p { font-size: 1.0625rem; line-height: 1.45; }
  .map { aspect-ratio: 1.9; min-height: 0; }
  .legend { display: none; }
  .chart-note { display: block; }
  .map .sky-label { display: none; }
  .map::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 8px; background: url('/ticks.svg') top left / 100% 8px no-repeat; }
  .map.band::before { content: none; }
  .map-key { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; list-style: none; margin: 0; padding: 14px 16px 16px; border-top: 2px solid var(--rule); }
  .map-key .key-note { grid-column: 1 / -1; font-size: 0.9375rem; font-style: italic; color: var(--ink-2); padding: 6px 0 0; }
  .map-key .here { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 620; grid-column: 1 / -1; }
  .map-key .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--track); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ink); flex: none; margin: 0 4px; }
  .map-key a { display: flex; gap: 10px; align-items: center; min-height: 44px; text-decoration: none; font-weight: 620; }
  .map-key .n { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 760; flex: none; }
}
@media (max-width: 860px) {
  .title-block { grid-template-columns: 1fr; }
  .title-block h1 { grid-row: auto; font-size: var(--step-3); }
  .split > .lead, .split > .body { grid-column: 1 / -1; }
  .sticky { position: static; }
  .neatline.stacked .title-block { grid-template-columns: 1fr; }
  .neatline.stacked .title-block h1 { grid-row: auto; }
  .map.band { aspect-ratio: 1600 / 560; }
  .map.band .wp .mob-n { font-size: 64px; }
  .map.band .wp .wpt { r: 34px; }
  .map { aspect-ratio: 3 / 2; height: auto; min-height: 0; max-height: none; }
  .map .wp text:not(.mob-n), .map .map-label { display: none; }
  .map .wp .mob-n { display: block; font-size: 46px; font-stretch: 100%; letter-spacing: 0; fill: #fff; stroke: none; font-weight: 780; }
  .map .wp .wpt { r: 26px; fill: var(--ink); stroke: #fff; stroke-width: 3; }
  .map .wp .wpt-dot, .map .sky-label, .map .danger text { display: none; }
  .map .vessel { scale: 1.8; }
  .neatline { overflow: visible; }
  .title-block { position: relative; inset: auto; width: auto; border-width: 0 0 2px; }
  .legend { display: none; }
  .sheet-grid { display: none; }
  .questions a { grid-template-columns: 1fr; }
  .questions .topic, .questions .q { grid-column: 1; grid-row: auto; }
  .gazetteer thead { display: none; }
  .gazetteer tr { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
  .gazetteer tbody th, .gazetteer td { padding: 0; border: 0; width: auto; }
  .journey li { padding-left: 52px; }
}
@media (max-width: 560px) {
  .legs { grid-template-columns: 1fr; }
  .margin-top { padding-top: 12px; padding-bottom: 12px; }
  .margin-top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'brand btn' 'links links'; }
  .margin-top .wordmark { grid-area: brand; }
  .margin-top nav { display: contents; }
  .margin-top .btn { grid-area: btn; padding: 0 16px; }
  .margin-top ul { grid-area: links; gap: 0 18px; font-size: 1rem; }
  .margin-top ul a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }

}

/* Read pages (privacy): plain prose and ruled tables */
.prose { max-width: 820px; display: grid; gap: 18px; }
.prose h2 { font-size: var(--step-2); font-stretch: 90%; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.prose td, .prose th { text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 680; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); font-size: 1rem; }
.prose th { text-align: left; font-weight: 650; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.prose td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }

.map-key .key-note { display: none; }
@media (max-width: 1100px) { .map-key .key-note { display: block; } }

/* Night: the dream above the horizon */
:root { --night: #070d22; --night-2: #14224a; --star: #e9eeff; --dawn: #e7b9a4; }
.sheet.night .neatline { background: var(--night); border-color: var(--night); }
.sheet.night .title-block { background: var(--night); border: 0; color: #fff; padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(8px, 1.5vw, 20px); }
.sheet.night .title-block h1 { color: #fff; font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5.25rem); line-height: 0.96; }
.sheet.night .map:not(.band) { aspect-ratio: 2.2 / 1; min-height: 0; }
.sheet.night .title-block p { color: #c9d3ee; max-width: 36ch; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--night); border-color: #fff; }
.sheet.night ::selection { background: #fff; color: var(--night); }
.sheet.night :focus-visible { outline-color: #fff; }
.vessel .hull { fill: #fff; stroke: var(--night); }
.vessel .mast { stroke: #fff; }
.vessel .sail { fill: #fff; stroke: var(--night); }

.domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--rule); }
.domains li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; }
.domains li:nth-child(odd) { border-right: 1px solid var(--hair); }
.domains li:nth-child(even) { padding-left: 20px; }
.domains h3 { font-size: var(--step-1); font-weight: 700; }
.domains p { color: var(--ink-2); }

.needles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.needles li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--rule); }
.needles svg { width: 100%; max-width: 168px; height: auto; margin-bottom: 4px; }
.needles .dial { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.needles .tick { stroke: var(--ink); stroke-width: 1.2; }
.needles .needle-base { stroke: var(--ink); stroke-opacity: 0.28; stroke-width: 3; stroke-linecap: round; }
.needles .needle { stroke: var(--track); stroke-width: 3; stroke-linecap: round; }
.needles .hub { fill: var(--ink); }
.needles h3 { font-size: var(--step-1); font-weight: 700; }
.needles p { color: var(--ink-2); font-size: 1rem; }
.needles-key { margin-top: 24px; font-size: var(--step--1); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.needles-key span { display: inline-block; width: 22px; height: 3px; border-radius: 2px; }
.needles-key .k-base { background: rgba(15,27,45,.28); }
.needles-key .k-target { background: var(--track); margin-left: 14px; }
.rhythm { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rhythm div { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 1px solid var(--hair); }
.rhythm dt { font-weight: 760; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.875rem; }
.rhythm dd { margin: 0; color: var(--ink-2); text-wrap: pretty; }

.trailhead.night { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 78%, #3b3f6e 100%); }
.trailhead.night .btn-paper { color: var(--night); }

@media (max-width: 1100px) {
  .sheet.night .title-block { background: var(--night); width: auto; padding: 24px; border: 0; }
  .sheet.night .map-key { background: #fff; }
  .needles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .legs { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; }
  .domains li:nth-child(odd) { border-right: 0; }
  .domains li:nth-child(even) { padding-left: 0; }
  .needles { grid-template-columns: 1fr 1fr; }
  .sheet.night .map:not(.band) { aspect-ratio: 3 / 2; }
  .rhythm { grid-template-columns: 1fr; }
}

/* The sea carries through the page; the night returns for the instruments */
.sea-field { position: relative; background: #f2f8fc; overflow: hidden; }
.sea-field::after { content: ''; position: absolute; inset: 0; background: url('/chart-sea.svg') center bottom / cover no-repeat; opacity: 0.55; pointer-events: none; }
.sea-field > .wrap { position: relative; z-index: 1; }
.sea-field .legs li { background: rgba(255,255,255,.88); padding: 18px 18px 20px; }
.night-panel { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.night-panel h2, .night-panel h3 { color: #fff; }
.night-panel .lede, .night-panel p, .night-panel dd { color: #c9d3ee; }
.night-panel .needles li { border-top-color: rgba(255,255,255,.5); }
.night-panel .needles .dial, .night-panel .needles .tick { stroke: #dfe7ff; }
.night-panel .needles .needle-base { stroke: #8a96b8; stroke-opacity: 1; }
.night-panel .needles .needle { stroke: #ff8a7a; }
.night-panel .needles .hub { fill: #fff; }
.night-panel .needles-key .k-base { background: #8a96b8; }
.night-panel .needles-key .k-target { background: #ff8a7a; }
.night-panel .rhythm div { border-top-color: rgba(255,255,255,.25); }
.night-panel ::selection { background: #fff; color: var(--night); }
.night-panel :focus-visible { outline-color: #fff; }
.wp:focus-visible .wpt { stroke: var(--track); stroke-width: 5; }
.night-panel + .section::before, .sea-field + .section::before, .sheet + .section::before { display: none; }

/* Tighter rhythm */
.section { padding-block: clamp(56px, 7vw, 104px); }
.route-head { margin-bottom: 36px; }
@media (max-width: 860px) {
  .section { padding-block: 48px; }
  .route-head { margin-bottom: 24px; gap: 12px; }
  .section h2 { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); }
  .lede { font-size: 1.125rem; }
  .split { gap: 24px; }
  .domains { grid-template-columns: 1fr 1fr; }
  .domains li { padding: 14px 12px 14px 0; }
  .domains li:nth-child(odd) { border-right: 1px solid var(--hair); }
  .domains li:nth-child(even) { padding-left: 12px; }
  .domains h3 { font-size: 1.0625rem; }
  .domains p { font-size: 0.9375rem; }
  .legs { gap: 16px; }
  .legs li { padding-top: 12px; gap: 6px; }
  .sea-field .legs li { padding: 14px 14px 16px; }
  .legs p { font-size: 1rem; }
  .legs .keep { padding-top: 8px; }
  .needles { gap: 20px 16px; }
  .needles svg { max-width: 120px; }
  .needles h3 { font-size: 1.0625rem; }
  .needles p { font-size: 0.9375rem; }
  .rhythm { margin-top: 24px; gap: 12px; }
  .flow-mark { max-width: 340px; }
  .flow-body { gap: 18px; }
  .flow-kind { padding-top: 12px; gap: 6px; }
  .flow-kind h3 { font-size: 1.125rem; }
  .flow-map { grid-template-columns: 1fr 1fr; }
  .flow-map div { padding: 10px 0; }
  .questions .q { font-size: 1.1875rem; line-height: 1.32; }
  .passage { display: none; }
}

.why { gap: 20px; }
.split .lead .pull { margin: 12px 0 0; }
.split .lead .pull p { font-size: var(--step-1); font-stretch: 100%; font-weight: 600; line-height: 1.4; letter-spacing: 0; max-width: 30ch; color: var(--ink-2); }
.domains a { color: var(--ink); }

.margin-bottom .family { flex-basis: 100%; order: 3; max-width: 72ch; }
.sheet.night .title-block .first-move { grid-column: 2; font-size: 1rem; line-height: 1.5; color: #dfe6f7; max-width: 52ch; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
.sheet.night .title-block .first-move b { color: #fff; }
@media (max-width: 860px) { .sheet.night .title-block .first-move { grid-column: auto; } }

.prep { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.prep div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.prep dt { font-size: 0.8125rem; font-weight: 760; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); padding-top: 2px; }
.prep dd { margin: 0; font-size: 0.9375rem; color: var(--ink-2); text-wrap: pretty; }
.prep div:nth-child(2) dt { color: var(--track-deep); }
.journey .prep { max-width: var(--measure); }

/* Thoughts: the trust ladder. One rung lit: where we stand. */
.ladder { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.ladder li { display: grid; gap: 6px; padding: 16px 0 16px 18px; border-left: 2px solid var(--rule); }
.ladder li.here { border-left-color: var(--track); }
.ladder h3 { font-size: var(--step-1); font-stretch: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.ladder .n { font-variant-numeric: tabular-nums; color: var(--track-deep); font-weight: 780; }
.ladder .mark { font-size: 0.875rem; font-weight: 700; color: var(--track-deep); }
.ladder p { color: var(--ink-2); font-size: 1.0625rem; }

/* Team up: a scannable code for meetups. */
.team-up-qr { margin: 28px 0 8px; display: grid; gap: 10px; justify-items: start; }
.team-up-qr img { width: 168px; height: 168px; padding: 10px; background: #fff; border: 1px solid var(--hair); border-radius: 8px; }
.team-up-qr figcaption { font-size: 0.9375rem; color: var(--ink-2); }

/* Team up: the crossing. Rows are the stack, columns the places it serves; each cell opens an email. */
.crossing { width: 100%; margin-top: 40px; border-collapse: collapse; table-layout: fixed; }
.crossing caption { caption-side: top; text-align: left; color: var(--ink-2); font-size: 1.0625rem; padding-bottom: 16px; }
.crossing thead th { text-align: left; font-size: var(--step-1); font-stretch: 100%; padding: 0 12px 12px; border-bottom: 2px solid var(--track); }
.crossing tbody th { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; width: 22%; border-bottom: 1px solid var(--hair); }
.crossing tbody th b { display: block; font-size: var(--step-1); font-stretch: 100%; }
.crossing tbody th span { display: block; color: var(--ink-2); font-size: 0.9375rem; font-weight: 400; margin-top: 4px; }
.crossing td { vertical-align: top; border-bottom: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.crossing td a { display: block; height: 100%; min-height: 44px; padding: 16px 12px; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.4; }
.crossing td a:hover, .crossing td a:focus-visible { background: var(--paper-2, rgba(185, 28, 28, 0.06)); color: var(--track-deep); }
.crossing .col-label { display: none; }
@media (max-width: 760px) {
  .crossing, .crossing tbody, .crossing tr, .crossing th, .crossing td { display: block; width: 100%; }
  .crossing thead { display: none; }
  .crossing tbody tr { margin-bottom: 20px; }
  .crossing caption { display: block; width: 100%; }
  .crossing tbody th { width: 100%; padding: 14px 0 8px; border-bottom: 2px solid var(--track); }
  .crossing td { border-left: 0; }
  .crossing td a { padding: 12px 0; }
  .crossing .col-label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--track-deep); margin-bottom: 2px; }
}
