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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2d2d2d;
  background: #ffffff;
}

a { color: #2a5d8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

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

.nav-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: #1a1a1a;
}

.nav-name:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  padding-bottom: 2px;
}

.nav-links a:hover { color: #1a1a1a; text-decoration: none; }
.nav-links a.active {
  color: #1a1a1a;
  font-weight: 500;
  border-bottom: 1.5px solid #1a1a1a;
}

/* ── Main container ── */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

/* ── Page heading ── */
.page-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

/* ── About / Home ── */
.about-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 44px;
  align-items: start;
}

.photo-wrap img {
  width: 190px;
  height: 230px;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
  display: block;
}

.photo-placeholder {
  width: 190px;
  height: 230px;
  background: #f2efe9;
  border: 1px dashed #ccc;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
  gap: 6px;
}

.about-text h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 5px;
}

.about-text .position {
  font-size: 14px;
  color: #666;
  margin-bottom: 22px;
}

.about-text p {
  color: #444;
  margin-bottom: 13px;
  font-size: 14.5px;
}

.contact-row {
  margin-top: 22px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-row a { font-size: 13.5px; font-weight: 500; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 7px 16px;
  background: #1a1a1a;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.btn:hover { background: #3a3a3a; text-decoration: none !important; }

/* ── Research ── */
.research-group { margin-bottom: 42px; }
.research-group:last-child { margin-bottom: 0; }

.research-group h3 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 20px;
}

.paper {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f0f0f0;
}

.paper:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.paper-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
  line-height: 1.45;
}

.paper-title a { color: #2a5d8a; }

.paper-coauthors {
  font-size: 13.5px;
  color: #777;
  margin-bottom: 3px;
}

.paper-status {
  font-size: 13.5px;
  color: #555;
  font-style: italic;
  font-weight: 500;
  margin-top: 3px;
}

.paper-presentations {
  font-size: 10.5px;
  color: #aaa;
  margin-top: 2px;
}

.paper-badges {
  margin-top: 5px;
  margin-bottom: 4px;
}

.jmp-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a5d8a;
  background: #edf3f9;
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Teaching ── */
.teaching-block { margin-bottom: 36px; }
.teaching-block:last-child { margin-bottom: 0; }

.teaching-block h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.course-list { list-style: none; }

.course-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 20px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 14px;
}

.course-list li:last-child { border-bottom: none; }

.course-name { color: #2d2d2d; }
.course-role { font-size: 12px; color: #aaa; font-style: italic; white-space: nowrap; }
.course-term { font-size: 12.5px; color: #888; white-space: nowrap; text-align: right; }

/* ── CV page ── */
.cv-intro {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  max-width: 480px;
}

/* ── Contact page ── */
.contact-address {
  font-style: normal;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 18px;
}

.contact-address strong { color: #1a1a1a; font-weight: 500; }

.contact-link-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e8e8e8;
  padding: 24px;
  text-align: center;
  font-size: 11.5px;
  color: #ccc;
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .photo-wrap img, .photo-placeholder { width: 150px; height: 182px; }

  .nav-inner { flex-direction: column; gap: 12px; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }

  .course-list li { grid-template-columns: 1fr; gap: 2px; }
}
