:root {
	--accent: #ea76cb;
	--measure: 80ch;

	--fg:   #4c4f69;
	--bg:   #eff1f5;
	--muted:#5c5f77;
	--rule: #7c7f93;
}

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #cba6f7;
		--fg:   #cdd6f4;
		--bg:   #1e1e2e;
		--muted:#bac2de;
		--rule: #9399b2;
	}
}

html {
	color-scheme: light dark;
}

body {
	font-family: Vegur, ui-serif, serif;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--fg);
	background: var(--bg);
	max-width: var(--measure);
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

h1, h2, h3 {
	line-height: 1.2;
	font-weight: 600;
	margin: 2.5rem 0 0.75rem;
}

h1 {
	font-size: 1.9rem;
}

h2 {
	font-size: 1.4rem;
}

p, ul, ol {
	margin: 0 0 1rem;
}

body > p:first-of-type {
	color: var(--muted);
}

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-underline-offset: 0.15em;
}

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

ul {
	list-style: none;
	padding: 0;
}

ul ul {
	padding-left: 1.5rem;
}

ul li {
	margin: 0.4rem 0;
}

code, pre {
	font-family: mno16, monospace;
	font-size: 0.9em;
}

pre {
	background: color-mix(in srgb, var(--fg) 6%, transparent);
	padding: 1rem;
	overflow-x: auto;
	border-radius: 2px;
}

:not(pre) > code {
	background: color-mix(in srgb, var(--fg) 8%, transparent);
	padding: 0.1em 0.3em;
	border-radius: 2px;
}

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

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2.5rem 0;
}

footer, body > :last-child {
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 3rem;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
