:root {
  color-scheme: light;
  --ink: #292724;
  --muted: #6b6760;
  --link: #724438;
  --line: #e5e3de;
  --paper: #fafaf8;
  --wash: #f2f1ee;
  --secondary: #53504a;
  --quiet: #716b63;
  --disabled: #95918a;
  --hover: #67322e;
  --selection: #e9d7c8;
  --flow-paper: #f0efeb;
  --flow-ink: #5e5147;
  --flow-line: #d2c8be;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #151515; --ink: #ececea; --muted: #a19e96;
    --link: #d5ab85; --line: #30302d; --wash: #21211f;
    --secondary: #d6d4cd; --quiet: #aaa59b; --disabled: #7b7972; --hover: #ecd1b7;
    --selection: #514235;
    --flow-paper: #1b1b1a; --flow-ink: #d3c7ad; --flow-line: #46433c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151515; --ink: #ececea; --muted: #a19e96;
  --link: #d5ab85; --line: #30302d; --wash: #21211f;
  --secondary: #d6d4cd; --quiet: #aaa59b; --disabled: #7b7972; --hover: #ecd1b7;
  --selection: #514235;
  --flow-paper: #1b1b1a; --flow-ink: #d3c7ad; --flow-line: #46433c;
}
* { box-sizing: border-box; letter-spacing: 0; }
::selection { background: var(--selection); color: var(--ink); }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { position: relative; isolation: isolate; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
.home-group { display: flex; gap: 6px; align-items: center; }
.home-group .home-link { margin-right: 4px; white-space: nowrap; }
.theme-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 50%; background: transparent; color: var(--quiet); }
.theme-toggle:hover { background: var(--wash); color: var(--link); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg > * { display: none; }
.theme-toggle[data-mode="light"] .theme-dark, .theme-toggle[data-mode="dark"] .theme-light { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: 40px; }
h2 { font-size: 25px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
p + p { margin-top: 14px; }
strong { font-weight: 600; }
.shell { max-width: 960px; margin: 0 auto; padding: 0 36px; }
.skip { position: absolute; z-index: 10; top: 10px; left: 10px; padding: 8px 12px; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
#main:focus { outline: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 66px; font-size: 13px; }
.home-link { color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--link); }
.intro { padding: 25px 0 32px; }
.name { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.name-chinese { font-family: var(--serif); font-size: 22px; color: var(--quiet); font-weight: 400; }
.bio { max-width: 780px; font-size: 15px; line-height: 1.75; }
.has-portrait { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 42px; }
.portrait { width: 174px; height: 205px; object-fit: cover; border-radius: 4px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 17px; font-size: 14px; }
.contact-links a { text-decoration: none; }
.unavailable { color: var(--disabled); cursor: default; }
.opportunity { font-size: 13px; color: var(--muted); margin-top: 17px; }
.section-heading { display: flex; gap: 20px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading .note { margin-left: auto; font-size: 12px; color: var(--muted); }
.news { margin-bottom: 32px; }
.news-list { list-style: none; padding: 12px 0 0; margin: 0; font-size: 14px; line-height: 1.7; }
.news-list li { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 16px; padding: 5px 0; }
.news-list time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-archive { margin-top: 10px; font-size: 13px; }
.news-archive summary { cursor: pointer; color: var(--link); }
.academic-section + .academic-section { margin-top: 32px; }
.work { display: grid; grid-template-columns: 184px minmax(0, 1fr); align-items: start; gap: 28px; padding: 25px 0; }
.work + .work { border-top: 1px solid var(--line); }
.work-body { min-width: 0; }
.work h3 a { color: var(--ink); text-decoration: none; }
.work h3 a:hover { color: var(--link); text-decoration: underline; }
.work p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.work .contribution { color: var(--secondary); }
.publication-venue { font-size: 13px; margin-top: 5px; color: var(--secondary); font-style: italic; }
.project-status { font-size: 12px; margin-top: 6px; color: var(--muted); }
.authors { font-size: 13px; line-height: 1.6; margin-top: 8px; color: var(--muted); }
.authors strong { color: var(--ink); }
sup { line-height: 0; font-size: .7em; }
.work-links { display: flex; flex-wrap: wrap; gap: 5px 17px; align-items: baseline; margin-top: 10px; font-size: 13px; }
.work-links > a { text-decoration: none; }
.work-links > a:hover { text-decoration: underline; }
.figure-link { display: block; text-decoration: none; }
.cafe-image { width: 184px; height: 184px; object-fit: contain; border-radius: 3px; }
figcaption { color: var(--muted); font-size: 11px; line-height: 1.55; margin-top: 8px; }
.flow-figure { padding: 17px 12px; background: var(--flow-paper); border-radius: 3px; height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--flow-ink); }
.flow-figure .input { font: 12px/1.5 var(--sans); }
.flow-figure .model { margin: 10px 0; padding: 8px 16px; border-top: 1px solid var(--flow-line); border-bottom: 1px solid var(--flow-line); font: italic 21px var(--serif); }
.flow-figure .arrow { font-size: 20px; line-height: 1.2; }
.flow-figure .output { font-size: 12px; }
.scholar-figure { display: block; background: var(--wash); border-radius: 4px; overflow: hidden; }
.scholar-figure img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
details.citation { font-size: 13px; margin-top: 12px; }
.work-details { font-size: 13px; margin-top: 11px; }
.work-details summary { color: var(--link); cursor: pointer; width: fit-content; }
.work-details[open] { margin-bottom: 12px; }
.work-details p { margin-top: 8px; }
.citation summary { display: inline-block; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.citation summary::marker { content: ''; }
.citation summary::-webkit-details-marker { display: none; }
.citation-box { margin-top: 10px; padding: 16px; background: var(--wash); position: relative; border-radius: 4px; }
.citation pre { font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding-top: 25px; }
.copy { position: absolute; right: 10px; top: 8px; display: inline-flex; gap: 5px; align-items: center; border: 0; background: transparent; color: var(--link); font-size: 12px; padding: 3px; }
.copy svg { width: 14px; height: 14px; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.background-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.lower h2 { font-size: 24px; margin-bottom: 22px; }
.additional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.additional-item h3 { font-size: 16px; }
.additional-item h3 a { text-decoration: none; }
.additional-item p { font-size: 14px; margin-top: 4px; color: var(--muted); }
.experience-row { display: flex; flex-direction: column-reverse; gap: 4px; margin-bottom: 24px; }
.experience-row h3 { font-size: 15px; }
.experience-row h3 a { color: var(--ink); text-decoration: none; }
.experience-row h3 a:hover { color: var(--link); text-decoration: underline; }
.experience-row p { margin-top: 5px; font-size: 13px; }
.experience-row .role, .experience-row .dates { color: var(--muted); font-size: 13px; }
.experience-row .dates { padding-top: 2px; }
.additional-item .work-links { margin-top: 6px; }
.education-row { display: flex; flex-direction: column-reverse; gap: 4px; margin-bottom: 24px; font-size: 13px; }
.education-row h3 { font-size: 15px; }
.education-row p { color: var(--muted); margin-top: 2px; }
.education-row time { color: var(--muted); font-size: 13px; padding-top: 2px; }
.personal { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 12px; margin-top: 50px; padding: 25px 0 32px; border-top: 1px solid var(--line); }
footer a { color: inherit; text-decoration: none; }
.cv { padding-top: 36px; max-width: 790px; margin: auto; }
.cv h1 { font-size: 38px; }
.cv .cv-head { margin-bottom: 32px; }
.cv .cv-head p { font-size: 14px; margin-top: 12px; }
.cv h2 { font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 28px 0 17px; }
.cv h3 { font-size: 16px; }
.cv p, .cv li { font-size: 14px; }
.cv ul { padding-left: 18px; margin: 8px 0 18px; }
.cv li { margin-bottom: 5px; }
.cv .authors { font-size: 13px; }
.cv-actions { margin-top: 18px; font-size: 14px; }
.cv-project { margin-bottom: 19px; }
.cv-project p { margin-top: 6px; }
.error { min-height: 55vh; padding-top: 80px; }
.error p { margin-top: 20px; }
.privacy { max-width: 760px; padding: 35px 0; }
.privacy h1 { font-size: 32px; margin-bottom: 25px; }
.privacy p { font-size: 15px; }
.privacy-controls { margin: 24px 0; }
.privacy-controls button { margin-top: 12px; padding: 8px 12px; background: var(--wash); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.privacy-controls button:disabled { color: var(--muted); cursor: default; }
@media (max-width: 680px) {
  .shell { padding: 0 22px; }
  .topbar { min-height: 86px; font-size: 12px; gap: 5px; flex-wrap: wrap; padding: 14px 0; }
  .home-group { flex-basis: 100%; }
  .topbar nav { gap: 20px; padding-top: 6px; }
  .intro { padding: 16px 0 28px; }
  h1 { font-size: 36px; }
  .name { gap: 14px; margin-bottom: 17px; }
  .name-chinese { font-size: 20px; }
  .bio { font-size: 15px; }
  .has-portrait { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 140px; height: 165px; grid-row: 1; }
  h2 { font-size: 24px; }
  .section-heading { padding-bottom: 12px; }
  .news-list li { grid-template-columns: 69px minmax(0, 1fr); column-gap: 10px; padding: 6px 0; }
  .news-list { font-size: 13px; }
  .news-list time { font-size: 11px; }
  .work { grid-template-columns: 1fr; gap: 18px; padding: 23px 0; }
  .work figure { max-width: 100%; }
  .cafe-image { width: 188px; height: 188px; }
  .work-cafe figure { display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 18px; }
  .work-cafe .cafe-image { width: 148px; height: 148px; }
  .work-cafe figcaption { max-width: 140px; font-size: 12px; }
  .work h3 { font-size: 18px; }
  .flow-figure { height: 105px; flex-direction: row; gap: 10px; padding: 12px; }
  .flow-figure .arrow { transform: rotate(-90deg); }
  .flow-figure .model { font-size: 18px; padding: 8px; flex-shrink: 0; }
  .flow-figure .input, .flow-figure .output { font-size: 11px; text-align: center; }
  .section-heading .note { font-size: 11px; }
  .cv { padding-top: 20px; }
  .additional-grid, .background-grid { grid-template-columns: 1fr; gap: 26px; }
  .background-grid { margin-top: 28px; }
  .news { margin-bottom: 28px; }
}
@media (max-width: 360px) {
  .shell { padding: 0 16px; }
  .topbar nav { gap: 12px; }
  .work-cafe figure { grid-template-columns: 130px 1fr; gap: 14px; }
  .work-cafe .cafe-image { width: 130px; height: 130px; }
  .flow-figure { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme], :root:not([data-theme]) { color-scheme: light; --paper: #fff; --ink: #111; --muted: #555; --secondary: #333; --quiet: #555; --line: #ddd; --wash: #f5f5f5; --flow-paper: #f3f3f3; --flow-ink: #333; --flow-line: #ccc; }
  @page { size: A4; margin: 15mm 17mm; }
  body { font-size: 10pt; color: #111; }
  .shell { max-width: none; padding: 0; }
  .topbar, footer, .skip, .cv-actions, .no-print { display: none !important; }
  .cv { max-width: none; padding: 0; }
  .cv h1 { font-size: 25pt; }
  .cv .cv-head { margin-bottom: 16px; }
  .cv .cv-head p { margin-top: 7px; font-size: 9pt; }
  .cv h2 { font-size: 13pt; margin: 16px 0 9px; padding-bottom: 5px; break-after: avoid; }
  .cv h3 { font-size: 10pt; }
  .cv p, .cv li, .cv .authors { font-size: 9pt; line-height: 1.4; }
  .cv li { margin-bottom: 3px; }
  .cv ul { margin: 5px 0 10px; }
  .cv-project { margin-bottom: 10px; break-inside: avoid; }
  .education-row { margin-bottom: 9px; break-inside: avoid; }
  .education-row h3 { font-size: 10pt; }
  .education-row time { font-size: 9pt; }
  a { color: #111; text-decoration: none; }
}
