html {
  background: #faf9f5;
  scroll-behavior: smooth;
}

body {
  background-color: #faf9f5;
  color: #333;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  padding: 0 10px 60vh;
}

main {
  max-width: 700px;
}

a {
  color: #003399;
  text-decoration: none;
  transition: color .2s linear;
  transition-delay: .1s;
}

a:hover,
a:focus {
  color: #b3261e;
  text-decoration: underline;
  transition: color 0s linear;
}

p {
  margin: 1em 0;
}

.site-header p {
  position: relative;
  top: 0.9em;
}

.site-header {
  align-items: flex-start;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 1em;
}

.site-header > div {
  flex: 0 1 auto;
  margin-top: 1.15em;
  text-align: left;
}

h1 {
  color: #333;
  font-family: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.75em;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 -0.1em;
  position: relative;
  top: 0.48em;
}

.portrait {
  border: 0;
  height: auto;
  margin-top: 1em;
  margin-right: 72px;
  max-width: 175px;
}

nav {
  background-color: #f0eee6;
  margin: 0 0 1em;
  width: 100%;
}

nav .nav-list {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, 1fr);
  list-style-type: none;
  margin: 0;
  padding: 0;
  white-space: normal;
}

nav a {
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  line-height: 2rem;
  white-space: nowrap;
}

section {
  margin: 0 0 1.5em;
  scroll-margin-top: 0.5em;
}

h2 {
  background-color: #f0eee6;
  color: #333;
  font-size: 1.17em;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 1em 0;
  padding: 0.08em 0 0.08em 0.5em;
}

ul {
  list-style-position: outside;
  margin-bottom: 1em;
  margin-top: 1em;
  padding-left: 40px;
}

li {
  margin: 0 0 0.35em;
}

li li {
  margin-bottom: 0.2em;
}

.papers li {
  margin-bottom: 1em;
}

.hidden-paper {
  display: none;
}

.publication-toggle {
  list-style-type: none;
  margin-top: 1.2em;
}

.authors,
.date {
  color: #333;
}

.award {
  color: #9d260d;
}

details {
  margin-top: 8px;
}

summary {
  color: #003399;
  cursor: pointer;
}

strong {
  font-weight: 700;
}

@media (max-width: 640px) {
  body {
    padding: 0 10px 50vh;
  }

  .site-header {
    display: block;
  }

  .portrait {
    display: block;
    margin: 12px 0 0;
    max-width: 155px;
  }

  h1 {
    font-size: 2em;
  }

  nav .nav-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 660px) {
  nav .nav-list {
    display: flex;
    gap: 15px;
    justify-content: space-around;
  }
}
