/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #f6f7fb;
  color: #222;
}

/* Layout helpers */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / hero */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e4e6f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
}

.site-title {
  font-size: 2.2rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.03em;
}

.site-tagline {
  margin: 0 0 0.25rem;
  font-weight: 500;
  color: #355c7d;
}

.site-subtagline {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  max-width: 30rem;
  color: #555;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.site-links a {
  text-decoration: none;
  color: #3f51b5;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.site-links a:hover {
  border-bottom-color: #3f51b5;
}

.hero-photo img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid #e4e6f0;
}

/* Main content */
.main-content {
  background: #ffffff;
  margin-top: 0.75rem;
  padding: 2rem 1.25rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.section {
  margin-bottom: 2.5rem;
}

.section:last-of-type {
  margin-bottom: 0;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

.section-intro {
  margin-top: 0;
  color: #555;
  font-size: 0.95rem;
}

.about-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* Typography and links */
a {
  color: #3f51b5;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 0.9rem;
}

/* Two-column layout for Research themes/projects */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.two-column h3 {
  margin-top: 0;
  font-size: 1rem;
}

/* Selected publications */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.pub-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pub-authors {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.1rem;
}

.pub-venue {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.pub-links {
  font-size: 0.85rem;
}

/* Blog + News lists */
.list-unstyled {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.list-item {
  padding: 0.6rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.list-item:last-child {
  border-bottom: none;
}

.list-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.list-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
}

.list-link:hover {
  text-decoration: underline;
}

/* CV section */
#cv ul {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem;
  padding: 1.25rem 0 2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.footer-separator {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo img {
    width: 120px;
    height: 120px;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-list li {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .main-content {
    padding: 1.5rem 1.25rem 2rem;
  }
}
