/* Base */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
}

.container {
  max-width: 900px; /* slightly wider for image + text layouts */
  padding: 2rem 1.5rem;
  margin: 0 auto;
}

/* Header */
.header {
  margin-bottom: 2.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.subtitle {
  margin-top: 0.3rem;
  color: #555;
}

/* Sections */
section {
  margin-top: 3rem;
}

h2 {
  font-size: 1.25rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* Lists */
ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.6rem;
}

/* Publications */
.publications li {
  margin-bottom: 1rem;
}

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

/* Links */
a {
  color: #005cc5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Image + text blocks */
.image-text {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.image-text img {
  width: 320px;          /* ↑ increased from 220px */
  max-width: 40%;        /* prevents image dominating text */
  border-radius: 6px;
}

.image-text .text {
  flex: 1;
}

.image-text.reverse {
  flex-direction: row-reverse;
}

/* Contact */
.contact {
  list-style: none;
  padding-left: 0;
}

.contact li {
  margin-bottom: 0.4rem;
}

/* Footer */
.footer {
  margin-top: 3.5rem;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive */
@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-text,
  .image-text.reverse {
    flex-direction: column;
  }

  .image-text img {
    width: 100%;
    max-width: 420px;  /* slightly larger on mobile too */
  }
}

