@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #0f2620;
  --muted: #4a5e57;
  --rule: #d6dfda;
  --accent: #13493b;
  --focus: var(--accent);
  --board: #13493b;
  --silk: #f1f4ef;
  --silk-muted: #b3c8be;
  --trace: #e2b457;
  --ext: #7fa595;
  --tap: 30px;
  --drop: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d2620;
    --ink: #e8eee9;
    --muted: #a3b8ae;
    --rule: #24493f;
    --accent: #e2b457;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 2; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.frame { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }

.brand { display: inline-flex; color: var(--ink); line-height: 0; }
.mark { display: block; height: 30px; width: auto; aspect-ratio: 152 / 36; }

header.site .frame { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 1rem; }
.menu a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); }

h1 {
  max-width: 27ch;
  font-size: clamp(2.375rem, 1.55rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.lead a, .invite a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lead a:hover, .invite a:hover { text-decoration-thickness: 2px; }

.intro { padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(44px, 7vh, 80px); }
.nw { white-space: nowrap; }
.missing { padding-bottom: clamp(96px, 20vh, 200px); }

.board { background: var(--board); color: var(--silk); padding: clamp(48px, 7vw, 88px) 0; --focus: var(--trace); }
.board-title { margin-bottom: 36px; font-size: 1.25rem; line-height: 1.3; font-weight: 500; }

.schematic { position: relative; }
.legend { position: absolute; top: 0; right: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--silk-muted); font-size: 0.875rem; line-height: 1.3; }
.legend > span { display: inline-flex; align-items: center; gap: 10px; }
.key { width: 22px; height: 14px; border: 1.5px solid var(--silk); border-radius: 2px; }
.key.dashed { border-style: dashed; border-color: var(--ext); }
.tier { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); }
.tester { align-items: end; }
.vehicle { align-items: start; }
.col { position: relative; }
.chain { display: grid; gap: 20px; }

.node { position: relative; padding: 18px 22px 20px; border: 1.5px solid var(--silk); border-radius: 3px; background: var(--board); }
.node-name { margin: 0 0 4px; font-size: 1.375rem; line-height: 1.2; font-weight: 500; }
.node-name a { color: var(--silk); text-decoration: none; }
.node-name a::after { content: ""; position: absolute; inset: -1.5px; }
.node-name a:focus-visible { outline: none; }
.node:focus-within { outline: 2px solid var(--trace); outline-offset: 4px; }
.node p:not(.node-name) { max-width: 34em; color: var(--silk-muted); font-size: 0.9375rem; line-height: 1.45; }
.node:hover { border-color: var(--trace); }
.node.is-current { border-color: var(--trace); box-shadow: inset 0 0 0 1.5px var(--trace); }
.node.is-current .node-name a { color: var(--trace); }
.node.ext { padding: 11px 22px 12px; border-style: dashed; border-color: var(--ext); }
.node.ext p { color: var(--silk-muted); font-size: 0.9375rem; }

.chain > .node + .node::before { content: ""; position: absolute; left: var(--tap); top: -21.5px; width: 2px; height: 20px; background: var(--trace); }
.tester .col::after, .vehicle .col::after { content: ""; position: absolute; left: var(--tap); width: 2px; height: var(--drop); background: var(--trace); }
.tester .col::after { bottom: calc(-1 * var(--drop)); }
.vehicle .col::after { top: calc(-1 * var(--drop)); }
.tester .col::before, .vehicle .col::before { content: ""; position: absolute; z-index: 1; left: calc(var(--tap) - 4px); width: 10px; height: 10px; border-radius: 50%; background: var(--trace); }
.tester .col::before { bottom: calc(-1 * var(--drop) - 6px); }
.vehicle .col::before { top: calc(-1 * var(--drop) - 6px); }

.bus { position: relative; height: 2px; margin: var(--drop) 0; }
.bus::before { content: ""; position: absolute; inset: 0 -8px 0 -8px; background: var(--trace); border-radius: 1px; }
.bus p { position: absolute; right: 0; top: 10px; color: var(--trace); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }

@media (prefers-reduced-motion: no-preference) {
  .bus::before { transform-origin: left center; animation: draw 900ms cubic-bezier(.3, .7, .2, 1) 120ms both; }
  .bus p, .tester .col::before, .vehicle .col::before, .tester .col::after, .vehicle .col::after { animation: appear 300ms ease-out 900ms both; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; } }

.outro { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 88px); }
.basis { max-width: 46rem; color: var(--muted); font-size: 0.9375rem; }
.invite { margin-top: 18px; font-size: 1.1875rem; }

.product { padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(56px, 9vh, 104px); }
.crumbs { margin-bottom: clamp(32px, 6vh, 64px); color: var(--muted); font-size: 0.9375rem; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 10px; }
.crumbs [aria-current] { color: var(--ink); }

.facts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); margin-top: clamp(40px, 7vh, 72px); align-items: start; }
.points { padding: 0; list-style: none; }
.points li { position: relative; padding-left: 26px; max-width: 36em; font-size: 1.0625rem; }
.points li + li { margin-top: 16px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); }
.standards h2, .hardware h2 { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 500; }
.hardware { max-width: 44rem; margin-top: clamp(48px, 8vh, 80px); }
.hardware .points { margin-top: 20px; }
.hardware .note { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }
.standards ul { padding: 0; list-style: none; }
.standards li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.standards li:last-child { border-bottom: 1px solid var(--rule); }
.standards .iso { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.standards .iso + span { color: var(--muted); }
.product .invite { margin-top: clamp(40px, 6vh, 64px); color: var(--muted); font-size: 1rem; }

footer.site { border-top: 1px solid var(--rule); }
footer.site .frame { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand email" "menu legal"; gap: 18px 32px; align-items: center; padding-top: 32px; padding-bottom: 36px; font-size: 0.9375rem; }
footer .brand { grid-area: brand; justify-self: start; color: var(--ink); }
footer .mark { height: 24px; }
footer .menu { grid-area: menu; font-size: 0.9375rem; gap: 4px 24px; }
footer .email { grid-area: email; justify-self: end; color: var(--accent); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }
footer .legal { grid-area: legal; justify-self: end; color: var(--muted); }

@media (max-width: 820px) {
  .tier { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .legend { position: static; margin-bottom: 28px; }
  .tester .chain::before, .tester .chain::after, .vehicle .col + .col::before, .vehicle .col + .col::after { content: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  footer.site .frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "menu" "email" "legal"; gap: 14px; }
  footer .email, footer .legal { justify-self: start; }
}
@media (max-width: 560px) {
  header.site .frame { min-height: 0; padding-top: 20px; padding-bottom: 14px; }
  .mark { height: 26px; }
  .menu { gap: 2px 20px; font-size: 0.9375rem; }
  .node { padding: 15px 18px 17px; }
  .node.ext { padding: 10px 18px 11px; }
  .node-name { font-size: 1.25rem; }
  :root { --tap: 26px; --drop: 36px; }
}
