:root {
	color-scheme: light;
	--bg: #f2ecde;
	--surface: #fffae8;
	--surface-soft: #f5f0e5;
	--ink: #50616d;
	--ink-soft: #5b6e79;
	--green: #057748;
	--tea: #b35c44;
	--tea-text: #a34e38;
	--line: rgba(80, 97, 109, 0.24);
	--line-soft: rgba(80, 97, 109, 0.12);
	--shadow: rgba(61, 72, 77, 0.16);
	--shadow-deep: rgba(61, 72, 77, 0.24);
	--hover-bg: rgba(5, 119, 72, 0.09);
	--body-serif:
		"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
	--display-serif: "Crimson Text", Palatino, serif;
	--serif: var(--body-serif);
	--mono: var(--body-serif);
	--page: 1220px;
	--radius-hero: 14px;
	--radius-panel: 10px;
	--radius-control: 8px;
	--radius-small: 5px;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #161823;
	--surface: #242832;
	--surface-soft: #1d2029;
	--ink: #f2ecde;
	--ink-soft: #d2b38c;
	--green: #bce672;
	--tea: #f47983;
	--tea-text: #f47983;
	--line: rgba(242, 236, 222, 0.24);
	--line-soft: rgba(242, 236, 222, 0.11);
	--shadow: rgba(0, 0, 0, 0.3);
	--shadow-deep: rgba(0, 0, 0, 0.46);
	--hover-bg: rgba(188, 230, 114, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	font-size: 17px;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	overflow-x: hidden;
	color: var(--ink);
	background:
		radial-gradient(
			circle at 9% 14%,
			color-mix(in srgb, var(--green) 5%, transparent),
			transparent 30rem
		),
		radial-gradient(
			circle at 92% 34%,
			color-mix(in srgb, var(--tea) 4%, transparent),
			transparent 33rem
		),
		var(--bg);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.58;
	text-rendering: optimizeLegibility;
}

a {
	color: var(--green);
	text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

a,
button,
select,
summary {
	cursor: pointer;
}

.site-nav a,
.role a,
.entry-secondary a,
.home-feature a,
.paper-links a,
.project-list a,
.pub-link-copy,
.footer-links a {
	margin: -0.2em -0.45em;
	padding: 0.2em 0.45em;
	border-radius: 4px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	transition:
		color 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease;
}

.site-nav a:hover,
.role a:hover,
.entry-secondary a:hover,
.home-feature a:hover,
.paper-links a:hover,
.project-list a:hover,
.pub-link-copy:hover,
.footer-links a:hover {
	background: var(--hover-bg);
	box-shadow: 0 0 0 2px var(--hover-bg);
}

button,
a,
summary {
	-webkit-tap-highlight-color: transparent;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--tea-text);
	outline-offset: 3px;
}

::selection {
	color: var(--surface);
	background: var(--green);
}

.skip-link {
	position: fixed;
	z-index: 100;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.5rem 0.65rem;
	color: var(--surface);
	background: var(--ink);
	font-family: var(--mono);
	font-size: 0.72rem;
	transform: translateY(-180%);
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: sticky;
	z-index: 40;
	top: 0;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 91%, transparent);
	backdrop-filter: blur(12px);
}

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

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 1.6rem;
	align-items: center;
	min-height: 70px;
}

