:root {
  --paper: #faf9f6;
  --ink: #1b1815;
  --muted: #7d776f;
  --faint: #b9b3aa;
  --line: rgba(27, 24, 21, 0.13);
  --line-soft: rgba(27, 24, 21, 0.07);
  --accent: #2f6f68;
  --accent-ink: #153c38;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

.shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-self: start;
  border-right: 1px solid var(--line);
  padding: 58px 46px 38px 40px;
}

.portrait {
  display: block;
  width: 132px;
  aspect-ratio: 7 / 9;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ebe7df;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.identity h1 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.cn {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role {
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
}

.affiliation {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.jump {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
}

.jump a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.22s ease;
}

.jump a span {
  width: 14px;
  height: 1px;
  background: var(--faint);
  transition:
    width 0.22s ease,
    background 0.22s ease;
}

.jump a:hover {
  color: var(--ink);
}

.jump a:hover span {
  width: 30px;
  background: var(--ink);
}

.sidebar-foot {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.sidebar-foot a,
.pub-links a,
.email-link {
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.sidebar-foot a:hover,
.pub-links a:hover,
.email-link:hover {
  border-color: var(--ink);
}

.content {
  min-width: 0;
  padding: 58px 64px 42px 56px;
}

.section {
  margin-bottom: 62px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 42px;
}

.section:last-child {
  border-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title h2 {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.lead {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.42;
}

.intro-section p:not(.lead),
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.interests span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(47, 111, 104, 0.06);
}

.publication {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.publication:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.pub-meta {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-body h3,
.timeline-item h3 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.pub-body p,
.timeline-item p {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 34px 24px 28px;
  }

  .portrait {
    width: 116px;
    margin-bottom: 22px;
  }

  .jump {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 28px;
  }

  .jump a {
    padding: 2px 0;
  }

  .jump a span {
    display: none;
  }

  .sidebar-foot {
    flex: none;
    margin-top: 28px;
  }

  .content {
    padding: 34px 24px 36px;
  }

  .lead {
    font-size: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .identity h1 {
    font-size: 29px;
  }

  .content {
    padding-inline: 18px;
  }

  .sidebar {
    padding-inline: 18px;
  }

  .section {
    margin-bottom: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    gap: 10px;
  }

  .section-title h2 {
    font-size: 12px;
  }

  .lead {
    font-size: 22px;
  }

  .pub-body h3,
  .timeline-item h3 {
    font-size: 20px;
  }
}
