:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #111;
  --line: #292929;
  --line-soft: #1d1d1d;
  --text: #f4f3ef;
  --muted: #a2a19c;
  --faint: #72716d;
  --paper: #e9e4d8;
  --ink: #121212;
  --accent: #c9bfff;
  --accent-soft: rgba(201, 191, 255, .12);
  --content: 760px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 72% -10%, rgba(145, 121, 255, .1), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #fff; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 8px 12px; border-radius: 8px; background: var(--paper); color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.topbar {
  position: sticky; z-index: 20; top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 9, 9, .86); backdrop-filter: blur(18px);
}
.topbar-inner {
  display: flex; width: min(100% - 32px, 1280px); min-height: 64px; margin: 0 auto;
  align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  font-size: 15px; font-weight: 760; letter-spacing: -.025em; text-decoration: none;
}
.brand-mark {
  position: relative; width: 25px; height: 25px; border: 2px solid currentColor;
  border-radius: 50% 50% 48% 44%; transform: rotate(-7deg);
}
.brand-mark::before, .brand-mark::after {
  position: absolute; bottom: -4px; width: 8px; height: 8px; border: 2px solid currentColor;
  border-top: 0; border-radius: 0 0 7px 7px; background: var(--bg); content: "";
}
.brand-mark::before { left: 3px; }
.brand-mark::after { right: 2px; }
.brand-section { color: var(--muted); font-weight: 560; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.topnav a[aria-current="page"], .topnav a:hover { color: var(--text); }
.menu-button {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text);
  cursor: pointer;
}
.menu-button span, .menu-button::before, .menu-button::after {
  display: block; width: 16px; height: 1px; background: currentColor; content: "";
}
.menu-button span { margin: 4px 0; }
.docs-layout {
  display: grid; width: min(100% - 32px, 1280px); margin: 0 auto;
  grid-template-columns: 244px minmax(0, var(--content)) minmax(150px, 1fr); gap: 48px;
}
.sidebar {
  position: sticky; top: 65px; height: calc(100vh - 65px); padding: 42px 0; overflow-y: auto;
}
.sidebar-group + .sidebar-group { margin-top: 28px; }
.sidebar-label {
  margin: 0 0 8px; color: var(--faint); font-size: 10px; font-weight: 780;
  letter-spacing: .14em; text-transform: uppercase;
}
.sidebar a {
  display: block; margin-left: -10px; padding: 5px 10px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 580; line-height: 1.45; text-decoration: none;
}
.sidebar a:hover, .sidebar a[aria-current="page"] { background: var(--surface); color: var(--text); }
.article { min-width: 0; padding: 68px 0 110px; }
.article-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 780;
  letter-spacing: .15em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--text); letter-spacing: -.035em; line-height: 1.15; }
h1 {
  max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 70px); font-weight: 400; letter-spacing: -.055em;
}
.article-header .lede {
  max-width: 680px; margin: 22px 0 0; color: var(--muted);
  font-size: clamp(17px, 2vw, 20px); line-height: 1.65;
}
.page-meta {
  display: flex; margin-top: 24px; flex-wrap: wrap; gap: 9px 18px; color: var(--faint); font-size: 12px;
}
.article-section { padding-top: 48px; scroll-margin-top: 80px; }
.article-section h2 { margin: 0 0 18px; font-size: 29px; font-weight: 680; }
.article-section h3 { margin: 34px 0 12px; font-size: 19px; font-weight: 680; }
.article p, .article li { color: #c5c4bf; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 24px; }
.article li + li { margin-top: 7px; }
.article strong { color: var(--text); }
.article a { color: var(--accent); }
.callout {
  margin: 26px 0; padding: 18px 20px; border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft);
}
.callout strong { display: block; margin-bottom: 3px; }
.callout p:last-child { margin-bottom: 0; }
.code-block {
  position: relative; margin: 24px 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: #0d0d0d; overflow: hidden;
}
.code-label {
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  color: var(--faint); font-size: 11px; font-weight: 700;
}
.code-block pre {
  margin: 0; padding: 20px; overflow-x: auto; color: #d9d6cc;
  font-size: 13px; line-height: 1.65; tab-size: 2;
}
.copy-button {
  position: absolute; top: 7px; right: 8px; min-width: 54px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
  color: var(--muted); font-size: 11px; cursor: pointer;
}
.copy-button:hover, .copy-button:focus-visible { border-color: #444; color: var(--text); }
.path-grid {
  display: grid; margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.path-link { min-height: 210px; padding: 28px; color: inherit; text-decoration: none; }
.path-link + .path-link { border-left: 1px solid var(--line); }
.path-link:hover { background: rgba(255,255,255,.025); }
.path-number { color: var(--accent); font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.path-link h2 { margin: 38px 0 8px; font-size: 25px; }
.path-link p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.path-arrow { display: block; margin-top: 18px; color: var(--text); font-size: 19px; }
.feature-list {
  display: grid; margin: 28px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.feature { padding: 22px 20px 22px 0; }
.feature + .feature { padding-left: 20px; border-left: 1px solid var(--line); }
.feature strong { display: block; margin-bottom: 7px; font-size: 14px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.endpoint-list { margin: 24px 0; border-top: 1px solid var(--line); }
.endpoint {
  display: grid; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 72px minmax(180px, 280px) 1fr; gap: 14px; align-items: baseline;
}
.method {
  color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px; font-weight: 800;
}
.endpoint code { color: var(--text); font-size: 13px; }
.endpoint span:last-child { color: var(--muted); font-size: 13px; }
.comparison { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.comparison th, .comparison td {
  padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top;
}
.comparison th { color: var(--faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.comparison td { color: #c5c4bf; }
.on-this-page { position: sticky; top: 65px; height: fit-content; padding: 44px 0; }
.on-this-page strong {
  display: block; margin-bottom: 9px; color: var(--faint); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
}
.on-this-page a {
  display: block; padding: 4px 0; color: var(--faint); font-size: 12px;
  line-height: 1.45; text-decoration: none;
}
.on-this-page a:hover { color: var(--text); }
.footer {
  display: flex; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line);
  align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer a { color: var(--muted); text-decoration: none; }
.not-found {
  display: grid; min-height: calc(100vh - 65px); width: min(100% - 32px, 760px);
  margin: 0 auto; place-content: center;
}
.not-found h1 { font-size: clamp(54px, 12vw, 100px); }
.not-found p { max-width: 520px; color: var(--muted); }
.not-found a { color: var(--accent); }

@media (max-width: 1040px) {
  .docs-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
  .on-this-page { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { min-height: 58px; }
  .topnav { display: none; }
  .menu-button { display: block; }
  .menu-button span { margin: 4px auto; }
  .menu-button::before, .menu-button::after { margin: 0 auto; }
  .docs-layout { display: block; }
  .sidebar {
    position: fixed; z-index: 30; top: 58px; right: 0; bottom: 0; left: 0;
    display: none; width: 100%; height: auto; padding: 28px 24px; background: rgba(9,9,9,.98);
  }
  .sidebar[data-open="true"] { display: block; }
  .article { padding-top: 48px; }
  .article-header { padding-bottom: 30px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .article-section { padding-top: 40px; }
  .path-grid, .feature-list { grid-template-columns: 1fr; }
  .path-link { min-height: 180px; }
  .path-link + .path-link, .feature + .feature { border-top: 1px solid var(--line); border-left: 0; }
  .feature, .feature + .feature { padding: 20px 0; }
  .endpoint { grid-template-columns: 54px minmax(0, 1fr); }
  .endpoint span:last-child { grid-column: 2; }
  .comparison { display: block; overflow-x: auto; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
