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

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --tag-bg: #eff6ff;
  --tag-text: #1d4ed8;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Header ── */
header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.15s;
}

.links a:hover {
  opacity: 0.7;
}

/* ── Sections ── */
section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── About ── */
#about p {
  font-size: 1rem;
  color: var(--text);
}

/* ── Tags ── */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ── Publications ── */
.pub-group {
  margin-bottom: 1.5rem;
}

.pub-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pub {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.pub-title {
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.pub-venue {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.pub-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.pub-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Experience ── */
.exp-item {
  margin-bottom: 1.5rem;
}

.exp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-role {
  font-weight: 600;
  font-size: 0.95rem;
}

.exp-date {
  font-size: 0.825rem;
  color: var(--muted);
  white-space: nowrap;
}

.exp-org {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.exp-item ul {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #374151;
}

.exp-item ul li {
  margin-bottom: 0.25rem;
}

/* ── Awards ── */
.award-list {
  list-style: none;
}

.award-list li {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

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

.award-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.award-org {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

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

/* ── Responsive ── */
@media (max-width: 480px) {
  main {
    padding: 2rem 1rem 3rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}
