/* one accent, status colors only for status (same tokens as homie) */
:root {
  --canvas: #f7f8f8; --surface-1: #ffffff; --surface-2: #f3f4f5;
  --hairline: #e2e4e7; --hairline-strong: #cfd2d6;
  --ink: #0b0c0d; --ink-muted: #3c4048; --ink-subtle: #6b7079; --ink-faint: #9aa0a8;
  --accent: #4f55d6; --accent-hover: #3f45c2; --on-accent: #ffffff;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090a; --surface-1: #0f1011; --surface-2: #141516;
    --hairline: #23252a; --hairline-strong: #34343a;
    --ink: #f7f8f8; --ink-muted: #d0d6e0; --ink-subtle: #8a8f98; --ink-faint: #62666d;
    --accent: #7c83f0; --accent-hover: #9aa0ff; --on-accent: #08090a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: 13px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
header.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
header.nav nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
header.nav nav a { color: var(--ink-subtle); }
header.nav nav a:hover { color: var(--ink); text-decoration: none; }

.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hero img.logo { width: 88px; height: 88px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 16px; }
.hero p.lead { font-size: 19px; color: var(--ink-muted); max-width: 680px; margin: 0 auto 28px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-size: 15px; font-weight: 500; border: 1px solid var(--hairline-strong); color: var(--ink); background: var(--surface-1); }
.btn:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.hint { font-size: 13px; color: var(--ink-subtle); margin-top: 14px; }

section { padding: 64px 0; border-top: 1px solid var(--hairline); }
section h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
section p.sub { color: var(--ink-subtle); margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.card { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px; padding: 18px 20px; }
.card h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.card .tag { display: inline-block; font-size: 12px; color: var(--ink-subtle); border: 1px solid var(--hairline); border-radius: 4px; padding: 0 6px; margin: 0 4px 6px 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
/* grid items default to min-content width: long code lines would widen the page */
.two > *, .grid > *, .doc > * { min-width: 0; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink-muted); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
ul.checks b { color: var(--ink); font-weight: 600; }

pre { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px; padding: 16px 18px; margin: 0 0 16px; overflow-x: auto; line-height: 1.55; color: var(--ink-muted); }
pre .c { color: var(--ink-faint); }
h3.label { font-size: 14px; color: var(--ink-subtle); font-weight: 500; margin: 0 0 8px; }

/* docs pages */
.doc { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.doc aside nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.doc aside a { color: var(--ink-subtle); padding: 4px 10px; border-radius: 6px; }
.doc aside a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.doc aside a[aria-current] { color: var(--ink); background: var(--surface-2); font-weight: 500; }
article h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
article h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--hairline); }
article h3 { font-size: 17px; margin: 28px 0 8px; }
article p, article li { color: var(--ink-muted); }
article :not(pre) > code { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 4px; padding: 0 4px; color: var(--ink); }
article table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
article th, article td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--hairline); }
article th { color: var(--ink); font-weight: 600; border-bottom-color: var(--hairline-strong); }
article td { color: var(--ink-muted); }
article td:first-child code { white-space: nowrap; }
article td:last-child { min-width: 260px; }

@media (max-width: 820px) {
  .two, .doc { grid-template-columns: 1fr; }
  .doc { gap: 16px; }
  .doc aside nav { position: static; flex-direction: row; flex-wrap: wrap; }
  header.nav nav a.wide { display: none; }
}

footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; font-size: 13px; color: var(--ink-subtle); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .right { margin-left: auto; display: flex; gap: 16px; }
