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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

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

a:hover {
  text-decoration: underline;
}

/* ===== Container ===== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ===== Header ===== */
header {
  margin-bottom: 10px;
}

h1 {
  font-size: 28px;
  font-weight: 400;
  color: #111;
  margin-bottom: 16px;
}

/* Side-by-side: photo+contact left, bio right */
.header-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.header-left {
  flex-shrink: 0;
}

.header-left p {
  margin-bottom: 2px;
}

.headshot {
  width: 160px;
  height: auto;
  margin-bottom: 8px;
}

.header-right {
  margin-top: -2px;
}

.header-right p {
  margin-bottom: 8px;
}

.icon-emoji {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* ===== Horizontal Rules ===== */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}

/* ===== Expandable Sections ===== */
details {
  padding: 4px 0;
}

summary {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸ ";
  font-size: 13px;
  color: #888;
}

details[open] > summary::before {
  content: "▾ ";
}

summary:hover {
  color: #1a0dab;
}

details > *:not(summary) {
  padding-left: 16px;
}

h3 {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 16px;
  margin-bottom: 10px;
}

/* ===== Research Overview ===== */
.research-overview {
  margin-bottom: 10px;
}

/* ===== Papers ===== */
.paper {
  margin-bottom: 16px;
}

.paper p {
  line-height: 1.6;
}

.paper strong {
  font-weight: 600;
  color: #111;
}

/* ===== Items (Teaching, Discussions) ===== */
.item {
  margin-bottom: 14px;
}

.item p {
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}

footer p {
  margin-bottom: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
  .container {
    padding: 24px 16px 40px;
  }

  h1 {
    font-size: 24px;
  }

  .header-row {
    flex-direction: column;
    gap: 16px;
  }

  .headshot {
    width: 130px;
  }
}
