:root { color-scheme: light; --ink: #1d1d1f; --muted: #6e6e73; --line: #e8e8ed; --soft: #f5f5f7; --accent: #285540; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 400; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.35px; font-weight: 600; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 8px 16px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { width: min(1000px, calc(100% - 64px)); margin: 0 auto; height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-header a { font-size: 13px; font-weight: 400; letter-spacing: 0; padding: 5px 0; color: var(--muted); }
.site-name { white-space: nowrap; }
.site-header nav { display: flex; gap: 25px; }
.site-header a:hover { color: var(--ink); }
.content-main { width: min(1000px, calc(100% - 64px)); margin: 16px auto 55px; flex: 1; }
.page-heading { margin-bottom: 22px; }
.page-heading > p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.site-footer { margin-top: auto; text-align: center; padding: 25px 20px; color: var(--muted); font-size: 11px; }
.site-footer span { margin: 0 6px; }
.home { display: grid; grid-template-rows: 1fr auto; min-height: 100svh; }
.home .site-footer { margin-top: 0; }
.home-main { align-self: center; width: min(800px, calc(100% - 40px)); margin: 28px auto; }
.profile { max-width: 800px; margin: 0 auto; text-align: left; }
.profile-top { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; }
.profile-identity { width: 160px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 1px solid #e7e7eb; padding: 4px; object-fit: cover; background: #fff; }
.profile h1 { font-size: 22px; font-weight: 300; line-height: 1.3; letter-spacing: -.3px; margin: 10px 0 0; text-align: center; white-space: nowrap; }
.profile-bio { font-size: 15px; line-height: 1.65; text-align: justify; text-justify: inter-word; text-wrap: pretty; hyphens: auto; }
.home-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.tools-divider { height: 20px; width: 1px; flex: 0 0 1px; background: #d2d2d7; }
.icon-group { display: contents; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; background: none; color: #424245; cursor: pointer; transition: color 160ms ease, transform 160ms ease; }
.icon-button:hover, .icon-button[aria-expanded="true"] { color: var(--ink); }
.icon-button:active { transform: scale(.95); }
.ui-icon { width: 21px; height: 21px; display: block; }
.icon-button::after { content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px); border-radius: 5px; padding: 3px 8px; background: #29292c; color: white; font-size: 11px; line-height: 1.6; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms ease, transform 120ms ease; z-index: 2; }
.icon-group:first-child .icon-button:first-child::after { left: 0; transform: translate(0, -3px); }
.icon-group:last-child .icon-button:last-child::after { left: auto; right: 0; transform: translate(0, -3px); }
@media (hover: hover) {
  .icon-button:hover::after { opacity: 1; transform: translate(-50%, 0); }
  .icon-group:first-child .icon-button:first-child:hover::after { transform: translate(0, 0); }
  .icon-group:last-child .icon-button:last-child:hover::after { transform: translate(0, 0); }
}
.icon-button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.icon-group:first-child .icon-button:first-child:focus-visible::after { transform: translate(0, 0); }
.icon-group:last-child .icon-button:last-child:focus-visible::after { transform: translate(0, 0); }
.panel-indicator { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 10px; height: 10px; background: #fff; color: #515154; font-size: 12px; font-weight: 400; line-height: 1; }
.home-panels, .expandable-panel { overflow: hidden; }
.news-panel { max-width: 800px; margin: 0 auto; }
.papers-inner, .panel-inner { padding-top: 18px; }
.selected-section > .section-heading, .panel-inner > .section-heading { border-top: 1px solid var(--line); padding-top: 12px; }
.news-inner { padding-top: 18px; padding-bottom: 2px; }
.news-panel h2 { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; margin-bottom: 7px; }
.news-list { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.5; }
.news-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 3px 0; }
.news-list time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-list strong { font-weight: 550; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px; }
.section-heading > h2 { font-size: 16px; }
.row-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.paper-grid { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 18px; }
.paper-card { flex: 0 1 calc((100% - 48px) / 5); min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge-link { display: block; width: 108px; max-width: 100%; margin-bottom: 5px; }
.paper-badge { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform 180ms ease; }
.badge-link:hover .paper-badge { transform: translateY(-3px); }
.card-meta { margin-bottom: 4px; }
.card-venue { font-size: 9px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); line-height: 1.4; }
.paper-card h3 { font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -.1px; text-wrap: balance; }
.card-authors { margin: 5px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.card-authors b { font-weight: 500; color: var(--ink); }
.card-authors span { white-space: nowrap; }
.paper-highlight { color: #a03e4c; font-size: 11px; font-weight: 500; }
.card-meta .paper-highlight { margin-top: 2px; font-size: clamp(8px, 1.1vw, 9px); line-height: 1.35; white-space: nowrap; }
.all-papers { margin-top: 20px; }
.paper-year { display: grid; grid-template-columns: 65px minmax(0, 1fr); column-gap: 25px; padding-top: 15px; border-top: 1px solid var(--line); }
.paper-year + .paper-year { margin-top: 12px; }
.all-papers > .paper-year:first-of-type { border-top: 0; padding-top: 0; }
.paper-year > h3 { font-size: 14px; font-weight: 500; color: var(--muted); padding-top: 1px; }
.paper-list { list-style: none; padding: 0; margin: 0; }
.paper-row { margin-bottom: 17px; font-size: 13px; line-height: 1.45; }
.paper-row-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.paper-marker { display: inline-block; width: 20px; height: 20px; margin-right: 5px; vertical-align: -4px; object-fit: contain; }
.paper-row-authors { color: var(--muted); margin-bottom: 4px; }
.paper-row-authors b { color: #454749; font-weight: 500; }
.paper-row-meta { display: flex; flex-wrap: wrap; gap: 4px 13px; align-items: baseline; font-size: 12px; color: var(--muted); }
.row-links { display: inline-flex; flex-wrap: wrap; gap: 11px; color: var(--accent); font-size: 11px; }
.narrow-page { max-width: 800px; margin: 0 auto; }
.cv-section + .cv-section { margin-top: 22px; }
.cv-section > h3 { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.cv-organization > h4 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.cv-organization > h4 img { width: auto; height: 1cap; object-fit: contain; }
.cv-timeline { list-style: none; padding: 0; margin: 0 0 0 10px; }
.cv-timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: baseline; gap: 18px; padding: 0 0 18px 21px; font-size: 14px; line-height: 1.5; }
.cv-timeline li:last-child { padding-bottom: 0; }
.cv-timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #86868b; }
.cv-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 2px; top: 16px; bottom: -5px; width: 1px; background: #dddde2; }
.cv-timeline h5 { font-size: inherit; font-weight: 550; }
.cv-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 800px) {
  .site-header, .content-main { width: calc(100% - 40px); }
  .site-header { height: 68px; }
}
@media (max-width: 740px) {
  .paper-card { flex-basis: calc((100% - 24px) / 3); }
  .profile-top { grid-template-columns: 1fr; gap: 20px; }
  .profile-identity { width: 140px; }
  .profile h1 { font-size: 20px; }
}
@media (max-width: 520px) {
  .profile-bio { font-size: 14px; line-height: 1.7; }
  .home-tools { margin-top: 16px; }
  .icon-button { width: 28px; height: 36px; }
  .site-header { height: 66px; gap: 14px; }
  .site-header nav { gap: 17px; }
  .site-header a { font-size: 12px; }
  .content-main { margin-top: 12px; }
  .page-heading { margin-bottom: 18px; }
  .paper-card { flex-basis: calc((100% - 14px) / 2); }
  .paper-grid { column-gap: 14px; row-gap: 20px; }
  .badge-link { width: 100px; }
  .card-authors { font-size: 11px; }
  .paper-year { grid-template-columns: 1fr; gap: 13px; }
  .paper-year > h3 { color: var(--ink); font-weight: 600; }
  .section-heading { gap: 12px; }
  .cv-timeline li { gap: 12px; padding-left: 17px; font-size: 13px; }
  .cv-date { font-size: 10px; }
  .cv-timeline { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper-badge, .icon-button, .icon-button::after { transition: none; }
  .badge-link:hover .paper-badge, .icon-button:active { transform: none; }
}
