:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #475569;
  --accent: #2563eb;
  --border: #d1d5db;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

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

.hero-section,
.page-content > section {
  padding: 2.5rem 0;
}

/* Reduce spacing between consecutive sections inside page-content to match Research layout */
.page-content > section + section {
  padding-top: 1rem;
}

.hero-section {
  text-align: center;
  background: #e7edf5;
  border-radius: 0;
  padding: 3rem 1rem;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0.75rem auto 0;
  display: block;
  border: 4px solid rgba(37, 99, 235, 0.16);
}

.hero-links {
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.08);
}

.hero-links img {
  width: 22px;
  height: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-subtitle {
  margin: 0.35rem 0 1.25rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--muted);
  line-height: 1.25;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-section h1,
.page-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 0;
}

.hero-text,
.intro {
  max-width: 730px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button {
  background: var(--accent);
  color: white;
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: white;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.feature-grid,
.content-section,
.poster-grid {
  display: grid;
  gap: 1.5rem;
}

/* --- Publication stacked cards (image under title) --- */
.pub-grid {
  display: grid;
  gap: 1rem;
}

.pub-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pub-thumb-large {
  width: 100%;
  max-width: 880px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0.6rem 0 0.9rem 0;
}

.pub-info h2,
.pub-card h2 {
  margin: 0 0 0.6rem 0;
  font-size: 1.25rem;
}

@media (min-width: 1000px) {
  .pub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.poster-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 0.6rem;
}

.poster-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.poster-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.poster-info a {
  color: inherit;
}

.poster-info a:hover .poster-title {
  color: var(--accent);
}

.poster-venue {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.poster-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.keyword-section {
  padding: 1rem 0 2.5rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.keyword-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

 

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}

.feature-grid article,
.card {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.feature-grid h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.project-logo {
  display: block;
  float: left;
  width: 180px;
  height: auto;
  margin: 0 1.2rem 1rem 0;
}

@media (max-width: 640px) {
  .project-logo {
    float: none;
    display: block;
    width: 200px;
    margin: 0 auto 1rem;
  }
.card p,
.resume-item p {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  color: #64748b;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resume-item {
  margin-top: 1rem;
}

.resume-item h3 {
  margin-bottom: 0.45rem;
}

.skill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.skill-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.5rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions {
    justify-content: center;
  }
}