.wordmark {
	color: var(--ink);
	font-size: 1.45rem;
	font-weight: 560;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.wordmark span,
.intro h1 span {
	color: var(--tea);
}

.site-nav {
	display: flex;
	gap: 1.35rem;
	align-items: center;
}

.site-nav a,
.utility-button,
.eyebrow,
.formal-name,
.section-index,
.paper-rank,
.paper-venue,
.direction-number,
.project-meta,
.skill-level,
.publication-summary,
.footer-meta {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 550;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.site-nav a {
	color: var(--ink-soft);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
	color: var(--green);
}

.preferences {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.utility-button {
	min-height: 34px;
	padding: 0.42rem 0.58rem;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 4px;
	background: transparent;
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	cursor: pointer;
}

.utility-button:hover {
	color: var(--ink);
	border-color: var(--green);
	background: var(--hover-bg);
}

.intro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
	gap: clamp(3rem, 6vw, 6rem);
	align-items: center;
	min-height: calc(100svh - 105px);
	margin: 2.2rem 0 7rem;
	padding: clamp(3.2rem, 6.5vw, 6rem);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-hero);
	background:
		radial-gradient(
			circle at 82% 31%,
			transparent 0 9rem,
			var(--line-soft) 9.05rem 9.12rem,
			transparent 9.17rem
		),
		linear-gradient(
			145deg,
			var(--surface) 0%,
			color-mix(in srgb, var(--surface) 92%, var(--bg)) 100%
		);
	box-shadow: 0 24px 65px var(--shadow-deep);
}

.intro::after {
	content: "";
	position: absolute;
	right: -4rem;
	bottom: -7rem;
	width: 22rem;
	height: 22rem;
	border: 1px solid var(--line-soft);
	border-radius: 50%;
	pointer-events: none;
}

.identity,
.current-work {
	position: relative;
	z-index: 2;
}

.formal-name,
.eyebrow {
	margin: 0;
	color: var(--tea-text);
}

.intro h1 {
	margin: 0.35rem 0 0;
	font-size: clamp(4.6rem, 7.2vw, 6.5rem);
	font-weight: 570;
	letter-spacing: -0.07em;
	line-height: 0.87;
}

.full-name {
	margin: 0.6rem 0 0;
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 550;
	line-height: 1.15;
}

.role {
	max-width: 670px;
	margin: 1.3rem 0 0;
	font-size: clamp(1.4rem, 2.15vw, 1.8rem);
	line-height: 1.28;
}

.bio {
	max-width: 660px;
	margin: 1.15rem 0 0;
	color: var(--ink-soft);
	font-size: 1.08rem;
}

.entry-links {
	display: grid;
	gap: 0.9rem;
	margin-top: 1.7rem;
}

.entry-primary,
.entry-secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	align-items: center;
}

.entry-primary a {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--green);
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.entry-primary a:first-child {
	color: var(--surface);
	background: var(--green);
}

.entry-primary a:hover {
	color: var(--ink);
	background: var(--hover-bg);
}

.entry-primary a:first-child:hover {
	color: var(--surface);
	background: color-mix(in srgb, var(--green) 88%, var(--ink));
}

.entry-secondary {
	color: var(--ink-soft);
}

.entry-label {
	color: var(--tea-text);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.entry-secondary a {
	font-size: 1rem;
	text-decoration-thickness: 1px;
}

.text-link::after {
	content: " ↗";
	color: var(--tea-text);
}

.current-work {
	align-self: center;
	padding: clamp(1.55rem, 3vw, 2.4rem);
	border: 1px solid var(--line);
	border-top: 4px solid var(--tea);
	border-radius: var(--radius-panel);
	background: color-mix(in srgb, var(--surface) 94%, transparent);
	box-shadow: 0 18px 42px var(--shadow);
	transform: translateY(1.2rem);
}

.current-work h2 {
	max-width: 500px;
	margin: 0.65rem 0 0;
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 550;
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.quick-metrics {
	display: flex;
	gap: 1.4rem;
	margin-top: 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line-soft);
	color: var(--ink-soft);
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
}

.quick-metrics strong {
	margin-right: 0.25rem;
	color: var(--green);
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 550;
}

.now-copy {
	margin: 1rem 0 0;
	color: var(--ink);
	font-size: 1.02rem;
}

.research-compass {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 1.15rem 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.research-compass li {
	display: grid;
	grid-template-columns: 25px 1fr;
	gap: 0.45rem;
	padding: 0.48rem 0.35rem 0.48rem 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 0.84rem;
	line-height: 1.35;
}

.research-compass li:nth-child(odd) {
	border-right: 1px solid var(--line-soft);
}

.research-compass li:nth-child(even) {
	padding-left: 0.5rem;
}

.research-compass span {
	color: var(--tea-text);
	font-family: var(--mono);
	font-size: 0.62rem;
}

.home-feature {
	margin-top: 1.15rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line);
}

.home-feature p {
	margin: 0;
}

.home-feature a {
	display: inline-block;
	margin-top: 0.22rem;
	font-size: 1.14rem;
	line-height: 1.25;
}

.content-section {
	padding: clamp(5rem, 9vw, 8rem) 0;
	border-bottom: 1px solid var(--line);
}

.section-heading {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) minmax(250px, 0.62fr);
	gap: 1.4rem;
	align-items: start;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-index {
	padding-top: 0.35rem;
	color: var(--tea-text);
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(3rem, 5vw, 4.7rem);
	font-weight: 560;
	letter-spacing: -0.055em;
	line-height: 0.94;
}

.section-heading > p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.02rem;
}

