body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #1772d0; text-decoration: none; }
a:hover, a:focus { color: #f09228; }

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h2 {
  margin: 36px 0 12px;
  font-weight: normal;
  font-size: 22px;
}

/* Intro */
.intro { display: flex; gap: 24px; align-items: center; }
.intro-text { flex: 1 1 63%; }
.intro-photo { flex: 0 0 34%; margin-top: 48px; } /* line up with the paragraphs, not the name */
.intro-photo img { width: 100%; height: auto; border-radius: 4px; display: block; }
.name { margin: 0 0 8px; font-size: 32px; text-align: center; }
.links { text-align: center; }
.intro-text p { text-wrap: pretty; } /* avoid a lone word on the last line */

/* News / blog lists */
.news, .recent-posts { padding-left: 18px; margin: 0; }
.news li, .recent-posts li { margin-bottom: 4px; }
.date { color: #888; font-variant-numeric: tabular-nums; margin-right: 6px; }

/* Publications */
.note { margin: -6px 0 6px; color: #888; font-size: 13px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.pubs td { vertical-align: middle; }
.pubs .thumb { width: 28%; padding: 8px 16px 8px 0; }
.pubs .thumb img, .pubs .thumb video {
  /* same box height for every paper; contain = whole figure visible, no cropping */
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  display: block;
  border-radius: 4px;
}
.pubs .info { padding: 8px 0; }
.pubs .info p { margin: 6px 0 0; }
.papertitle { font-weight: 700; }

/* Experience / education */
.items { border-spacing: 0 6px; }
.item-date { text-align: right; color: #666; white-space: nowrap; vertical-align: top; padding-left: 12px; }

footer { margin-top: 48px; }
.visitor-map { width: 300px; max-width: 100%; margin: 0 auto; }
.credit { text-align: right; font-size: 13px; color: #888; }

@media (max-width: 640px) {
  .intro { flex-direction: column-reverse; gap: 12px; }
  .intro-photo { flex-basis: auto; width: 220px; margin-top: 0; }
  .pubs tr, .pubs td { display: block; width: 100%; }
  .pubs .thumb { padding: 0; }
  .pubs .thumb:empty { display: none; }
}
