:root {
  color-scheme: dark;
  --paper: #202831;
  --ink: #e8e6e0;
  --primary: #b9c8d5;
  --accent: #c99678;
  --line: #424a52;
  --muted: #b4bac0;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }
.site-shell { max-width: 1060px; padding: 32px 48px 28px; margin: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font: 12px/1.5 var(--mono); }
.wordmark { color: var(--muted); }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) 142px; gap: 46px; padding: 46px 0 35px; align-items: start; }
h1 { font: 500 clamp(28px,4.7vw,48px)/1.12 var(--mono); letter-spacing: -2px; color: var(--primary); margin-bottom: 15px; }
.research-title { font: 400 16px/1.5 var(--mono); margin-bottom: 23px; }
.research-title::before { content: ''; display: inline-block; width: 9px; height: 9px; background: var(--accent); margin-right: 12px; }
.bio { max-width: 620px; }
.prose p { margin-bottom: 13px; }
.portrait { width: 142px; height: 182px; object-fit: contain; background: #fff; display: block; }
.photo-caption { font: 11px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 12px/1.6 var(--mono); }
.content-section { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 10px; }
.section-heading { margin-bottom: 19px; }
h2 { font: 500 17px/1.4 var(--mono); color: var(--primary); }
.publication { display: grid; grid-template-columns: 106px minmax(0,1fr); gap: 22px; padding-bottom: 23px; }
.venue { border-top: 4px solid var(--accent); padding-top: 8px; font: 500 13px/1.6 var(--mono); }
.publication h3 { font: 500 19px/1.4 var(--sans); margin-bottom: 8px; }
.publication h3 a { color: var(--ink); }
.authors { font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.authors strong { color: var(--ink); font-weight: 600; }
.abstract { font-size: 14px; margin-bottom: 12px; }
.paper-links { display: flex; gap: 20px; font: 12px/1.5 var(--mono); }
.paper-image { max-width: 100%; height: auto; margin-bottom: 14px; }
.education-entry { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; }
.education-entry h3 { font-size: 14px; font-weight: 400; }
.education-entry p { font-size: 13px; color: var(--muted); }
.education-date { font: 11px/1.7 var(--mono); color: var(--muted); white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 16px; font: 11px/1.5 var(--mono); color: var(--muted); }
.news-list { margin: 0 0 22px; }
.news-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; margin-bottom: 12px; }
.news-list dt { color: var(--muted); font: 12px/1.6 var(--mono); }
.news-list dd { margin: 0; font-size: 14px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 8px 16px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 10px; }
.demo-page { padding: 48px 0 60px; min-height: calc(100vh - 180px); }
.section-kicker { font: 12px/1.5 var(--mono); color: var(--muted); margin-bottom: 22px; }
.demo-summary { color: var(--muted); margin-bottom: 28px; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 1920/542; background: #171b20; border-radius: 4px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font: 12px/1.6 var(--mono); }
.demo-list-entry { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.demo-list-entry h2 { margin-bottom: 8px; }
.demo-list-entry p { color: var(--muted); font-size: 14px; }
@media(max-width:620px) {
  .site-shell { padding: 24px; }
  .masthead { align-items: flex-start; gap: 12px; flex-direction: column; }
  nav { gap: 20px; }
  .hero { grid-template-columns: minmax(0,1fr) 72px; gap: 18px 16px; padding-top: 32px; }
  .hero-copy { display: contents; }
  .title-group { grid-column: 1; grid-row: 1; }
  .photo-block { grid-column: 2; grid-row: 1; }
  .portrait { width: 72px; height: 96px; }
  .photo-caption { display: none; }
  h1 { font-size: 28px; letter-spacing: -1px; }
  .research-title { font-size: 13px; margin-bottom: 0; }
  .bio { grid-column: 1/-1; }
  .profile-links { grid-column: 1/-1; margin-top: 0; }
  .publication { grid-template-columns: 1fr; gap: 12px; }
  .venue { width: max-content; }
  .education-entry { flex-direction: column; gap: 3px; }
  .demo-page { padding-top: 35px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; --paper: #fff; --ink: #222; --primary: #333; --accent: #555; --line: #ccc; --muted: #555; }
  .site-shell { max-width: none; padding: 0; }
  .masthead, .site-footer, .skip-link { display: none; }
  .hero { padding-top: 0; }
  .publication, .education-entry { break-inside: avoid; }
}
