/* Voyage Optimiser: one page, no scripts, no outside requests. Colours after a paper chart:
   buff land, pale sea, navy ink, and the chart's magenta for what is ours (the route). */
:root {
  --paper: #f7f4ec;
  --panel: #fffdf7;
  --ink: #10243a;
  --soft: #4d5e6f;
  --line: #d9d3c3;
  --sea: #e6eef1;
  --land: #ece3c6;
  --contour: #c5d6dd;
  --route: #a51f5c;
  --btn: #10243a;
  --btn-ink: #f7f4ec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1620;
    --panel: #101e2b;
    --ink: #e9eef1;
    --soft: #a3b3c0;
    --line: #25394b;
    --sea: #0f2231;
    --land: #2b2c22;
    --contour: #1d3547;
    --route: #ff7fb2;
    --btn: #e9eef1;
    --btn-ink: #0b1620;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.bm-plan { fill: none; stroke: var(--route); stroke-width: 2; stroke-linecap: round; }
.bm-fix { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.bm-end { fill: var(--ink); }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { text-decoration: none; color: var(--soft); white-space: nowrap; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav .nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 7px 14px; border-radius: 3px; }
nav .nav-cta:hover { background: var(--btn); color: var(--btn-ink); text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow, .label { font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; margin: 18px 0 22px; }
.lead { font-size: 19.5px; line-height: 1.55; color: var(--soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 3px; }
.btn:hover { background: var(--route); color: #fff; }
@media (prefers-color-scheme: dark) { .btn:hover { color: var(--btn-ink); } }
.link { font-size: 16px; }
.notice { font: 13.5px/1.5 var(--mono); color: var(--soft); margin-top: 30px; padding-left: 12px; border-left: 2px solid var(--route); }

/* the chart */
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { font-size: 14.5px; line-height: 1.5; color: var(--soft); margin-top: 14px; max-width: 34em; }
.c-sea { fill: var(--sea); }
.c-land { fill: var(--land); stroke: var(--soft); stroke-width: 0.9; stroke-linejoin: round; }
.c-contour path { fill: none; stroke: var(--contour); stroke-width: 1; }
.c-wind path { fill: none; stroke: var(--soft); stroke-width: 1.1; stroke-linecap: round; opacity: 0.55; }
.c-first { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-dasharray: 5 6; stroke-linecap: round; }
.c-sailed { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.c-now { fill: none; stroke: var(--route); stroke-width: 2.6; stroke-linecap: round; }
.c-fixes circle { fill: var(--sea); stroke: var(--ink); stroke-width: 1.2; }
.c-boat { fill: var(--route); }
.c-boat-ring { fill: none; stroke: var(--route); stroke-width: 1.2; opacity: 0.6; }
.c-mark circle { fill: var(--panel); stroke: var(--ink); stroke-width: 1.6; }
.c-mark path { fill: var(--ink); }
.c-label text { font: 500 10.5px var(--mono); letter-spacing: 0.1em; fill: var(--soft); }
.c-label .c-label-now { fill: var(--route); }
.c-frame rect { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.c-frame path { fill: none; stroke: var(--ink); stroke-width: 1; }

/* sections */
.band { border-top: 1px solid var(--line); padding: 64px 0 72px; }
.label { margin-bottom: 30px; }
.label span { color: var(--route); margin-right: 10px; }
.grid { display: grid; gap: 36px 40px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.band h2 { font-size: 22px; line-height: 1.22; margin-bottom: 10px; }
.band article p, .facts dd, .what, .plain p, .key p { color: var(--soft); }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.facts div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.facts dt { font-family: var(--serif); font-weight: 600; font-size: 21px; margin-bottom: 6px; }
.facts dd { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.num { font: 600 clamp(54px, 7vw, 84px)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.num small { font-size: 0.5em; margin-left: 2px; color: var(--route); }
.what { margin-top: 12px; max-width: 24em; }
.plain { margin-top: 52px; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--route); max-width: 780px; }
.plain h2 { font-size: 21px; }
.plain .method { font-size: 14.5px; margin-top: 12px; }

.price { background: var(--panel); border: 1px solid var(--line); padding: 28px 30px 30px; }
.amount { font: 600 40px/1.1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; color: var(--ink) !important; margin: 6px 0 14px; }
.amount span { font: 400 15px var(--sans); letter-spacing: 0; color: var(--soft); margin-left: 6px; }
.small { font-size: 14.5px; color: var(--soft); margin-top: 22px; }

.key-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.key .big { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin-bottom: 14px; max-width: 20em; }
.key-cta { justify-self: end; }
.key-cta .btn { font-family: var(--mono); font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: var(--soft); }
.foot p { margin-top: 10px; max-width: 62em; }
.foot .notice { margin-top: 0; margin-bottom: 18px; }

/* a plain page of text: the status page */
.page { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.page h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; margin: 16px 0 18px; }
.page h2 { font-size: 22px; line-height: 1.22; margin: 40px 0 10px; }
.page p, .page li { color: var(--soft); }
.page p + p { margin-top: 12px; }
.page ol, .page ul { margin: 10px 0 0; padding-left: 1.3em; }
.page li { margin-top: 6px; }
.page strong { color: var(--ink); }
.stamp { font: 13.5px/1.5 var(--mono); color: var(--soft); padding-left: 12px; border-left: 2px solid var(--route); }

/* narrower screens */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 52px; padding-bottom: 60px; }
  .chart { max-width: 620px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-row { grid-template-columns: 1fr; align-items: start; }
  .key-cta { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 17px; gap: 8px; }
  nav .nav-cta { padding: 6px 10px; font-size: 14px; }
  nav a:not(.nav-cta) { display: none; }
  .band { padding: 48px 0 54px; }
  .grid.four, .grid.two, .stats { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 22px; }
  .lead { font-size: 18px; }
  .plain { padding: 22px 20px; }
  .price { padding: 24px 22px 26px; }
}
