:root {
	--bg: #ffffff;
	--text: #1f2328;
	--muted: #59636e;
	--accent: #0f766e;
	--rule: #d1d9e0;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0d1117;
		--text: #e6edf3;
		--muted: #9198a1;
		--accent: #2dd4bf;
		--rule: #30363d;
	}
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main {
	max-width: 44rem;
	margin: 0 auto;
	padding: 2.5rem 1rem 4rem;
}
header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
header img {
	width: 40px;
	height: 40px;
}
header a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.25rem;
}
h1 {
	font-size: 1.9rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
}
h2 {
	font-size: 1.2rem;
	margin: 2rem 0 0.5rem;
}
a {
	color: var(--accent);
}
.muted {
	color: var(--muted);
}
.lede {
	font-size: 1.1rem;
}
.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}
.button {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--accent);
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
.button.primary {
	background: var(--accent);
	color: var(--bg);
}
footer {
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font-size: 0.9rem;
	color: var(--muted);
}
footer a {
	margin-right: 1rem;
}

/* The user guide (site/guide/, built by scripts/build-guide.mjs). */
.guide header .muted {
	margin-left: auto;
}
.guide-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.9rem;
	padding: 0.75rem 0;
	margin-bottom: 1.5rem;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-size: 0.9rem;
}
.guide h3 {
	font-size: 1.05rem;
	margin: 1.5rem 0 0.4rem;
}
.guide code {
	font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	padding: 0.1em 0.3em;
	border-radius: 4px;
	background: color-mix(in srgb, var(--rule) 45%, transparent);
}
.guide pre {
	overflow-x: auto;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: color-mix(in srgb, var(--rule) 30%, transparent);
}
.guide pre code {
	padding: 0;
	background: none;
}
.guide table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0;
	font-size: 0.95rem;
	display: block;
	overflow-x: auto;
}
.guide th,
.guide td {
	text-align: left;
	vertical-align: top;
	padding: 0.4rem 0.6rem;
	border-bottom: 1px solid var(--rule);
}
