:root {
  --navy: #806b84;
  --navy-deep: #24272b;
  --slate: #4b5560;
  --ink: #24272b;
  --muted: #6e747a;
  --teal: #d8ceda;
  --teal-dark: #45515d;
  --link: #7450a8;
  --link-hover: #55357b;
  --warm: #ffffff;
  --paper: #ffffff;
  --line: #e8e7e4;
  --content: 1120px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --chinese: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 160ms ease;
}

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.content-width,
.header-inner,
.hero-inner {
  width: min(var(--content), calc(100% - 96px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--ink);
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 8px 28px rgb(36 39 43 / 0.06);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-name-cn {
  padding-left: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-family: var(--chinese);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-name:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a {
  position: relative;
  padding: 21px 0 19px;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 134px 0 72px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  align-items: center;
  column-gap: clamp(90px, 10vw, 150px);
  row-gap: 0;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 > span:first-child {
  display: block;
}

.chinese-name {
  display: block;
  margin-top: 19px;
  color: #5d6267;
  font-family: var(--chinese);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.15;
}

.hero-role {
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.025em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 23px;
}

.hero-links a {
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.portrait {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #f4f1f7;
  border: 1px solid var(--line);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 41% center;
}

.research-callout {
  padding: 88px 0 92px;
  text-align: center;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.research-callout .section-kicker {
  color: var(--teal-dark);
  font-size: 16px;
}

.research-callout h2 {
  max-width: 820px;
  margin: 0 auto 50px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(37px, 4.5vw, 53px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.research-intro {
  max-width: 930px;
  margin: 0 auto 36px;
  color: var(--slate);
  font-size: 18px;
  text-align: left;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  max-width: 930px;
  margin-inline: auto;
}

.research-figure {
  margin: 0;
}

.research-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.page-content > section {
  padding: 100px 0;
  scroll-margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.page-content > section:last-child {
  border-bottom: 0;
}

.section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate);
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero-about {
  grid-column: 1 / -1;
  max-width: 830px;
  margin: 30px 0 0;
  color: #3f474e;
  font-size: 18px;
  text-align: left;
}

.hero-about p:last-child {
  margin-bottom: 0;
}

.publication-list {
  border-top: 2px solid var(--navy);
}

.paper {
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
}

.paper:last-child {
  border-bottom: 0;
}

.paper h3 {
  max-width: 880px;
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.authors,
.venue {
  margin: 2px 0;
  font-size: 15px;
}

.venue {
  color: var(--muted);
}

.paper-links {
  margin: 12px 0 0;
}

.paper-links a {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.presentation-group h3,
.service-grid h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.dated-list time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.dated-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.dated-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.dated-list li:last-child {
  border-bottom: 0;
}

.presentation-list {
  border-top: 2px solid var(--navy);
}

.presentation-group {
  padding: 31px 0 29px;
  border-bottom: 1px solid var(--line);
}

.presentation-group:last-child {
  border-bottom: 0;
}

.presentation-group ul,
.service-grid ul {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.presentation-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 5px 0 5px 18px;
  color: #46515b;
  font-size: 15px;
}

.presentation-group li::before {
  content: "—";
  position: absolute;
  margin-left: -18px;
  color: var(--teal-dark);
}

.presentation-group time {
  color: var(--muted);
  white-space: nowrap;
}

.upcoming-label {
  display: inline-block;
  margin-right: 10px;
  color: var(--link);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--navy);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.service-list li {
  margin: 0;
  padding: 19px 0;
  color: #46515b;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}

.service-list li:last-child {
  border-bottom: 0;
}

.service-grid > div {
  padding: 30px 0;
}

.service-grid > div:first-child {
  padding-top: 32px;
}

.service-grid > div:last-child {
  padding-bottom: 10px;
}

.service-grid > div + div {
  border-top: 1px solid var(--line);
}

.service-grid li {
  position: relative;
  margin: 10px 0;
  padding-left: 18px;
  color: #46515b;
  font-size: 15px;
}

.service-grid li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
}

footer {
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--link);
  font-weight: 700;
}

@media (max-width: 820px) {
  .content-width,
  .header-inner,
  .hero-inner {
    width: min(680px, calc(100% - 48px));
  }

  .site-header,
  .site-header.scrolled {
    background: rgb(255 255 255 / 0.98);
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    inset: 60px 0 auto;
    display: none;
    padding: 12px 24px 18px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .site-nav a::after {
    bottom: 5px;
    width: 36px;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 72px);
  }

  .portrait {
    width: min(100%, 280px);
    margin-top: 48px;
    justify-self: center;
  }

  .hero-about {
    grid-column: 1;
    margin-top: 28px;
  }

  .research-callout {
    padding: 72px 0 74px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 600px;
  }

  .page-content > section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

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

  .service-grid > div {
    padding: 30px 0;
  }

  .service-grid > div + div {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .content-width,
  .header-inner,
  .hero-inner {
    width: calc(100% - 36px);
  }

  .site-name {
    font-size: 19px;
  }

  .site-name-cn {
    font-size: 15px;
  }

  .hero {
    padding-top: 106px;
  }

  .hero-links {
    gap: 8px 18px;
  }

  .research-callout h2 {
    font-size: 34px;
  }

  .page-content > section {
    padding: 65px 0;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .hero-about {
    font-size: 16px;
  }

  .paper h3 {
    font-size: 21px;
  }

  .dated-list li,
  .presentation-group li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .presentation-group time {
    grid-row: 1;
  }

  .presentation-group li {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .footer-inner {
    min-height: 100px;
  }
}

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

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

@media print {
  .site-header,
  .hero-links,
  .nav-toggle,
  footer {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 40px 0;
    color: var(--ink);
    background: transparent;
  }

  .portrait {
    border-color: var(--line);
  }

  .hero-role {
    color: var(--muted);
  }

  .research-callout,
  .page-content > section {
    padding: 40px 0;
  }
}
