@font-face {
	font-family: Geist;
	src: url("/fonts/geist-latin.woff2") format("woff2");
	font-weight: 400 750;
	font-display: swap;
}

@font-face {
	font-family: "JetBrains Mono";
	src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--bg: #101214;
	--panel: #181c21;
	--terminal: #0b0e10;
	--text: #edf1f4;
	--muted: #a8b2bc;
	--line: #30363d;
	--accent: #adf26b;
	--accent-ink: #15200d;
	--warning: #f2c380;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	--body: Geist, system-ui, sans-serif;
	--radius: 8px;
	--gutter: clamp(1rem, 4vw, 4rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 1rem / 1.65 var(--body);
}
::selection {
	background: var(--accent);
	color: var(--accent-ink);
}
a {
	color: var(--accent);
	text-underline-offset: 0.22em;
}
a:hover {
	text-decoration-thickness: 2px;
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
	margin: 0;
}
h1,
h2,
h3 {
	line-height: 1.15;
	text-wrap: balance;
}
h1,
h2 {
	font-family: var(--mono);
	letter-spacing: -0.04em;
}
h2 {
	font-size: clamp(1.55rem, 3vw, 2.4rem);
}
h3 {
	font-size: 1.2rem;
}
pre,
code {
	font-family: var(--mono);
}
pre {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--terminal);
	color: var(--text);
	font-size: 0.82rem;
	line-height: 1.65;
	overflow: auto;
}
code {
	font-size: 0.9em;
	overflow-wrap: anywhere;
}
pre code {
	font-size: inherit;
	overflow-wrap: normal;
}
small,
.muted,
.pro-note {
	color: var(--muted);
}
:target {
	scroll-margin-top: 1.25rem;
}
.wrap {
	width: min(100% - 2 * var(--gutter), 78rem);
	margin-inline: auto;
}
.skip {
	position: absolute;
	z-index: 1;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--bg);
}
.skip:not(:focus) {
	transform: translateY(-150%);
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-header {
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.75rem);
	min-height: 4.25rem;
}
.wordmark {
	white-space: nowrap;
	color: var(--text);
	font: 700 1.05rem / 1 var(--mono);
	text-decoration: none;
}
.wordmark > span:first-child,
.terminal-mark {
	color: var(--accent);
}
.domain {
	color: var(--muted);
}
.site-header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.3rem;
}
.site-header nav a {
	padding-block: 0.65rem;
	color: var(--muted);
	text-decoration: none;
	font-size: 0.95rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
	color: var(--accent);
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--panel);
	color: var(--text);
	font: 650 0.93rem / 1.2 var(--body);
	text-decoration: none;
	cursor: pointer;
}
.btn:hover {
	border-color: var(--muted);
}
.primary {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
}
.primary:hover {
	background: #c3fa92;
	border-color: #c3fa92;
}
.nav-install {
	margin-inline-start: auto;
}
.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 1.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}
.footer-inner p {
	margin-bottom: 0.5rem;
}

@media (max-width: 570px) {
	.header-inner {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.25rem 0.65rem;
		padding-block: 0.55rem;
	}
	.site-header nav {
		grid-row: 2;
		grid-column: 1 / -1;
		gap: 0 1.05rem;
	}
	.nav-install {
		grid-column: 2;
		grid-row: 1;
	}
}

.site-header nav a[aria-current] {
	text-decoration: underline;
}
