:root {
  --bg: #ffffff;
  --fg: #1c1f24;
  --muted: #5e6672;
  --accent: #2f6fed;
  --line: #e8eaee;
  --thumb-bg: #f4f6f9;
  --maxw: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

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

/* ---------- Hero ---------- */
.hero {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  background: var(--thumb-bg);
  border: 1px solid var(--line);
}

.hero-text h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 500;
}

.bio {
  margin: 0 0 16px;
  color: var(--fg);
}

.links {
  font-size: 0.95rem;
  color: var(--muted);
}
.links span { margin: 0 6px; color: #c4c9d1; }

/* ---------- Sections ---------- */
.section {
  margin-bottom: 52px;
}

.section h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section p { margin: 0 0 14px; }

/* ---------- Publications ---------- */
.pub-list, .news-list { list-style: none; margin: 0; padding: 0; }

.pub {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
}

.pub-thumb {
  flex-shrink: 0;
  width: 200px;
}
.pub-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--thumb-bg);
  display: block;
}

.pub-body h3 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}
.authors { margin: 0 0 2px; font-size: 0.95rem; }
.contrib { margin: 0 0 4px; font-size: 0.82rem; color: var(--muted); }
.venue { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; font-style: italic; }
.pub-links { margin: 0; font-size: 0.9rem; }

/* ---------- News ---------- */
.news-list li {
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
}
.news-list .date {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  width: 64px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .page { padding: 48px 20px 72px; }
  .hero { flex-direction: column; text-align: center; gap: 20px; }
  .links { text-align: center; }
  .pub { flex-direction: column; gap: 12px; }
  .pub-thumb { width: 100%; max-width: 320px; }
  .news-list li { flex-direction: column; gap: 2px; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e6e8ec;
    --muted: #9aa3b2;
    --accent: #6ea0ff;
    --line: #2a2e36;
    --thumb-bg: #1d2026;
  }
}
