:root {
	color-scheme: light dark;
	--fg: #1d1d1f;
	--bg: #fbfbfd;
	--muted: #6e6e73;
	--line: #d2d2d7;
	--accent: #0a66d6;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fg: #f5f5f7;
		--bg: #07080b;
		--muted: #a1a1a6;
		--line: #2c2d33;
		--accent: #4c9bff;
	}
}

body {
	margin: 0;
	font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
	color: var(--fg);
	background: var(--bg);
}

main {
	max-width: 44rem;
	margin: 3rem auto 5rem;
	padding: 0 1.25rem;
	overflow-wrap: anywhere;
}

h1 {
	font-size: 1.9rem;
	line-height: 1.2;
}

h2 {
	font-size: 1.2rem;
	margin-top: 2.25rem;
}

h3 {
	font-size: 1rem;
	margin-top: 1.75rem;
}

a {
	color: var(--accent);
}

code {
	font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

pre {
	font: 0.8rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
	padding: 0.9rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	overflow-x: auto;
	white-space: pre-wrap;
}

blockquote {
	margin: 1rem 0;
	padding-left: 1rem;
	border-left: 3px solid var(--line);
	color: var(--muted);
}

.table {
	overflow-x: auto;
	margin: 1rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

th,
td {
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.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;
	}
}
