:root {
  --text: #1f2328;
  --muted: #57606a;
  --accent: #0969da;
  --border: #d0d7de;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.header-text {
  flex: 1;
  min-width: 240px;
}

.name {
  font-size: 1.9rem;
  margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.position {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.95rem;
}

.links li::after {
  content: "·";
  margin-left: 16px;
  color: var(--muted);
}

.links li:last-child::after {
  content: "";
  margin: 0;
}

/* Sections */
.section {
  margin-top: 40px;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

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

/* Publications */
.pub-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.publications {
  padding-left: 20px;
  margin: 0;
}

.pub {
  margin-bottom: 14px;
}

.pub-title {
  font-weight: 600;
}

.pub-authors {
  color: var(--text);
}

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

.pub-link {
  font-size: 0.9rem;
}

/* Contact */
.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact li {
  margin-bottom: 6px;
}

/* Footer */
.footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 540px) {
  .container {
    padding: 32px 18px 48px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .photo {
    width: 110px;
    height: 110px;
  }
  .name {
    font-size: 1.6rem;
  }
}
