/* === Reset & Base === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Source+Serif+4:wght@600;700&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  background: #ffffff;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Sticky Nav === */
nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding: 0.75rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a2332;
}

nav .nav-links a {
  margin-left: 1.5rem;
  font-weight: 600;
  color: #1a2332;
  font-size: 0.95rem;
}

nav .nav-links a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* === Hero === */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
  background: #f9fafb;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 0 0 4px 4px;
}

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.hero-info h1 {
  font-size: 1.8rem;
  color: #1a2332;
  margin-bottom: 0.25rem;
}

.hero-info p {
  margin-bottom: 0.2rem;
}

.hero-info .links a {
  margin-right: 1rem;
  font-weight: 600;
}

/* === Section Headings === */
h2 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.55rem;
  color: #1a2332;
  border-left: 3px solid #2563eb;
  padding-left: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

h3 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.15rem;
  color: #1a2332;
  margin: 1.5rem 0 0.75rem;
}

/* === Sections === */
section {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

section:last-child {
  border-bottom: none;
}

section::after {
  content: "";
  display: table;
  clear: both;
}

[id] {
  scroll-margin-top: 4rem;
}

section p {
  margin-bottom: 0.75rem;
}

/* === Research Figures === */
.pillar-figure {
  float: right;
  max-width: 280px;
  margin: 0 0 1rem 1.5rem;
}

.science-figures {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin: 1rem 0;
}

.science-figures img {
  flex: 1;
  min-width: 0;
  max-width: 50%;
  height: 200px;
  object-fit: contain;
}


/* === Research Bullets === */
.research-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.research-bullets li {
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
}

.research-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #2563eb;
}

.research-bullets li a {
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

/* === Paper Lists === */
.paper-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.paper-list li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.paper-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2563eb;
}


/* === Awards === */
.award {
  color: #dc2626;
  font-weight: 600;
}

/* === Group === */
.student-list {
  list-style: none;
  padding: 0;
}

.student-list li {
  padding: 0.2rem 0;
}

/* === Publications === */
details {
  margin-bottom: 0.5rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2332;
  padding: 0.4rem 0;
}

summary:hover {
  color: #2563eb;
}

details ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

details ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f3f4f6;
}

details ul li:last-child {
  border-bottom: none;
}

/* === Teaching === */
.teaching-list {
  list-style: none;
  padding: 0;
}

.teaching-list li {
  padding: 0.3rem 0;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  color: #9ca3af;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .pillar-figure {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1rem auto;
  }

  .research-overview-row {
    flex-direction: column;
  }

  .science-figures {
    flex-direction: column;
  }

  .science-figures img {
    max-width: 100%;
  }

  .research-overview-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

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

  h2 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }
}
