/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #2c2c2c;
  background: #fff;
}

a {
  color: #1a5276;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ──────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
}

.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3d3d3d;
  text-decoration: none;
}

.nav-links a {
  margin-left: 2.2rem;
  font-size: 0.95rem;
  color: #000;
}

.nav-links a:hover {
  color: #1a5276;
}

/* ── Main Container ───────────────────────────── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Bio ─────────────────────────────── */
.header {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
  padding: 2.4rem 0 1.8rem;
}

.headshot {
  width: 200px;
  min-width: 200px;
  border-radius: 6px;
}

.bio h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #3d3d3d;
}

.bio .affiliations {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 2.2rem;
  line-height: 1.5;
}

.bio .about {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.bio .contact {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #1a3353;
}

.bio .links {
  margin-top: 0;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bio .links a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1.5px solid #1a3353;
  border-radius: 4px;
  color: #1a3353;
  text-decoration: none;
  font-size: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}

.bio .links a:hover {
  border-color: #1a5276;
  color: #1a5276;
}

/* ── Sections ─────────────────────────────────── */
section {
  padding: 2.4rem 0;
  border-top: 1px solid #e8e8e8;
}

section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #3d3d3d;
}

/* ── Papers ───────────────────────────────────── */
.paper {
  margin-bottom: 2.4rem;
}

.paper-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a3353;
}

.paper-authors {
  font-size: 0.92rem;
  color: #000;
  margin-top: 0.15rem;
}

.paper-status {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.2rem;
}

.paper-journal {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.paper-journal em {
  color: #c89d2c;
  font-style: italic;
}

.paper-award {
  font-size: 0.75rem;
  color: #000;
  margin-top: 0.2rem;
  font-style: italic;
}

.paper-presented {
  font-size: 0.75rem;
  color: #000;
  margin-top: 0.2rem;
}

.paper-links {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.paper-links a,
.abstract-toggle {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1.5px solid #1a3353;
  border-radius: 4px;
  color: #1a3353;
  background: none;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.paper-links a:hover,
.abstract-toggle:hover {
  border-color: #1a5276;
  color: #1a5276;
  text-decoration: none;
}

.abstract {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem 1.2rem;
  background: #f8f8f8;
  border-left: 3px solid #ddd;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

.abstract.open {
  display: block;
}

/* ── Teaching ─────────────────────────────────── */
.teaching-item {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

/* ── Footer ───────────────────────────────────── */
footer {
  margin-top: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  font-size: 0.82rem;
  color: #aaa;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .headshot {
    width: 160px;
    min-width: 160px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links a {
    margin-left: 1rem;
  }

  .bio .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .bio .links a {
    margin-right: 0;
  }
}
