:root {
  --bg: #fff;
  --bg2: hsl(344 10% 97%);
  --text: hsl(344 10% 13%);
  --muted: hsl(344 10% 40%);
  --border: hsl(344 10% 89%);
  --accent: hsl(344 73% 44%);
  --accent-hover: hsl(344 73% 36%);
  --accent-soft: hsl(344 53% 95%);
  --accent-ink: #fff;
  --code-bg: hsl(344 10% 96%);
  --code-text: hsl(344 10% 18%);
  --code-dim: hsl(344 10% 50%);
  --code-key: hsl(344 73% 38%);
  --inline-code: hsl(344 10% 94%);
  --header-bg: rgba(255, 255, 255, .92);
  --header-text: hsl(344 10% 13%);
  --header-muted: hsl(344 10% 40%);
  --header-field: hsl(344 10% 96%);
  --header-border: hsl(344 10% 89%);
  --radius: 8px;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, "Segoe UI", sans-serif;
  --font-head: "Source Sans 3", "Source Sans Pro", system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(344 10% 8%);
    --bg2: hsl(344 10% 11%);
    --text: hsl(344 10% 90%);
    --muted: hsl(344 10% 66%);
    --border: hsl(344 10% 20%);
    --accent: hsl(344 73% 68%);
    --accent-hover: hsl(344 73% 76%);
    --accent-soft: hsl(344 53% 16%);
    --accent-ink: hsl(344 10% 8%);
    --code-bg: hsl(344 10% 12%);
    --code-text: hsl(344 10% 88%);
    --code-dim: hsl(344 10% 56%);
    --code-key: hsl(344 73% 74%);
    --inline-code: hsl(344 10% 16%);
    --header-bg: hsl(344 10% 8% / .92);
    --header-text: hsl(344 10% 90%);
    --header-muted: hsl(344 10% 66%);
    --header-field: hsl(344 10% 14%);
    --header-border: hsl(344 10% 20%);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
code, kbd, pre { font-family: var(--font-mono); font-size: .875em; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font: 650 1.125rem var(--font-head); text-decoration: none; }
.brand:hover { color: inherit; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--header-muted); font-size: .9375rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--header-text); text-decoration: none; }
.search { position: relative; margin-left: auto; width: 240px; }
.search input { width: 100%; height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--header-border); border-radius: var(--radius); background: var(--header-field); color: var(--header-text); font: inherit; font-size: .875rem; }
.search input::placeholder { color: var(--header-muted); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search kbd { position: absolute; right: 8px; top: 8px; padding: 0 6px; border: 1px solid var(--header-border); border-radius: 4px; color: var(--header-muted); font-size: .75rem; line-height: 18px; }
.hits { position: absolute; right: 0; top: 42px; width: min(420px, 90vw); margin: 0; padding: 6px; list-style: none; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.hits a { display: block; padding: 8px 10px; border-radius: calc(var(--radius) - 2px); color: inherit; text-decoration: none; }
.hits a:hover, .hits a.sel { background: var(--accent-soft); }
.hits b { display: block; font-weight: 600; }
.hits span { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.hits .none { padding: 8px 10px; color: var(--muted); font-size: .875rem; }
.menu { display: none; margin-left: 4px; padding: 6px; background: none; border: 0; color: inherit; cursor: pointer; }
.menu svg { display: block; width: 22px; height: 22px; }

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn.alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.alt:hover { background: var(--bg2); color: var(--text); }

.hero { padding: 88px 0 72px;  }
.hero .wrap { text-align: center; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.025em; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero p.lead { margin: 0 0 32px; color: var(--muted); font-size: 1.1875rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .install { max-width: 100%; margin-top: 28px; display: inline-block; }
.hero .install pre { margin: 0; text-align: left; }
.hero .art { max-width: 640px; margin: 56px auto 0; }
.hero .art svg { display: block; width: 100%; height: auto; }
.release { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 24px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.release b { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.release:hover { color: var(--text); text-decoration: none; }

.band { padding: 72px 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--bg2); }
.band h2 { margin: 0 0 12px; font-size: 1.875rem; text-align: center; }
.band p.sub { max-width: 640px; margin: 0 auto 48px; color: var(--muted); text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.feature .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: calc(var(--radius) - 2px); background: var(--accent-soft); color: var(--accent); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; }
.feature code { padding: .125em .375em; border-radius: 4px; background: var(--inline-code); color: var(--text); }
.example { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.example h2 { text-align: left; }
.example p { color: var(--muted); }
.example pre { margin: 0; }

.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr) 208px; gap: 48px; }
.side { position: sticky; top: 61px; align-self: start; max-height: calc(100vh - 61px); overflow-y: auto; scrollbar-gutter: stable; padding: 28px 8px 40px 0; font-size: .9375rem; }
.side p { margin: 20px 0 6px; color: var(--text); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.side p:first-child { margin-top: 0; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side a { display: block; padding: 5px 10px; color: var(--muted); text-decoration: none; border-radius: calc(var(--radius) - 2px); }
.side a:hover { color: var(--text); text-decoration: none; }
.side a[aria-current] { color: var(--accent); font-weight: 600;  }
.toc { position: sticky; top: 61px; align-self: start; padding: 32px 0; font-size: .8125rem; }
.toc p { margin: 0 0 8px; font-weight: 600; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 4px 0; }
.toc li.sub { padding-left: 12px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.doc { min-width: 0; padding: 32px 0 64px; }
.doc .prose { max-width: 48rem; }
.crumbs { margin-bottom: 8px; color: var(--muted); font-size: .875rem; }
.crumbs a { color: var(--muted); }
.prose h1 { margin: 0 0 20px; font-size: 2.125rem; letter-spacing: -.02em; }
.prose h2 { margin: 44px 0 14px; padding-top: 4px; font-size: 1.5rem; }
.prose h3 { margin: 32px 0 10px; font-size: 1.1875rem; }
.prose h2:first-of-type { margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.anchor { float: left; margin-left: -1em; padding-right: .25em; color: var(--muted); opacity: 0; text-decoration: none; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.prose code { padding: .125em .375em; border-radius: 4px; background: var(--inline-code); }
.prose a code { color: inherit; }
.prose h2 code, .prose h3 code { padding: 0; background: none; font-size: .9em; }
pre.code { position: relative; margin: 0 0 20px; padding: 16px 20px; overflow-x: auto; border-radius: var(--radius); background: var(--code-bg); color: var(--code-text); line-height: 1.6; border: 1px solid var(--border); }
pre.code code { padding: 0; background: none; font-size: .8125rem; }
pre .c { color: var(--code-dim); }
pre .p { color: var(--code-dim); user-select: none; }
pre .k { color: var(--code-key); }
.copy { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--code-dim); font: 12px/18px var(--font); cursor: pointer; opacity: 0; }
pre:hover .copy, .copy:focus { opacity: 1; border-color: var(--code-dim); }
.note { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); }
.note p { margin: 0; }
.table { margin: 0 0 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
td code { white-space: nowrap; }
figure.diagram { margin: 24px 0 28px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); }
figure.diagram svg { display: block; width: 100%; height: auto; }

.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 48rem; margin-top: 48px; padding: 16px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9375rem; }
.feedback button { height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.feedback button:hover { border-color: var(--accent); color: var(--accent); }
.feedback .edited { margin-left: auto; font-size: .8125rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 48rem; margin-top: 16px; }
.pager a { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: .8125rem; }
.pager .next { grid-column: 2; text-align: right; }

.plain { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.plain h1 { font-size: 2.125rem; margin: 0 0 12px; }
.plain .lead { margin: 0 0 32px; color: var(--muted); font-size: 1.125rem; }
.notfound { padding: 120px 24px; text-align: center; }
.notfound .code { color: var(--accent); font: 700 4.5rem/1 var(--font-head); }
.notfound h1 { margin: 16px 0 8px; }
.notfound p { color: var(--muted); }

.foot { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 1180px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap, .example, .features { grid-template-columns: minmax(0, 1fr); }
  .docs { display: block; }
  .side { display: none; position: fixed; inset: 61px 0 0; z-index: 9; max-height: none; padding: 24px; background: var(--bg); }
  .menu-open .side { display: block; }
  .menu { display: block; }
  .main-nav { display: none; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 14px; }
  .brand span { display: none; }
  .hero { padding: 56px 0 48px; }
  .band { padding: 56px 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
