:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #181818;
  --muted: #666666;
  --line: #d8d8d8;
  --soft: #f6f6f4;
  --accent: #006f64;
  --accent-soft: #e7f3f0;
  --code: #f2f2f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --ink: #eeeeec;
    --muted: #aaa9a4;
    --line: #383836;
    --soft: #1a1a19;
    --accent: #72cbbd;
    --accent-soft: #18312d;
    --code: #222220;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
}

.site-name {
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 62px 0 76px;
}

section {
  margin-top: 62px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.intro {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.eyebrow,
.answer-label,
.step {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 2.25rem;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
}

p,
ol,
ul {
  max-width: 800px;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 840px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.48;
}

.context {
  max-width: 840px;
  margin-bottom: 28px;
}

.answer {
  max-width: 900px;
  margin: 0 0 32px;
  padding: 22px 24px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.answer-text {
  max-width: 820px;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.42;
}

.hero-figure,
.wide-figure {
  margin: 26px 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

figcaption {
  max-width: 860px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-figure {
  max-width: 980px;
}

.definition-grid,
.roadmap-grid,
.repo-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 980px;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.definition-grid article,
.roadmap-grid article,
.repo-map article {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.definition-grid p,
.roadmap-grid p,
.repo-map p {
  margin-bottom: 0;
  color: var(--muted);
}

.pipeline {
  margin: 24px 0;
  padding-left: 25px;
}

.pipeline li + li {
  margin-top: 10px;
}

.detail-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-wrap {
  max-width: 980px;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--soft);
  font-size: 0.85rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

code,
pre {
  font: 0.93rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  padding: 0.08em 0.25em;
  background: var(--code);
}

pre {
  max-width: 800px;
  margin: 20px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--code);
}

pre code {
  padding: 0;
  background: transparent;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-links a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.primary-links a:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

footer {
  border-top: 1px solid var(--line);
}

footer p {
  width: min(1120px, calc(100% - 36px));
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  main {
    padding-top: 38px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  section {
    margin-top: 48px;
  }

  .definition-grid,
  .roadmap-grid,
  .repo-map {
    grid-template-columns: 1fr;
  }

  .answer {
    padding: 18px;
  }

  .hero-figure,
  .wide-figure {
    width: calc(100% + 18px);
    overflow-x: auto;
  }

  .hero-figure img,
  .wide-figure img {
    width: 900px;
    max-width: none;
  }

  figcaption {
    width: min(90vw, 620px);
  }
}
