@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600&family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,450;8..60,550;8..60,650;8..60,700&display=swap");

:root {
  --ink: #1e2732;
  --text: #303944;
  --muted: #6c7784;
  --quiet: #eef2f5;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --accent: #8f2f46;
  --accent-dark: #6e2034;
  --link: #1c5f8f;
  --gold: #9a6b22;
  --note: #4f6f75;
  --coauthor: #5a4f63;
  --line: #dce3e9;
  --shadow: 0 18px 45px rgba(30, 39, 50, 0.09);
  --display-font: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --body-font: "Source Sans 3", Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.02rem;
  line-height: 1.66;
  letter-spacing: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
.navbar-title {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: 3.6rem;
  line-height: 0.98;
  margin: 0;
}

h2 {
  font-size: 1.9rem;
  line-height: 1.14;
  margin: 0;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.18;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.navbar {
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(220, 227, 233, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0;
}

.navbar-nav .nav-link {
  border-radius: 8px;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: #ffffff;
  color: var(--accent-dark);
  text-decoration: none;
}

#quarto-content {
  background: var(--surface-soft);
}

#quarto-content.quarto-container {
  max-width: none;
}

main.content {
  max-width: min(1480px, calc(100vw - 4rem));
  margin: 0 auto;
  padding: 2.4rem 1.35rem 4rem;
}

.quarto-title-block {
  display: none;
}

.profile-hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  min-height: 72vh;
  padding: 1.2rem 0 3.25rem;
}

.home-profile {
  align-items: start;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 1.4rem 0 1.15rem;
}

.home-name {
  color: var(--ink);
  font-size: 2.95rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.home-name p {
  margin: 0;
}

.appointment {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 1rem 0 1.15rem;
}

.profile-links {
  color: var(--muted);
  display: grid;
  gap: 0.38rem;
  line-height: 1.4;
  max-width: 920px;
}

.profile-links p {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.profile-links span,
.profile-links a {
  align-items: center;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.55rem;
  width: fit-content;
}

.profile-links i {
  color: var(--accent);
  font-size: 0.92rem;
  justify-self: center;
}

.home-profile .portrait-panel {
  box-shadow: 0 12px 28px rgba(30, 39, 50, 0.08);
}

.home-section {
  display: block;
  padding: 1.7rem 0 0;
}

.home-profile + .home-section {
  padding-top: 1.1rem;
}

.home-section h2 {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}

.home-section p {
  font-size: 1.04rem;
  line-height: 1.66;
  margin: 0;
  max-width: 980px;
}

.award-list.compact {
  margin: 0;
}

.award-list.compact li {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 1320px) {
  main.content {
    max-width: min(1600px, calc(100vw - 5rem));
  }

  .home-section p {
    max-width: 1060px;
  }
}

.profile-copy {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
  text-transform: none;
}

.latin-name {
  display: inline-block;
  font-family: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  font-weight: 600;
}

.chinese-name {
  color: var(--muted);
  display: inline-block;
  font-size: 0.47em;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 500;
  margin-left: 0.65rem;
  vertical-align: 0.16em;
}

.role {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 1.1rem 0 0.85rem;
}

.lede {
  color: var(--text);
  font-family: var(--display-font);
  font-size: 1.35rem;
  line-height: 1.32;
  max-width: 660px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 1.6rem;
}

.action-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--body-font);
  font-weight: 650;
  justify-content: center;
  line-height: 1;
  min-height: 2.85rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.button:hover,
.button:focus {
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: #bfd0dc;
  color: var(--accent-dark);
}

.contact-list {
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-left: 1rem;
}

.contact-list div {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.contact-list i {
  color: var(--accent);
  flex: 0 0 auto;
  width: 1rem;
}

.portrait-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  line-height: 0;
  margin: 0;
  overflow: hidden;
}

.headshot-rect {
  aspect-ratio: 4 / 5;
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}

.portrait-panel .figure-img {
  margin-bottom: 0;
}

.content-band,
.research-section,
.awards-section,
.page-hero {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.two-column {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
}

.section-copy {
  color: var(--text);
  font-size: 1.04rem;
}

.section-heading {
  margin-bottom: 1.35rem;
  max-width: 720px;
}

.research-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(30, 39, 50, 0.055);
  padding: 1.15rem;
}

.research-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
  margin: 0;
}

