:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #252b32;
  --muted: #59616b;
  --accent: #28557c;
  --line: #e4e7eb;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
::selection { background: #dce8f2; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
.container { max-width: 1024px; margin: 0 auto; padding: 0 40px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-nav { display: flex; justify-content: space-between; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { position: relative; padding: 8px 0; color: var(--muted); }
.nav-links a[aria-current] { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 52px; align-items: start; padding: 46px 0 44px; }
h1 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.hero-subtitle { color: var(--muted); margin-top: 8px; font-size: 14px; }
.bio { font-size: 15px; line-height: 1.85; margin-top: 23px; }
.bio p + p { margin-top: 15px; }
.header-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 23px; font-size: 13px; }
.portrait { padding-top: 7px; }
.portrait-frame { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.avatar { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%; }
.projects { padding-top: 29px; border-top: 1px solid var(--line); }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.research-index { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 12px; margin-bottom: 23px; }
.research-index a { font-size: 13px; }
.project { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr); gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 28px; }
.project-media { min-width: 0; padding-top: 4px; }
.journal-logo { display: block; width: 168px; max-width: 100%; height: auto; margin-bottom: 10px; }
.project-video { position: relative; aspect-ratio: 16/9; background: #f3f4f5; overflow: hidden; border-radius: 3px; isolation: isolate; }
.project-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-toggle { position: absolute; bottom: 10px; right: 10px; z-index: 1; border: 1px solid #ffffff65; border-radius: 3px; padding: 6px 10px; color: #fff; background: #252b32df; cursor: pointer; font-size: 11px; line-height: 1.4; opacity: 0; transition: opacity .2s; }
.project-video:hover .media-toggle, .project-video:focus-within .media-toggle, .media-toggle[data-paused] { opacity: 1; }
.project-topic { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; text-wrap: pretty; }
.project-meta { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.project-meta strong { font-weight: 600; color: var(--ink); }
.venue-highlight { color: var(--ink); font-style: normal; font-weight: 600; }
.co-first { font-size: 11px; }
.project-desc { color: #4c555f; font-size: 14px; line-height: 1.8; margin-top: 11px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 13px; }
.project-tags a { font-size: 13px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 18px; padding: 25px 0 34px; }
footer p, .footer-email { font-size: 12px; color: var(--muted); }
@media (hover: none) { .media-toggle { opacity: 1; } }
@media (max-width: 800px) {
 .container { padding: 0 28px; }
 .hero { grid-template-columns: minmax(0,1fr) 150px; gap: 30px; }
 .project { gap: 25px; }
}
@media (max-width: 600px) {
 .container { padding: 0 22px; }
 .site-nav { min-height: 70px; }
 .wordmark { font-size: 14px; }
 .nav-links { gap: 15px; font-size: 12px; }
 .hero { grid-template-columns: minmax(0, 1fr) 100px; gap: 0 18px; padding: 32px 0; }
 .hero-copy { display: contents; }
 .hero h1 { grid-column: 1; grid-row: 1; align-self: end; }
 .hero-subtitle { grid-column: 1; grid-row: 2; }
 .bio { grid-column: 1 / -1; grid-row: 3; }
 .header-links { grid-column: 1 / -1; grid-row: 4; }
 h1 { font-size: 30px; }
 .hero-subtitle { font-size: 13px; }
 .bio { font-size: 14px; line-height: 1.85; margin-top: 20px; }
 .header-links { gap: 22px; margin-top: 20px; }
 .portrait { grid-column: 2; grid-row: 1 / span 2; width: 100px; align-self: center; padding: 0; }
 .projects { padding-top: 25px; }
 h2 { font-size: 23px; }
 .research-index { gap: 10px 20px; margin-bottom: 20px; }
 .research-index a { font-size: 12px; }
 .project { grid-template-columns: 1fr; gap: 18px; padding: 25px 0; }
 h3 { font-size: 18px; }
 .project-tags a { padding: 5px 0; }
 footer { align-items: start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Education follows research, with dates separated from the academic record. */
.education { border-top: 1px solid var(--line); padding-top: 29px; margin-top: 15px; }
.education-list { list-style: none; margin: 26px 0 0; padding: 0; }
.education-entry { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 30px; padding: 0 0 28px; }
.education-entry + .education-entry { border-top: 1px solid var(--line); padding-top: 26px; }
.education-date { color: var(--muted); font-size: 13px; line-height: 1.7; padding-top: 3px; font-variant-numeric: tabular-nums; }
.education-details h3 { font-size: 18px; }
.education-degree { font-size: 14px; margin-top: 3px; }
.education-advisors { color: var(--muted); font-size: 13px; margin-top: 7px; }
.education-description { color: #4c555f; font-size: 14px; line-height: 1.8; margin-top: 11px; max-width: 720px; }
@media (max-width: 600px) {
 .site-nav { flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; }
 .nav-links { flex-wrap: wrap; gap: 10px 15px; }
 .education { padding-top: 25px; }
 .education-entry { grid-template-columns: 1fr; gap: 7px; padding-bottom: 24px; }
 .education-entry + .education-entry { padding-top: 22px; }
 .education-date { font-size: 12px; padding: 0; }
}
