:root {
  --max-width: 760px;
  --text-color: #222;
  --muted-color: #555;
  --accent-color: #8c1515; /* Yale-ish red, change if you like */
  --border-color: #e2e2e2;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0 20px;
  background: #fff;
  position: relative;
}

header.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 40px auto 20px auto;
  min-height: 273px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.headshot {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 40px;
  width: 273px;
  height: 273px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--border-color);
}

.hero-text h1 {
  margin: 0 0 4px 0;
  font-size: 2rem;
}

.subtitle {
  margin: 0 0 4px 0;
  color: var(--muted-color);
  font-size: 1.05rem;
}

.fields {
  margin: 0 0 8px 0;
  color: var(--muted-color);
  font-style: italic;
}

.contact a {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 4px;
}

.contact a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;
  font-size: 1.4rem;
}

.paper, .course {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.paper:last-child, .course:last-child {
  border-bottom: none;
}

.paper h3, .course h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: normal;
}

.paper-meta, .course-meta {
  color: var(--muted-color);
  font-style: italic;
  margin: 0 0 6px 0;
  font-size: 0.95rem;
}

.paper-links a {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 12px;
}

.paper-links a:hover {
  text-decoration: underline;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 0 40px 0;
  color: var(--muted-color);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 1100px) {
  header.hero {
    min-height: 0;
  }
  .headshot {
    position: static;
    display: block;
    transform: none;
    margin: 0 auto 20px auto;
  }
}
