:root {
  color-scheme: light;
  --ink: #242c29;
  --muted: #65716b;
  --accent: #246650;
  --line: #e5e9e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #e0eee6; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 8px 15px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { color: var(--ink); font-size: 13px; font-weight: 600; }
.nav { display: flex; gap: 23px; font-size: 12px; }
.nav a { color: var(--muted); padding-block: 10px; }
.hero { position: relative; padding: 36px 0 30px; }
.hero-copy { padding-right: 128px; }
.hero-identity { min-height: 75px; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; margin-bottom: 7px; }
.hero-role { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.hero-bio { max-width: 750px; margin-bottom: 11px; line-height: 1.85; }
.hero-bio strong { font-weight: 500; }
.hero-links { display: flex; gap: 20px; font-size: 13px; }
.portrait-wrap { position: absolute; top: 36px; right: 0; }
.portrait { display: block; width: 96px; height: 112px; object-fit: cover; object-position: center 30%; border-radius: 3px; }
.section { padding-top: 35px; }
#publications { padding-top: 5px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: -.4px; line-height: 1.4; margin-bottom: 0; }
.section-aside { font-size: 12px; margin-bottom: 0; }
.publication-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { cursor: pointer; background: none; color: var(--muted); border: 0; border-radius: 3px; padding: 5px 9px; font-size: 12px; }
.filter[aria-pressed="true"] { color: var(--accent); background: #eef4f0; font-weight: 600; }
.filter:hover { background: #f3f5f3; }
.search-label { position: relative; width: 190px; flex-shrink: 0; }
.search-label input { width: 100%; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 3px; padding: 7px 10px 7px 29px; font-size: 12px; }
.search-label svg { position: absolute; top: 11px; left: 9px; color: var(--muted); pointer-events: none; }
.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; }
.pub-summary { color: var(--muted); font-size: 11px; margin: 11px 0 2px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.venue { color: var(--accent); font-size: 10px; font-weight: 600; line-height: 1.6; display: inline-block; }
.venue.under-review { color: var(--muted); font-weight: 400; }
.pub-year { color: var(--muted); display: block; font-size: 11px; margin-top: 3px; }
.publication h3 { font-size: 14px; line-height: 1.6; font-weight: 600; margin-bottom: 3px; }
.authors { color: var(--muted); font-size: 12px; line-height: 1.75; margin-bottom: 4px; }
.authors strong { color: var(--ink); font-weight: 500; }
.pub-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--accent); }
.paper-award { color: #8a6b3f; }
.empty-state { color: var(--muted); padding: 24px 0; }
.project-list { padding-left: 17px; margin: 0; font-size: 13px; color: var(--muted); }
.project-list li { padding-left: 3px; margin-bottom: 9px; }
.project-list a { font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 150px; }
.timeline-date { position: absolute; left: 0; top: 3px; width: 130px; font-size: 10px; color: var(--muted); }
.timeline h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.timeline p { color: var(--muted); font-size: 12px; margin: 0; }
.timeline .thesis { font-style: italic; margin-top: 3px; }
.service-summary { margin-bottom: 21px; font-size: 13px; }
.service-summary p { margin-bottom: 5px; }
.service-summary strong { font-weight: 500; }
.honor-list { list-style: none; padding: 0; margin: 0; }
.honor-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; font-size: 12px; margin-bottom: 12px; }
.honor-list time, .honor-list li > span:first-child { color: var(--muted); }
.honor-list strong { font-weight: 500; }
.honor-details { margin-top: 14px; font-size: 12px; }
.honor-details summary { color: var(--accent); cursor: pointer; margin-bottom: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 20px 0 30px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 10px; padding-block: 13px; min-height: 0; flex-wrap: wrap; }
  .wordmark { display: none; }
  .nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 11px; }
  .nav a { padding-block: 4px; }
  .hero { padding-top: 27px; padding-bottom: 26px; }
  .hero-copy { padding-right: 0; }
  .hero-identity { min-height: 106px; padding-right: 96px; }
  h1 { font-size: 28px; }
  .hero-role { max-width: 220px; font-size: 12px; }
  .portrait-wrap { top: 25px; }
  .portrait { width: 72px; height: 84px; }
  .hero-bio { padding-right: 0; font-size: 13px; }
  .section { padding-top: 29px; }
  .section-heading { margin-bottom: 13px; gap: 10px; }
  .section-heading h2 { font-size: 20px; }
  .section-aside { font-size: 11px; }
  .publication-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-group { gap: 2px; }
  .filter { font-size: 11px; padding-inline: 7px; }
  .search-label { width: 100%; }
  .publication { grid-template-columns: 72px minmax(0, 1fr); gap: 13px; padding-block: 16px; }
  .publication h3 { font-size: 13px; }
  .authors { font-size: 11px; }
  .venue { font-size: 9px; }
  .timeline li { padding-left: 0; padding-bottom: 18px; }
  .timeline-date { position: static; display: block; width: auto; margin-bottom: 3px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 26px; }
  .nav { gap: 8px; font-size: 10px; }
  .publication { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .publication-tools, .skip-link { display: none; }
  .container { width: 100%; }
  .hero { padding-top: 15px; }
  .portrait-wrap { top: 15px; }
  .section { padding-top: 22px; }
  .publication, .timeline li, .honor-list li { break-inside: avoid; }
  .publication[hidden] { display: grid !important; }
}
