:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1a1d22;
  --muted: #5a6270;
  --quiet: #8b93a0;
  --accent: #3370ff;
  --accent-hover: #245bdb;
  --soft: #e8edf4;
  --card: #f6f7f9;
  --line: #dce3ec;
  --max: 1040px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

:focus-visible {
  outline: 3px solid rgba(51, 112, 255, 0.35);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img { display: block; height: 28px; width: 28px; }

.site-header nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  min-height: 40px;
  padding: 0 14px;
}

.btn:hover { background: var(--accent-hover); }

.home {
  margin: 0 auto;
  max-width: var(--max);
  padding: 36px 24px 88px;
}

.hero {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  padding: 28px 0 8px;
}

.hero-copy { min-width: 0; padding-top: 12px; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  max-width: 15ch;
}

.hero .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 38em;
}

.hero .lede code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px 0 0;
}

.preview {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

.preview-bar {
  align-items: center;
  background: #6b1c2a;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
}

.preview-dot {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.preview-bar span:last-child { margin-left: auto; opacity: 0.7; }

.preview-body { padding: 14px 16px 16px; }

.preview-row {
  align-items: baseline;
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: 16px 1.2fr 0.8fr;
  padding: 6px 0;
}

.preview-check {
  background: #2e7d32;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  width: 14px;
}

.preview-title { font-weight: 700; }
.preview-name { color: var(--ink); }
.preview-val { color: var(--muted); }
.preview-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 12px;
}

.preview-btns { display: flex; gap: 8px; }
.preview-btns b {
  background: #1976d2;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.split {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
}

.split li {
  background: var(--card);
  border-radius: 10px;
  padding: 18px 20px;
}

.split strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.split li { color: var(--muted); font-size: 14px; }

.band {
  padding: 56px 0 0;
}

.band.slim { max-width: 560px; }

.band h2 {
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.model-lines { display: grid; gap: 8px; }

.model-lines div {
  align-items: baseline;
  background: var(--card);
  border-radius: 12px;
  display: grid;
  gap: 18px;
  grid-template-columns: 92px 1fr;
  padding: 16px 18px;
}

.model-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.model-lines code { font-family: var(--mono); font-size: 14px; }

.facts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.facts div {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
}

.facts dt { font-size: 24px; font-weight: 750; }
.facts dd { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.code-block {
  background: var(--soft);
  border-radius: 12px;
  margin: 20px 0 0;
  overflow: hidden;
}

.code-block figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 14px 18px 0;
}

.code-block pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  overflow-x: auto;
  padding: 12px 18px 18px;
}

.band .lede {
  color: var(--muted);
  margin: 14px 0 0;
}

.text-link {
  color: var(--accent);
  display: inline-block;
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

footer {
  align-items: center;
  color: var(--quiet);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 36px 20px 48px;
}

footer a:hover { color: var(--ink); }

.docs-shell {
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 760px) 180px;
  margin: 0 auto;
  max-width: 1080px;
  min-height: calc(100vh - 140px);
  padding: 48px 28px 100px;
}

.docs-nav {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-column: 2;
  position: sticky;
  top: 28px;
}

.docs-nav strong { font-size: 13px; margin-bottom: 8px; }

.docs-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 10px;
}

.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--accent);
}

.prose { grid-column: 1; min-width: 0; }

.prose h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.prose .intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 12px;
}

.prose p, .prose li { color: var(--muted); line-height: 1.7; }

.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose p code, .prose li code, .prose td code {
  background: var(--soft);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 5px;
}

.prose table {
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 14px;
  margin: 16px 0 24px;
  width: 100%;
}

.prose th {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  text-align: left;
}

.prose td {
  background: var(--card);
  color: var(--muted);
  padding: 13px 14px;
}

.prose tbody td:first-child { border-radius: 8px 0 0 8px; color: var(--ink); font-weight: 600; }
.prose tbody td:last-child { border-radius: 0 8px 8px 0; }

.eyebrow {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 10px;
}

@media (max-width: 800px) {
  .docs-shell { display: block; }
  .docs-nav {
    flex-direction: row;
    margin-bottom: 28px;
    overflow-x: auto;
    position: static;
  }
  .docs-nav strong { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero { display: block; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
