:root {
  --background: #fff;
  --foreground: #343347;
  --muted: #656474;
  --accent: #7053a4;
  --green: #88b96b;
  --border: #dedee7;
  --surface: #ececf2;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--foreground); line-height: 1.75; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .5rem 1rem; background: var(--background); z-index: 10; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { max-width: 960px; margin: auto; padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
nav { display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: .9375rem; }
nav a { color: var(--muted); text-decoration: none; padding: .2rem 0; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
nav a[aria-current] { box-shadow: 0 2px var(--green); }
.content { max-width: 860px; margin: auto; padding: 4rem 2rem 3rem; }
.profile-header { display: flex; align-items: center; gap: 2.25rem; margin-bottom: 2rem; }
.profile-photo { width: 180px; height: 180px; overflow: hidden; border-radius: 50%; border: 5px solid var(--background); outline: 1px solid var(--border); flex-shrink: 0; }
.profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: translate(-4%, -3%) scale(1.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2; letter-spacing: -.045em; margin-bottom: .65rem; font-weight: 650; }
.profile-role { margin-bottom: .25rem; font-size: 1.125rem; }
.profile-affiliation, .profile-location { color: var(--muted); margin-bottom: .2rem; }
.profile-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .8rem; font-size: .9375rem; }
.intro { font-size: 1.0625rem; }
.intro p { margin-bottom: 1rem; }
.section { margin-top: 3rem; }
h2 { font-size: 1.6rem; font-weight: 550; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 1.5rem; position: relative; width: fit-content; padding-bottom: .5rem; }
h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 2.3rem; height: 3px; background: var(--green); border-radius: 2px; }
.research-list { padding-left: 1.2rem; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 2rem; }
.research-list li::marker { color: var(--accent); }
.news-item { border-left: 2px solid var(--green); padding-left: 1.25rem; }
.news-item p { margin-bottom: 0; }
.empty-state { color: var(--muted); padding: 1.5rem; border: 1px dashed var(--border); border-radius: .65rem; background: var(--surface); }
.empty-state p { margin: 0; }
.publication-list { display: grid; gap: 1.1rem; }
.publication-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 1.1rem; padding: 1.1rem 0; }
.publication-thumbnail { display: flex; align-items: center; justify-content: center; height: 185px; padding: .4rem; overflow: hidden; }
.publication-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.publication-body { min-width: 0; }
.publication-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.publication-badge { display: inline-block; padding: .08rem .6rem; border-radius: .35rem; background: #f1f1f3; color: #444; font-size: .8125rem; font-weight: 400; line-height: 1.6; }
.publication-badge--published { background: #c7e4ba; }
.publication-title { margin-bottom: .6rem; font-size: 1.125rem; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; }
.publication-title a { color: #477738; text-decoration: none; }
.publication-title a:hover { text-decoration: underline; }
.publication-authors { margin-bottom: .4rem; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.publication-authors summary { cursor: pointer; list-style: none; border-radius: 2px; }
.publication-authors summary::-webkit-details-marker { display: none; }
.publication-authors summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.publication-authors-more, .publication-authors-hide { color: var(--accent); }
.publication-authors summary:hover .publication-authors-more, .publication-authors-hide:hover { text-decoration: underline; text-underline-offset: .2em; }
.publication-author-self { color: #477738; font-weight: 650; text-decoration: underline; text-underline-offset: .15em; }
.publication-authors-hide, .publication-authors[open] .publication-author-preview { display: none; }
.publication-authors[open] .publication-authors-hide { display: inline; }
.publication-authors p { margin: .25rem 0 0; }
.publication-venue { margin-bottom: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.publication-venue strong { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 155px 1fr; gap: 1.5rem; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-date { color: var(--muted); font-size: .9375rem; padding-top: .15rem; margin-bottom: 0; }
.timeline-body { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.timeline-body::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); left: -5px; top: .6rem; }
.timeline h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; margin-bottom: .3rem; }
.timeline p { margin-bottom: .15rem; }
.timeline-body p:not(.institution) { color: var(--muted); font-size: .9375rem; }
.timeline-body .degree-note { margin-bottom: .3rem; }
.page-intro { color: var(--muted); margin-bottom: 2rem; }
@media (max-width: 600px) {
  /* Preserve the navigation and content positions after removing the site name. */
  .header-inner { padding: 3.4rem 1.25rem 1rem; flex-direction: column; align-items: flex-start; gap: .65rem; }
  nav { gap: 1.5rem; }
  .content { padding: 2.25rem 1.25rem; }
  .profile-header { gap: 1.5rem; flex-direction: column; align-items: flex-start; }
  .profile-photo { width: 130px; height: 130px; }
  .research-list { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 1fr; gap: 1rem; padding: 1rem 0; }
  .publication-thumbnail { height: 200px; }
  .timeline li { grid-template-columns: 1fr; gap: .5rem; }
  .timeline-date { padding-left: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; }
  .site-header, .skip-link { display: none; }
  .content { padding: 0; max-width: none; }
  .section, .timeline li, .publication-card { break-inside: avoid; }
  a { color: inherit; }
}
