body {
  margin: 40px auto;
  max-width: 800px;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
  padding: 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}

a {
  text-decoration: none;
  color: #0051c9;
}

a:visited {
  color: #0051c9;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.intro {
  display: flex;
  align-items: center;
  gap: 5%;
}

.name {
  margin-bottom: 0.1rem;
}

.links {
  list-style-type: none;
  padding-left: 0;
  margin: 0.4rem 0 1rem;
}

.links li {
  display: inline;
}

.links li + li::before {
  content: " · ";
  color: #999;
}

.bio {
  flex: 1 1 auto;
}

.photo {
  flex: 0 0 30%;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.self-author {
  font-weight: 600;
}

.pub-title {
  font-size: 1.17em;
  font-weight: 600;
  color: #0051c9;
}

a.pub-title:hover {
  text-decoration: underline;
}

.venue {
  color: #666;
}

.pub-links a {
  display: inline-block;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  padding: 1px 9px;
  margin-right: 0.3rem;
  font-size: 0.85em;
}

.pub-links a:hover {
  border-color: #0051c9;
  background: #f2f6fd;
}

.pub p {
  line-height: 1.35;
  margin: 0.2rem 0;
}

.publications {
  padding-left: 0;
}

.publications li {
  list-style-type: none;
  padding-bottom: 10px;
}

@media (max-width: 600px) {
  .intro {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .photo {
    flex: 0 0 auto;
    width: 55%;
  }
}
