:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --paper-tinted: #f0ecef;
  --ink: #252226;
  --muted: #5d555f;
  --accent: #684a6b;
  --accent-deep: #503451;
  --line: #d9d1d8;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

::selection {
  background: #e3d3e5;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--accent-deep);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - clamp(2.5rem, 10vw, 8rem)), 71rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.875rem;
  gap: 1.5rem;
}

.wordmark,
.site-nav a,
.language {
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.monogram {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.4vw, 2.75rem);
}

.site-nav a {
  padding: 0.375rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover,
.wordmark:hover {
  color: var(--accent);
  text-decoration: underline;
}

.language {
  justify-self: end;
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--accent-deep);
  font-size: 0.9375rem;
  font-weight: 600;
}

.language:hover,
.button.secondary:hover {
  border-color: var(--accent);
  background: var(--paper-tinted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 8vw, 7.5rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(3.75rem, 7vw, 6.25rem);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.15rem 0 1.4rem;
  font-size: clamp(4.55rem, 9.3vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.name-main,
.name-family {
  display: block;
}

.name-family {
  margin-top: 0.04em;
}

.nickname {
  display: inline-block;
  color: var(--accent);
  font-size: 0.5em;
  letter-spacing: -0.035em;
  vertical-align: 0.16em;
}

.affiliation {
  max-width: 28rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.5;
}

.affiliation a {
  text-decoration-color: #b5a1b5;
}

.affiliation a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

.intro {
  max-width: 29.5rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.43rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:focus-visible {
  outline-color: var(--accent-deep);
}

.button.secondary {
  color: var(--accent-deep);
}

.orcid-mark {
  display: inline-grid;
  width: 1.16rem;
  min-width: 1.16rem;
  height: 1.16rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.portrait {
  width: min(100%, 26rem);
  justify-self: end;
}

.portrait-frame {
  aspect-ratio: 4 / 4.5;
  padding: 0.5rem;
  border: 1px solid #c4b7c4;
  background: var(--paper);
  box-shadow: 0.625rem 0.625rem 0 #e9e1e8;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  background: #ecebec;
  object-fit: cover;
  object-position: center;
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.portrait figcaption span + span {
  color: var(--accent);
  font-weight: 650;
}

.research,
.background {
  padding-block: clamp(3.5rem, 7vw, 6.25rem);
  border-top: 1px solid var(--line);
}

.research {
  background: var(--paper-tinted);
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(2.25rem, 7vw, 6rem);
}

.section-heading {
  container-type: inline-size;
}

.section-heading h2,
.site-footer h2 {
  margin-top: 0.35rem;
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

.section-heading h2 {
  font-size: min(clamp(3rem, 5vw, 4.7rem), 19cqi);
}

.section-intro {
  max-width: 16.5rem;
  margin-top: 1.05rem;
  color: var(--muted);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.55rem;
}

.topics li {
  padding: 0.3rem 0.7rem;
  border: 1px solid #cdbfce;
  border-radius: 2rem;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 550;
}

.publications,
.timeline {
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.pub-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.07rem;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.42;
}

.pub-meta span + span {
  color: var(--muted);
  font-weight: 450;
}

.pub-content h3,
.timeline h3,
.experience h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.016em;
  line-height: 1.42;
}

.pub-content h3 a {
  text-decoration: none;
}

.pub-content h3 a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.translation,
.authors {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.authors strong {
  color: var(--ink);
  font-weight: 650;
}

.doi-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration-color: #a98fab;
}

.doi-link span {
  margin-inline-start: 0.18rem;
  font-weight: 450;
}

.doi-link:hover {
  text-decoration-color: currentColor;
}

.timeline li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.period {
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 650;
}

.timeline p,
.experience p:not(.period) {
  margin-top: 0.35rem;
  color: var(--muted);
}

.experience {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid #a889a7;
  background: #f0ebef;
}

.experience h3 {
  margin-top: 0.28rem;
}

.site-footer {
  padding-block: 2.65rem;
  background: #322733;
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.65rem;
}

.site-footer h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.site-footer p {
  margin-top: 0.45rem;
  color: #e5dbe5;
}

.site-footer .button.secondary {
  flex: 0 0 auto;
  border-color: #a08da1;
  color: #fff;
}

.site-footer .button.secondary:hover {
  border-color: #e5dbe5;
  background: #503b52;
}

:lang(zh-CN) .eyebrow {
  letter-spacing: 0.1em;
}

html[lang="zh-CN"] .hero h1 {
  font-size: clamp(3.8rem, 8.4vw, 7rem);
  line-height: 1.12;
}

html[lang="zh-CN"] .name-family {
  margin-top: 0.45rem;
  color: var(--accent);
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  line-height: 1.03;
}

html[lang="zh-CN"] .section-heading h2,
html[lang="zh-CN"] .site-footer h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.25;
}

@media (max-width: 54rem) {
  .hero {
    gap: 2.35rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 10.3vw, 6rem);
  }

  .section-layout {
    gap: 2.35rem;
  }

  .publication,
  .timeline li {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 42rem) {
  .header-inner {
    min-height: 0;
    padding-block: 0.75rem 0.45rem;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: 1.55rem;
  }

  .language {
    grid-row: 1;
    grid-column: 2;
  }

  .hero,
  .section-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.25rem;
    padding-block: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 15vw, 6.75rem);
  }

  .portrait {
    justify-self: start;
  }

  .section-layout {
    gap: 1.6rem;
  }

  .section-intro {
    max-width: 32rem;
  }

  .research,
  .background {
    padding-block: 3rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 32rem) {
  .publication,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }

  .pub-meta {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}
