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

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

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Top Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
  color: #2563eb;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.nav-links a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* ── Page Layout ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  gap: 3.5rem;
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 5rem;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
}

.author-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.author-bio {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.author-meta {
  list-style: none;
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 1.2rem;
}

.author-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.author-meta svg {
  color: #888;
  flex-shrink: 0;
}

.author-meta a {
  color: #2563eb;
}

.sidebar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.83rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

.sidebar-links a {
  color: #555;
}

.sidebar-links a:hover {
  color: #2563eb;
}

/* ── Main Content ── */
.content {
  flex: 1;
  min-width: 0;
}

.content section {
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f0f0f0;
}

.content p {
  margin-bottom: 0.8rem;
}

/* ── Publication List ── */
.pub-list {
  list-style: disc;
  padding-left: 1.3rem;
}

.pub-list li {
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.65;
}

.pub-list li strong {
  font-weight: 600;
}

.pub-list li a {
  font-size: 0.85rem;
  margin-left: 0.15rem;
}

.see-more {
  font-size: 0.88rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ── Education & Experience ── */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.65;
}

.year {
  display: inline-block;
  font-size: 0.83rem;
  color: #888;
  margin-left: 0.3rem;
}

/* ── Footer ── */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.82rem;
  color: #999;
}

footer a {
  color: #888;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-wrap {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1.2rem;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-sticky {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .sidebar-sticky > *:not(.avatar) {
    flex: 1;
    min-width: 200px;
  }

  .nav-inner {
    padding: 0.6rem 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  footer {
    padding: 1.5rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.7rem;
  }

  .sidebar-sticky {
    flex-direction: column;
  }
}
