:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1f2937;
  --muted: #667085;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.container {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 16px;
}

.hero,
.page-title {
  text-align: center;
  padding: 56px 28px;
}

.hero h1,
.page-title h1 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #111827;
}

.lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero p:not(.lead) {
  max-width: 680px;
  margin: 18px auto 0;
}

.profile-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-link:hover {
  color: var(--accent-dark);
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.profile-link img,
.profile-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.35rem;
  color: #111827;
}

.card p {
  margin-top: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.tag-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: #374151;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

.publications {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.publications li {
  margin-bottom: 24px;
  padding-left: 6px;
}

.publications li:last-child {
  margin-bottom: 0;
}

.publications em {
  color: #111827;
}

.journal {
  font-weight: 700;
}

.contact-card {
  text-align: center;
}

address {
  font-style: normal;
  color: var(--muted);
}

footer {
  width: min(900px, calc(100% - 40px));
  margin: 36px auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .container {
    width: min(100% - 28px, 900px);
    padding-top: 28px;
  }

  .hero,
  .page-title {
    padding: 36px 10px;
  }

  .card {
    padding: 24px;
    border-radius: 16px;
  }
}



.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline-content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.08rem;
}

.timeline-content p {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
