:root {
  --text: #111;
  --muted: #555;
  --border: #ddd;
  --link: #1a4f8b;
  --bg: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.55;
}

section {
  margin-top: 2rem;
}

.page {
  max-width: 900px;
  margin: 48px auto 72px;
  padding: 0 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);

}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.site-header h1 a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

nav {
  font-size: 16px;
}


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

a:hover {
  text-decoration: underline;
}

h2 {
  font-size: 22px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h3 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 400;
  /* text-decoration: underline; */
}

p {
  margin: 0 0 16px;
}

.intro::after {
  content: "";
  display: block;
  clear: both;
}

.headshot {
  float: right;
  width: 290px;
  max-width: 40%;
  margin: 0 0 18px 28px;
  border: 1px solid var(--border);
}

.paper {
  margin-bottom: 24px;
}

.paper .meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-style: italic;
}

.paper.compact {
  margin-bottom: 18px;
}

.authors {
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

footer {
  margin-top: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 620px) {
  .page {
    margin-top: 28px;
  }

  .headshot {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
  }
}

@media (max-width: 600px) {
  .site-header {
    display: block;
  }

  .site-header nav {
    margin-top: 0.5rem;
  }
}


/* Teaching ---------------- */

.teaching-section {
  margin-top: 2rem;
}

.teaching-section h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem 0;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 0.25rem;
  font-weight: 600;
}

.teaching-subsection {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.teaching-subsection h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
  text-decoration: underline;
}

.teaching-item {
  margin: 0 0 1rem 0;
}

.teaching-item h5 {
  font-size: 1rem;
  margin: 0 0 -0.15rem 0;
  font-weight: 600;
}

.teaching-item p {
  font-size: 0.95rem;
  margin: 0;
  color: #555;
}
