:root {
  --paper: #f5f2ea;
  --ink: #14161a;
  --muted: #5c5e63;
  --hairline: #d8d3c6;
  --signal: #e4472b;
  --panel: #14161a;
  --panel-ink: #f5f2ea;
  --panel-muted: #a5a6a8;
  --gutter: clamp(16px, 4.5vw, 64px);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111316;
    --ink: #f1eee6;
    --muted: #a0a2a5;
    --hairline: #2c2f34;
    --signal: #ff6a4d;
    --panel: #1b1e22;
    --panel-ink: #f1eee6;
    --panel-muted: #a0a2a5;
  }
}

*, *::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(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 0.5rem; }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.wordmark svg { width: 1.5rem; height: 1rem; color: var(--signal); }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); font-size: 0.9375rem; }
.site-nav a { text-decoration: none; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 7.5rem) var(--gutter) 0; }
.hero h1 {
  max-width: 13.5em;
  margin: 1.25rem 0 0;
  font-size: clamp(2.75rem, 7.6vw, 6.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero .intro {
  max-width: 34em;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
}

.route-line {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  color: var(--signal);
  overflow: visible;
  animation: draw 1.6s cubic-bezier(0.65, 0, 0.2, 1) both;
}
.route-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.route-line circle {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  animation: appear 0.3s ease-out both;
}
.route-line circle:nth-of-type(1) { animation-delay: 0.35s; }
.route-line circle:nth-of-type(2) { animation-delay: 0.8s; }
.route-line circle:nth-of-type(3) { animation-delay: 1.3s; }

@keyframes draw { from { clip-path: inset(-12px 100% -12px 0); } to { clip-path: inset(-12px 0 -12px 0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* How we work */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 2rem var(--gutter);
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}
.stops { list-style: none; margin: 0; padding: 0; }
.stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0.75rem 2rem;
  padding: 1.75rem 0 2.25rem 2rem;
}
.stop::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  border-left: 2.5px solid var(--signal);
}
.stop:first-child::before { top: 2.35rem; }
.stop:last-child::before { bottom: auto; height: 2.35rem; }
.stop::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 2.1rem;
  width: 15px;
  height: 15px;
  border: 2.5px solid var(--signal);
  border-radius: 50%;
  background: var(--paper);
}
.stop h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stop p { margin: 0.2rem 0 0; max-width: 32em; color: var(--muted); }

/* Contact panel */
.contact {
  margin: 0 var(--gutter);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 4px;
}
.contact .label { color: var(--panel-muted); }
.contact a {
  display: inline-block;
  margin-top: 1rem;
  font-size: clamp(1.625rem, 5.4vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}
.contact a:hover { color: var(--panel-ink); border-bottom-color: var(--panel-ink); }

/* Tools */
.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 0.75rem var(--gutter);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
}
.tools p { margin: 0; max-width: 40em; }
.tools p + p { margin-top: 0.5rem; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Privacy */
.policy {
  max-width: calc(38rem + 2 * var(--gutter));
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
.policy h1 {
  margin: 1rem 0 2.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.policy h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.policy p { margin: 0.75rem 0 0; }
.policy ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.policy li { margin-top: 0.5rem; }
.policy li::marker { color: var(--signal); }

@media (max-width: 720px) {
  .how, .tools { grid-template-columns: minmax(0, 1fr); }
  .stop { grid-template-columns: minmax(0, 1fr); }
  .route-line circle { r: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line, .route-line circle { animation: none; }
}

