@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --soft: #f3f4f1;
  --ink: #151515;
  --muted: #626262;
  --line: #d8d8d2;
  --blue: #1648d8;
  --orange: #e65322;
  --display: "Newsreader", Georgia, serif;
  --body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content: 1180px;
  --gutter: 3rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.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;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.5rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.site-header nav a,
.language-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a[aria-current="location"] {
  color: var(--blue);
}

.language-link {
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--orange);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  gap: 4rem;
  align-items: center;
  width: min(100%, var(--content));
  min-height: calc(100svh - 8.5rem);
  margin: 0 auto;
  padding: 4rem var(--gutter) 5rem;
}

.hero::before {
  position: absolute;
  top: 2rem;
  bottom: 3rem;
  left: calc(62% - 1px);
  width: 1px;
  content: "";
  background: var(--line);
}

.eyebrow,
.section-index,
.work-label,
.work-meta,
.date {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue);
}

.eyebrow::before {
  width: 2.5rem;
  height: 2px;
  content: "";
  background: var(--blue);
}

.academic-identity {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1rem 0;
}

.academic-identity::before,
.academic-identity::after {
  position: absolute;
  right: 1.5rem;
  left: 0;
  content: "";
  pointer-events: none;
}

.academic-identity::before {
  top: 0;
  height: 2px;
  background: var(--blue);
}

