@font-face {
  font-family: Geist;
  src: url(geist.woff2) format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Plex Mono';
  src: url(ibm-plex-mono.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #242724;
  --soft-ink: #4a4d47;
  --rule: #c9c7bb;
  --blue: #2f449d;
  --diagram: #e8ebf4;
  --rail: #8290c0;
  --mono: 'Plex Mono', monospace;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.56 Geist, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, p, figure, dl, dd { margin: 0; }

.page {
  width: min(100% - 2 * clamp(1.25rem, 5.6vw, 5rem), 69rem);
  margin: 0 auto;
}

.hero {
  padding: clamp(3.125rem, 9vw, 7.5rem) 0 clamp(2.4rem, 6.5vw, 5rem);
  border-bottom: 1px solid var(--ink);
}

h1 {
  font-size: clamp(3.5rem, 15.7vw, 9.4rem);
  font-weight: 650;
  letter-spacing: -.085em;
  line-height: .88;
}

h1 span { color: var(--blue); }

.hero p {
  max-width: 27ch;
  margin-top: 1.55rem;
  font-size: clamp(1.14rem, 3.1vw, 1.49rem);
  line-height: 1.38;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.chapter {
  display: grid;
  align-items: start;
  gap: 1.55rem;
  padding: clamp(2.4rem, 6.5vw, 5.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

h2 {
  font-size: clamp(2.1rem, 8vw, 4.45rem);
  font-weight: 610;
  letter-spacing: -.069em;
  line-height: .97;
  margin-bottom: 1rem;
}

.chapter p { max-width: 49ch; text-wrap: pretty; }
.chapter p + p { margin-top: .72rem; }

.route {
  background: var(--diagram);
  padding: 1.2rem clamp(1.05rem, 4.7vw, 2rem) 1.4rem;
  border-top: 2px solid var(--blue);
}

.route figcaption {
  margin-bottom: .95rem;
  padding-bottom: .68rem;
  border-bottom: 1px solid #b8c1dc;
  font: 500 .78rem/1.4 var(--mono);
  color: var(--blue);
}

.journey { position: relative; }

.journey ol {
  display: grid;
  grid-auto-rows: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey li {
  position: relative;
  padding: 0 0 .73rem 1.7rem;
}

.journey li:last-child { padding-bottom: 0; }

.journey li::before {
  content: '';
  position: absolute;
  top: .73rem;
  left: .34rem;
  transform: translate(-50%, -50%);
  width: .55rem;
  height: .55rem;
  background: var(--diagram);
  border: 1px solid var(--blue);
  border-radius: 50%;
}

.journey li:first-child::before, .journey li:last-child::before { background: var(--blue); }
.journey .cloud { color: var(--blue); }

.journey strong, .journey li span { display: block; }

.journey strong {
  font-size: 1.02rem;
  letter-spacing: -.021em;
  font-weight: 680;
  line-height: 1.4;
}

.journey li span { font-size: .935rem; line-height: 1.4; }

.track {
  position: absolute;
  top: .73rem;
  bottom: calc(20% - .73rem);
  left: .34rem;
  width: 1px;
  background: var(--rail);
  pointer-events: none;
}

.track::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: .66rem;
  height: .66rem;
  border: 1px solid var(--diagram);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
  animation: deliver 4.8s ease-in-out both;
}

@keyframes deliver {
  0%, 8% { top: 0; opacity: 1; }
  84%, 90% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .track::after { display: none; animation: none; }
}

.takeaway {
  border-left: 2px solid var(--blue);
  padding-left: .93rem;
  color: var(--soft-ink);
}

.car {
  border: 1px solid var(--rule);
  padding: .9rem clamp(.85rem, 3vw, 1.65rem) .84rem;
}

.car img { display: block; width: 100%; height: auto; }

.car figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .95rem;
  padding-top: .63rem;
  border-top: 1px solid var(--rule);
  font: 500 .72rem/1.5 var(--mono);
}

.car figcaption span { display: inline-flex; align-items: center; gap: .42rem; }

.key {
  width: .52rem;
  height: .52rem;
  border: 1px solid var(--ink);
}

.key.engine { background: var(--blue); border-color: var(--blue); }

.parts > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 24%) 1fr;
  gap: .6rem;
  border-top: 1px solid var(--rule);
  padding: .72rem 0;
}

.parts > div:last-child { border-bottom: 1px solid var(--rule); }
.parts dt { font-weight: 680; letter-spacing: -.025em; }
.parts dd { max-width: 48ch; }

footer {
  padding: 1.2rem 0 2.3rem;
  font: 500 .75rem/1.5 var(--mono);
  color: var(--soft-ink);
}

@media (min-width: 48rem) {
  .hero, .chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }

  .hero { align-items: end; }
  h1 { font-size: clamp(4.25rem, 7.1vw, 6.8rem); }
  h2 { font-size: clamp(2.35rem, 5.1vw, 4.45rem); }
  .hero p { margin: 0 0 .14em; }
  .voice .route { grid-row: 1 / span 3; grid-column: 2; }
  .voice .call-controls { margin-top: 0; }
  .harness .car { grid-area: 2 / 1; }
  .harness .takeaway { grid-area: 3 / 1; }
  .parts { grid-area: 1 / 2 / span 3 / 3; }
  .in-use {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    padding-top: 1.15rem;
    border-top: 1px solid var(--rule);
  }
  .in-use p + p { margin-top: 0; }
  .chapter { align-content: start; grid-auto-rows: min-content; }
  .journey li span { font-size: 1rem; }
}
