:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666666;
  --link: #14507d;
  --rule: #e2e2e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --link: #7ab4e0;
    --rule: #33373a;
  }
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: currentColor;
}

.headshot {
  float: right;
  width: 150px;
  height: auto;
  margin: 0.3rem 0 1.25rem 1.75rem;
  border-radius: 3px;
}

ul,
ol {
  margin: 0 0 1rem;
}

.links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.links li {
  display: inline;
}

.links li::after {
  content: " · ";
  color: var(--muted);
}

.links li:last-child::after {
  content: "";
}

.interests {
  padding-left: 1.25rem;
}

.interests li {
  margin-bottom: 0.2rem;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pubs li {
  margin-bottom: 1.4rem;
}

.ptitle {
  font-weight: 600;
}

.venue {
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 480px) {
  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .headshot {
    float: none;
    display: block;
    margin: 0 0 1.5rem;
  }
}
