/* Layout: phone-first single column; from 880 px the pitch sits left and a video frame with the
   pose overlay sits right, then the three steps, then a quiet footer. Fonts are self-hosted so
   the site makes no third-party requests (datenschutz.html, section 3). */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #131923;
  --muted: #5b6676;
  --line: #d9dfe8;
  --accent: #1f6feb;
  --band: rgba(31, 111, 235, 0.16);
  --bike: #b3bdcb;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1218; --surface: #161b23; --ink: #e5e9f0; --muted: #94a0b2; --line: #262e3b;
    --accent: #5b9cff; --band: rgba(91, 156, 255, 0.2); --bike: #3d4757; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1218; --surface: #161b23; --ink: #e5e9f0; --muted: #94a0b2; --line: #262e3b;
  --accent: #5b9cff; --band: rgba(91, 156, 255, 0.2); --bike: #3d4757; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  display: flex; flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; }
header.top { padding-block: 24px 0; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lang { display: flex; gap: 4px; font: 500 13px/1 var(--font-data); }
.lang a { color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 5px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--font-display); font-stretch: 85%; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; }

.mono { font-family: var(--font-data); font-weight: 500; font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12.5px/1.4 var(--font-data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }

/* hero */
.hero { display: grid; gap: 40px; padding-block: 48px 56px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-block: 72px 80px; } }
.pitch { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pitch h1 {
  margin: 0; font: 850 clamp(44px, 9vw, 76px)/0.95 var(--font-display); font-stretch: 72%;
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
.pitch h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.platforms span { font: 500 13px/1 var(--font-data); border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 9px 12px; color: var(--ink); }
.platforms span b { font-weight: 500; color: var(--muted); margin-left: 6px; }

/* the video frame with the pose overlay */
figure.frame { margin: 0; min-width: 0; }
.viewfinder { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--accent); border-style: solid; }
.viewfinder::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.viewfinder::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.viewfinder svg { display: block; width: 100%; height: auto; max-width: 100%; }
.hud { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1 var(--font-data); color: var(--muted); letter-spacing: 0.04em; padding-bottom: 10px; }
svg .bike { stroke: var(--bike); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
svg .bone { stroke: var(--accent); fill: none; stroke-width: 3.5; stroke-linecap: round; }
svg .joint { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
svg .joint.key { fill: var(--accent); }
svg .head { fill: none; stroke: var(--accent); stroke-width: 3; }
svg .arc { fill: var(--band); stroke: var(--accent); stroke-width: 1.5; }
svg .ground { stroke: var(--line); stroke-width: 2; }
svg text { font-family: var(--font-data); font-weight: 500; fill: var(--ink); stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }

/* range bar, as specified in docs/design-guidelines.md section 6 */
.reading { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.reading .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.reading .label { font-weight: 600; }
.reading .value { font: 500 22px/1 var(--font-data); }
.bar { position: relative; height: 34px; }
.bar .track { position: absolute; left: 0; right: 0; bottom: 8px; height: 4px; border-radius: 2px; background: var(--line); }
.bar .band { position: absolute; bottom: 4px; height: 12px; border-radius: 3px; background: var(--band); }
.bar .lim { position: absolute; top: 0; transform: translateX(-50%); font: 500 11.5px/1 var(--font-data); color: var(--muted); }
.bar .marker { position: absolute; bottom: 1px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.reading p { margin: 0; font-size: 15px; }
.reading .src { font-size: 13px; color: var(--muted); }
figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

/* steps */
.steps { border-top: 1px solid var(--line); padding-block: 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.steps h2 { margin: 0; font: 800 28px/1.1 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 720px) { .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 13px/1 var(--font-data); color: var(--accent); padding-bottom: 10px; border-bottom: 2px solid var(--accent); width: 2.6em; margin-bottom: 6px; }
.steps h3 { margin: 0; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* legal pages */
.legal { padding-block: 40px 64px; }
.legal > * { max-width: 680px; }
.legal h1 { margin: 0 0 6px; font: 850 clamp(36px, 7vw, 52px)/1 var(--font-display); font-stretch: 72%; text-transform: uppercase; }
.legal h2 { margin: 36px 0 8px; font-size: 19px; font-weight: 700; text-wrap: balance; }
.legal h3 { margin: 22px 0 6px; font-size: 16.5px; font-weight: 700; }
.legal p, .legal address { margin: 0 0 12px; font-style: normal; }
.legal .note { font-size: 14px; color: var(--muted); }

footer.bottom { margin-top: auto; padding-block: 0 28px; }
footer.bottom .wrap { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--muted); }
footer.bottom nav { display: flex; gap: 20px; }
footer.bottom a { color: var(--muted); }
footer.bottom a:hover { color: var(--ink); }

