:root {
  --text: #24292f;
  --muted: #6e7781;
  --accent: #1f6feb;
  --border: #eaecef;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent);
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.5rem;
}

/* ---- Profile header ---- */

.profile {
  text-align: center;
  margin-bottom: 4rem;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.profile h1 {
  margin: 1.25rem 0 0.125rem;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.affiliation {
  margin: 0;
  color: var(--muted);
}

.contacts {
  margin: 0.625rem 0 0;
}

.contacts a {
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.contacts .sep {
  color: var(--border);
  margin: 0 0.5rem;
}

/* ---- Sections ---- */

section {
  margin-bottom: 3rem;
}

h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

section p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Research interests ---- */

.interests li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.interests li + li {
  margin-top: 0.5rem;
}

.interests strong {
  margin-right: 0.5rem;
}

.interests .desc {
  color: var(--muted);
}

/* ---- Education ---- */

.education li {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.education .degree {
  font-weight: 600;
}

.education .school {
  color: var(--muted);
}

.education .school::before {
  content: " \00b7 ";
  color: var(--border);
}

.education .period {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Footer ---- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

::selection {
  background: rgba(31, 111, 235, 0.15);
}

@media (max-width: 480px) {
  main {
    padding-top: 3rem;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }
}
