@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #17233c;
  --muted: #4c596b;
  --accent: #244ba7;
  --line: #cdd5e0;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 1.075rem/1.58 var(--sans);
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #17347a; }
a:focus-visible { outline: 3px solid #375bc6; outline-offset: 4px; }
h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.shell {
  width: min(68rem, calc(100% - clamp(2.5rem, 10vw, 8rem)));
  margin-inline: auto;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1; background: white; padding: .5rem 1rem; }
.skip-link:focus { top: .5rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .site-header nav, .site-footer nav, .wordmark {
  display: flex;
  align-items: center;
}
.header-inner { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.wordmark { gap: .75rem; color: var(--ink); text-decoration: none; line-height: 1; }
.monogram {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font: 500 1.04rem/1 var(--serif);
  letter-spacing: -.025em;
}
.wordmark-name { font: 500 1.3rem/1.15 var(--serif); }
.site-header nav { gap: clamp(1.05rem, 3.2vw, 2.4rem); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 550;
  text-decoration: none;
}
.site-header nav a[aria-current="page"], .site-header nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .4rem;
}

.hero {
  background: linear-gradient(110deg, #f8fafd 14%, #f0f3fa 92%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(14rem, 24vw, 18rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}
.affiliation {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-weight: 650;
  font-size: .92rem;
  letter-spacing: .035em;
  margin: 0 0 1.1rem;
}
.affiliation::before {
  content: "";
  flex: 0 0 1.8rem;
  height: 2px;
  background: currentColor;
}
.hero h1, .record-page > h1 {
  font-size: clamp(3.1rem, 5.7vw, 5.25rem);
  letter-spacing: -.018em;
  line-height: 1.12;
}
.hero h1 span {
  display: inline-block;
  margin-left: .18em;
  vertical-align: .12em;
  color: #596a86;
  font-family: "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  font-size: clamp(1rem, .29em, 1.65rem);
  letter-spacing: .05em;
  white-space: nowrap;
}
.position {
  max-width: 39rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1.14rem, 1.55vw, 1.4rem);
  font-weight: 550;
  line-height: 1.35;
}
.research-intro {
  max-width: 39rem;
  margin: .95rem 0 0;
  color: var(--muted);
  font-size: clamp(1.09rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem clamp(1rem, 1.7vw, 1.5rem);
  margin-top: 1.4rem;
}
.profile-links a { font-size: 1.02rem; font-weight: 600; }
.profile-links .contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem 1.15rem;
  color: white;
  background: var(--ink);
  border-radius: .3rem;
  text-decoration: none;
}
.profile-links .contact-link:hover { background: var(--accent); }
.portrait {
  border: 1px solid #20365a;
  border-radius: .4rem;
  box-shadow: .48rem .48rem 0 #dce4f1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: cover;
  object-position: center 54%;
}

.home-publications, .record-page { padding-block: clamp(2.25rem, 4.6vw, 4rem); }
.home-publications > h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -.012em;
}
.record-page > h1 { margin-bottom: 2rem; }
.record-page.cv-page > h1 { margin-bottom: 1rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-inner { min-height: 5.3rem; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: 1rem; }
.site-footer nav { flex-wrap: wrap; gap: .45rem 1.2rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 47rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .hero h1, .record-page > h1 { font-size: clamp(2.2rem, 9.7vw, 4.25rem); }
  .portrait {
    max-width: 11rem;
    aspect-ratio: 1.3;
    box-shadow: .28rem .28rem 0 #dce4f1;
  }
}
@media (max-width: 34rem) {
  .wordmark-name { display: none; }
  .header-inner { min-height: 3.75rem; }
  .affiliation { line-height: 1.3; }
  .profile-links { gap: .45rem .95rem; }
}
@media (max-width: 27rem) {
  .profile-links { display: grid; grid-template-columns: repeat(3, max-content); row-gap: .7rem; }
  .profile-links .contact-link { grid-column: 1 / -1; justify-self: start; }
}
@media print {
  .site-header, .site-footer, .skip-link, .profile-links { display: none; }
  .shell { width: 100%; }
  .hero { background: white; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 11rem; padding-block: 1rem; }
  .publication-entry, .cv-timeline dd { break-inside: avoid; }
}
