:root {
  --paper: #f5f3ee;
  --section-bg: #e8eeeb;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #5c6865;
  --line: #d6d9d4;
  --teal: #0d6259;
  --teal-dark: #084b45;
  --coral: #d85d43;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--section-bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: rgba(13, 98, 89, 0.42);
  text-underline-offset: 4px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--teal);
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(214, 217, 212, 0.9);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  width: fit-content;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.language-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.language-link:hover {
  color: var(--ink);
}

.language-link {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}

.hero {
  padding: 36px 0 44px;
  background: var(--section-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 680px;
  font-size: clamp(58px, 7.1vw, 100px);
}

.chinese-name {
  display: block;
  margin-top: 8px;
  color: var(--coral);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #3d4a47;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
}

.button-secondary:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

.portrait-wrap {
  position: relative;
  margin: 0;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38%;
  height: 54%;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
}

.portrait-wrap img {
  position: relative;
  width: 100%;
  height: clamp(500px, 44vw, 540px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% center;
}

.portrait-wrap figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
  background: var(--section-bg);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 9vw, 128px);
}

h2 {
  max-width: 650px;
  font-size: clamp(38px, 5vw, 65px);
}

.intro-copy {
  padding-top: 34px;
}

.intro-copy > p {
  margin: 0 0 20px;
  color: #3f4b49;
  font-size: 18px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.interest-list li {
  padding: 7px 12px;
  border: 1px solid #bdc8c5;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
}

.publications-section {
  background: var(--section-bg);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--muted);
}

.publications-section .section-kicker,
.publications-section .publication-meta {
  color: var(--teal);
}

.publication {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 26px;
  padding: 42px 0;
  border-top: 1px solid #c5cfcb;
}

.publication:last-child {
  border-bottom: 1px solid #c5cfcb;
}

.publication-index {
  color: #74827f;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
}

.publication-body {
  max-width: 880px;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.publication h3 {
  max-width: 900px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.publication .authors {
  margin: 18px 0 10px;
  color: #46524f;
  font-size: 14px;
}

.publication-body > p:not(.authors) {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
}

.text-links {
  display: flex;
  gap: 24px;
  margin-top: 22px;
}

.text-links a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: rgba(13, 98, 89, 0.45);
}

.text-links a:hover {
  color: var(--coral);
}

.compact-heading {
  align-items: center;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 34px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 1px solid var(--line);
}

.logo-box {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  background: transparent;
}

.logo-box img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.logo-box img.tongyi-logo {
  width: 88px;
  height: 88px;
}

.work-highlights {
  max-width: 850px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #46524f;
}

.work-highlights li + li {
  margin-top: 10px;
}

.timeline-date {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-content h3,
.education-item h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.25;
}

.organization {
  margin: 8px 0 12px;
  color: var(--muted);
}

.timeline-content > p:last-child {
  margin: 0;
  color: #46524f;
}

.education-section {
  background: var(--section-bg);
}

.university-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.education-item {
  padding: 38px 40px 20px 0;
}

.education-item + .education-item {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.education-item > p:not(.timeline-date) {
  margin: 8px 0 22px;
  color: var(--muted);
}

.education-item ul {
  margin: 0;
  padding-left: 20px;
  color: #46524f;
}

.education-item li {
  margin-bottom: 8px;
}

.inline-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.projects-section {
  background: var(--section-bg);
}

.project-list {
  padding-top: 28px;
  border-top: 1px solid #b8c3bf;
}

.project-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid #b8c3bf;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  text-decoration: none;
}

.project-list a:hover {
  padding-right: 10px;
}

.site-footer {
  padding: 32px 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 48px 0 72px;
  }

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

  .hero-grid {
    gap: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .portrait-wrap {
    width: min(92%, 560px);
    margin-inline: auto;
  }

  .portrait-wrap img {
    height: min(72vw, 520px);
    aspect-ratio: 5 / 4;
  }

  .section {
    padding: 78px 0;
  }

  .intro-copy {
    padding-top: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-item {
    padding: 32px 0;
  }

  .education-item + .education-item {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 6px);
  }

  .hero-actions .button:last-child {
    flex-basis: 100%;
  }

  .portrait-wrap {
    width: 100%;
  }

  .portrait-wrap img {
    height: min(108vw, 480px);
    aspect-ratio: 4 / 5;
  }

  .portrait-wrap::before {
    top: -10px;
    right: -8px;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 34px 0;
  }

  .publication-index {
    font-size: 16px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
