:root {
	--background: #17181c;
	--surface-muted: #23262f;
	--text: #c1c3c8;
	--text-strong: #fff;
	--text-muted: #c1c3c8;
	--border: #353841;
	--accent: #b3c7ff;
	--font-sans: "Atkinson", "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@font-face {
	font-family: "Atkinson";
	src: url("/fonts/atkinson-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Atkinson";
	src: url("/fonts/atkinson-bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--background);
	color-scheme: dark;
	scroll-padding-top: 4.25rem;
}

body {
	min-height: 100vh;
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

main,
header nav,
footer div {
	width: min(100% - 2rem, 47.25rem);
	margin-inline: auto;
}

main {
	padding-bottom: 3rem;
}

a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
	transition:
		border-color 160ms ease,
		opacity 160ms ease;
}

a:hover {
	color: var(--text-strong);
	border-bottom-style: solid;
	opacity: 0.75;
}

a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	color: var(--text-strong);
	font-weight: 700;
	font-kerning: normal;
	line-height: 1.25;
	text-wrap: balance;
}

h1 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	letter-spacing: -0.025em;
}

h2 {
	margin: 0 0 1rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 0.5rem;
	font-size: 1.5rem;
	letter-spacing: -0.025em;
	scroll-margin-top: 4.25rem;
}

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

p {
	margin: 0.5rem 0;
}

.page-header {
	margin: 3rem 0 0;
}

.page-header p {
	margin: 0;
	color: var(--text-muted);
}

.page-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
}

.heading-anchor {
	border-bottom: 0;
	color: inherit;
	font-weight: inherit;
}

.heading-anchor:hover {
	border-bottom: 1px solid currentColor;
	opacity: 1;
}

.content-section {
	margin-top: 2.5rem;
}

.extension-list {
	margin: 0;
	padding: 0;
	list-style-type: decimal-leading-zero;
	counter-reset: extension;
}

.extension-list > li {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	column-gap: 1rem;
	counter-increment: extension;
	border-bottom: 1px solid var(--border);
	padding: 1rem 0 1.125rem;
}

.extension-list > li:first-child {
	padding-top: 0;
}

.extension-list > li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.extension-list > li::before {
	content: counter(extension, decimal-leading-zero) ".";
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
}

.extension-list h3,
.extension-list p {
	grid-column: 2;
}

.extension-list h3 {
	margin-bottom: 0;
}

.extension-list p {
	margin: 0.5rem 0 0;
}

.extension-list p:last-child {
	margin-bottom: 0;
	font-size: 0.9375rem;
}

.support-list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.support-list li {
	border-bottom: 1px solid var(--border);
	padding: 0.5rem 0;
}

.support-list li:last-child {
	border-bottom: 0;
}

.not-found {
	min-height: calc(100vh - 9rem);
	padding-top: 6rem;
}

.not-found h1 {
	font-size: clamp(4rem, 14vw, 8rem);
}

.not-found p {
	color: var(--text-muted);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border);
	background: var(--surface-muted);
	backdrop-filter: blur(12px);
}

.site-header nav {
	min-height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header nav a {
	border-bottom: 0;
	color: var(--text-strong);
	text-decoration: none;
}

.site-header .social-links,
.site-header .social-links a {
	display: flex;
}

.site-header .social-links a {
	border-radius: 0.25rem;
	padding: 0.375rem;
}

.site-header .social-links a:hover {
	background: var(--border);
}

.site-title {
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

footer {
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

footer div {
	padding: 2rem 1rem;
}

@media (max-width: 38rem) {
	.page-header {
		margin-top: 2rem;
	}

	.content-section {
		margin-top: 2rem;
	}

	.extension-list > li {
		column-gap: 0.5rem;
	}

	.support-list strong {
		display: block;
	}

	.support-list span:first-of-type {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	a {
		transition: none;
	}
}
