@charset "utf-8";

@font-face {
    font-family: "I.Ming Web";
    src: url("fonts/I.Ming-8.10.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kumbh Sans";
    src: url("fonts/KumbhSans-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --text: #202935;
    --secondary: #606770;
    --accent: #244f80;
    --accent-hover: #153a63;
    --separator: #e4e7eb;
    --section-space: 1rem;
    --section-bottom-extra: 0.375rem;
    --section-indent: 2.15rem;
    --detail-indent: 1rem;
    --font-sans: "Kumbh Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body,
h1,
h2,
h3,
h4,
p {
    margin: 0;
}

body {
    background: #fff;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-optical-sizing: auto;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.resource-icons {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.site-shell {
    width: min(100% - 3rem, 940px);
    margin-inline: auto;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    padding-bottom: 1.5rem;
}

.profile-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--separator);
}

.profile-name {
    flex-shrink: 0;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.profile-name-zh {
    color: var(--secondary);
    display: inline-block;
    margin-inline-start: 0.3em;
    font-family: "I.Ming Web", "I.Ming", serif;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.profile-name,
.section-heading,
.publication-title,
.edu-title,
.activities-subtitle,
.activity-title {
    font-family: "Avenir", "Avenir Next", var(--font-sans);
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.15rem 1.25rem;
    font-size: 0.9375rem;
}

.profile-links .email-text {
    justify-content: flex-end;
}

.profile-links a,
.publication-resource {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
}

.profile-links a {
    gap: 0.45rem;
}

.profile-links .arxiv-profile {
    gap: 0.3rem;
}

.contact-icon {
    display: block;
    flex: 0 0 1.05rem;
    width: 1.05rem;
    height: 1.05rem;
}

.about-section {
    margin-top: var(--section-space);
}

.text-profile-bio {
    font-size: 1rem;
    line-height: 1.55;
}

.text-profile-bio + .text-profile-bio {
    margin-top: 0.625rem;
}

.text-profile-bio a,
.activity-line a {
    text-decoration-color: #bbcbdc;
}

.content-section {
    margin-top: calc(var(--section-space) + var(--section-bottom-extra));
    padding-top: var(--section-space);
    border-top: 2px solid #c4cdd7;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.section-icon {
    display: block;
    flex: 0 0 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--accent);
}

.education-list,
.activities-content,
.publication-entry {
    margin-inline-start: var(--section-indent);
}

.publication-entry {
    margin-top: 0.875rem;
}

.publication-authors,
.publication-entry > p {
    margin-inline-start: var(--detail-indent);
}

.publication-entry + .publication-entry {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--separator);
}

.publication-title {
    flex: 1 1 26rem;
    min-width: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.012em;
}

.publication-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1.5rem;
}

.publication-title-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
}

.publication-resource {
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration-color: #bbcbdc;
}

.resource-icon {
    display: block;
    flex: 0 0 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.publication-authors {
    margin-top: 0.35rem;
}

.publication-heading-group {
    margin-bottom: 0.45rem;
}

.publications p {
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.publications p + p {
    margin-top: 0.15rem;
}

.arxiv-category {
    font-family: Courier, "Courier New", monospace;
    position: relative;
    top: -0.1em;
}

.publication-authors strong {
    color: var(--text);
    font-weight: 600;
}

.author-link,
.conference-link {
    color: inherit;
}

.conference-name,
.conference-emphasis {
    font-style: normal;
}

.conf-abbr {
    font-weight: 600;
}

.education-entry {
    margin-top: 0.875rem;
}

.edu-school,
.edu-degree-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 1.5rem;
}

.edu-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.edu-detail {
    padding-inline-start: var(--detail-indent);
    margin-top: 0.1rem;
}

.edu-degree,
.edu-time,
.edu-location {
    color: var(--secondary);
    font-size: 1rem;
}

.edu-degree i {
    font-style: normal;
}

.edu-time,
.edu-location {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.no-break {
    white-space: nowrap;
}

.activities-subtitle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    margin-top: 0.875rem;
    margin-bottom: 0.45rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.activity-icon {
    flex: 0 0 1.05rem;
    width: 1.05rem;
    height: 1.05rem;
}

.activity-details {
    margin: 0;
    padding-inline-start: 1.1rem;
    list-style-type: disc;
}

.activity-details > li::marker {
    color: var(--accent);
    font-size: 0.7em;
}

.activities-subtitle:not(:first-child) {
    margin-top: 1rem;
}

.activity-entry,
.reviewer-entry {
    padding-inline-start: 1.65rem;
}

.activity-entry + .activity-entry {
    margin-top: 1rem;
}

.activity-title {
    margin-bottom: 0.3rem;
    letter-spacing: -0.012em;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.55;
}

.activity-line,
.reviewer-list {
    color: var(--secondary);
    font-size: 1rem;
}

.activity-line + .activity-line {
    margin-top: 0.2rem;
}

.external-mark {
    margin-left: 0.2em;
    font-size: 0.8em;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: calc(var(--section-space) + var(--section-bottom-extra));
    padding-top: var(--section-space);
    border-top: 1px solid var(--separator);
    color: var(--secondary);
    font-size: 0.875rem;
}

@media (max-width: 760px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding-bottom: 1rem;
    }

    .profile-links {
        justify-content: flex-start;
    }

    .profile-links .email-text {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .site-shell {
        --section-space: 0.875rem;
        width: calc(100% - 2.5rem);
        padding-top: 1.5rem;
    }

    .profile-links {
        column-gap: 1.2rem;
    }

    .content-section {
        --section-indent: 0.75rem;
        --detail-indent: 0.5rem;
    }

    .section-heading {
        gap: 0.65rem;
        font-size: 1.3125rem;
    }

    .edu-school,
    .edu-degree-row {
        flex-direction: column;
        gap: 0.15rem;
    }
}

@media (pointer: coarse) {
    .profile-links a,
    .publication-resource {
        min-height: 2.75rem;
    }
}

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

    a {
        transition: none;
    }
}
