:root {
  color-scheme: dark;
  --canvas: #122028;
  --panel: #1a2c32;
  --deep: #101e25;
  --text: #f4f4e9;
  --second: #c1cec9;
  --mint: #b0dfbd;
  --edge: #3a4b4d;
  --parchment: #f3f1e7;
  --ink: #1b322d;
  --serif: "Baskerville","Iowan Old Style",Georgia,serif;
  --sans: "Inter","Segoe UI",Arial,sans-serif;
  --mono: "IBM Plex Mono",Consolas,monospace;
  --pad: clamp(24px,4.8vw,84px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  display: grid;
  grid-template-columns: clamp(176px,15vw,238px) minmax(0,1fr);
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.63 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main,footer {
  grid-column: 2;
  min-width: 0;
}

h1,h2,h3,h4,p,figure {
  margin: 0;
}

h1,h2,h3,h4 {
  line-height: 1.14;
  text-wrap: pretty;
}

h1,h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  font-size: clamp(36px,3.9vw,63px);
  letter-spacing: -.049em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

a:focus-visible {
  outline: 3px solid #83bd97;
  outline-offset: 4px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  margin: 0 auto;
}

main>section.wrap,.research>.wrap,.contact>.wrap,footer.wrap {
  padding-inline: max(var(--pad),calc((100% - 1180px)/2));
}

.nav {
  grid-column: 1;
  grid-row: 1/3;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 32px clamp(14px,2.2vw,34px);
  display: flex;
  flex-direction: column;
  background: #101b20;
  border-right: 1px solid #334344;
  z-index: 2;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--parchment);
  font: italic 38px/1 var(--serif);
  letter-spacing: -.13em;
}

.brand:after {
  content: "";
  display: block;
  margin: 14px 0 0 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.navlinks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: auto 0;
  font-size: 14px;
}

.navlinks a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  color: #b4c3c0;
}

.navlinks a:hover,.navlinks a[aria-current] {
  border-color: var(--mint);
  color: var(--text);
  text-decoration: none;
}

.navfoot {
  color: #b4c3c0;
  font: 12px var(--mono);
  border-top: 1px solid var(--edge);
  padding-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(180px,.85fr);
  align-items: center;
  gap: 5%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(50px,6vw,94px);
  background: radial-gradient(ellipse at 80% 100%,#314c43 0%,transparent 52%),linear-gradient(115deg,#142127,#1a3332);
}

.role,.entry>.venue,.years,.caption {
  font: 12px/1.5 var(--mono);
  letter-spacing: .035em;
}

.role {
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 12px;
}

.role:before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(64px,7.7vw,125px);
  letter-spacing: -.078em;
  margin: 17px 0 7px;
  line-height: .98;
}

.hero h1 i {
  color: var(--mint);
  font-weight: normal;
}

.chinese {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .29em;
  color: #d9dccb;
}

.intro {
  max-width: 48ch;
  margin: 22px 0;
  color: #e3e9df;
  font-size: clamp(16px,1.4vw,21px);
  line-height: 1.55;
}

.actions,.years {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.actions {
  font-size: 14px;
}

.button {
  background: var(--mint);
  color: #162b23;
  display: inline-block;
  font-weight: 650;
  padding: 9px 16px;
  border-radius: 5px;
}

.button:hover {
  background: #c3ead0;
  text-decoration: none;
}

.link {
  border-bottom: 1px solid #91a99a;
}

.portrait {
  width: min(100%,310px);
  justify-self: center;
  position: relative;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 57% 50%;
  border: 2px solid #b4c7b9;
  border-radius: 50%;
  box-shadow: 0 8px 24px #10221f40;
}

.caption {
  text-align: center;
  font-size: 11px;
  color: #d7dfd5;
  margin-top: 15px;
  letter-spacing: .04em;
}

.about,.record {
  display: grid;
  grid-template-columns: minmax(140px,.74fr) minmax(0,1.85fr);
  gap: 6%;
  padding-block: clamp(36px,4.2vw,66px);
}

.about {
  color: var(--ink);
  background: var(--parchment);
}

.about p {
  max-width: 69ch;
}

.about p+p {
  margin-top: 14px;
}

.research {
  padding-block: clamp(38px,4.3vw,68px);
  background: #1d3735;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 30px;
}

.topic {
  border-top: 1px solid #738b7d;
  padding-top: 16px;
}

.topic h3 {
  font: 400 clamp(23px,2vw,32px)/1.15 var(--serif);
  letter-spacing: -.035em;
  color: #d7e8cc;
}

.topic p {
  margin-top: 10px;
  color: #d1ded6;
  font-size: 15px;
}

.interest-list {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #526964;
  color: #c7d8ce;
  font-size: 14px;
}

.record {
  background: var(--canvas);
  border-bottom: 1px solid var(--edge);
}

.entry {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid #46635b;
}

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

.entry:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  top: 8px;
  left: -4px;
}

.entry>.venue {
  color: var(--mint);
}

.entry h3 {
  margin: 5px 0 7px;
  font-weight: 620;
  letter-spacing: -.025em;
  font-size: clamp(19px,1.65vw,26px);
}

