/* A restrained academic layout inspired by jiongchen.github.io. */
:root {
    color-scheme: light;
    --text: #333;
    --muted: #646769;
    --link: #0d98ba;
    --rule: #eee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 4px;
}
.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 10;
    padding: .5rem 1rem;
    background: #fff;
    border: 1px solid var(--rule);
}
.skip-link:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
    max-width: 1180px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 44px;
}
.site-name {
    color: var(--text);
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-nav a { color: #646769; font-size: 15px; }
.site-nav a:hover { color: var(--link); }
.page-shell {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 56px;
    max-width: 1180px;
    margin: 38px auto 64px;
    padding: 0 24px;
}
.profile-sidebar {
    align-self: start;
    position: sticky;
    top: 28px;
    font-size: 14px;
    line-height: 1.5;
}
.profile-pic {
    display: block;
    width: 170px;
    height: 170px;
    padding: 5px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 32%;
}
.profile-sidebar h1 { font-size: 18px; margin: 16px 0 8px; }
.profile-role { margin: 0 0 3px; }
.profile-affiliation { margin: 0 0 12px; }
.profile-bio { color: var(--muted); margin: 0 0 16px; }
.profile-links { list-style: none; margin: 0; padding: 0; }
.profile-links li { margin: 8px 0; }
.profile-links a { color: var(--text); }
.profile-links a:hover { color: var(--link); }
.profile-link-icon { display: inline-block; width: 19px; color: #7a8288; }
main { min-width: 0; max-width: 820px; }
section { margin: 0 0 34px; scroll-margin-top: 24px; }
.section-title {
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--rule);
    font-weight: 700;
}
#about .section-title { font-size: 27px; padding: 0; border: 0; }
p { margin: 0 0 17px; }
#about p { line-height: 1.65; }
ul { padding-left: 22px; margin: 0 0 17px; }
.list-item { margin-bottom: 8px; }
.news-list { list-style: none; padding: 0; font-size: 14px; }
.news-list .list-item { margin-bottom: 6px; }
.news-list strong { font-weight: 600; }
.research-list { font-size: 15px; }
.highlight-grid { display: grid; gap: 23px; }
.highlight-subheading { font-size: 16px; font-weight: 600; color: var(--muted); margin: 23px 0 18px; }
.highlight-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}
.highlight-figure { display: block; }
.highlight-card img {
    display: block;
    width: 240px;
    height: auto;
    max-height: 170px;
    object-fit: contain;
    background: #fff;
}
.highlight-card h3 { font-size: 16px; line-height: 1.4; margin: 0 0 5px; }
.highlight-card h3 a { color: var(--text); }
.highlight-label { display: none; }
.highlight-card p { font-size: 14px; line-height: 1.45; margin: 0 0 5px; }
.highlight-card-body > a { font-size: 13px; }
.highlight-card-body > a + a { margin-left: 12px; }
.highlight-card p.highlight-venue { color: var(--muted); font-size: 12px; margin: 7px 0 4px; }
.highlight-card.highlight-wide { grid-template-columns: 1fr; gap: 12px; }
.highlight-wide .highlight-figure { max-width: 739px; }
.highlight-card.highlight-wide img { width: 100%; max-height: none; }
.publication-subheading { font-size: 17px; font-weight: 600; margin: 24px 0 15px; }
.publication-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.publication-list li { margin-bottom: 21px; }
.publication-list .title {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 3px;
}
.publication-list .title:hover { color: var(--link); }
.publication-list .authors, .publication-list .venue { display: block; line-height: 1.5; }
.publication-list .authors { color: var(--muted); }
.publication-list .venue { font-style: italic; }
.publication-list .links { display: block; margin-top: 3px; }
.publication-list .links a { font-size: 13px; }
#education ul, #activities ul { font-size: 14px; }
#education i, #activities i { color: var(--muted); }
#contact p { margin-bottom: 5px; font-size: 14px; }
footer { border-top: 1px solid #e4e5e6; background: #f2f3f3; color: #7a8288; }
.footer-inner { max-width: 1180px; margin: auto; padding: 24px; font-size: 12px; }
footer p { margin: 0; }
@media (max-width: 900px) {
    .masthead-inner { gap: 28px; }
    .site-nav { gap: 16px; }
    .page-shell { grid-template-columns: 165px minmax(0, 1fr); gap: 32px; }
    .profile-pic { width: 150px; height: 150px; }
    .highlight-card { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
    .highlight-card img { width: 200px; }
}
@media (max-width: 680px) {
    .masthead-inner { padding: 17px 20px; gap: 14px; flex-wrap: wrap; }
    .site-name { width: 100%; }
    .site-nav { gap: 8px 18px; }
    .site-nav a { font-size: 13px; }
    .page-shell { display: block; margin-top: 25px; padding: 0 20px; }
    .profile-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 17px;
        margin-bottom: 32px;
    }
    .profile-pic { width: 90px; height: 90px; padding: 3px; }
    .profile-sidebar h1 { margin-top: 0; }
    .profile-bio { margin-bottom: 10px; }
    .profile-links { display: flex; flex-wrap: wrap; gap: 0 15px; }
    .profile-links li { margin: 3px 0; }
    .profile-location { display: none; }
    .section-title { font-size: 21px; }
    #about .section-title { font-size: 25px; }
    .highlight-card { grid-template-columns: 180px minmax(0, 1fr); gap: 15px; }
    .highlight-card img { width: 180px; }
}
@media (max-width: 520px) {
    .highlight-card { grid-template-columns: 1fr; gap: 11px; }
    .highlight-card img { width: min(320px, 100%); max-height: 225px; }
    .highlight-card { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