.selected-list {
	border-top: 1px solid var(--ink);
}

.paper-row {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 185px;
	gap: 1.5rem;
	padding: 2rem 0.75rem;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	transition: background-color 160ms ease;
}

.paper-row:hover {
	background: linear-gradient(90deg, var(--hover-bg), transparent 92%);
}

.paper-row:first-child {
	margin: 1.2rem 0 1.4rem;
	padding: 1.8rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: color-mix(in srgb, var(--surface) 96%, var(--green));
	box-shadow: 0 14px 30px var(--shadow);
}

.paper-rank,
.direction-number,
.project-meta,
.skill-level,
.publications li::marker,
.citations {
	color: var(--tea-text);
}

.paper-main h3 {
	margin: 0.2rem 0 0;
	font-size: clamp(1.75rem, 3vw, 2.55rem);
	font-weight: 550;
	letter-spacing: -0.025em;
	line-height: 1.06;
}

.paper-main p {
	max-width: 760px;
	margin: 0.65rem 0 0;
	color: var(--ink-soft);
	font-size: 1.04rem;
}

.paper-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	margin-top: 0.85rem;
}

.text-link {
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
}

.paper-venue {
	color: var(--ink-soft);
	text-align: right;
}

.paper-venue strong {
	display: block;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 550;
	letter-spacing: 0;
	text-transform: none;
}

.direction-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	box-shadow: 0 16px 38px var(--shadow);
	list-style: none;
}

.direction {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 0.9rem;
	min-height: 190px;
	padding: 1.6rem;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	transition: background-color 160ms ease;
}

.direction:hover {
	background: linear-gradient(90deg, var(--hover-bg), transparent 92%);
}

.direction:nth-child(odd) {
	border-right: 1px solid var(--line);
}

.direction h3 {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 550;
	line-height: 1.1;
}

.direction p {
	margin: 0.55rem 0 0;
	color: var(--ink-soft);
	font-size: 1.02rem;
}

.toolkit-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
	gap: clamp(3rem, 7vw, 7rem);
}

.personal-note {
	align-self: start;
	padding-left: 1.5rem;
	border-left: 4px solid var(--tea);
}

.personal-note h3 {
	margin: 0.7rem 0 0;
	font-size: 2rem;
	font-weight: 550;
	line-height: 1.08;
}

.personal-note p {
	color: var(--ink-soft);
	font-size: 1.04rem;
}

.project-list {
	margin: 0;
	padding: 0 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	box-shadow: 0 15px 34px var(--shadow);
	list-style: none;
}

.project-list li {
	display: grid;
	grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: baseline;
	padding: 1.2rem 0.65rem;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	transition: background-color 160ms ease;
}

.project-list li:hover {
	background: linear-gradient(90deg, var(--hover-bg), transparent 92%);
}

.project-list li:last-child {
	border-bottom: 0;
}

.project-list h3 {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 550;
}

.project-list p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1rem;
}

.project-meta {
	white-space: nowrap;
}

