/* VERV Nomads. One rule runs through everything here, and the map's key states it:
   SOLID means decided, HATCHED or DASHED means not decided yet. Traffic yellow is used
   for the second state only (it is the colour of temporary road markings). */

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/overpass-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/overpass-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  color-scheme: light;
  --sea: #dce9ea;
  --land: #fbfcfa;
  --ink: #10333b;
  --ink-soft: #3f5d63;
  --line: #a9c2c5;
  --provisional: #f2c230;
  --alert: #a4321f;
  --hatch: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 6px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4rem, 8vw, 7rem);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sea);
  color: var(--ink);
  font-family: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
fieldset { border: 0; min-width: 0; }

h1 {
  font-size: clamp(2.375rem, 1.15rem + 4.7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
p, li, dd { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--provisional); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); border-radius: 2px; }

strong { font-weight: 700; }

/* ---- layout ------------------------------------------------------------------ */

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--land); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 0.5rem; }

.band { padding-block: var(--space); }
.band-land { background: var(--land); border-block: 1px solid var(--ink); }
.band-ink { background: var(--ink); color: var(--land); }

/* Heading on the left, matter on the right. Stacks on a narrow screen. */
/* minmax(0, …) on the single column too: without it a wide table inside stretches the page. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem var(--gutter); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split-head { position: sticky; top: 2rem; align-self: start; }
}
.split-head p { margin-top: 1rem; color: var(--ink-soft); max-width: 26rem; }
.band-ink .split-head p { color: inherit; opacity: 0.85; }

.prose { max-width: var(--measure); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.lede { font-size: 1.25rem; line-height: 1.45; max-width: 34rem; }
.prose .lede { margin-top: 1.25rem; max-width: var(--measure); }
.band-inner { margin-top: 2.75rem; }

.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the two states ---------------------------------------------------------- */

.tag-open {
  display: inline-block;
  background: var(--provisional);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.2em 0.5em 0.1em;
  border-radius: 2px;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.9375rem; }
.key li { display: flex; align-items: center; gap: 0.6rem; }
.swatch { flex: none; width: 2.25rem; height: 0.875rem; border: 1px solid var(--ink); border-radius: 1px; }
.swatch-decided { background: var(--ink); }
.swatch-open { background: var(--hatch); }

