/* ForeLane — site styles
   One typeface (Archivo) in two widths: wide for display, normal for text.
   Palette borrowed from nautical charts, where shipping lanes are printed in magenta. */

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

:root {
  /* Layout: left-aligned sheet, 1160px wide. The chart in the hero is the one loud element;
     everything after it is quiet type on hairlines. */
  --paper: #F5F7F3;      /* chart paper */
  --water: #DCEAEF;      /* shallow water tint */
  --land: #ECE6CE;       /* chart land */
  --ink: #0D2440;        /* deep navy */
  --ink-soft: #4A5B70;   /* secondary text */
  --lane: #B01E68;       /* chart magenta, the lane */
  --lane-on-ink: #F58CBD;/* the lane colour on navy */
  --rule: #C3D0D6;       /* hairlines and grid */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lane); }

:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10;
}
.skip:focus { top: 10px; color: var(--paper); }

/* ---------- Type ---------- */

.display {
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.08;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.3rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; }
h2.display { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3.display { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.006em; }

.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 38em; }
.soft { color: var(--ink-soft); }
.nb { white-space: nowrap; }
.measure { max-width: 36em; }

/* ---------- Header ---------- */

.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-stretch: 125%; font-weight: 650; font-size: 1.32rem; letter-spacing: -0.015em; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 0.97rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a.nav-cta { border-bottom: 2px solid var(--lane); padding-bottom: 2px; }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--lane);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 24px;
  border-radius: 3px;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-on-ink:hover { background: var(--paper); color: var(--ink); }

.text-link { font-weight: 500; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); }
.hero h1 { max-width: 15em; }
.hero .lead { margin-top: 26px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.chart { margin-top: clamp(44px, 6vw, 72px); }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }

.chart .c-title { font-family: var(--font); font-stretch: 125%; font-weight: 600; font-size: 19px; fill: var(--ink); letter-spacing: -0.2px; }
.chart .c-desc  { font-family: var(--font); font-weight: 400; font-size: 14.5px; fill: var(--ink-soft); }
.chart .c-haz   { font-family: var(--font); font-weight: 500; font-size: 14px; fill: var(--ink-soft); }

/* Phone version of the chart: the same route, top to bottom */
.route { display: none; background: var(--water); border: 1px solid var(--ink); padding: 26px 22px 26px 26px; }
.route li { position: relative; padding-left: 34px; padding-bottom: 24px; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); border: 2.5px solid var(--lane);
}
.route li.start::before { background: var(--ink); border-color: var(--ink); }
.route li::after {
  content: ""; position: absolute; left: 7px; top: 24px; bottom: 0;
  border-left: 2px dashed var(--lane);
}
.route li:last-child::after { display: none; }
.route strong { display: block; font-stretch: 125%; font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.route span { display: block; color: var(--ink-soft); font-size: 0.97rem; margin-top: 2px; }

@media (max-width: 860px) {
  .chart svg { display: none; }
  .route { display: block; }
}

/* ---------- Bands ---------- */

.band { padding-block: clamp(60px, 8vw, 112px); }
.band-rule { border-top: 1px solid var(--rule); }
.band-head { margin-bottom: clamp(32px, 4vw, 52px); }
.band-head p { margin-top: 14px; }

/* Situations: three columns on hairlines */
.situations { display: grid; grid-template-columns: repeat(3, 1fr); }
.situations li { padding: 4px 32px 4px 0; }
.situations li + li { border-left: 1px solid var(--rule); padding-left: 32px; }
.situations h3 { margin-bottom: 12px; }
.situations p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .situations { grid-template-columns: 1fr; }
  .situations li, .situations li + li { padding: 22px 0; border-left: 0; }
  .situations li + li { border-top: 1px solid var(--rule); }
}

/* Services: two sheets */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); }
.service { border-top: 3px solid var(--ink); padding-top: 22px; }
.service-top { display: flex; flex-direction: column; gap: 6px; }
.service-top h3 { font-size: 1.5rem; }
.service-length { font-weight: 600; color: var(--lane); white-space: nowrap; }
.service > p { margin-top: 14px; color: var(--ink-soft); }
.service h4 { margin: 28px 0 10px; font-size: 0.95rem; font-weight: 600; }
.service li { padding: 9px 0; border-top: 1px solid var(--rule); }
.service li strong { font-weight: 600; }
.service .note { margin-top: 18px; font-size: 0.95rem; }

.next { margin-top: clamp(48px, 6vw, 80px); }
.next > h3 { margin-bottom: 18px; }
.next-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 8fr); gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--rule); }
.next-row:last-child { border-bottom: 1px solid var(--rule); }
.next-row .name { font-weight: 600; }
.next-row .len { color: var(--lane); font-weight: 600; }
.next-row .what { color: var(--ink-soft); }

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .next-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Engagement steps: a real sequence, so it is numbered and sits on the lane */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 17px;
  border-top: 2px dashed var(--lane);
}
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--lane); color: var(--lane);
  font-weight: 700; font-size: 1rem; line-height: 31px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

.pledge { margin-top: clamp(36px, 4vw, 52px); padding: 20px 24px; background: var(--water); border-left: 3px solid var(--ink); max-width: 46em; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 17px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--lane); }
  .steps li { padding-top: 4px; padding-left: 56px; }
  .steps li:last-child { background: var(--paper); }
}

/* Partners: the navy band */
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .soft { color: #B9C6D3; }
.band-ink a:hover { color: var(--lane-on-ink); }
.partners { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.partners .lead { margin-top: 20px; }
.partners .body { margin-top: 16px; max-width: 34em; }
.partners .btn { margin-top: 30px; }
.terms li { position: relative; padding: 16px 0 16px 30px; border-top: 1px solid rgba(245, 247, 243, 0.22); }
.terms li:last-child { border-bottom: 1px solid rgba(245, 247, 243, 0.22); }
.terms li::before {
  content: ""; position: absolute; left: 2px; top: 23px; width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid var(--lane-on-ink);
}

@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about p { margin-top: 20px; }
.facts div { padding: 16px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* Contact */
.band-water { background: var(--water); }
.contact h2 { max-width: 14em; }
.contact p { margin-top: 18px; }
.contact-mail {
  display: inline-block; margin-top: 30px;
  font-stretch: 125%; font-weight: 600; letter-spacing: -0.012em;
  font-size: clamp(1.25rem, 3.4vw, 2.3rem); line-height: 1.15;
  color: var(--lane); text-decoration-thickness: 2px; text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--ink); }

/* Footer */
.site-footer { padding-block: 44px 52px; font-size: 0.93rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.footer-legal p { max-width: 62em; }
.footer-legal p + p { margin-top: 8px; }

/* ---------- Plain pages (privacy, 404) ---------- */

.page { padding-block: clamp(36px, 5vw, 72px) clamp(60px, 8vw, 104px); }
.page h1.display { font-size: clamp(2rem, 4vw, 3rem); }
.page .updated { margin-top: 12px; color: var(--ink-soft); }
.prose { margin-top: 36px; max-width: 40em; }
.prose h2 { font-stretch: 125%; font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 38px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-top: 10px; }
.prose li + li { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
