:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1c1f24;
  --text-muted: #5b6270;
  --accent: #1f5fb0;
  --border: #e3e6eb;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

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

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

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

a:hover {
  text-decoration: underline;
}

h1, h2 {
  line-height: 1.25;
}

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hero-text h1 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.tagline {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.affiliation {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 600;
}

main {
  padding: 48px 24px 24px;
}

section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:last-child {
  border-bottom: none;
}

.year {
  display: inline-block;
  min-width: 52px;
  font-weight: 700;
  color: var(--accent);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.pub-list li:last-child {
  border-bottom: none;
}

.more-pubs {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer {
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .links {
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1c1f24;
    --text: #e8eaed;
    --text-muted: #9aa1ac;
    --accent: #6ea8ff;
    --border: #2a2e35;
  }
}
