/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f5f7;
}

/* Page layout */
.page {
  max-width: 900px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
}

/* Header */
.header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.name-block {
  flex: 1;
}

.headshot {
  width: 140px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ddd;
  flex-shrink: 0;
  object-fit: cover;
}

.name-block h1 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.affiliation {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.contact {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: #eaeaff;
  border-color: #b3b3ff;
  transform: translateY(-1px);
}

/* Sections */
main section {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

main section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #111;
}

#about p {
  margin-bottom: 0.6rem;
}

#about p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 0.92rem;
  color: #555;
}

/* Publications */
.pub-list {
  list-style: none;
}

.pub-list li {
  margin-bottom: 1rem;
}

.pub-list li:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-weight: 600;
}

.pub-authors, .pub-venue {
  font-size: 0.9rem;
  color: #555;
}

.pub-authors strong {
  color: #333;
}

/* Projects & items */
.item {
  margin-bottom: 1.25rem;
}

.item:last-child {
  margin-bottom: 0;
}

.item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.item-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.35rem;
}

.item p {
  font-size: 0.93rem;
}

.item-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Honors */
.honors-list {
  list-style: none;
}

.honors-list li {
  font-size: 0.93rem;
  color: #444;
}

/* Bio */
#bio p {
  font-size: 0.95rem;
}

/* Footer */
.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Links */
a {
  color: #2b4bff;
}

a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    margin-top: 1.5rem;
  }
  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1rem;
  }
  .headshot {
    width: 120px;
  }
}
