/* Steuerbord website.
   Follows the brand sheet "Steuerbord Marke", state 3a: Kompassraute, Archivo
   wordmark, palette Lot / Tinte / Papier. Layout language taken from the same
   sheet — paper ground, white cards on a hairline rule, monospaced eyebrows.

   Body type is the system font rather than the sheet's Instrument Sans: the
   page has to open from the Finder over file://, where a webfont from a CDN
   would silently fall back anyway, and the system font is what the app itself
   uses. The wordmark carries Archivo, and it does so as outlines inside the
   SVG. */

:root {
  --ink: #14181c;
  --paper: #f1efea;
  --plumb: #3c556e;
  --plumb-light: #8fb2ce;

  --bg: var(--paper);
  --card: #ffffff;
  --rule: #e4dfd6;
  --text: var(--ink);
  --text-dim: #3a444e;
  --text-muted: #5a6672;
  --text-faint: #7c8894;
  --accent: var(--plumb);
  --shadow: none;

  --measure: 36rem;
  --page: 64rem;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --card: #1a1f24;
    --rule: #2b3239;
    --text: #f2efe9;
    --text-dim: #c3ccd4;
    --text-muted: #9aa4ae;
    --text-faint: #8b96a1;
    --accent: var(--plumb-light);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow — monospaced, spaced out, quiet. The sheet's own label style. */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Header */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 0;
}

.masthead img { height: 24px; width: auto; }

/* Both wordmarks sit in the markup; the colour scheme picks one. The selectors
   carry an element part so they outrank `.masthead img` — without it a rule of
   lower specificity there decides, and both logos show up stacked. */
img.logo-light { display: block; }
img.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  img.logo-light { display: none; }
  img.logo-dark { display: block; }
}

.masthead nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead nav a { color: var(--text-faint); text-decoration: none; }
.masthead nav a:hover { color: var(--text); }

/* Hero */

.hero { padding: 80px 0 0; }

.hero h1 {
  margin: 16px 0 18px;
  max-width: 20ch;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.hero p {
  margin: 0;
  max-width: var(--measure);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.badges li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--text-muted);
}

/* Sections */

section { padding: 80px 0 0; }

section > h2 {
  margin: 12px 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 26ch;
}

section > p.lead {
  margin: 0 0 36px;
  max-width: var(--measure);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }

p { margin: 0 0 16px; max-width: var(--measure); }

a { color: var(--accent); }

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Screenshots */

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
}

figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: var(--measure);
}

figcaption strong { color: var(--text-dim); font-weight: 600; }

.shot-lead { margin: 48px 0 0; }

.shots { display: grid; gap: 56px; }

.shots .grid { gap: 40px; }

/* Table, as one card with hairline rows */

.table {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

/* table-layout: fixed, because the width below is otherwise only a suggestion:
   a browser widens the label column until the longest label fits on one line,
   and it does that per table. Two tables under one another then set their
   labels to different widths — measured 256 against 302 px — and their
   descriptions start at different places. Fixed, the declared width holds and
   a label longer than the column wraps instead of pushing everything sideways.
   20rem is one line of the longest label today plus 17.8 px of room. */

table { border-collapse: collapse; table-layout: fixed; width: 100%; font-size: 15px; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.55;
}

tr:last-child th, tr:last-child td { border-bottom: none; }

th { font-weight: 600; width: 20rem; }

td { color: var(--text-muted); }

/* Code */

pre {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
}

code { font-family: var(--mono); font-size: 0.9em; }

p code, li code, td code {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--accent);
}

pre code { background: none; border: none; padding: 0; color: inherit; }

/* Notice — the sheet's accent rule on the left */

.notice {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 20px;
}

.notice p { margin: 0; font-size: 15px; color: var(--text-muted); max-width: none; }

.notice strong { color: var(--text); }

/* Roadmap — three lanes, left to right. The dot in each lane heading says
   where that lane stands: filled, half, hollow. That reads without colour
   vision too, because what differs is the fill and not the hue. */

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 14px;
}

.lane {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px 20px;
}

.lane h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lane h3::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

.lane--done h3::before { background: var(--accent); }

/* Half filled, and the seam runs vertically so it reads as a gauge rather
   than as a dot that failed to load. */
.lane--now h3::before {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
}

.lane--next h3::before { border-color: var(--text-faint); }

.lane ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.lane li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  color: var(--text-dim);
  line-height: 1.45;
}

.lane li:first-child { border-top: none; padding-top: 0; }
.lane li:last-child { padding-bottom: 0; }

.lane .hint {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Build block heading sits closer to its code */

.build { margin-top: 40px; }
.build h3 { margin-bottom: 8px; }
.build p { color: var(--text-muted); font-size: 15px; }

/* Footer */

footer {
  margin-top: 104px;
  padding: 28px 0 72px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

/* The wordmark sits on the text baseline, not centred on it. Flexbox aligns a
   replaced element by its bottom edge, and the wordmark's own baseline is
   higher up inside the file: the glyphs are drawn at y = 56.15 of a 76-unit
   canvas, so at a rendered height of 20px the baseline lands 14.78px down and
   the image bottom 5.22px below it. Pushing the image down by that difference
   puts both baselines on one line. */
footer img { height: 20px; width: auto; position: relative; top: 5.22px; }

footer .copyright { margin-left: auto; }

/* The imprint is required by law for a German site, so the links belong on
   every page — but they are duty, not content: same weight as the claim next
   to them, not the accent colour of a link one is meant to follow. They point
   at the umbrella site with absolute paths; over file:// those three lead
   nowhere, which is the price for them being right on the server. */

footer .legal { display: flex; gap: 16px; }
footer .legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

footer .legal a:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 700px) {
  .page { padding: 0 20px; }
  .masthead nav { display: none; }
  .hero { padding: 48px 0 0; }
  section { padding: 56px 0 0; }
  section > h2 { font-size: 26px; }
  table, tbody, tr, th, td { display: block; }
  th { width: auto; white-space: normal; padding: 16px 20px 2px; border-bottom: none; }
  td { padding: 0 20px 16px; }
}
