:root {
  --text: #1a1a1a;
  --muted: #666;
  --link: #1772d0;
  --link-hover: #f09228;
  --rule: #e5e5e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 15px/1.6 "Lato", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

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

p { margin: 0 0 12px; }

/* Intro */
.intro {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 16px;
}
.intro-text { flex: 1; }
h1 {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 20px;
}
h1 span { font-size: 22px; color: var(--muted); margin-left: 6px; }
.links { text-align: center; margin-top: 18px; }
.portrait {
  flex: none;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sections */
section { margin-top: 36px; }
h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
}

.papers { list-style: none; margin: 0; padding: 0; }
.paper { padding: 10px 0; }
.paper .title { font-weight: 700; }
.paper div { margin-top: 1px; }
.paper b { font-weight: 700; }
.paper .refs { margin-top: 2px; }
.paper p { margin: 6px 0 0; }
.venue em { font-weight: 700; }
.note { margin-top: 8px; font-size: 13px; color: var(--muted); }

.cv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  margin: 0;
}
.cv dt { color: var(--muted); }
.cv dd { margin: 0; }
.muted { color: var(--muted); }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 640px) {
  main { padding-top: 32px; }
  .intro { flex-direction: column-reverse; gap: 20px; }
  .portrait { width: 160px; height: 160px; }
  .cv { grid-template-columns: 1fr; gap: 0; }
  .cv dd { margin-bottom: 10px; }
  footer { text-align: left; }
}
