/* Apple-style system font stack */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bg-secondary: #f5f5f7;
  --text-secondary: #86868b;
  --border-color: #d2d2d7;
  --radius: 12px;
  --max-width: 780px;
}

.dark {
  --bg-secondary: #1d1d1f;
  --text-secondary: #a1a1a6;
  --border-color: #424245;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

/* Home Container */
.home-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  padding: 3rem 0 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin: 1.5rem;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 0.15rem;
  font-weight: 400;
}

.institution {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

/* Sections */
.home-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.home-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}

/* Research Interests */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-pill {
  background: var(--bg-secondary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Publications */
.pub-entry {
  display: flex;
  gap: 1.2rem;
  padding: 0.8rem 0;
}

.pub-year {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 3rem;
  padding-top: 0.15rem;
}

.pub-title {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--accent);
  line-height: 1.4;
}

.pub-title:hover {
  text-decoration: underline;
}

.pub-authors, .pub-venue {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

/* Blog Posts */
.posts-list {
  display: flex;
  flex-direction: column;
}

.post-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.post-entry:last-child {
  border-bottom: none;
}

.post-title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--content);
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* View All Link */
.view-all {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

/* Visitor Map Section */
#visitor-map {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

/* Publications Page */
.publications-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}

.scholar-link {
  margin-bottom: 2rem;
}

.scholar-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.scholar-link a:hover {
  text-decoration: underline;
}

.pub-year-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

/* Blog single page title */
.post-header .post-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .pub-entry {
    flex-direction: column;
    gap: 0.2rem;
  }

  .pub-year {
    min-width: unset;
  }
}
