:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #d8dee4;
  --panel: #f6f8fa;
  --code: #101820;
  --paper: #ffffff;
  --accent: #b7410e;
  --warn: #8a5a00;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

.site-header,
.site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
  background: var(--paper);
}

.site-footer {
  border-width: 1px 0 0;
}

.bar,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 20px;
}

.brand {
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.docs-hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 32px;
  align-items: center;
}

.narrow {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.pipeline {
  max-width: 760px;
  margin: 0 auto;
}

.pipeline figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 34px 0;
}

.section.alt {
  background: var(--panel);
  border-color: var(--line);
  border-style: solid;
  border-width: 1px 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--paper);
}

.card p,
.copy p,
.copy li {
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.code {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 6px;
  color: #d6f3ed;
  background: var(--code);
  font: 0.95rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.note {
  border-left: 3px solid var(--warn);
  padding: 10px 14px;
  background: #fff8e1;
  color: #3d2d0a;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.split > *,
.grid > *,
.hero-grid > * {
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.package-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.package-table th,
.package-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.package-table th {
  background: var(--panel);
  font-weight: 650;
}

.package-table tr:last-child td {
  border-bottom: 0;
}

.package-table code,
.copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.link-list a {
  display: block;
  font-weight: 650;
}

.link-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 840px) {
  .bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .split,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
