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

/* ========= Base & typography ========= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #0f172a;
  background-color: #f5f5f7;
}

/* Layout */
.container {
  width: 90%;
  max-width: 880px;
  margin: 0 auto;
}

/* ========= Header / hero ========= */
.site-header {
  background-color: #ffffff;
  padding: 2.8rem 0 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.1rem;
  padding-bottom: 1.4rem;
}

.header-left {
  flex: 1;
}

.header-right {
  flex: 2;
}

.site-header h1 {
  font-size: 2.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 0.3rem;
}

.location {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

.hero-about {
  margin-bottom: 0.9rem;
  color: #1f2933;
}

.header-links a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 0.9rem;
}

.header-links a:last-child {
  margin-right: 0;
}

.header-links a:hover {
  text-decoration: underline;
}

/* Profile photo */
.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  border: 2px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

/* Small screens */
@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }
}

/* ========= Navigation ========= */
.site-nav {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.site-nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background-color: #e5edff;
  border-color: #c7d2fe;
  color: #1d4ed8;
}

/* ========= Sections ========= */
.section,
.section-alt {
  padding: 2.6rem 0;
}

.section {
  background-color: #f9fafb;
}

.section-alt {
  background-color: #ffffff;
}

.section + .section,
.section + .section-alt,
.section-alt + .section {
  border-top: 1px solid #e5e7eb;
}

.section h2 {
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  color: #111827;
}

.section p {
  margin-bottom: 0.85rem;
  color: #1f2933;
  max-width: 70ch;
}

/* ========= Research / cards ========= */
.grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

/* ========= Publications ========= */
.pub-list {
  list-style: none;
  margin-top: 1rem;
}

.pub-list li {
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid #c7d2fe;
}

.pub-title {
  font-weight: 600;
}

.pub-authors,
.pub-venue {
  font-size: 0.9rem;
  color: #4b5563;
}

.section-note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ========= Contact ========= */
.contact-list {
  list-style: none;
  margin-top: 0.5rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

/* ========= Buttons ========= */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ========= Footer ========= */
.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 1.1rem 0;
  font-size: 0.85rem;
}

/* ========= Global links ========= */
a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

/* ========= Code ========= */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  background-color: #e5e7eb;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

/* ========= Larger screens ========= */
@media (min-width: 720px) {
  .site-header h1 {
    font-size: 2.4rem;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