.academic-identity::after {
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.academic-seal {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.academic-identity p {
  margin: 0;
}

.academic-institution {
  color: var(--blue);
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.05;
}

[lang="zh-CN"] .academic-institution {
  font-family: "STSong", "Songti SC", var(--display);
}

.academic-degree {
  margin-top: 0.45rem !important;
  font-size: 0.82rem;
  font-weight: 700;
}

.academic-school {
  margin-top: 0.2rem !important;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.hero h1 {
  max-width: none;
  margin: 1.25rem 0;
  font-family: var(--display);
  font-size: 5.8rem;
  font-weight: 450;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

[lang="zh-CN"] .hero h1 {
  font-family: "STSong", "Songti SC", var(--display);
  font-size: 5.4rem;
  line-height: 1;
}

.hero-intro {
  max-width: 37rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.38;
}

[lang="zh-CN"] .hero-intro {
  font-family: var(--body);
  font-size: 1.32rem;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.6rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-portrait {
  position: relative;
  align-self: stretch;
  min-height: 30rem;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgb(21 21 21 / 8%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.82) contrast(1.03);
}

.hero-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 0.65rem 0.8rem;
  color: var(--paper);
  background: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.next-section {
  position: absolute;
  bottom: 1rem;
  left: var(--gutter);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.next-section span {
  display: inline-block;
  margin-left: 0.45rem;
  color: var(--orange);
}

.section {
  padding: 6.5rem max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(14rem, 24rem);
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 4rem;
}

.section-index {
  color: var(--orange);
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 430;
  line-height: 1;
}

[lang="zh-CN"] .section-heading h2,
[lang="zh-CN"] .contact h2 {
  font-family: "STSong", "Songti SC", var(--display);
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.distinctions {
  background: var(--soft);
}

.distinction-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.award-group {
  min-width: 0;
  padding: 2rem 3rem 0 0;
}

.award-group + .award-group {
  padding-left: 3rem;
  border-left: 1px solid var(--line);
}

.award-group h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
}

[lang="zh-CN"] .award-group h3 {
  font-family: "STSong", "Songti SC", var(--display);
}

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

.award-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.award-list strong {
  display: block;
  color: var(--blue);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.personal-honors .award-list strong {
  color: var(--orange);
}

.selected-work {
  color: var(--paper);
  background: var(--ink);
}

.selected-work .section-heading > p:last-child {
  color: #b9b9b3;
}

.work {
  display: block;
  padding: 4rem 0;
  border-top: 1px solid #454541;
}

.work:last-child {
  padding-bottom: 0;
}

.work-label {
  margin-bottom: 1.5rem;
  color: #b9b9b3;
}

.work-label span {
  display: inline-block;
  min-width: 4rem;
  margin: 0 1rem 0 0;
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 400;
}

.work-meta {
  color: #9faeff;
  text-transform: none;
}

.work h3 {
  max-width: 30ch;
  margin: 0.8rem 0 1.5rem;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 2.48rem;
  font-weight: 450;
  line-height: 1.08;
}

[lang="zh-CN"] .work h3 {
  max-width: 24ch;
  font-family: "STSong", "Songti SC", var(--display);
}

.work-body > p:not(.work-meta) {
  max-width: 54rem;
  color: #d0d0ca;
}

.timeline {
  background: var(--paper);
}

.timeline-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.timeline-list > li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list > li > div,
.timeline-details {
  width: 100%;
  min-width: 0;
}

.timeline-list p {
  max-width: none;
}

.timeline-list time {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-list h3,
.education-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

[lang="zh-CN"] .timeline-list h3,
[lang="zh-CN"] .education-list h3 {
  font-family: "STSong", "Songti SC", var(--display);
}

.timeline-list p,
.education-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.education {
  background: var(--soft);
}

.education-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}

.education-list article {
  min-width: 0;
  padding: 2rem 3rem 1rem 0;
}

.education-list article + article {
  padding-left: 3rem;
  border-left: 1px solid var(--line);
}

.education-current h3 {
  max-width: 18ch;
  font-size: 2.25rem;
}

[lang="zh-CN"] .education-current h3 {
  font-size: 2.4rem;
}

.timeline-details,
.education-facts {
  padding: 0;
  margin: 0.9rem 0 0;
  list-style: none;
}

.timeline-details li,
.education-facts li {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  padding-left: 1rem;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-details li::before,
.education-facts li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange);
  content: "·";
}

.work-body > p:not(.work-meta) + p {
  margin-top: 0.9rem;
}

.date {
  margin-bottom: 1.5rem !important;
  color: var(--blue) !important;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 5rem;
  align-items: end;
  color: var(--paper);
  background: var(--blue);
}

.contact .section-index {
  margin-bottom: 1.4rem;
  color: #ffb49d;
}

.contact h2 {
  max-width: 14ch;
  font-size: 4rem;
}

.contact p {
  max-width: 38rem;
}

.contact-links {
  display: grid;
  border-top: 1px solid rgb(255 255 255 / 50%);
}

.contact-links a {
  min-width: 0;
  padding: 1.1rem 0;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgb(255 255 255 / 50%);
  font-weight: 600;
  text-decoration: none;
}

.contact-links a:hover {
  color: #ffd7cb;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
  color: #b9b9b3;
  background: var(--ink);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
  color: var(--paper);
  background: var(--ink);
}

.not-found main {
  width: min(100%, 52rem);
}

.not-found h1 {
  max-width: 12ch;
  margin: 1rem 0;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 430;
  line-height: 0.95;
}

.not-found nav {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  :root {
    --gutter: 1.5rem;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 4rem;
  }

  .js .menu-toggle {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.65rem;
    place-content: center;
    gap: 0.35rem;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    justify-self: start;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(0.175rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-0.175rem) rotate(-45deg);
  }

  .site-header nav {
    justify-content: flex-end;
    gap: 1rem;
    margin-right: 0.5rem;
  }

  .js .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .js .site-header nav[data-open] {
    display: grid;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 1.75rem;
    min-height: calc(100svh - 7rem);
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hero::before {
    display: none;
  }

  .academic-institution {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  [lang="zh-CN"] .hero h1 {
    font-size: 4rem;
  }

  .hero-intro {
    font-size: 1.25rem;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 20rem;
  }

  .hero-portrait figcaption {
    font-size: 0.6rem;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .award-group {
    padding-right: 2rem;
  }

  .award-group + .award-group {
    padding-left: 2rem;
  }

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

@media (max-width: 560px) {
  :root {
    --gutter: 1rem;
  }

  .site-header nav {
    gap: 0.6rem;
    margin-right: 0.4rem;
  }

  .site-header nav a {
    font-size: 0.62rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    min-height: auto;
    padding-top: 1.75rem;
    padding-bottom: 4.5rem;
  }

  .hero-copy {
    min-width: 0;
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  .eyebrow::before {
    width: 1.25rem;
  }

  .academic-identity {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.75rem 0;
  }

  .academic-identity::before,
  .academic-identity::after {
    right: 0;
  }

  .academic-seal {
    width: 2.75rem;
    height: 2.75rem;
  }

  .academic-institution {
    font-size: 1.45rem;
  }

  .academic-degree {
    font-size: 0.68rem;
  }

  .academic-school {
    font-size: 0.62rem;
  }

  .hero h1,
  [lang="zh-CN"] .hero h1 {
    margin: 1rem 0;
    font-size: 3rem;
  }

  [lang="zh-CN"] .hero h1 {
    font-size: 2.8rem;
  }

  .hero-intro,
  [lang="zh-CN"] .hero-intro {
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-top: 1rem;
  }

  .hero-portrait,
  .hero-portrait img {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-portrait figcaption {
    display: none;
  }

  .next-section {
    bottom: 1.2rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-heading {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 2.6rem;
  }

  .distinction-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .award-group,
  .award-group + .award-group {
    padding: 1.75rem 0 0;
    border-left: 0;
  }

  .award-group + .award-group {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .work {
    padding: 2.75rem 0;
  }

  .work-label span {
    min-width: 2.5rem;
    margin-right: 0.6rem;
    font-size: 1.5rem;
  }

  .work h3 {
    font-size: 1.85rem;
  }

  .education-current h3,
  [lang="zh-CN"] .education-current h3 {
    font-size: 2.05rem;
  }

  .timeline-list > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .education-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .education-list article,
  .education-list article + article {
    padding: 2rem 0;
    border-left: 0;
  }

  .education-list article + article {
    border-top: 1px solid var(--line);
  }

  .contact {
    gap: 2.5rem;
  }

  .contact h2 {
    max-width: 12ch;
  }

  footer {
    gap: 1rem;
  }

  .not-found h1 {
    font-size: 3.5rem;
  }

  .not-found nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  [lang="zh-CN"] .hero h1 {
    font-size: 2.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
