:root {
  --fg: #1a1a1a;
  --fg-soft: #555;
  --fg-muted: #888;
  --bg: #ffffff;
  --border: #ececec;
  --radius: 8px;
  --content-max: 880px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: #d0d0d0;
  text-underline-offset: 3px;
}
a:hover { color: #000; text-decoration-color: currentColor; }

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

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 32px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}
.hero-avatar {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
}
.hero-name {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  color: var(--fg-soft);
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
}
.hero-bio {
  margin: 0 0 18px;
  color: var(--fg);
}
.hero-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-icons a {
  color: var(--fg-soft);
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.hero-icons a:hover {
  color: var(--fg);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Sections */
.section {
  margin: 0 0 48px;
  padding-top: 8px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* News */
.news {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.news::-webkit-scrollbar { width: 6px; }
.news::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  padding: 6px 0;
}
.news-date {
  text-align: right;
  padding-right: 18px;
  border-right: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-text {
  padding-left: 18px;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.5;
}
.news-text b { font-weight: 600; }
@media (max-width: 720px) {
  .news-item {
    grid-template-columns: 76px 1fr;
  }
  .news-date { font-size: 0.78rem; padding-right: 12px; }
  .news-text { padding-left: 12px; font-size: 0.9rem; }
}

/* Timeline (education, experience, awards, services) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 10px 0;
  align-items: center;
}
.timeline-item:not(:has(.timeline-logo)) {
  grid-template-columns: 1fr auto;
}
.timeline-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.timeline.compact .timeline-item { padding: 6px 0; }
.timeline-heading {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.timeline-heading.plain { font-weight: 500; }
.timeline-sub {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.95rem;
}
.timeline-date {
  color: var(--fg-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  text-align: right;
}
.timeline-loc {
  font-size: 0.8rem;
  margin-top: 2px;
  color: var(--fg-muted);
}
.timeline-role {
  color: var(--fg-soft);
  font-weight: 500;
}
.muted { color: var(--fg-muted); }

/* Publications */
.publications {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--border);
}
.pub:last-child { border-bottom: 0; }
.pub-media img {
  width: 100%;
  border-radius: var(--radius);
}
.pub-venue {
  margin: 0 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pub-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}
.pub-badge--oral {
  background: #dbeafe;
  color: #1e3a8a;
}
.pub-badge--highlight {
  background: #fed7aa;
  color: #9a3412;
}
.pub-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}
.pub-authors {
  margin: 0 0 8px;
  color: var(--fg-soft);
  font-size: 0.95rem;
}
.pub-authors .me {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--fg);
  text-underline-offset: 3px;
}
.pub-links {
  margin: 0;
  font-size: 0.9rem;
}
.pub-links a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p { margin: 4px 0; }
.visitor-count {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.visitor-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.visitor-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.visitor-number {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.visitor-sep {
  color: var(--fg-muted);
  font-weight: 400;
  margin: 0 2px;
}

/* Responsive */
@media (max-width: 720px) {
  .container { padding: 40px 20px 24px; }
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
  }
  .hero-avatar {
    width: 160px;
    height: 160px;
    order: -1;
  }
  .hero-name { font-size: 1.9rem; }
  .pub {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pub-media img { max-width: 100%; }
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    align-items: start;
  }
  .timeline-item:not(:has(.timeline-logo)) {
    grid-template-columns: 1fr;
  }
  .timeline-date {
    font-size: 0.85rem;
    grid-column: 1 / -1;
  }
  .timeline-logo { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
