:root {
	color-scheme: light;
	--stanford-red: #8c1515;
	--stanford-dark-red: #6b1010;
	--ink: #202124;
	--muted: #62666a;
	--line: #e5e3df;
	--paper: #fff;
	--wash: #f6f5f1;
	--content-width: 1120px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--stanford-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--stanford-dark-red);
}

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

.skip-link {
	position: absolute;
	z-index: 2;
	top: 8px;
	left: 8px;
	padding: 8px 12px;
	transform: translateY(-150%);
	background: var(--paper);
	color: var(--stanford-red);
}

.skip-link:focus {
	transform: translateY(0);
}

.section-shell,
.header-inner {
	width: min(var(--content-width), calc(100% - 64px));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	z-index: 10;
	top: 0;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.wordmark {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	background: var(--stanford-red);
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -1px;
	text-decoration: none;
}

.wordmark:hover {
	background: var(--stanford-dark-red);
	color: #fff;
}

.header-inner nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: clamp(18px, 3.2vw, 42px);
}

.header-inner nav a {
	color: #383a3d;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.header-inner nav a:hover {
	color: var(--stanford-red);
}

main section[id] {
	scroll-margin-top: var(--site-header-height, 77px);
}

.hero {
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr);
	align-items: start;
	gap: clamp(34px, 7vw, 84px);
	padding-block: clamp(52px, 7vw, 82px) clamp(56px, 7vw, 78px);
}

.hero-side {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	grid-column: 1;
	gap: 18px;
}

.hero-side .profile-links {
	margin-top: auto;
	gap: 10px 16px;
}

.profile-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
}

.profile-icons a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #34373a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color 150ms ease;
}

.profile-icons a:hover {
	color: var(--stanford-red);
}

.profile-icons svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-side .button-link {
	flex: 1 0 100%;
	justify-content: space-between;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	grid-column: 2;
	max-width: 720px;
}

.hero-copy .profile-icons {
	margin-top: auto;
}

@media (min-width: 721px) {
	.hero-copy .introduction {
		margin-top: 14px;
		margin-bottom: 0;
	}
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--stanford-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
}

h1 {
	margin-bottom: 18px;
	font-size: clamp(44px, 6vw, 64px);
	letter-spacing: 0.02em;
	line-height: 1.02;
}

.appointment {
	margin-bottom: 8px;
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 600;
	line-height: 1.4;
}

