:root {
  --ink: #20252b;
  --body: #424952;
  --muted: #6a7179;
  --accent: #2862c3;
  --line: #e8ebef;
  --soft: #f6f8fb;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: #fff; color: var(--body); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
::selection { background: #dfeaff; color: var(--ink); }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip-link:focus { top: 8px; }
.site-header, main, .site-footer { width: min(820px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { font-size: 12px; color: var(--muted); }
.site-header nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
main { padding-top: 65px; }
.intro-header { display: grid; grid-template-columns: minmax(0, 1fr) 105px; align-items: center; gap: 32px; margin-bottom: 26px; }
h1 { font-size: 44px; line-height: 1.15; font-weight: 680; letter-spacing: -1.65px; }
h1 span { display: inline-block; vertical-align: middle; font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: 10px; }
.role { font-size: 15px; color: var(--ink); margin-top: 14px; }
.field { color: var(--muted); font-size: 13px; margin-top: 1px; }
.portrait { display: block; width: 105px; height: 135px; border-radius: 5px; object-fit: cover; }
.bio { max-width: 770px; font-size: 15px; line-height: 1.9; }
.bio p + p { margin-top: 12px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; font-size: 12px; }
.contact-links span { font-size: 11px; margin-left: 2px; }
.section { margin-top: 53px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 17px; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.5; letter-spacing: -.3px; }
.section-link { font-size: 12px; white-space: nowrap; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 42px; }
.research-grid article { padding-left: 15px; border-left: 2px solid var(--line); }
.research-grid h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.research-grid p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.publication { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 21px; padding: 22px 0; border-top: 1px solid var(--line); }
.pub-year { color: var(--muted); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.publication h3 { font-size: 15px; line-height: 1.65; font-weight: 600; margin-bottom: 6px; }
.authors { color: var(--muted); font-size: 12px; line-height: 1.7; }
.venue { color: var(--body); font-size: 12px; line-height: 1.7; margin-top: 3px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px 19px; font-size: 11px; margin-top: 9px; line-height: 1.8; }
.paper-links:empty { display: none; }
.award { font-size: 11px; font-weight: 600; color: #876623; display: inline-block; margin-top: 7px; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-size: 12px; color: var(--muted); padding-top: 1px; }
.timeline h3 { font-size: 13px; font-weight: 600; line-height: 1.75; }
.timeline article div p { font-size: 12px; margin-top: 2px; line-height: 1.65; }
.timeline .detail { color: var(--muted); font-size: 11px; }
.contact { margin-top: 44px; }
.contact h2 { margin-bottom: 9px; }
.contact p { font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 58px; padding: 25px 0 33px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
.site-footer div { display: flex; gap: 21px; }
.site-footer a { color: var(--muted); }
.publications-intro { margin-bottom: 29px; }
.publications-intro h1 { font-size: 37px; letter-spacing: -1px; }
.publications-intro p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.search-label { display: block; font-size: 12px; margin-bottom: 7px; }
#publication-search { width: 100%; border: 1px solid #d8dde5; padding: 11px 13px; border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; appearance: none; }
#publication-search::placeholder { color: #818791; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 16px; }
.filter-buttons button { padding: 5px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: 11px; line-height: 1.65; }
.filter-buttons button span { font-size: 10px; margin-left: 3px; opacity: .8; }
.filter-buttons button[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }
.filter-buttons button:hover { color: var(--ink); }
.result-count { font-size: 11px; color: var(--muted); margin-top: 15px; }
.pub-group { margin-top: 37px; }
.pub-group > h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 17px; }
.pub-group > h2 span { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.record-source { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 34px; }
.empty-state { padding: 45px 0; }
.empty-state p { margin: 10px 0 17px; font-size: 13px; }
#reset-search { border: 1px solid #d8dde5; border-radius: 4px; background: #fff; padding: 7px 13px; color: var(--accent); font-size: 12px; }
@media (max-width: 600px) {
  .site-header, main, .site-footer { width: calc(100% - 42px); }
  .site-header { gap: 16px; padding: 23px 0; }
  .brand { font-size: 12px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 11px; }
  main { padding-top: 39px; }
  .intro-header { grid-template-columns: minmax(0,1fr) 76px; gap: 17px; margin-bottom: 23px; }
  h1 { font-size: 34px; letter-spacing: -1.2px; }
  h1 span { font-size: 12px; margin-left: 6px; }
  .portrait { width: 76px; height: 98px; }
  .role { font-size: 12px; line-height: 1.75; margin-top: 11px; }
  .field { font-size: 11px; line-height: 1.7; margin-top: 4px; }
  .bio { font-size: 14px; line-height: 1.85; }
  .contact-links { font-size: 11px; gap: 8px 17px; margin-top: 18px; }
  .section { margin-top: 40px; }
  .section-heading { gap: 10px; padding-bottom: 14px; }
  h2 { font-size: 16px; }
  .section-link { font-size: 10px; }
  .research-grid { grid-template-columns: 1fr; gap: 17px; }
  .research-grid article { padding-left: 12px; }
  .research-grid h3 { font-size: 13px; }
  .research-grid p { font-size: 12px; max-width: none; }
  .publication { grid-template-columns: 35px minmax(0,1fr); gap: 12px; padding: 20px 0; }
  .pub-year { font-size: 10px; padding-top: 3px; }
  .publication h3 { font-size: 14px; line-height: 1.65; }
  .authors, .venue { font-size: 11px; }
  .paper-links { font-size: 10px; gap: 7px 14px; }
  .timeline article { grid-template-columns: 87px minmax(0,1fr); gap: 13px; padding: 17px 0; }
  .timeline-date { font-size: 10px; }
  .timeline h3 { font-size: 12px; }
  .timeline article div p { font-size: 11px; }
  .timeline .detail { font-size: 10px; }
  .contact { margin-top: 34px; }
  .contact p { font-size: 12px; }
  .site-footer { margin-top: 43px; font-size: 10px; gap: 12px; }
  .site-footer div { gap: 14px; }
  .publications-intro h1 { font-size: 31px; }
  .publications-intro p { font-size: 13px; }
  .filter-buttons { gap: 7px 14px; }
  .filter-buttons button { font-size: 10px; }
  .record-source { font-size: 10px; }
}
@media (max-width: 370px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  h1 { font-size: 31px; }
  h1 span { display: block; margin: 7px 0 0; }
  .intro-header { gap: 14px; }
  .section-heading { flex-wrap: wrap; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { color: #111; font-size: 11pt; }
  .site-header, .site-footer, .publication-controls, .contact-links, .paper-links { display: none; }
  main { width: 100%; padding: 0; }
  h1 { font-size: 30pt; }
  .section { margin-top: 23px; }
  .publication, .timeline article { break-inside: avoid; }
  a { color: inherit; }
  .pub-group[hidden], .publication[hidden] { display: grid !important; }
}
