:root {
	--ink: #1a1a1a;
	--muted: #6b6b6b;
	--rule: #e2e2e2;
	--accent: #7a2218;
	--accent-faint: rgba(122, 34, 24, 0.25);
	--paper: #fdfdfc;
	--icon-filter: grayscale(1);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #e8e6e3;
		--muted: #9b9893;
		--rule: #2f2e2c;
		--accent: #e3907f;
		--accent-faint: rgba(227, 144, 127, 0.3);
		--paper: #161615;
		--icon-filter: grayscale(1) invert(1);
	}
}

* {
	box-sizing: border-box;
}

html {
	background: var(--paper);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 20px;
	line-height: 1.65;
	letter-spacing: -0.011em;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	margin: 0;
}

main {
	max-width: 40rem;
	margin: 0 auto;
	padding: 6rem 1.5rem 5rem;
}

/* Masthead */

.masthead {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--rule);
	text-align: center;
}

h1 {
	font-size: 2.6rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-wrap: balance;
	margin: 0;
}

/* Bio */

.bio p {
	margin: 0 0 1.1rem;
	text-wrap: pretty;
}

.bio {
	font-size: 1.05rem;
}

.bio p:last-child {
	margin-bottom: 0;
}

/* Section headings */

h2 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 3rem 0 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--rule);
}

/* Entry lists */

.entries {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entries li {
	margin: 0 0 1.1rem;
}

.entries li:last-child {
	margin-bottom: 0;
}

.entry-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.what {
	font-weight: 600;
}

.where {
	display: block;
	color: var(--muted);
	font-size: 0.95rem;
}

.hidden {
	display: none;
}

/* Links */

a, a:visited {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-faint);
	transition: border-color 0.15s ease;
}

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

s {
	color: var(--muted);
}

/* Social footer */

#social {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	text-align: center;
}

.social-links {
	margin: 0;
}

.social-links a {
	border-bottom: none;
}

.social-links img {
	width: 28px;
	height: 28px;
	margin: 0 0.6rem;
	filter: var(--icon-filter);
	opacity: 0.45;
	vertical-align: middle;
	transition: opacity 0.15s ease;
}

.social-links img:hover {
	opacity: 0.85;
}

/* Small screens */

@media only screen and (max-width: 480px) {
	body {
		font-size: 18px;
	}

	main {
		padding: 3rem 1.25rem 3.5rem;
	}

	h1 {
		font-size: 2rem;
	}

	.entry-head {
		flex-direction: column;
		gap: 0.1rem;
	}
}