.affiliations {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.affiliation-groups {
	margin-bottom: 26px;
	color: #3e4144;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.55;
}

.affiliation-label {
	display: block;
	margin-bottom: 6px;
	color: var(--stanford-red);
	font-family: system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.affiliation-groups a {
	white-space: nowrap;
}

.introduction {
	max-width: 660px;
	margin-bottom: 26px;
	color: #3e4144;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(16px, 1.55vw, 18px);
	line-height: 1.55;
}

.profile-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	font-size: 14px;
}

.profile-links > a:not(.button-link) {
	color: #34373a;
	text-decoration: none;
}

.profile-links > a:not(.button-link):hover {
	color: var(--stanford-red);
	text-decoration: underline;
}

.button-link {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 16px;
	border: 1px solid var(--stanford-red);
	background: var(--stanford-red);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.button-link:hover {
	border-color: var(--stanford-dark-red);
	background: var(--stanford-dark-red);
	color: #fff;
}

.portrait {
	grid-column: 1;
	margin: 0;
}

.portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 2px;
	object-fit: cover;
}

.portrait-details {
	display: grid;
	gap: 10px;
	margin-top: 10px;
	padding: 12px 14px;
	border-left: 2px solid var(--stanford-red);
	background: var(--wash);
	text-align: left;
}

.portrait-department {
	color: var(--stanford-red);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.portrait-address {
	margin: 0;
	color: var(--muted);
	font-style: normal;
	font-size: 12px;
	line-height: 1.6;
}

.portrait-email {
	width: fit-content;
	padding-top: 8px;
	border-top: 1px solid #e2dfd9;
	font-size: 12px;
	font-weight: 650;
}

.section-heading h2 {
	font-size: clamp(22px, 2.5vw, 28px);
	letter-spacing: -0.025em;
}

.section-heading {
	max-width: 720px;
}

.section-heading h2 {
	margin-bottom: 14px;
	line-height: 1.2;
}

.section-heading > p:not(.eyebrow) {
	max-width: 680px;
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.8;
}

.section-heading > p:last-child {
	margin-bottom: 0;
}

.student-guidance {
	background: var(--wash);
}

.student-inner {
	padding-block: clamp(50px, 7vw, 76px);
}

.student-copy {
	max-width: 900px;
}

.student-copy > p:not(.eyebrow),
.academic-background .section-heading > p:not(.eyebrow) {
	max-width: 900px;
}

.academic-background {
	background: #fff;
}

.academic-background-inner {
	padding-block: clamp(50px, 7vw, 76px);
}

.academic-background .section-heading {
	max-width: 900px;
}

.speaker-kit {
	border-top: 1px solid var(--line);
	background: var(--wash);
}

.speaker-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	align-items: center;
	gap: clamp(40px, 8vw, 100px);
	padding-block: clamp(64px, 8vw, 92px);
}

.speaker-inner .section-heading {
	max-width: 760px;
}

.speaker-inner .section-heading > p:not(.eyebrow) {
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.8;
}

.bio-copy {
	padding: 22px 24px;
	border-left: 3px solid var(--stanford-red);
	background: #fff;
}

.bio-copy p {
	margin-bottom: 18px;
	color: #34373a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.75;
}

.copy-bio {
	min-height: 42px;
	padding: 8px 13px;
	border: 1px solid var(--stanford-red);
	background: #fff;
	color: var(--stanford-red);
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
}

.copy-bio:hover {
	background: var(--stanford-red);
	color: #fff;
}

.copy-status {
	display: inline-block;
	margin-left: 10px;
	color: var(--muted);
	font-size: 12px;
}

.speaker-portrait {
	margin: 0;
}

.speaker-portrait img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e3e0da;
	background: #fff;
	object-fit: cover;
}

.speaker-portrait figcaption {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 12px;
}

.speaker-portrait figcaption a {
	width: fit-content;
	font-weight: 650;
}

.teaching-materials {
	border-top: 1px solid var(--line);
	background: #fff;
}

.teaching-inner {
	padding-block: clamp(64px, 8vw, 92px);
}

.teaching-inner > .section-heading {
	margin-bottom: 30px;
}

.teaching-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.teaching-group {
	padding: 24px;
	border: 1px solid #e2dfd9;
	background: #fff;
}

.teaching-group h3 {
	margin-bottom: 16px;
	font-size: 17px;
	line-height: 1.45;
}

.teaching-group ul {
	margin: 0;
	padding-left: 20px;
}

