/* Locally hosted Source Serif 4; font license in assets/fonts/source-serif-4. */
/* source-serif-4-latin-ext-400-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-400-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/source-serif-4/source-serif-4-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-latin-ext-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/source-serif-4/source-serif-4-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-latin-ext-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/source-serif-4/source-serif-4-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-latin-ext-400-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-400-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/source-serif-4/source-serif-4-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-latin-ext-600-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-600-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-600-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/source-serif-4/source-serif-4-latin-600-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-latin-ext-700-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/source-serif-4/source-serif-4-latin-ext-700-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-700-italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/source-serif-4/source-serif-4-latin-700-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Styles for the academic homepage. */
:root {
  color-scheme: light;
  --paper: #fcfaf8;
  --ink: #3c3534;
  --muted: #716864;
  --link: #8a4353;
  --line: #e8dfda;
  --soft: #f2ebe7;
  --note: #d9232b;
  --nav-bg: #fcfaf8ed;
  --button-line: #d7bbc1;
  --button-bg: #faf0f1;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #242024;
  --ink: #f0e8e3;
  --muted: #bdb1b0;
  --link: #e5a8b9;
  --line: #473c42;
  --soft: #322a30;
  --note: #ff7378;
  --nav-bg: #242024ed;
  --button-line: #71515d;
  --button-bg: #392c32;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #242024;
    --ink: #f0e8e3;
    --muted: #bdb1b0;
    --link: #e5a8b9;
    --line: #473c42;
    --soft: #322a30;
    --note: #ff7378;
    --nav-bg: #242024ed;
    --button-line: #71515d;
    --button-bg: #392c32;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 8px 15px; color: var(--paper); background: var(--ink); z-index: 30; }
.skip-link:focus { top: 12px; }
/* Sticky navigation stays in normal flow and preserves anchor spacing. */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar.is-scrolled { box-shadow: 0 4px 16px #382a3310; }
.topbar-inner { max-width: 1020px; padding: 0 40px; margin: 0 auto; min-height: 62px; display: flex; align-items: center; gap: 25px; }
.nav-name { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-name:hover { color: var(--link); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); position: relative; padding: 8px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--link); text-decoration: none; }
.nav-links a[aria-current="location"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--link); }
.page-shell { max-width: 1020px; padding: 52px 40px 25px; margin: 0 auto; }
.profile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 48px; align-items: center; }
.profile-heading { margin-bottom: 22px; }
.profile h1 { font-size: 34px; line-height: 1.2; letter-spacing: normal; font-weight: 700; }
.chinese-name-toggle { margin-top: 5px; }
.chinese-name-toggle summary { width: fit-content; padding: 2px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.chinese-name-toggle summary::marker { font-size: 10px; }
.chinese-name-toggle summary:hover { color: var(--link); }
.chinese-name { margin-top: 5px; font: 20px/1.5 "Songti SC", "Noto Serif CJK SC", SimSun, serif; }
.biography p + p { margin-top: 14px; }
.biography strong { font-weight: 600; }
.profile-links, .publication-links { display: flex; flex-wrap: wrap; align-items: center; }
.profile-links { margin-top: 20px; gap: 0 17px; font-size: 15px; }
.profile-photo { padding-top: 6px; text-align: center; }
.portrait-toggle { display: block; position: relative; width: 196px; height: 240px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--soft); }
.portrait-toggle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: opacity .2s; }
.portrait-alternate { position: absolute; inset: 0; opacity: 0; }
.portrait-toggle[aria-pressed="true"] .portrait-alternate { opacity: 1; }
.profile-email { display: inline-block; margin-top: 11px; color: var(--muted); font-size: 12px; }
.theme-toggle { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.theme-toggle:hover { background: var(--soft); }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.publications { margin-top: 46px; }
.publications h2 { font-size: 26px; line-height: 1.3; letter-spacing: normal; font-weight: 600; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-row { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.publication-visual { position: relative; align-self: center; background: var(--soft); border-radius: 4px; overflow: hidden; }
.publication-image-link { display: block; }
.publication-image-link:focus-visible { outline-offset: -3px; }
.publication-visual video, .publication-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.publication-info h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin-bottom: 5px; }
.publication-authors { font-size: 15px; line-height: 1.55; color: var(--muted); }
.publication-authors strong { color: var(--ink); font-weight: 600; }
.publication-venue { font-size: 15px; line-height: 1.55; margin-top: 4px; }
.conference { font-style: italic; font-weight: 600; }
.conference strong { font-weight: inherit; }
.publication-note { color: var(--note); font-size: 16px; line-height: 1.4; font-weight: 700; font-style: normal; margin-top: 4px; }
.publication-links { margin-top: 10px; gap: 7px; font-size: 13px; line-height: 1.4; }
.publication-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 3px 9px; border: 1px solid var(--button-line); border-radius: 3px; background: var(--button-bg); font-weight: 400; transition: background .15s, border-color .15s; }
.publication-links a:hover { color: var(--paper); background: var(--link); border-color: var(--link); text-decoration: none; }
.publication-extra { font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 42px; font-size: 11px; color: var(--muted); }
.site-footer a { color: var(--muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portrait-toggle:not([data-clicked]):hover .portrait-alternate { opacity: 1; }
}
@media (max-width: 800px) {
  .page-shell { padding: 42px 28px 24px; }
  .topbar-inner { padding-left: 28px; padding-right: 28px; }
  .profile { grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; }
  .portrait-toggle { width: 170px; height: 214px; }
  .profile h1 { font-size: 29px; }
  .publication-row { grid-template-columns: 185px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .page-shell { padding: 30px 22px 22px; }
  .topbar-inner { min-height: 56px; padding: 0 22px; gap: 14px; }
  .nav-name { font-size: 13px; }
  .nav-links { gap: 17px; font-size: 13px; }
  .nav-email { display: none; }
  .profile { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .profile-photo { display: flex; align-items: flex-end; gap: 17px; padding-top: 0; }
  .portrait-toggle { width: 116px; height: 145px; border-radius: 4px; flex-shrink: 0; }
  .profile-email { font-size: 11px; margin-bottom: 3px; }
  .profile-heading { margin-bottom: 18px; }
  .profile h1 { font-size: 29px; }
  .biography { font-size: 16px; }
  .profile-links { gap: 0 17px; font-size: 14px; margin-top: 17px; }
  .publications { margin-top: 34px; }
  .publications h2 { font-size: 24px; margin-bottom: 25px; }
  .publication-row { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 30px; }
  .publication-visual { width: 200px; }
  .publication-visual video, .publication-visual img { aspect-ratio: 16 / 9; }
  .publication-info h3 { font-size: 17px; }
  .publication-authors, .publication-venue { font-size: 15px; }
  .publication-links { gap: 8px; }
  .publication-links a { min-height: 30px; padding: 4px 11px; }
  .site-footer { margin-top: 34px; font-size: 10px; }
}
@media (max-width: 359px) {
  .page-shell { padding-left: 18px; padding-right: 18px; }
  .topbar-inner { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .nav-links { gap: 13px; }
  .profile-photo { gap: 12px; }
  .profile-email { font-size: 10px; }
  .profile h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