.award-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.award-list li {
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 4rem minmax(0, 1fr);
  padding: 0.85rem 1rem;
}

.award-list span {
  color: var(--gold);
  font-weight: 780;
}

.page-hero {
  padding-top: 1.2rem;
}

.page-hero h1 {
  font-size: 3.05rem;
  max-width: 760px;
}

.page-hero p:last-child {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 1.28rem;
  line-height: 1.36;
  margin: 0.85rem 0 0;
  max-width: 740px;
}

.section-title {
  color: var(--ink);
  display: block;
  font-family: var(--body-font);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.8rem 0 0.6rem;
}

.pubs {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0 0 2rem;
  max-width: none;
  padding: 0;
  width: 100%;
}

.paper {
  background: transparent;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.85rem;
  line-height: 1.48;
  margin: 0;
  padding: 0.95rem 0 1rem;
  position: relative;
}

.paper[data-year]::before {
  align-self: start;
  background: #eef4f6;
  border: 1px solid #d7e3e8;
  border-radius: 6px;
  color: var(--link);
  font-family: var(--body-font);
  content: attr(data-year);
  font-size: 0.92rem;
  font-weight: 700;
  grid-column: 1;
  line-height: 1;
  justify-self: start;
  padding: 0.34rem 0.42rem;
  position: static;
  transform: translateY(-0.12rem);
}

.paper > * {
  grid-column: 2;
}

.paper:not([data-year]) {
  grid-template-columns: minmax(0, 1fr);
}

.paper:not([data-year]) > * {
  grid-column: 1;
}

.title {
  line-height: 1.28;
  margin: 0;
}

.title a {
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.06rem;
  font-weight: 700;
}

.authors-after {
  color: var(--coauthor);
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0.15rem 0 0;
}

.status-line {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0.18rem 0 0;
  white-space: pre-wrap;
}

.awards-wrap {
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}

.awards-list {
  display: grid;
  gap: 0.15rem;
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
}

.award-item.award {
  color: var(--gold);
  font-weight: 680;
}

.award-item.other {
  color: var(--note);
  font-weight: 500;
}

.award-item.other a {
  color: var(--note);
}

.teaser,
.paper-actions {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.93rem;
  gap: 0.25rem 0.65rem;
  margin: 0.35rem 0 0;
}

.teaser-text {
  display: inline;
}

.more-btn,
.less-btn {
  background: transparent;
  border: 0;
  color: var(--link);
  cursor: pointer;
  display: inline;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  margin-left: 0;
  padding: 0;
}

.more-btn:hover,
.more-btn:focus,
.less-btn:hover,
.less-btn:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.abstract {
  border-left: 3px solid var(--quiet);
  color: var(--text);
  font-size: 0.95rem;
  margin: 0.65rem 0 0;
  padding-left: 0.85rem;
}

.hidden {
  display: none;
}

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

@media (max-width: 900px) {
  main.content {
    padding-top: 1.6rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .home-profile {
    grid-template-columns: 1fr;
  }

  .home-profile .portrait-panel {
    max-width: 230px;
    order: -1;
  }

  h1 {
    font-size: 2.85rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .portrait-panel {
    max-width: 360px;
    order: -1;
  }

  .two-column,
  .research-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main.content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .home-name {
    font-size: 2.35rem;
  }

  .home-profile {
    gap: 1.4rem;
    padding-top: 0.6rem;
  }

  .profile-links {
    display: grid;
  }

  .page-hero h1 {
    font-size: 2.05rem;
  }

  .lede,
  .page-hero p:last-child {
    font-size: 1.12rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .chinese-name {
    display: block;
    margin: 0.35rem 0 0;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row p {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .award-list li {
    grid-template-columns: 1fr;
  }

  .award-list li {
    gap: 0.2rem;
  }

  .paper {
    grid-template-columns: 3.1rem minmax(0, 1fr);
    column-gap: 0.65rem;
    padding: 0.95rem 0 0.95rem;
  }

  .paper[data-year]::before {
    font-size: 0.86rem;
    padding: 0.32rem 0.38rem;
  }

}
