:root {
	--grey: rgb(90, 90, 90);
	--ink: rgb(40, 40, 40);
	--maroon1: #4a0000;
	--maroon2: #500000;
	--accent: #9c2b2b;
	--bg: #ffffff;
	--rule: #ddd;
	--max: 1050px;
}

* { box-sizing: border-box; }

.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;
}

.skip-link {
	position: fixed;
	top: 0;
	left: 16px;
	transform: translateY(-120%);
	background: var(--maroon2);
	color: #fff;
	padding: 8px 14px;
	z-index: 20;
}

.skip-link:focus {
	transform: translateY(8px);
	color: #fff;
}

html {
	scroll-behavior: smooth;
}

html, body, p {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

body {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 300;
	letter-spacing: 0.3px;
	color: var(--ink);
	background: var(--bg);
	font-size: 18px;
	line-height: 1.55;
}

p { margin: 0.2em 0; }

ul { list-style: none; margin: 0; padding: 0; }

a {
	text-decoration: none;
	color: var(--accent);
	transition: color 0.2s ease;
}

a:focus-visible {
	outline: 3px solid #d99a00;
	outline-offset: 3px;
	border-radius: 2px;
}

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

h1 {
	font-weight: 500;
	color: var(--maroon2);
	font-size: 1.7em;
	margin: 0 0 18px;
}

.section-intro {
	color: var(--grey);
	margin: -8px 0 12px;
}

b { font-weight: 600; }

.page {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

/**************************************************/

#header {
	min-height: 60px;
	padding: 14px 24px;
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	gap: 40px;
	align-items: center;
}

#header a {
	color: var(--grey);
	font-weight: 400;
	display: inline-block;
	line-height: 1.3;
	padding: 3px 0;
}

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

/**************************************************/

#profile {
	padding: 44px 0 32px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	gap: 36px;
	align-items: flex-start;
	flex-wrap: wrap;
}

#profile-pic {
	flex-shrink: 0;
	text-align: center;
}

#profile-pic img {
	width: 180px;
	border-radius: 6px;
	display: block;
}

#profile-intro { flex: 1; min-width: 280px; }

#profile-name {
	font-size: 2.3em;
	line-height: 1.1em;
	font-weight: 500;
	margin: 0 0 6px;
	color: var(--maroon2);
}

#profile-tagline {
	color: var(--grey);
	margin-bottom: 14px;
	font-size: 1.05em;
}

#profile p { margin-bottom: 16px; }

#profile-links a { margin-right: 4px; }

/**************************************************/

section {
	padding-top: 36px;
	scroll-margin-top: 60px;
}

.divider {
	width: 100%;
	border-bottom: 1px solid var(--rule);
}

/* News */
#updates ul li {
	margin-bottom: 10px;
	padding-bottom: 10px;
}

/* Research / Publications */
.pub {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
	align-items: flex-start;
}

.pub:hover .pub-title { color: var(--accent); }

.pub:last-child { border-bottom: none; }

.pub-thumb {
	flex-shrink: 0;
	width: 12em;
	aspect-ratio: 4 / 3;
	height: auto;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
	border: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pub-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.pub-body { flex: 1; min-width: 0; }

.pub-title {
	color: var(--maroon2);
	font-weight: 500;
	font-size: 1.08em;
	display: block;
	margin-bottom: 4px;
}

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

.pub-venue { color: var(--grey); }

.pub-venue b { color: var(--ink); }

.pub-summary {
	font-size: 0.94em;
	line-height: 1.45;
	margin-top: 8px;
}

.pub-links {
	margin-top: 8px;
}

.pub-equal {
	font-size: 0.82em;
	color: var(--grey);
	margin-top: 4px;
}

footer {
	margin: 50px 0 40px;
	color: var(--grey);
	font-size: 0.85em;
	border-top: 1px solid var(--rule);
	padding-top: 16px;
}

@media (max-width: 560px) {
	#header { gap: 18px; font-size: 0.85em; justify-content: space-between; }
	#profile { flex-direction: column; align-items: center; text-align: center; }
	#profile-intro { text-align: left; }
	.pub { flex-direction: column; }
	.pub-thumb { width: 100%; height: auto; aspect-ratio: 16 / 7; }
	#profile-name { font-size: 2em; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: 0.01ms !important; }
}