/* ---- header ------------------------------------------------------------------ */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.wordmark { font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: none; }
@media (min-width: 60rem) {
  .site-nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; }
  .site-nav a { text-decoration: none; }
  .site-nav a:hover { text-decoration: underline; }
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.95em 1.5em 0.8em;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--land);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #1b4a55; border-color: #1b4a55; }
.button-small { padding: 0.6em 1em 0.48em; font-size: 0.9375rem; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--land); }
.band-ink .button { background: var(--provisional); border-color: var(--provisional); color: var(--ink); }
.band-ink .button:hover { background: #ffd451; border-color: #ffd451; }
.button[disabled] { opacity: 0.55; cursor: progress; }

/* ---- hero -------------------------------------------------------------------- */

/* The headline is the key to the whole page: one sentence solid, one hatched. */
.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--space); }
.hero h1 { font-size: clamp(2.25rem, 0.6rem + 3.3vw, 3.625rem); }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 .is-open { margin-top: 0.12em; }
.hero-body { display: grid; gap: 2.5rem var(--gutter); margin-top: clamp(2rem, 4vw, 3.25rem); }
@media (min-width: 64rem) { .hero-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.is-open { color: var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .is-open {
    background-image: repeating-linear-gradient(135deg, var(--ink) 0 2.3px, transparent 2.3px 3.7px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Room for descenders, which a clipped background would otherwise cut. */
    padding-bottom: 0.12em;
  }
}
@media (forced-colors: active) {
  .is-open { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}

.hero .lede { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.fineprint { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ink-soft); max-width: 32rem; }
/* --ink-soft on the ink band would be close to invisible. */
.band-ink .fineprint { color: inherit; opacity: 0.85; }

.hero-map figcaption { margin-top: 0.5rem; }

/* The map. Geometry comes from tools/map.mjs; every colour and size is here. */
.map { width: 100%; height: auto; overflow: visible; }
.map-land { fill: var(--land); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.map-border { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 1 3; opacity: 0.55; }
.map-start { fill: var(--ink); }
.map-bearing { transition: opacity 0.2s; }
.map-bearing-case { fill: none; stroke: var(--ink); stroke-width: 7; stroke-dasharray: 12 7; }
.map-bearing-line { fill: none; stroke: var(--provisional); stroke-width: 4; stroke-dasharray: 10 9; stroke-dashoffset: -1; }
.map-place { transition: opacity 0.2s; }
.map-place circle { fill: var(--ink); }
.map-place text { font-size: 14.5px; fill: var(--ink); }
.map-direction { font-size: 21px; font-weight: 750; fill: var(--ink); transition: opacity 0.2s; }
.map-hub circle { fill: var(--provisional); stroke: var(--land); stroke-width: 2.5; }
.map-hub text { font-size: 16.5px; font-weight: 750; fill: var(--land); }
.map-scale path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.map-scale text { font-size: 13px; fill: var(--ink); }

/* The SVG scales with the page, and its text with it: keep labels readable on a phone. */
@media (max-width: 40rem) {
  .map-place text, .map-scale text { font-size: 21px; }
  .map-direction { font-size: 28px; }
  .map-hub text { font-size: 24px; }
  .map-place[data-dir] circle { r: 4.5px; }
}

/* One direction picked out: the others step back. It stays dashed, because picking it
   here decides nothing. */
.hero-map[data-active] .map-bearing,
.hero-map[data-active] .map-place,
.hero-map[data-active] .map-direction { opacity: 0.22; }
.hero-map[data-active='atlantic'] [data-dir='atlantic'],
.hero-map[data-active='mediterranean'] [data-dir='mediterranean'],
.hero-map[data-active='north'] [data-dir='north'] { opacity: 1; }

/* The single piece of motion on the page: the three bearings draw out from Seville. */
.map-reveal { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .map-reveal { animation: map-draw 1.7s cubic-bezier(0.45, 0, 0.15, 1) both; }
  .map-reveal-atlantic { animation-delay: 0.3s; }
  .map-reveal-mediterranean { animation-delay: 0.55s; }
  .map-reveal-north { animation-delay: 0.8s; }
}
@keyframes map-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.poll { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.poll-question { font-weight: 700; }
.poll-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.poll-options button {
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.6em 1em 0.48em;
  border: 2px dashed var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.poll-options button:hover { background: var(--land); }
.poll-options button[aria-pressed='true'] { background: var(--provisional); }
.poll-status { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); min-height: 1.5em; }

/* ---- what it is -------------------------------------------------------------- */

.facts { display: grid; gap: 2rem var(--gutter); }
@media (min-width: 44rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts h3 { padding-top: 1rem; border-top: 3px solid var(--ink); }
.facts p { margin-top: 0.5rem; }

/* ---- how it works: a real sequence, so it is numbered ------------------------- */

.loop { counter-reset: step; display: grid; gap: 0; }
.loop li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.loop li:last-child { border-bottom: 1px solid var(--line); }
.loop li::before { content: counter(step); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.loop h3, .loop p { grid-column: 2; }
.loop p { margin-top: 0.25rem; color: var(--ink-soft); }
.loop-repeat { margin-top: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; }
.loop-repeat svg { flex: none; width: 2.5rem; height: 2.5rem; }

/* ---- directions ---------------------------------------------------------------- */

.directions { display: grid; gap: 2rem 0; }
@media (min-width: 52rem) {
  .directions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directions li + li { border-left: 1px dashed var(--ink); padding-left: 1.75rem; }
  .directions li { padding-right: 1.75rem; }
}
.directions h3 { font-size: 1.5rem; }
.directions p { margin-top: 0.6rem; }
.directions .weather { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--ink-soft); }
.not-itinerary { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 2px dashed var(--ink); border-radius: 3px; font-size: 1.1875rem; font-weight: 650; max-width: 46rem; }

/* ---- the ledger ---------------------------------------------------------------- */

.ledger { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 48rem) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ledger h3 { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.9rem; border-bottom: 3px solid var(--ink); }
.ledger-open h3 { border-bottom-style: dashed; }
.ledger li { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.ledger li span { display: block; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---- participation, and the way things are run -------------------------------- */

.levels { display: grid; gap: 1.75rem var(--gutter); }
@media (min-width: 48rem) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.levels h3 { padding-top: 1rem; border-top: 3px solid var(--ink); }
.levels p { margin-top: 0.5rem; }
.aside-rule { margin-top: 2.25rem; max-width: var(--measure); font-weight: 650; }

.plain-list li { padding-block: 0.7rem; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.plain-list strong { display: block; }
.band-ink .plain-list li { border-color: rgba(251, 252, 250, 0.3); }

.included { display: grid; gap: 1.5rem var(--gutter); margin-top: 2rem; }
@media (min-width: 44rem) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.included h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.included p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---- prices -------------------------------------------------------------------- */

.prices { border-top: 3px solid var(--ink); }
.prices > div { display: grid; gap: 0.35rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .prices > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.prices dt { font-weight: 700; }
.prices dt .tag-open { margin-left: 0.4rem; }
.price { font-size: 1.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
/* :not(.price), so that the note's smaller size cannot out-rank the price itself. */
.prices dd p:not(.price) { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.9375rem; max-width: 34rem; }

.table-title { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; max-width: var(--measure); }
.table-scroll { overflow-x: auto; margin-top: 2.5rem; }
.table-title + .table-scroll { margin-top: 0.9rem; }
.budget-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.budget-table th, .budget-table td { text-align: left; padding: 0.8rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.budget-table thead th { font-weight: 650; border-bottom: 2px solid var(--ink); color: var(--ink-soft); }
.budget-table tbody th { font-weight: 500; }
.budget-table td { font-weight: 700; white-space: nowrap; }

/* On a phone a row becomes a short list: the crew, then each number beside the name of
   its column. Nothing scrolls sideways, so the whole-month figure is never off screen. */
@media (max-width: 39.99rem) {
  .budget-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .budget-table, .budget-table tbody { display: block; }
  .budget-table tbody { border-top: 2px solid var(--ink); }
  .budget-table tr { display: block; padding-block: 0.9rem 0.8rem; border-bottom: 1px solid var(--line); }
  .budget-table tbody th { display: block; padding: 0 0 0.4rem; border: 0; font-weight: 700; }
  .budget-table td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; border: 0; }
  .budget-table td::before { content: attr(data-label); font-weight: 400; color: var(--ink-soft); white-space: normal; }
}
.table-notes { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-soft); max-width: var(--measure); }
.table-notes + .table-notes { margin-top: 0.6rem; }

/* ---- fleet --------------------------------------------------------------------- */

.fleet-planned { font-size: 1.25rem; font-weight: 700; }
.fleet { margin-top: 1.25rem; display: grid; gap: 1.1rem; max-width: 40rem; }
.fleet li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: baseline; }
.fleet-stage { font-weight: 650; }
.fleet-count { text-align: right; }
.fleet-bar { grid-column: 1 / -1; grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.fleet-bar i { height: 1.25rem; border: 1px solid var(--ink); border-radius: 1px; background: var(--hatch); }
.fleet-bar i.is-done { background: var(--ink); }
.fleet-note { margin-top: 1.5rem; max-width: var(--measure); color: var(--ink-soft); }

/* ---- quick signal -------------------------------------------------------------- */

.closing { display: grid; gap: 3rem var(--gutter); }
@media (min-width: 56rem) { .closing { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.closing h2 { max-width: 24rem; }
.closing .lede { margin-top: 1.25rem; }
.closing .button { margin-top: 2rem; }

.signal { padding: 1.75rem; border: 2px dashed rgba(251, 252, 250, 0.7); border-radius: 3px; }
.signal h3 { font-size: 1.375rem; }
.signal > p { margin-top: 0.5rem; opacity: 0.9; }
.signal form { margin-top: 1.25rem; display: grid; gap: 1rem; }
.signal label { display: block; font-weight: 650; font-size: 0.9375rem; }
.signal input[type='email'], .signal textarea {
  display: block; width: 100%; margin-top: 0.35rem; font: inherit; color: var(--ink);
  background: var(--land); border: 2px solid var(--land); border-radius: 3px; padding: 0.7rem 0.8rem 0.6rem;
}
.signal textarea { min-height: 4.5rem; resize: vertical; }
.signal .check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; font-weight: 400; }
.signal .check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--provisional); }
.signal .button { margin-top: 0; justify-self: start; }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

/* Shown by the browser itself when the address ends in #signal-sent or #signal-failed,
   which is where the form lands when it is sent without scripts. */
.flash { display: none; margin-top: 1rem; padding: 0.9rem 1rem 0.8rem; border-radius: 3px; background: var(--land); color: var(--ink); font-weight: 650; }
.flash:target, .flash.is-shown { display: block; }
.flash-failed { border-left: 6px solid var(--alert); }

/* ---- footer -------------------------------------------------------------------- */

.site-footer { padding-block: 3rem 4rem; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 2rem var(--gutter); }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.site-footer h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.6rem; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer p { color: var(--ink-soft); max-width: 26rem; }
.site-footer p + p { margin-top: 0.75rem; }

/* ---- document pages (privacy, terms, 404) -------------------------------------- */

.doc { padding-block: clamp(2rem, 5vw, 4rem) var(--space); }
.doc h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); max-width: 48rem; }
.doc-status { margin-top: 1.5rem; padding: 1.1rem 1.4rem 1rem; border: 2px dashed var(--ink); border-radius: 3px; max-width: var(--measure); font-weight: 650; }
.doc-body { margin-top: 3rem; max-width: var(--measure); }
.doc-body h2 { font-size: 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.doc-body h3 { margin-top: 1.75rem; }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: 0.9rem; }
.doc-body ul { list-style: disc; padding-left: 1.25rem; }
.doc-body ol { list-style: decimal; padding-left: 1.4rem; }
.doc-body li + li { margin-top: 0.4rem; }
.doc-body table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.9375rem; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc-body thead th { border-bottom: 2px solid var(--ink); }
.doc-body tbody th { font-weight: 600; width: 50%; }
.doc-body .table-scroll { margin-top: 1.25rem; }
.doc-body .table-scroll table { margin-top: 0; }
.doc-updated { margin-top: 1rem; color: var(--ink-soft); }
