:root {
  --text: #202124;
  --muted: #60666d;
  --line: #e3e3e3;
  --bg: #ffffff;
  --accent: #24527a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

p,
ul,
ol {
  margin: 0;
}

.container {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 52px 0 30px;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 34px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  position: relative;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav a:hover,
.nav a:focus,
.nav a.is-active {
  color: var(--accent);
}

.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.intro-text {
  flex: 1;
  min-width: 0;
}

.profile-photo {
  width: 132px;
  height: 168px;
  object-fit: cover;
  border: 1px solid var(--line);
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 38px;
  letter-spacing: 0;
}

h2 {
  font-size: 23px;
  margin-bottom: 18px;
}

.affiliation {
  margin-top: 8px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 10px;
  font-size: 16px;
}

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

.section:last-of-type {
  border-bottom: none;
}

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

.entry {
  margin-top: 18px;
}

.entry:first-of-type {
  margin-top: 0;
}

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

.entry-title {
  font-weight: 600;
}

.meta {
  color: var(--muted);
}

.publication-group {
  margin-top: 28px;
}

.publication-group:first-of-type {
  margin-top: 0;
}

.publication-heading {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.publication-list {
  padding-left: 22px;
}

.publication {
  margin-top: 18px;
  padding-left: 4px;
}

.publication:first-child {
  margin-top: 0;
}

.publication p + p {
  margin-top: 3px;
}

.pub-title {
  line-height: 1.45;
}

.author-me {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.plain-list {
  padding-left: 20px;
  margin-top: 8px;
}

.plain-list li + li {
  margin-top: 5px;
}

.honors-list {
  margin-top: 0;
}

.footer {
  padding: 18px 0 36px;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  main {
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  body.is-navigating main {
    opacity: 0.72;
    transform: translateY(3px);
  }

  body.js-ready .section {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 520ms ease,
      transform 520ms ease;
  }

  body.js-ready .section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 800px);
  }

  .site-header {
    padding-top: 34px;
  }

  .nav {
    margin-bottom: 28px;
  }

  .intro {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .profile-photo {
    width: 112px;
    height: 142px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .section {
    padding: 28px 0;
  }
}
