:root {
	--bg: #ffffff;
	--bg-soft: #f4f6f8;
	--text: #1c2430;
	--muted: #5b6676;
	--border: #dde2e8;
	--accent: #0f766e;
	--accent-strong: #0b5c56;
	--accent-text: #ffffff;
	--code-bg: #eef2f5;
	--badge-bg: #fdf0e1;
	--badge-text: #8a4b08;
	--radius: 8px;
	--width: 64rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12161c;
		--bg-soft: #1a2029;
		--text: #e3e8ee;
		--muted: #9aa5b4;
		--border: #2c3440;
		--accent: #2dd4bf;
		--accent-strong: #5eead4;
		--accent-text: #0b1f1d;
		--code-bg: #1f2631;
		--badge-bg: #3a2a14;
		--badge-text: #f5c27a;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-size: 1.0625rem;
}

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

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

.wrap {
	max-width: var(--width);
	margin: 0 auto;
	padding: 0 1rem;
}

.skip {
	position: absolute;
	left: -999px;
}

.skip:focus {
	left: 1rem;
	top: 1rem;
	background: var(--bg);
	padding: 0.5rem 1rem;
	z-index: 10;
}

/* Header */

.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 0.875rem;
	padding-bottom: 0.875rem;
}

.wordmark {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

.wordmark .mark {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-text);
	border-radius: 6px;
	padding: 0 0.375rem;
	margin-right: 0.25rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9375rem;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.9375rem;
}

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

.nav a[aria-current="page"] {
	font-weight: 600;
}

/* Content */

main {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

h1,
h2,
h3,
h4 {
	line-height: 1.25;
}

h1 {
	font-size: 2.25rem;
	margin: 0 0 1rem;
}

h2 {
	font-size: 1.5rem;
	margin: 2.5rem 0 0.75rem;
}

h3 {
	font-size: 1.1875rem;
	margin: 1.75rem 0 0.5rem;
}

.lead {
	font-size: 1.25rem;
	color: var(--muted);
	max-width: 44rem;
}

.prose {
	max-width: 46rem;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875em;
	background: var(--code-bg);
	border-radius: 4px;
	padding: 0.1em 0.3em;
	overflow-wrap: anywhere;
}

pre {
	position: relative;
	background: var(--code-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.875rem 1rem;
	overflow-x: auto;
	font-size: 0.9375rem;
	line-height: 1.5;
}

pre code {
	background: none;
	padding: 0;
	overflow-wrap: normal;
}

pre.has-copy {
	padding-top: 2.25rem;
}

.copy {
	position: absolute;
	top: 0.375rem;
	right: 0.375rem;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--muted);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.125rem 0.625rem;
	cursor: pointer;
}

.copy:hover {
	color: var(--text);
}

.table-wrap {
	overflow-x: auto;
}

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

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

th {
	font-weight: 600;
	background: var(--bg-soft);
}

td:first-child,
.tool-group td:nth-child(4) {
	white-space: nowrap;
}

.badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--badge-text);
	background: var(--badge-bg);
	border-radius: 999px;
	padding: 0 0.5rem;
	margin-left: 0.25rem;
	white-space: nowrap;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-text);
	text-decoration: none;
	font-weight: 600;
	border-radius: var(--radius);
	padding: 0.625rem 1.25rem;
	overflow-wrap: anywhere;
}

.button:hover {
	background: var(--accent-strong);
	color: var(--accent-text);
}

.button.secondary {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
}

.button.secondary:hover {
	background: var(--bg-soft);
	color: var(--accent-strong);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

/* Home */

.hero {
	padding: 1.5rem 0 1rem;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.card {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.card h2,
.card h3 {
	margin-top: 0;
	font-size: 1.125rem;
}

.card p {
	margin-bottom: 0;
}

.checks {
	counter-reset: check;
	list-style: none;
	padding: 0;
}

.checks li {
	counter-increment: check;
	position: relative;
	padding-left: 2.5rem;
	margin-bottom: 0.75rem;
}

.checks li::before {
	content: counter(check);
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-text);
	font-weight: 700;
	font-size: 0.875rem;
	text-align: center;
	line-height: 1.75rem;
}

/* Diagram */

.diagram {
	margin: 1.5rem 0;
	overflow-x: auto;
}

.diagram svg {
	display: block;
	width: 100%;
	min-width: 36rem;
	height: auto;
}

.diagram .box {
	fill: var(--bg-soft);
	stroke: var(--border);
	stroke-width: 1.5;
}

.diagram .box-accent {
	fill: var(--bg-soft);
	stroke: var(--accent);
	stroke-width: 2;
}

.diagram .label {
	fill: var(--text);
	font-size: 15px;
	font-weight: 600;
}

.diagram .sub {
	fill: var(--muted);
	font-size: 12.5px;
}

.diagram .arrow {
	stroke: var(--muted);
	stroke-width: 1.5;
	fill: none;
}

.diagram .arrow-head {
	fill: var(--muted);
}

/* FAQ */

.faq details {
	border-bottom: 1px solid var(--border);
	padding: 0.75rem 0;
}

.faq summary {
	font-weight: 600;
	cursor: pointer;
}

.faq details > :not(summary) {
	max-width: 46rem;
}

/* Download */

.release {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.25rem 1.5rem 1rem;
	margin: 1.5rem 0;
}

.release .version {
	color: var(--accent);
}

.release-meta,
.note {
	color: var(--muted);
}

.checksum {
	font-size: 0.875rem;
	color: var(--muted);
}

.changelog summary {
	cursor: pointer;
	font-weight: 600;
}

.changelog h3 {
	font-size: 1rem;
	margin: 1rem 0 0.25rem;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.875rem;
	padding: 1.5rem 0;
}

.site-footer p {
	margin: 0.25rem 0;
}

@media (max-width: 40rem) {
	h1 {
		font-size: 1.75rem;
	}

	.lead {
		font-size: 1.125rem;
	}
}

.diagram figcaption {
	color: var(--muted);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

@media (max-width: 40rem) {
	.tool-group thead {
		display: none;
	}

	.tool-group tr,
	.tool-group td {
		display: block;
	}

	.tool-group tr {
		border-bottom: 1px solid var(--border);
		padding: 0.625rem 0;
	}

	.tool-group td {
		border: 0;
		padding: 0.125rem 0;
	}

	.tool-group td:first-child {
		white-space: normal;
	}

	.tool-group td:nth-child(3),
	.tool-group td:nth-child(4) {
		color: var(--muted);
		font-size: 0.875rem;
	}

	.tool-group td:nth-child(3)::before {
		content: "Scope: ";
	}

	.tool-group td:nth-child(4)::before {
		content: "Since: ";
	}
}
