:root {
	color-scheme: light;
	--bg: #fbfaf7;
	--text: #1f2328;
	--muted: #5f6670;
	--faint: #8a9099;
	--rule: #e6e3dc;
	--accent: #1d4e89;
	--accent-soft: #e8eef6;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4.5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Top bar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rule);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}

.brand {
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--text);
}

.brand:hover {
	text-decoration: none;
}

.topbar nav {
	display: flex;
	gap: 1.4rem;
	font-size: 0.9rem;
}

.topbar nav a {
	color: var(--muted);
}

.topbar nav a:hover {
	color: var(--text);
	text-decoration: none;
}

/* Intro */
.intro {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 2.5rem;
	align-items: start;
	padding: 4rem 0 1rem;
}

.portrait {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 6px;
}

h1 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
}

.role {
	color: var(--muted);
	margin: 0 0 1.4rem;
	font-size: 0.95rem;
}

.intro p {
	margin: 0 0 1rem;
}

.links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
	padding: 0;
	margin: 1.4rem 0 0;
	font-size: 0.92rem;
}

.links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.links svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Sections */
section {
	padding-top: 3rem;
}

h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 1.5rem;
	margin: 0 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--rule);
}

.item {
	margin-bottom: 1.9rem;
}

.item:last-child {
	margin-bottom: 0;
}

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

h3 {
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.2rem;
}

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

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

.item p {
	margin: 0 0 0.35rem;
}

.authors {
	color: var(--muted);
	font-size: 0.92rem;
}

.authors strong {
	color: var(--text);
	font-weight: 600;
}

.date {
	flex-shrink: 0;
	color: var(--faint);
	font-size: 0.85rem;
	white-space: nowrap;
}

.tag {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
}

.tag-muted {
	color: var(--muted);
	background: transparent;
	border: 1px solid var(--rule);
}

.actions {
	display: flex;
	gap: 1rem;
	font-size: 0.88rem;
	font-weight: 500;
	padding-top: 0.15rem;
}

.actions a::after {
	content: " \2197";
	font-size: 0.8em;
}

/* Row lists */
.rows {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rows li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.55rem 0;
}

.rows strong {
	font-weight: 600;
}

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

/* Footer */
.footer {
	margin-top: 4rem;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
	border-top: 1px solid var(--rule);
	color: var(--faint);
	font-size: 0.85rem;
}

.footer p {
	margin: 0;
}

/* Small screens */
@media (max-width: 640px) {
	.wrap {
		padding: 0 16px;
	}

	.topbar nav {
		gap: 1rem;
	}

	.brand {
		display: none;
	}

	.topbar-inner {
		justify-content: flex-end;
	}

	.intro {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding-top: 2.5rem;
	}

	.portrait {
		width: 140px;
	}

	h1 {
		font-size: 2rem;
	}

	.item-head,
	.rows li {
		flex-direction: column;
		gap: 0.1rem;
	}
}

.bullets {
	list-style: disc;
	margin: 0.3rem 0 0;
	padding-left: 1.1rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.bullets li {
	display: list-item;
	padding: 0.1rem 0;
}

.inline-link {
	white-space: nowrap;
	font-weight: 500;
	margin-left: 0.4rem;
}

.inline-link::after {
	content: " \2197";
	font-size: 0.8em;
}
