:root {
	color-scheme: dark;
	--background: #111111;
	--text: #bdbdbd;
	--heading: #dedede;
	--muted: #929292;
}

* {
	box-sizing: border-box;
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--background);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9375rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

.page {
	width: 100%;
	max-width: 34rem;
	margin: 0 auto;
	padding: 5rem 2rem;
}

h1,
h2 {
	color: var(--heading);
	font-size: inherit;
	font-weight: 500;
	line-height: inherit;
}

a {
	color: var(--heading);
	text-decoration-line: underline;
	text-decoration-color: #626262;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: #ffffff;
	text-decoration-color: currentColor;
}

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

.link-arrow {
	display: inline-block;
	margin-left: 0.2em;
	color: var(--muted);
	font-size: 0.75em;
	line-height: 1;
	vertical-align: 0.1em;
}

::selection {
	background: #414141;
	color: #ffffff;
}

@media (max-width: 600px) {
	.page {
		padding: 3.5rem 1.5rem;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 4rem;
}

nav,
footer {
	display: flex;
	gap: 1.25rem;
	font-size: 0.8125rem;
	color: var(--muted);
}

nav a,
footer a {
	text-decoration: none;
}

nav a:hover,
footer a:hover {
	text-decoration: underline;
}

section + section {
	margin-top: 2.75rem;
}

.work-list {
	padding: 0;
	list-style: none;
}

.work-list li {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 1rem;
}

.work-list li + li {
	margin-top: 1.25rem;
}

.date,
.detail {
	font-size: 0.8125rem;
	color: var(--muted);
}

.date {
	padding-top: 0.125rem;
}

footer {
	margin-top: 3rem;
}

@media (max-width: 400px) {
	.work-list li {
		grid-template-columns: 5rem minmax(0, 1fr);
		gap: 0.75rem;
	}
}

.error-page p {
	margin: 1rem 0 1.5rem;
}
