@charset "UTF-8";

:root {
  color-scheme: light;
  --text: #171717;
  --secondary: #555;
  --line: #eaeaea;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 30px; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.9 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: #b8b8b8; text-underline-offset: 4px; }
a:hover { text-decoration-color: #171717; }
a:focus-visible { outline: 2px solid #171717; outline-offset: 5px; }
p, h1, h2, h3, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.container { width: calc(100% - 80px); max-width: 1000px; margin-inline: auto; }
.skip-link { position: fixed; left: 15px; top: -80px; padding: 8px 15px; background: white; border: 1px solid #171717; z-index: 10; }
.skip-link:focus { top: 15px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; font-size: 13px; }
.site-name { font-size: 16px; font-weight: 600; text-decoration: none; }
.intro { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: 85px; padding-block: 65px 82px; }
h1 { font-size: clamp(34px,4vw,44px); line-height: 1.3; font-weight: 600; letter-spacing: -1px; }
.chinese-name { display: inline-block; margin-left: 10px; font-size: .65em; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.role { margin: 10px 0 25px; font-size: 17px; }
.intro-copy > p:not(.role) { color: var(--secondary); max-width: 590px; }
.intro-copy > p + p:not(.role) { margin-top: 13px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 13px; }
.portrait { width: 240px; height: 240px; object-fit: cover; }
.section { border-top: 1px solid var(--line); padding-block: 42px 46px; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.5; margin-bottom: 28px; }
#projects-title, #publications-title { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: .3px; margin-bottom: 32px; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.5; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
.project { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.project-image-link { display: block; }
.project-image { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.project-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.star-badge { display: inline-flex; align-items: center; text-decoration: none; }
.star-badge img { height: 20px; width: auto; }
.project-copy > p { color: var(--secondary); margin-top: 12px; font-size: 14px; }
.project-copy .project-context { font-size: 13px; }
.work-links { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 16px; font-size: 13px; }
.publication { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; align-items: center; }
.publication-image-link { display: block; }
.publication-image { width: 100%; height: auto; }
.publication-copy { min-width: 0; }
.publication h3 { font-size: 19px; line-height: 1.6; font-weight: 600; max-width: 780px; }
.authors { margin-top: 12px; font-size: 14px; }
.authors strong { font-weight: 600; }
.venue { font-size: 14px; color: var(--secondary); margin-top: 2px; }
.publication-summary { color: var(--secondary); font-size: 14px; margin-top: 15px; }
.contact > p { color: var(--secondary); font-size: 14px; }
.contact-list { margin-top: 18px; font-size: 14px; }
.contact-list > div { display: flex; gap: 15px; margin-top: 6px; }
.contact-list dt { width: 55px; flex-shrink: 0; color: var(--secondary); }
.contact-list dd { min-width: 0; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding-block: 22px 32px; font-size: 12px; color: var(--secondary); }

@media (max-width: 800px) {
  .container { width: calc(100% - 56px); }
  .intro { grid-template-columns: minmax(0,1fr) 190px; gap: 35px; padding-block: 45px 60px; }
  .portrait { width: 190px; height: 190px; }
  .project { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .site-header { padding-block: 22px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 44px; }
  .portrait { width: 190px; height: 190px; }
  h1 { font-size: 34px; }
  .role { margin-bottom: 20px; }
  .section { padding-block: 32px 36px; }
  h2 { font-size: 21px; margin-bottom: 23px; }
  #projects-title, #publications-title { font-size: 26px; margin-bottom: 26px; }
  .project { grid-template-columns: 1fr; gap: 22px; }
  .publication { grid-template-columns: 1fr; gap: 22px; }
  .publication h3 { font-size: 18px; }
}
