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

:root {
  --text: #212121;
  --muted: #757575;
  --muted-light: #9e9e9e;
  --border: #e0e0e0;
  --accent: #1565c0;
  --accent-hover: #0d47a1;
  --bg: #ffffff;
  --max-width: 860px;
  --photo-size: 180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ─────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

nav ul a:hover,
nav ul a.active {
  color: var(--text);
  background: #f5f5f5;
}

/* ── Main ────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

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

section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text);
  display: inline-block;
}

/* ── About ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: var(--photo-size) 1fr;
  gap: 3rem;
  align-items: start;
}

.photo-wrapper {
  width: var(--photo-size);
  height: var(--photo-size);
  border-radius: 50%;
  overflow: hidden;
  background: #e8eaf6;
  flex-shrink: 0;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #5c6bc0;
  background: #e8eaf6;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.about-bio-col h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.15rem;
}


.bio {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.affiliations {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.affil-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.affil-label {
  font-size: 0.75rem;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 130px;
}

.affil-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.affil-logos img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity 0.15s;
}

.affil-logos img:hover {
  opacity: 1;
}

/* ── News ────────────────────────────────── */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.news-date {
  color: var(--muted-light);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.05rem;
  flex-shrink: 0;
}

.news-text {
  color: var(--text);
}

/* ── Projects ────────────────────────────── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.project-card:last-child {
  border-bottom: none;
}

.project-meta {
  padding-top: 0.1rem;
}

.project-year {
  font-size: 0.8rem;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.project-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.project-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.project-authors {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: #f5f5f5;
  border-radius: 3px;
  color: var(--muted);
}

/* ── Publications ────────────────────────── */
.pub-list {
  display: flex;
  flex-direction: column;
}

.pub-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-card:last-child {
  border-bottom: none;
}

.pub-venue-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.15rem;
  gap: 0.1rem;
}

.pub-venue {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.02em;
}

.pub-year {
  font-size: 0.75rem;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
}

.pub-title {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.pub-title a {
  color: var(--text);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub-equal {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 0.2rem;
}

.pub-venue-full {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.65rem;
}

.pub-abstract {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

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

/* ── Footer ──────────────────────────────── */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
  color: var(--muted-light);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted-light);
}

footer a:hover {
  color: var(--accent);
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 600px) {
  nav {
    padding: 0 1.25rem;
  }

  main {
    padding: 0 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .about-bio-col h1 {
    font-size: 1.5rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .news-list li {
    grid-template-columns: 70px 1fr;
  }
}
