* {
	box-sizing: border-box;
}

:root {
	--text: #1c1c1c;
	--muted: #767676;
	--link: #35507d;
	--rule: #d9d9d9;
	--rule-light: #e8e8e8;
	--bg: #ffffff;
	--code-bg: #f5f5f3;
}

body {
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
	max-width: 60rem;
	font: 16px/1.75 Georgia, "Times New Roman", Times, serif;
	color: var(--text);
	background: var(--bg);
}

a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

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

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

.site-title {
	margin: 0;
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.site-title a {
	color: var(--text);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--link);
}

.tagline {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--muted);
}

.layout {
	display: flex;
	gap: 3.5rem;
	align-items: flex-start;
}

main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 40rem;
}

.sidebar {
	flex: 0 0 13.5rem;
	width: 13.5rem;
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--muted);
}

.avatar {
	display: block;
	width: 10rem;
	height: auto;
	margin-bottom: 1rem;
	filter: grayscale(12%);
}

.bio {
	margin: 0 0 1.75rem;
	font-size: 0.85rem;
}

.sidebar-search {
	position: relative;
	margin-bottom: 1.75rem;
}

.search-input {
	width: 100%;
	padding: 0.35rem 0.5rem;
	font: inherit;
	font-size: 0.85rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 0;
}

.search-input:focus {
	outline: none;
	border-color: var(--link);
}

.search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	background: var(--bg);
	border: 1px solid var(--rule);
}

.search-results li {
	border-top: 1px solid var(--rule-light);
}

.search-results li:first-child {
	border-top: none;
}

.search-results a {
	display: block;
	padding: 0.35rem 0.5rem;
	font-size: 0.85rem;
	text-decoration: none;
}

.search-results a:hover {
	background: var(--code-bg);
}

.sidebar-heading {
	margin: 1.75rem 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	color: var(--text);
	border-bottom: 1px solid var(--rule-light);
	padding-bottom: 0.25rem;
}

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

.sidebar-list li {
	padding: 0.15rem 0;
}

.sidebar-list a {
	text-decoration: none;
}

.sidebar-list a:hover {
	text-decoration: underline;
}

.entry {
	margin-bottom: 2.75rem;
}

.entry-title {
	margin: 0 0 0.2rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
}

.entry-title a {
	color: var(--text);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--link);
}

.entry-date {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	font-style: italic;
	color: var(--muted);
}

.entry-excerpt {
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.entry-more {
	font-size: 0.85rem;
	font-style: italic;
}

.post-title {
	margin: 0 0 0.2rem;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.post .entry-date {
	margin-bottom: 2rem;
}

.prose h2,
.prose h3 {
	line-height: 1.3;
	margin: 2rem 0 0.75rem;
}

.prose h2 {
	font-size: 1.3rem;
}

.prose h3 {
	font-size: 1.1rem;
}

.prose img {
	max-width: 100%;
	height: auto;
}

.prose code {
	padding: 0.1rem 0.3rem;
	background: var(--code-bg);
	font: 0.82em "SFMono-Regular", Consolas, Menlo, monospace;
}

.prose pre {
	padding: 1rem 1.25rem;
	border: 1px solid var(--rule-light);
	background: var(--code-bg);
	overflow-x: auto;
	font-size: 0.82rem;
	line-height: 1.55;
}

.prose pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.prose blockquote {
	margin: 0 0 1.25rem;
	padding: 0.25rem 1.25rem;
	border-left: 2px solid var(--rule);
	color: var(--muted);
	font-style: italic;
}

@media (max-width: 44rem) {
	body {
		padding: 2rem 1.25rem 3rem;
	}

	.site-title {
		font-size: 1.8rem;
	}

	.layout {
		flex-direction: column;
		gap: 2.5rem;
	}

	main {
		max-width: none;
	}

	.sidebar {
		flex: none;
		width: 100%;
		padding-top: 1.5rem;
		border-top: 1px solid var(--rule);
	}

	.avatar {
		width: 7rem;
	}
}