.teaching-group li,
.teaching-group > p {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.teaching-group li + li {
	margin-top: 10px;
}

.teaching-group a {
	color: var(--stanford-red);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.teaching-group > p {
	margin: 16px 0 0;
}

.current-publications {
	border-top: 1px solid var(--line);
	background: var(--wash);
}

.publications-inner {
	padding-block: clamp(64px, 8vw, 92px);
}

.publications-inner > .section-heading {
	margin-bottom: 30px;
}

.publication-search {
	max-width: 620px;
	margin-bottom: 28px;
}

.publication-search label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 650;
}

.publication-search input {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid #aaa7a0;
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.publication-search input:focus-visible {
	border-color: var(--stanford-red);
	outline: 3px solid rgb(140 21 21 / 18%);
	outline-offset: 2px;
}

.publication-search-status {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.publication-years {
	border-top: 1px solid #d8d6d1;
}

.publication-year {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 28px;
	padding-block: 25px;
	border-bottom: 1px solid #d8d6d1;
}

.publication-years [hidden] {
	display: none;
}

.publication-year h3 {
	margin: 0;
	color: var(--stanford-red);
	font-size: 25px;
	line-height: 1.3;
}

.publication-year ol {
	margin: 0;
	padding-left: 24px;
	list-style: decimal;
}

.publication-year li {
	padding: 0 0 16px;
	padding-left: 4px;
}

.publication-year li + li {
	padding-top: 16px;
	border-top: 1px solid #e2dfd9;
}

.publication-year li > a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

.publication-year li > a:hover {
	text-decoration: underline;
}

.publication-year li p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.publication-year li .publication-related-links {
	font-size: 12px;
}

.publication-year li .publication-tags {
	display: inline-flex;
	flex-wrap: wrap;
	vertical-align: middle;
	gap: 5px;
	margin-left: 6px;
}

.publication-tags span {
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.6;
}

.publication-tags [data-category="conference"] {
	border: 1px solid #b8cce0;
	background: #edf4fb;
	color: #244c70;
}

.publication-tags [data-category="journal"] {
	border: 1px solid #b8d4c2;
	background: #edf7f0;
	color: #28583b;
}

.publication-tags [data-category="working"] {
	border: 1px solid #e4cda3;
	background: #fff7e8;
	color: #765316;
}

.publication-tags [data-category="misc"] {
	border: 1px solid #d3c3df;
	background: #f6f0fa;
	color: #573a6c;
}

.publication-tags [data-category="thesis"] {
	border: 1px solid #abd3d2;
	background: #eaf7f6;
	color: #205957;
}

.publication-tags [data-category="survey"] {
	border: 1px solid #e2bec5;
	background: #fcf0f2;
	color: #793a48;
}

.publication-related-links a {
	display: inline-block;
	margin-inline: 3px;
	font-weight: 600;
}

.publication-year li p span {
	display: inline-block;
	margin-left: 6px;
	color: #4b4d50;
	font-size: 12px;
	font-weight: 650;
}

.publication-no-results {
	margin: 24px 0 0;
	color: var(--muted);
}

.site-footer {
	background: #fff;
	color: var(--ink);
}

.footer-inner {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 12px;
}

.footer-inner p {
	margin: 0;
}

.footer-inner a {
	color: var(--stanford-red);
	text-decoration: none;
}

.footer-inner a:hover {
	text-decoration: underline;
}

@media (max-width: 720px) {
	.section-shell,
	.header-inner {
		width: min(100% - 40px, var(--content-width));
	}

	.header-inner {
		min-height: 68px;
	}

	.header-inner nav {
		max-width: calc(100% - 52px);
		gap: 8px 12px;
	}

	.header-inner nav a {
		font-size: 12px;
	}

	.hero {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-block: 60px 64px;
	}

	.hero-side {
		display: contents;
	}

	.portrait {
		display: grid;
		grid-column: 1;
		grid-template-columns: clamp(112px, 36vw, 136px) minmax(0, 1fr);
		align-items: stretch;
		gap: 14px;
		grid-row: 1;
	}

	.hero-copy {
		grid-column: 1;
		grid-row: 2;
	}

	.hero-side .profile-links {
		grid-column: 1;
		grid-row: 3;
	}

	.hero-side .button-link {
		flex: 0 0 auto;
	}

	.portrait img {
		display: block;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		border-radius: 2px;
		object-fit: cover;
	}

	.portrait-details {
		margin: 0;
		width: 100%;
		padding: 10px 12px;
	}

	.speaker-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.speaker-portrait {
		display: grid;
		grid-template-columns: minmax(110px, 180px) 1fr;
		align-items: center;
		gap: 18px;
	}

	.speaker-portrait figcaption {
		margin-top: 0;
	}

	.teaching-grid {
		grid-template-columns: 1fr;
	}

	.publication-year {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.publication-year h3 {
		font-size: 22px;
	}

}

@media (max-width: 420px) {
	.section-shell,
	.header-inner {
		width: calc(100% - 32px);
	}

	.header-inner {
		align-items: flex-start;
		padding-block: 14px;
	}

	.profile-links {
		gap: 14px 18px;
	}

	.profile-links .button-link {
		width: 100%;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 18px;
	}
}

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

@media print {
	.site-header,
	.site-footer {
		display: none;
	}

	.section-shell {
		width: 100%;
	}

	.hero {
		padding-block: 24px;
	}

	body {
		background: #fff;
	}
}