.entry p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--second);
  max-width: 72ch;
}

.entry p+p {
  margin-top: 4px;
}

.pubsection {
  padding-block: clamp(40px,4.6vw,74px);
  background: var(--deep);
}

.years {
  margin: 23px 0 34px;
  gap: 7px;
  font-size: 13px;
}

.years a {
  border-radius: 4px;
  padding: 5px 10px;
  background: #243a3d;
  color: #dbe8dd;
}

.years a:hover,.years a:focus-visible {
  color: #112923;
  background: var(--mint);
  text-decoration: none;
}

.yearblock {
  display: grid;
  grid-template-columns: clamp(63px,6.6vw,96px) minmax(0,1fr);
  gap: 18px;
  margin-top: 32px;
  scroll-margin-top: 8px;
}

.yearblock>h3 {
  font: italic 32px/1 var(--serif);
  letter-spacing: -.05em;
  color: #cad8bf;
  align-self: start;
  position: sticky;
  top: 24px;
}

.citation {
  margin-bottom: 9px;
  background: var(--panel);
  border: 1px solid #344a4d;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(115px,20%) minmax(0,1fr);
  gap: 5px clamp(15px,2vw,28px);
  padding: 18px 20px;
  overflow-wrap: anywhere;
}

.citation>.venue {
  grid-column: 1;
  grid-row: 1/4;
  align-self: start;
  justify-self: start;
  color: #122c24;
  background: #bae2c5;
  font: 700 15px/1.32 var(--sans);
  padding: 5px 9px;
  border-radius: 4px;
}

.citation h4,.citation p,.citation>.link {
  grid-column: 2;
}

.citation h4 {
  font-size: clamp(18px,1.5vw,23px);
  font-weight: 620;
  line-height: 1.29;
  letter-spacing: -.02em;
}

.citation h4 a:hover {
  color: #c2e7c9;
}

.citation p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--second);
}

.citation p strong {
  color: var(--text);
}

.citation>.link {
  font-size: 13px;
  justify-self: start;
}

.contact {
  background: #dce5d5;
  color: var(--ink);
}

.contact>.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 38px;
}

.contact h2 {
  font-size: 40px;
}

.contact p {
  font-size: 15px;
  max-width: 58ch;
  margin-top: 8px;
}

.contact .button {
  white-space: nowrap;
  background: #214239;
  color: #f3f6ed;
}

footer.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  font-size: 13px;
  color: var(--second);
}

@media(max-width:980px) {
  body {
    grid-template-columns: 156px minmax(0,1fr);
  }
  :root {
    --pad: 28px;
  }
  .hero {
    grid-template-columns: minmax(0,1.45fr) minmax(155px,.75fr);
  }
  .hero h1 {
    font-size: 70px;
  }
  .about,.record {
    grid-template-columns: minmax(120px,.7fr) minmax(0,2fr);
    gap: 25px;
  }
  .citation {
    display: block;
  }
  .citation>.venue {
    display: inline-block;
    margin-bottom: 10px;
  }
  .citation h4 {
    margin-bottom: 5px;
  }
  .yearblock {
    grid-template-columns: 62px 1fr;
    gap: 13px;
  }
}

@media(max-width:760px) {
  body {
    display: block;
  }
  .nav {
    height: auto;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 14px var(--pad);
    border-right: none;
    border-bottom: 1px solid var(--edge);
  }
  .navlinks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 14px;
    font-size: 13px;
    margin: 0;
  }
  .navlinks a {
    padding: 0;
    border-left: none;
  }
  .navfoot {
    display: none;
  }
  .research-grid {
    gap: 16px;
  }
  .yearblock>h3 {
    position: static;
  }
  .contact>.wrap {
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: clamp(59px,9.5vw,76px);
  }
}

@media(max-width:560px) {
  :root {
    --pad: 20px;
  }
  .nav {
    gap: 14px;
  }
  .brand {
    font-size: 28px;
  }
  .navlinks {
    gap: 4px 12px;
  }
  .hero {
    grid-template-columns: minmax(0,1fr) 86px;
    gap: 12px;
    padding-block: 32px;
  }
  .hero>div {
    display: contents;
  }
  .role,.hero h1,.chinese {
    grid-column: 1;
  }
  .hero h1 {
    font-size: clamp(48px,11.6vw,65px);
    margin: 0;
  }
  .role {
    font-size: 11px;
  }
  .role:before {
    width: 16px;
  }
  .portrait {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
  }
  .portrait img {
    border-width: 2px;
    box-shadow: none;
  }
  .caption {
    display: none;
  }
  .intro,.actions {
    grid-column: 1/-1;
  }
  .intro {
    margin: 5px 0 2px;
  }
  .chinese {
    font-size: 16px;
  }
  .about,.record,.research-grid,.yearblock {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .interest-list {
    margin-top: 20px;
  }
  .yearblock {
    gap: 12px;
  }
  .citation {
    padding: 16px;
  }
  .years {
    margin-bottom: 20px;
  }
  .entry {
    padding-left: 20px;
  }
  .contact>.wrap {
    gap: 15px;
  }
  .topic p {
    margin-top: 6px;
  }
}

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