:root {
  color-scheme: light;
  --ink: #202b2a;
  --muted: #53625e;
  --teal: #175c51;
  --line: #d8e1db;
  --paper: #fafbf8;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 8rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.7 system-ui, "Microsoft YaHei", sans-serif; }
body[data-lang="en"] .lang.zh, body[data-lang="zh"] .lang.en { display: none; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #123e37; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 5; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem 2rem;
  padding: .85rem max(1.25rem, calc((100% - 69rem) / 2));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.wordmark { white-space: nowrap; color: var(--ink); font: 700 1.25rem Georgia, serif; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
nav a { color: var(--muted); font-size: .86rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.language-options { justify-self: end; display: flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: .4rem; background: white; }
.language-options a { display: block; padding: .22rem .56rem; font-size: .82rem; font-weight: 650; white-space: nowrap; text-decoration: none; border-radius: .22rem; }
.language-options [aria-current] { background: var(--teal); color: white; }
main {
  max-width: 71.5rem; margin: auto; padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 4rem;
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0 clamp(2rem, 7vw, 6rem);
}
.hero { display: contents; }
.hero-copy { grid-column: 2; grid-row: 1; padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
.profile-card { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--teal); background: #f0f5ef; }
.content-shell { grid-column: 2; min-width: 0; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1, h2, h3, .profile-name { font-family: Georgia, "Noto Serif SC", "Songti SC", serif; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.16rem; }
.eyebrow, .section-label, .project-kicker { color: var(--teal); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-subtitle { font-weight: 650; }
.hero-intro, .muted, .section-body p, .contact-section p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1rem; }
.button { font-weight: 650; font-size: .88rem; }
.profile-name { font-size: 1.28rem; font-weight: 700; margin-bottom: .35rem; }
.profile-photo { display: block; width: min(100%, 9rem); height: auto; margin: 0 0 1rem; border-radius: .4rem; }
.profile-name span { display: block; margin-top: .3rem; font-size: .95rem; }
.profile-card p.muted { font-size: .85rem; }
dl { margin: 1rem 0 0; }
dl div { border-top: 1px solid var(--line); padding: .55rem 0; }
dt { color: var(--muted); font-size: .76rem; }
dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.section { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.section-label { margin-bottom: .5rem; }
.section-label span:first-child { margin-right: .45rem; }
.section-body > :last-child { margin-bottom: 0; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.interest-card { border-top: 2px solid #b1c8bd; padding-top: .75rem; }
.card-index { display: none; }
.interest-card p, .research-note { font-size: .88rem; }
.project-card { padding: 1.25rem; background: #f0f5ef; border-left: 3px solid var(--teal); }
.project-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.project-kicker { margin-bottom: .25rem; }
.project-status { color: var(--teal); font-size: .78rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.tag-list li { border: 1px solid #b9cbc0; padding: .1rem .45rem; font-size: .76rem; border-radius: .25rem; }
.timeline-item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .25rem 1rem; margin-top: 1.15rem; }
.timeline-date { color: var(--teal); font-size: .85rem; font-weight: 700; }
.timeline-item h3, .timeline-item p { margin-bottom: .25rem; }
.contact-section { padding-top: 1.8rem; }
.email-link { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); max-width: 69rem; margin: auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; color: var(--muted); font-size: .82rem; }
footer p { margin: 0; }
@media (max-width: 48rem) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: .35rem .9rem; }
  main { display: block; }
  .hero { display: block; }
  .profile-card { margin-top: 1.25rem; }
}
@media (max-width: 34rem) {
  .research-grid, .timeline-item { grid-template-columns: minmax(0, 1fr); }
}
