/* ---------- Base ---------- */
:root {
  --text: #1a1a1a;
  --muted: #6b7280;
  --link: #1f6feb;
  --rule: #e5e7eb;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

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

/* ---------- Header / intro ---------- */
.intro {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 12px;
}

.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: #f3f4f6;
}

.intro-text h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.role {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.links {
  font-size: 0.98rem;
}
.links span {
  color: var(--muted);
  margin: 0 6px;
}

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

h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 14px; }

ul.tight, ul.news {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
ul.tight li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
ul.tight li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

ul.news li {
  margin-bottom: 8px;
}
.news .date {
  display: inline-block;
  min-width: 74px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--muted); }

/* ---------- Publications ---------- */
.note { font-size: 0.9rem; margin-top: -4px; }
.pub-list { display: flex; flex-direction: column; gap: 24px; }
.pub { display: flex; gap: 18px; align-items: flex-start; }
.pub-thumb {
  flex: 0 0 200px;
  width: 200px;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.pub-thumb img { width: 100%; display: block; }
.pub-thumb:hover { border-color: #b9c6f5; }
.pub-body { flex: 1; min-width: 0; }
.pub-title { margin: 0 0 4px; font-weight: 600; line-height: 1.4; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--link); }
.pub-authors { margin: 0 0 2px; }
.pub-venue { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pub-year { font-weight: 600; color: #374151; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
footer {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 18px 24px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .intro {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .links span { margin: 0 4px; }
  main { padding-top: 40px; }
  .pub { flex-direction: column; gap: 10px; }
  .pub-thumb { flex-basis: auto; width: 100%; max-width: 340px; }
}
