:root {
  --text-main: #222;
  --text-muted: #666;
  --accent: #5b3fa3;
  --border: #e3e3e3;
  --bg: #fafafa;
  --pill-bg: #f0f0f0;
  --pill-active-bg: #5b3fa3;
  --pill-active-text: #fff;
  --max-width: 700px;
}

* {
  box-sizing: border-box;
}

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

main, header.profile, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Profile header */

header.profile {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 32px;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-text p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-links a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-links a {
  color: var(--text-muted);
  display: inline-flex;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links svg {
  width: 22px;
  height: 22px;
}

/* Publications section */

.publications {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  padding-bottom: 60px;
}

.publications h2 {
  font-size: 1.25rem;
  margin: 0 0 20px;
}

.topic-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.topic-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.topic-pill {
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: var(--pill-bg);
  color: var(--text-main);
  cursor: pointer;
}

.topic-pill.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
}

.paper {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fff;
}

.paper h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.paper .authors {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.paper .venue {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.paper-links {
  display: flex;
  gap: 8px;
}

.paper-links a {
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}

.paper-links a:hover {
  background: var(--accent);
  color: #fff;
}

.full-list-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.full-list-note a {
  color: var(--accent);
}

/* Footer */

footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 24px 24px 48px;
}

/* Mobile */

@media (max-width: 520px) {
  header.profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
