@font-face {
  font-family: "Charter Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/charter-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Charter Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/charter-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Charter Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/charter-bold.woff2") format("woff2");
}

:root {
  --ink: #1a1a1a;
  --navy: #14233d;
  --muted: #55585d;
  --accent: #9d2f2f;
  --content: 840px;
  --serif: Georgia, "Times New Roman", serif;
  --display-serif: "Charter Web", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  flex: 1 0 auto;
}

main a {
  color: var(--navy);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 6px 10px;
  color: #fff;
  background: var(--navy);
  font-family: var(--sans);
  transform: translateY(-160%);
}

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

.header-inner,
.home-main,
.research-main,
footer {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

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

.site-name {
  color: var(--navy);
  font-family: var(--display-serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
}

nav a {
  display: flex;
  position: relative;
  align-items: center;
  color: #333;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-decoration: none;
}

nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.home-main {
  padding: 34px 0 44px;
}

.profile {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.portrait {
  display: block;
  width: 225px;
  height: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-details {
  padding-top: 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: var(--display-serif);
  font-weight: 700;
}

strong {
  font-family: var(--display-serif);
  font-weight: 600;
}

h1 {
  margin-bottom: 8px;
  font-size: 2.35rem;
  line-height: 1.15;
}

.chinese-name {
  margin-left: 0.32em;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.52em;
  font-weight: inherit;
  letter-spacing: 0.04em;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.name-rule {
  width: 42px;
  height: 3px;
  margin: 12px 0 15px;
  background: var(--accent);
}

.position,
.institution {
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.contact {
  margin: 18px 0 12px;
}

.profile-links {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.about {
  margin-top: 30px;
}

h2 {
  position: relative;
  margin-bottom: 19px;
  padding-left: 14px;
  font-size: 1.42rem;
  line-height: 1.25;
}

h2::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 1em;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.about p {
  margin-bottom: 12px;
}

.research-main {
  padding: 40px 0 60px;
}

.research-main > h1 {
  margin-bottom: 30px;
}

.research-lead {
  margin-bottom: 34px;
  font-size: 1.06rem;
  line-height: 1.62;
}

.research-main section + section {
  margin-top: 46px;
}

.research-area p {
  margin-bottom: 12px;
}

.paper-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-list li {
  padding: 5px 0 24px;
}

.paper-list li + li {
  margin-top: 4px;
}

.paper-list p {
  margin-bottom: 3px;
}

.paper-title {
  color: var(--navy);
  font-family: var(--display-serif);
  font-weight: 600;
}

.paper-title a {
  color: inherit;
}

.paper-title a:hover,
.paper-title a:focus-visible {
  color: var(--accent);
}

.paper-list strong {
  font-weight: 600;
}

.venue {
  color: var(--muted);
  font-size: 0.94rem;
}

footer {
  margin-top: auto;
  padding: 19px 0 24px;
  color: #777;
  font-family: var(--sans);
  font-size: 0.76rem;
}

footer p {
  margin-bottom: 0;
}

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

  .header-inner {
    min-height: 0;
    padding-top: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  nav {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
    gap: 12px;
  }

  nav a {
    padding: 5px 0 12px;
  }

  nav a[aria-current="page"]::after {
    bottom: 5px;
  }

  .home-main,
  .research-main {
    padding-top: 28px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portrait {
    width: 190px;
    height: auto;
  }

  .profile-details {
    padding-top: 0;
  }

  h1 {
    font-size: 2rem;
  }

  .about {
    margin-top: 28px;
  }
}