.skills {
	margin-top: 2.5rem;
	border-top: 1px solid var(--ink);
}

.skill-row {
	display: grid;
	grid-template-columns: 145px 1fr;
	gap: 1.5rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}

.skill-values {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.05rem;
}

.skill-values span {
	white-space: nowrap;
}

.publication-heading {
	margin-bottom: 1.4rem;
}

.publication-summary {
	max-width: 30rem;
	color: var(--ink-soft);
	font-size: 0.74rem;
}

.publication-tools {
	display: grid;
	grid-template-areas:
		"search year count"
		"filters filters filters";
	grid-template-columns: minmax(280px, 1fr) minmax(150px, 0.28fr) auto;
	gap: 0.75rem 1.2rem;
	align-items: end;
	margin-bottom: 0;
	padding: 1rem 0 1.15rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.publication-search,
.publication-year {
	display: grid;
	gap: 0.2rem;
	color: var(--tea-text);
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
}

.publication-search {
	grid-area: search;
}

.publication-year {
	grid-area: year;
}

.publication-search input,
.publication-year select {
	min-height: 40px;
	padding: 0.45rem 0.15rem;
	color: var(--ink);
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	font-family: var(--serif);
	font-size: 1rem;
}

.publication-search input:focus,
.publication-year select:focus {
	border-color: var(--green);
	box-shadow: 0 2px 0 color-mix(in srgb, var(--green) 24%, transparent);
	outline: 0;
}

.publication-filters {
	display: flex;
	grid-area: filters;
	flex-wrap: wrap;
	gap: 0.2rem 1.15rem;
	align-items: center;
}

.publication-filters button {
	padding: 0.35rem 0 0.3rem;
	color: var(--ink-soft);
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	font-family: var(--mono);
	font-size: 0.62rem;
	text-transform: uppercase;
	cursor: pointer;
}

.publication-filters button:hover {
	color: var(--green);
	background: transparent;
}

.publication-filters button[aria-pressed="true"] {
	color: var(--green);
	border-color: var(--green);
	background: transparent;
}

#publication-count {
	grid-area: count;
	align-self: end;
	min-width: 72px;
	padding-bottom: 0.55rem;
	color: var(--ink-soft);
	font-family: var(--mono);
	font-size: 0.68rem;
	text-align: right;
	text-transform: uppercase;
}

.publication-empty {
	margin: 1rem 0 0;
	padding: 1rem;
	color: var(--ink-soft);
	border-left: 2px solid var(--tea);
	background: linear-gradient(90deg, var(--hover-bg), transparent 72%);
}

