@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --sage:       #6b8f6e;
  --sage-light: #e8f0e8;
  --sage-dark:  #4a6b4d;
  --text:       #1a1a1a;
  --muted:      #5a5a5a;
  --border:     #dde5dd;
  --bg:         #fafaf8;
  --white:      #ffffff;
  --max-w:      960px;
}

body {
  font-family: "Lato", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Nav ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-name {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage-dark); text-decoration: none; }

/* ── Page wrapper ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Home: profile block ── */
.profile {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.profile-photo {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
}

.profile-text h1 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 0.15rem;
}

.profile-text .role {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.profile-text p { margin-bottom: 0.9rem; }

/* ── Icon links ── */
.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}
.icon-link:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  text-decoration: none;
}
.icon-link svg { flex-shrink: 0; }

/* ── Section headings ── */
h2 {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 2.5rem 0 1.2rem;
}

/* ── Research interests tags ── */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.interest-tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  background: var(--sage-light);
  border-radius: 12px;
  color: var(--sage-dark);
}

/* ── Research page ── */
.research-theme {
  margin-bottom: 2rem;
}
.research-theme h3,
#research-content h3 {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
  margin-top: 2rem;
}
#research-content h3:first-child { margin-top: 0; }
#research-content h3 { color: var(--sage-dark); font-weight: bold; }
#research-content p { margin-bottom: 1rem; font-size: 0.92rem; }

/* ── Markdown prose (about) ── */
#about-text p { margin-bottom: 0.9rem; font-size: 0.92rem; }

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

.pub-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:first-child { padding-top: 0; }

.pub-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  display: block;
}
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--sage-dark); }

.pub-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pub-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pub-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}
.pub-link:hover { border-color: var(--sage); color: var(--sage-dark); text-decoration: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .icon-links { justify-content: center; }
  .interests { justify-content: center; }
  .nav-name { display: none; }
  .nav-links { gap: 1.2rem; }
}
