:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --link: #0969da;
  --border: #d1d9e0;
  --oral: #1a7f37;
  --award: #9a6700;
  --competition: #8250df;
  --workshop: #0969da;
  --school: #bc4c00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --muted: #9198a1;
    --link: #4493f8;
    --border: #30363d;
    --oral: #3fb950;
    --award: #d29922;
    --competition: #a371f7;
    --workshop: #4493f8;
    --school: #f0883e;
  }
}

* { box-sizing: border-box; }

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

main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-top: 48px; }

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

h1 { margin: 0; font-size: 2rem; }
.tabs { display: flex; gap: 24px; margin-top: 48px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button {
  margin-bottom: -1px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }

.about { display: flex; gap: 32px; align-items: flex-start; }
.photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.role { margin: 4px 0 12px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 16px; }

.list { padding-left: 20px; }
.list li { margin-bottom: 16px; }
.list span { display: block; }
.list .title { font-weight: 600; }
.list .authors, .list .venue { color: var(--muted); font-size: 0.95rem; }
.list .venue { font-style: italic; }
.list .authors b { color: var(--text); }
.list .note { display: inline; font-size: 0.85rem; font-style: italic; }
.pub-links { font-size: 0.9rem; }
.list .badge {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.4;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}
.list .oral { color: var(--oral); }
.list .award { color: var(--award); }
.list .competition { color: var(--competition); }
.list .workshop { color: var(--workshop); }
.list .school { color: var(--school); }

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .about { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .links { justify-content: center; }
  main { padding-top: 32px; }
}
