:root {
	color-scheme: light dark;
	--background: #f4f6f5;
	--text: #414743;
	--heading: #2e3430;
	--muted: #707973;
	--faint: #858e88;
	--line: #d9ddda;
	--accent: #347753;
	--hover: #ecefed;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	color: var(--text);
	background: var(--background);
	font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #111313;
		--text: #c8ceca;
		--heading: #d6dbd7;
		--muted: #777f7a;
		--faint: #656d68;
		--line: #292d2b;
		--accent: #8ccfa9;
		--hover: #161918;
	}
}

* {
	box-sizing: border-box;
}

body {
	width: min(calc(100% - 40px), 780px);
	margin: 0 auto;
	background: var(--background);
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.wordmark {
	color: var(--text);
	font-weight: 700;
	text-transform: uppercase;
}

.wordmark span {
	color: var(--accent);
}

main {
	padding: 52px 0 80px;
}

h1 {
	margin: 0 0 52px;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(2rem, 6vw, 3rem);
	color: var(--heading);
	font-weight: 650;
	letter-spacing: -0.04em;
}

section + section {
	margin-top: 42px;
}

h2 {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

ul {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	transition: background-color 120ms ease;
}

.project {
	padding: 15px 0;
	font-size: 0.9rem;
	font-weight: 550;
}

.github {
	padding: 8px 0;
	color: var(--faint);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

li:hover {
	background: var(--hover);
}

@media (max-width: 480px) {
	body {
		width: min(calc(100% - 28px), 780px);
	}

	main {
		padding-top: 40px;
	}

	h1 {
		margin-bottom: 40px;
	}

	section + section {
		margin-top: 34px;
	}

	.project {
		overflow-wrap: anywhere;
	}
}