.publications {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.publications li {
	position: relative;
	display: grid;
	grid-template-columns: 4.3rem minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.55rem 0.7rem;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.publications li:first-child {
	border-top: 1px solid var(--line);
}

.publications li::after {
	position: absolute;
	top: 0.7rem;
	bottom: 0.7rem;
	left: 0;
	width: 2px;
	background: var(--tea);
	content: "";
	opacity: 0;
	transform: scaleY(0.25);
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.publications li:hover {
	background: linear-gradient(90deg, var(--hover-bg), transparent 78%);
}

.publications li:hover::after {
	opacity: 1;
	transform: scaleY(1);
}

.publications li[hidden] {
	display: none;
}

.pub-index {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	align-items: flex-start;
	padding-top: 0.18rem;
}

.pub-year {
	color: var(--tea-text);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.045em;
}

.pub-number {
	color: var(--ink-faint);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pub-record {
	min-width: 0;
}

.pub-title {
	margin: 0;
	color: var(--ink);
	font-family: var(--display-serif);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.2;
}

.pub-authors,
.pub-venue {
	margin: 0.38rem 0 0;
	color: var(--ink-soft);
}

.pub-authors {
	font-size: 0.98rem;
	line-height: 1.45;
}

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

.pub-venue {
	margin-top: 0.2rem;
	font-size: 0.94rem;
	line-height: 1.42;
}

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

.pub-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.75rem;
	align-items: center;
	margin-top: 0.7rem;
}

.pub-tag,
.citations {
	display: inline-block;
	margin: 0;
	padding: 0.08rem 0.3rem;
	font-family: var(--mono);
	font-size: 0.61rem;
	line-height: 1.5;
	text-transform: uppercase;
}

.pub-tag {
	color: var(--green);
	border: 0;
	border-left: 2px solid var(--green);
	border-radius: 0;
	background: var(--hover-bg);
}

.citations {
	padding-inline: 0;
	color: var(--tea-text);
	border: 0;
}

.pub-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.65rem;
	align-items: center;
}

.pub-link-copy {
	margin: 0;
	padding: 0.12rem 0.28rem;
	border-radius: 4px;
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.pub-link-copy i,
.pub-link-tooltip {
	display: none;
}

.publications li {
	cursor: pointer;
}

.publications li[data-expanded="true"] {
	background: linear-gradient(90deg, var(--hover-bg), transparent 84%);
}

.publications li[data-expanded="true"]::after {
	opacity: 1;
	transform: scaleY(1);
}

.pub-toggle {
	display: inline-flex;
	gap: 0.32rem;
	align-items: center;
	margin-left: auto;
	padding: 0.12rem 0;
	color: var(--ink-soft);
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	font-family: var(--serif);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.pub-toggle:hover,
.pub-toggle[aria-expanded="true"] {
	color: var(--green);
	border-color: currentColor;
	background: transparent;
}

.pub-toggle-mark {
	display: inline-block;
	font-size: 1rem;
	line-height: 0.7;
	transform-origin: center;
	transition: transform 160ms ease;
}

.pub-toggle[aria-expanded="true"] .pub-toggle-mark {
	transform: rotate(180deg);
}

.pub-expanded {
	margin-top: 1.05rem;
	padding: 1.05rem 0 0.15rem;
	color: var(--ink-soft);
	border-top: 1px solid var(--line-soft);
	cursor: default;
	animation: publication-detail-in 180ms ease both;
}

.pub-expanded[hidden] {
	display: none;
}

.pub-contribution,
.pub-citation-block {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
}

.pub-citation-block {
	margin-top: 0.85rem;
}

.pub-contribution p,
.pub-citation-block p {
	margin: 0;
}

.pub-expanded-label {
	color: var(--tea-text);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.pub-contribution > p:last-child,
.pub-citation-text {
	max-width: 52rem;
	font-size: 0.94rem;
	line-height: 1.5;
}

.pub-citation-text {
	color: var(--ink-soft);
}

.pub-expanded-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	align-items: center;
	margin-top: 0.9rem;
	margin-left: 7.5rem;
}

.pub-copy-button {
	padding: 0.18rem 0;
	color: var(--green);
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	font-family: var(--serif);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.pub-copy-button:hover {
	color: var(--tea-text);
	background: transparent;
}

.pub-copy-status {
	min-height: 1em;
	color: var(--tea-text);
	font-size: var(--fs-meta);
}

@keyframes publication-detail-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.site-footer {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: end;
	padding: 2.5rem 0 3rem;
}

.site-footer p {
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
	justify-content: flex-end;
}

.footer-meta {
	color: var(--ink-soft);
}

html.reveal-ready[data-motion="subtle"] [data-reveal],
html.reveal-ready[data-motion="expressive"] [data-reveal] {
	opacity: 0;
	transform: translateY(12px);
}

html.reveal-ready[data-motion="subtle"] [data-reveal].is-visible,
html.reveal-ready[data-motion="expressive"] [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

html.reveal-ready[data-motion="subtle"] [data-reveal] {
	transition:
		opacity 420ms ease,
		transform 420ms ease;
}

html.reveal-ready[data-motion="expressive"] [data-reveal] {
	transform: translateY(24px);
	transition:
		opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-motion="subtle"] a,
html[data-motion="subtle"] button,
html[data-motion="expressive"] a,
html[data-motion="expressive"] button {
	transition:
		color 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		transform 180ms ease;
}

html[data-motion="expressive"] .intro.is-visible .identity > *,
html[data-motion="expressive"] .intro.is-visible .current-work > * {
	animation: expressive-rise 620ms both cubic-bezier(0.2, 0.7, 0.2, 1);
	animation-delay: calc(var(--step, 0) * 75ms);
}

html[data-motion="expressive"] .selected-list.is-visible .paper-row,
html[data-motion="expressive"] .direction-list.is-visible .direction,
html[data-motion="expressive"] .project-list.is-visible li {
	animation: expressive-rise 560ms both cubic-bezier(0.2, 0.7, 0.2, 1);
	animation-delay: calc(var(--item, 0) * 85ms);
}

@keyframes expressive-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

html[data-motion="quiet"] *,
html[data-motion="quiet"] *::before,
html[data-motion="quiet"] *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
}

@media (max-width: 980px) {
	.header-inner {
		grid-template-columns: 1fr auto;
		gap: 0.65rem 1rem;
		padding: 0.6rem 0;
	}

	.site-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		overflow-x: auto;
		padding-top: 0.45rem;
		border-top: 1px solid var(--line-soft);
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}

	.preferences {
		justify-self: end;
	}

	.intro {
		grid-template-columns: 1fr;
		gap: 2.8rem;
		min-height: auto;
	}

	.current-work {
		max-width: 760px;
		transform: none;
	}

	.section-heading {
		grid-template-columns: 65px 1fr;
	}

	.section-heading > p {
		grid-column: 2;
	}

	.toolkit-layout {
		grid-template-columns: 1fr;
	}

	.personal-note {
		max-width: 680px;
	}
}

@media (max-width: 700px) {
	html {
		scroll-padding-top: 118px;
	}

	body {
		font-size: 17.5px;
	}

	.header-inner,
	.page-shell {
		width: min(100% - 24px, var(--page));
	}

	.site-nav {
		display: grid;
		grid-template-columns: repeat(3, max-content);
		gap: 0.35rem 1rem;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.site-nav a {
		white-space: nowrap;
	}

	.preferences {
		gap: 0.3rem;
	}

	.utility-button {
		padding-inline: 0.45rem;
		font-size: 0.58rem;
	}

	.intro {
		margin: 1.5rem 0 4.5rem;
		padding: 3rem 1.35rem;
		border-radius: 12px;
		box-shadow: 0 16px 36px var(--shadow-deep);
	}

	.intro h1 {
		font-size: clamp(4.15rem, 21vw, 5rem);
	}

	.full-name {
		font-size: 1.4rem;
	}

	.role {
		font-size: 1.42rem;
	}

	.bio {
		font-size: 1rem;
	}

	.current-work {
		padding: 1.35rem;
		border-radius: 8px;
	}

	.current-work h2 {
		font-size: 2.3rem;
	}

	.quick-metrics {
		flex-direction: column;
		gap: 0.3rem;
	}

	.research-compass {
		grid-template-columns: 1fr;
	}

	.research-compass li:nth-child(odd) {
		border-right: 0;
	}

	.research-compass li:nth-child(even) {
		padding-left: 0;
	}

	.content-section {
		padding: 5rem 0;
	}

	.section-heading {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.section-heading > p {
		grid-column: 1;
	}

	.section-heading h2 {
		font-size: clamp(2.8rem, 14vw, 4rem);
	}

	.paper-row {
		grid-template-columns: 40px 1fr;
		gap: 0.85rem;
		padding: 1.5rem 0;
	}

	.paper-row:first-child {
		padding: 1.3rem 1rem;
	}

	.paper-main h3 {
		font-size: 1.75rem;
	}

	.paper-venue {
		grid-column: 2;
		text-align: left;
	}

	.direction-list {
		grid-template-columns: 1fr;
		border-radius: 8px;
	}

	.direction {
		min-height: 0;
		padding: 1.3rem;
		border-right: 0 !important;
	}

	.project-list {
		padding-inline: 1rem;
		border-radius: 8px;
	}

	.project-list li {
		grid-template-columns: 1fr auto;
	}

	.project-list p {
		grid-column: 1 / -1;
	}

	.skill-row {
		grid-template-columns: 1fr;
		gap: 0.45rem;
	}

	.publication-tools {
		grid-template-areas:
			"search"
			"year"
			"filters"
			"count";
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.publication-filters {
		gap: 0.15rem 0.9rem;
	}

	#publication-count {
		padding-bottom: 0;
		text-align: left;
	}

	.publications {
		padding: 0;
		border-radius: 0;
	}

	.publications li {
		grid-template-columns: 3.15rem minmax(0, 1fr);
		gap: 0.65rem;
		padding: 1.35rem 0.3rem;
		font-size: 1rem;
	}

	.pub-title {
		font-size: 1.25rem;
	}

	.pub-authors {
		font-size: 0.95rem;
	}

	.pub-details {
		gap: 0.3rem 0.6rem;
	}

	.pub-contribution,
	.pub-citation-block {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.pub-expanded-actions {
		margin-left: 0;
	}

	.site-footer {
		grid-template-columns: 1fr;
	}

	.footer-links {
		justify-content: flex-start;
	}
}

@media (max-width: 430px) {
	.intro h1 {
		font-size: 4.05rem;
	}
}

/* A compact, repeatable type scale keeps the page visually consistent. */
:root {
	--fs-meta: 0.72rem;
	--fs-body: 1rem;
	--fs-lead: 1.4rem;
	--fs-feature: 2.2rem;
	--fs-section: clamp(3rem, 5vw, 4.2rem);
	--fs-display: clamp(4.6rem, 7vw, 6.2rem);
}

body,
.bio,
.now-copy,
.paper-main p,
.direction p,
.personal-note p,
.project-list p,
.publications li,
.publication-search input,
.publication-year select,
.section-heading > p {
	font-size: var(--fs-body);
}

.site-nav a,
.utility-button,
.eyebrow,
.formal-name,
.section-index,
.paper-rank,
.paper-venue,
.direction-number,
.project-meta,
.skill-level,
.publication-summary,
.footer-meta,
.entry-label,
.text-link,
.pub-tag,
.citations,
.pub-link-copy,
.publication-search,
.publication-year,
.publication-filters button,
#publication-count {
	font-family: var(--serif);
	font-size: var(--fs-meta);
	font-weight: 550;
	letter-spacing: 0.045em;
}

.intro h1 {
	font-family: var(--display-serif);
	font-size: var(--fs-display);
}

.section-heading h2 {
	font-family: var(--display-serif);
	font-size: var(--fs-section);
}

.current-work h2,
.paper-main h3,
.personal-note h3 {
	font-family: var(--display-serif);
	font-size: var(--fs-feature);
}

.full-name,
.role,
.direction h3,
.project-list h3,
.home-feature a,
.quick-metrics strong {
	font-size: var(--fs-lead);
}

.direction h3,
.project-list h3 {
	font-family: var(--display-serif);
}

.utility-button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
}

.theme-icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html[data-theme="light"] .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
	display: none;
}

@media (max-width: 700px) {
	:root {
		--fs-lead: 1.3rem;
		--fs-feature: 2rem;
		--fs-section: 3rem;
		--fs-display: 4.15rem;
	}

	.utility-button {
		width: 36px;
		height: 36px;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media print {
	body {
		background: #fff;
	}

	.site-header {
		position: static;
	}

	.settings,
	.site-nav {
		display: none;
	}

	.header-inner,
	.page-shell {
		width: 100%;
	}

	.intro,
	.current-work,
	.paper-row:first-child,
	.direction-list,
	.project-list,
	.publications {
		box-shadow: none;
	}

	.intro {
		min-height: auto;
		margin: 1rem 0;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}

	.paper-row,
	.direction,
	.project-list li,
	.publications li {
		break-inside: avoid;
	}
}
