:root {
	color-scheme: light dark;
	--bg: #fbfbfd;
	--fg: #1d1d1f;
	--muted: #6e6e73;
	--line: #d9d9de;
	--panel: #f2f2f6;
	--accent: #0a66d6;
	--ok: #1e7f3c;
	--ok-bg: #e5f4ea;
	--wait: #8a5a00;
	--wait-bg: #fbf0d9;
	--font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #07080b;
		--fg: #f5f5f7;
		--muted: #a1a1a6;
		--line: #34343a;
		--panel: #1b1b20;
		--accent: #5aa6ff;
		--ok: #6fd08f;
		--ok-bg: #16301f;
		--wait: #f0c060;
		--wait-bg: #33280f;
	}
}

body { margin: 0; padding: 0 16px; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
main { max-width: 46rem; margin: 0 auto; padding-block: 3rem 5rem; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.4rem; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; text-wrap: balance; }
p { margin: 0.6rem 0; }
a { color: var(--accent); }
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.25rem; margin: 1.25rem 0 0; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.summary { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.summary li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.summary li > span:last-child { min-width: 0; }
.chip { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; padding: 0.15rem 0.55rem; border-radius: 999px; justify-self: start; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.wait { color: var(--wait); background: var(--wait-bg); }
code { font: 0.88em var(--mono); overflow-wrap: anywhere; }
.cmd { margin: 0.75rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.cmd-head { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.cmd pre { margin: 0; padding: 0.75rem; overflow-x: auto; font: 0.82rem/1.5 var(--mono); white-space: pre; }
.cmd .expect { border-top: 1px dashed var(--line); color: var(--muted); }
.hash { font: 0.82rem/1.5 var(--mono); overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.75rem; margin: 0.5rem 0; }
.table { overflow-x: auto; margin: 0.75rem 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 0.82rem; }
td code { white-space: nowrap; }
ul.plain { padding-left: 1.2rem; margin: 0.5rem 0; }
ul.plain li { margin: 0.3rem 0; }
.note { color: var(--muted); font-size: 0.9rem; }
footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 480px) {
	.summary li { grid-template-columns: 1fr; gap: 0.2rem; }
	.facts { grid-template-columns: 1fr; }
	.facts dt { margin-top: 0.4rem; }
}

.skip {
	position: fixed;
	z-index: 20;
	top: 8px;
	left: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--bg);
	background: var(--fg);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
}

.skip:focus {
	transform: none;
}

.site-nav {
	position: sticky;
	z-index: 10;
	top: 0;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
}

.site-nav nav,
.site-foot {
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.site-nav nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 56px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-right: auto;
	color: var(--fg);
	text-decoration: none;
}

.glyph {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0) 30%),
		radial-gradient(circle at 70% 78%, rgb(255 184 107 / 0.85), rgb(255 184 107 / 0) 52%),
		radial-gradient(circle at 22% 70%, rgb(125 217 255 / 0.9), rgb(125 217 255 / 0) 55%),
		radial-gradient(circle at 75% 25%, rgb(232 120 250 / 0.9), rgb(232 120 250 / 0) 55%),
		#8c7dff;
}

.wordmark {
	height: 14px;
	width: auto;
	fill: currentColor;
}

.site-nav ul,
.site-foot ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav ul {
	gap: 0.25rem 1.25rem;
}

.site-nav a:not(.site-brand),
.site-foot a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
}

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

.site-nav a.site-get {
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	color: var(--bg);
	background: var(--fg);
}

.site-nav a.site-get:hover {
	color: var(--bg);
}

.site-foot {
	padding-top: 2rem;
	padding-bottom: 3rem;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--muted);
}

.site-foot ul {
	gap: 0.6rem 1.4rem;
	margin-bottom: 1.25rem;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (max-width: 520px) {
	.site-nav .wide {
		display: none;
	}
}

.site-nav {
	margin-inline: -16px;
}
