:root {
  --ink: #172033;
  --text: #465166;
  --muted: #7a8495;
  --blue: #1769c2;
  --blue-soft: #f2f7fd;
  --line: #e5e9ef;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dcecff; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #0e4f99; }
img { max-width: 100%; }
.shell { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; min-height: 62px; align-items: center; justify-content: flex-end; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: center;
  padding: 48px 0 44px;
}
h1 { margin: 0 0 18px; font-size: 32px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; text-align: center; }
.hero-copy > p { max-width: 620px; margin: 0 0 14px; color: var(--text); font-size: 16px; }
.hero-copy .hero-lede { color: #2b374a; font-size: 18px; }
.hero-copy p a { font-weight: inherit; text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; }
.contact-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.portrait-wrap { width: 240px; margin: 0; }
.portrait {
  display: block;
  width: 240px;
  height: auto;
  aspect-ratio: auto;
  border-radius: 12px;
}

.section { padding: 28px 0; }
.section-heading, .compact-heading { display: block; margin: 0 0 23px; }
.section-heading h2 { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; }
.section-index { display: none; }

.news { display: grid; grid-template-columns: 180px 1fr; gap: 36px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 9px 0; color: var(--text); }
.news-list li:first-child { padding-top: 0; }
.news-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.news-list a { font-weight: 600; text-decoration: none; }

.publication-list { display: grid; }
.publication {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 0;
}
.publication:first-child { padding-top: 0; }
.publication.featured { margin: 0 -18px; padding: 24px 18px; border: 0; border-left: 3px solid #7aaee7; background: var(--blue-soft); }
.publication.featured + .publication.featured { margin-top: 18px; }
.paper-visual { position: relative; display: grid; min-height: 145px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.paper-visual img { display: block; width: 100%; height: 145px; object-fit: contain; }
.venue-badge { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 3px 7px; border-radius: 4px; background: rgba(18, 82, 151, 0.92); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; }
.paper-copy { min-width: 0; }
.paper-copy h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; }
.paper-copy h3 a { color: var(--blue); text-decoration: none; }
.authors, .venue-line, .paper-summary { margin: 0; }
.authors { color: var(--text); font-size: 13px; line-height: 1.5; }
.authors strong { color: var(--ink); }
.authors sup { font-size: 8px; }
.equal-note { color: var(--muted); font-style: italic; }
.venue-line { margin-top: 5px; color: #315e91; font-size: 12px; font-weight: 650; }
.rank-note { color: inherit; font-weight: inherit; }
.award { margin-left: 4px; color: var(--blue); }
.paper-summary { margin-top: 10px; color: #647083; font-size: 13px; line-height: 1.55; }
.paper-actions { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 12px; font-size: 12px; font-weight: 650; }
.paper-actions > a, .paper-actions summary { text-decoration: none; }
.paper-actions details { display: contents; }
.paper-actions summary { width: max-content; color: var(--blue); cursor: pointer; list-style: none; }
.paper-actions summary::-webkit-details-marker { display: none; }
.abstract { flex-basis: 100%; margin-top: 3px; padding: 10px 12px; border-left: 2px solid #9bc0e9; color: #647083; font-size: 12px; font-weight: 400; line-height: 1.6; }

.education-list { display: grid; }
.education-item { display: grid; grid-template-columns: 84px 1fr; gap: 25px; align-items: center; padding: 21px 0; border-bottom: 0; }
.education-item:first-child { padding-top: 0; }
.logo-frame { display: grid; width: 84px; height: 70px; place-items: center; overflow: hidden; }
.logo-frame img { display: block; width: 62px; height: 62px; object-fit: contain; mix-blend-mode: multiply; }
.logo-frame .logo-nus { width: 68px; height: 68px; }
.logo-frame .logo-uw { width: 74px; height: 48px; }
.education-title-row { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; }
.education-copy h3 { margin: 0; font-size: 16px; font-weight: 650; }
.education-copy time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.education-copy p { margin: 2px 0 0; color: var(--text); }
.education-copy > span { color: var(--muted); font-size: 12px; }

.about-card { display: flex; gap: 36px; align-items: flex-end; justify-content: space-between; padding-left: 24px; border-left: 3px solid #a7c9ee; }
.about-card p { max-width: 700px; margin: 0; color: var(--text); font-size: 16px; }
.about-card a { flex: 0 0 auto; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 36px; border-top: 0; color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 700px) {
  .shell { width: min(620px, calc(100% - 32px)); }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 38px 0 34px; }
  .portrait-wrap, .portrait { width: min(240px, 70vw); }
  .news { grid-template-columns: 1fr; gap: 20px; }
  .publication { grid-template-columns: 1fr; gap: 20px; }
  .paper-visual { width: min(100%, 320px); }
  .about-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  h1 { font-size: 30px; }
  .section { padding: 28px 0; }
  .news-list li { grid-template-columns: 80px 1fr; gap: 10px; }
  .publication.featured { margin-inline: -8px; padding-inline: 12px; }
  .education-item { grid-template-columns: 64px 1fr; gap: 14px; }
  .logo-frame { width: 64px; height: 60px; }
  .logo-frame img, .logo-frame .logo-nus { width: 55px; height: 55px; }
  .logo-frame .logo-uw { width: 60px; height: 40px; }
  .education-title-row { display: block; }
  .education-copy time { display: block; margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
