@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: oklch(98% 0.008 160);
	--ink: oklch(20% 0.03 160);
	--ink-soft: oklch(42% 0.025 160);
	--line-soft: oklch(90% 0.015 160);
	--primary: oklch(0.5 0.1 160);
	--accent: oklch(0.6 0.12 45);
	--accent-wash: oklch(0.6 0.12 45 / 0.1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--paper: oklch(15% 0.02 160);
		--ink: oklch(94% 0.012 160);
		--ink-soft: oklch(74% 0.02 160);
		--line-soft: oklch(24% 0.025 160);
		--primary: oklch(0.66 0.11 160);
		--accent: oklch(0.7 0.13 45);
		--accent-wash: oklch(0.7 0.13 45 / 0.14);
	}
}
:root[data-theme='dark'] {
	--paper: oklch(15% 0.02 160);
	--ink: oklch(94% 0.012 160);
	--ink-soft: oklch(74% 0.02 160);
	--line-soft: oklch(24% 0.025 160);
	--primary: oklch(0.66 0.11 160);
	--accent: oklch(0.7 0.13 45);
	--accent-wash: oklch(0.7 0.13 45 / 0.14);
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
	font-size: 1.05rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--primary);
}

nav.top {
	border-bottom: 1px solid var(--line-soft);
}
nav.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}
.brand {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
}
.back {
	font-size: 0.86rem;
	color: var(--ink-soft);
	text-decoration: none;
}
.back:hover {
	color: var(--ink);
}

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding-inline: 16px;
}
main {
	padding-block: 3.5rem 4rem;
}
h1,
h2 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 400;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2rem, 5vw, 2.75rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
}
h2 {
	font-size: 1.4rem;
	margin: 2.5rem 0 0.75rem;
}
p,
ul {
	margin: 0 0 1rem;
	color: var(--ink-soft);
}
.updated {
	font-size: 0.9rem;
}
.todo {
	background: var(--accent-wash);
	color: var(--accent);
	border-radius: 4px;
	padding: 0 0.25em;
	font-weight: 500;
}

footer {
	border-top: 1px solid var(--line-soft);
	padding-block: 1.5rem 2.5rem;
	font-size: 0.8rem;
	color: var(--ink-soft);
}
footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}
