:root {
  color-scheme: light;
  --text: #202124;
  --muted: #5f6368;
  --link: #0645ad;
  --rule: #dadce0;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

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

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
}

.portrait {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.header-text {
  min-width: 0;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 69, 173, 0.25);
}

a:hover {
  border-bottom-color: currentColor;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0 0 18px;
  font-size: 16px;
}

.links span {
  display: none;
}

.intro {
  margin: 0;
}

.interests {
  margin: 0;
  padding-left: 22px;
  columns: 2;
}

.interests li {
  margin: 0 0 4px;
  break-inside: avoid;
}

.publications {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publications li {
  margin: 0 0 18px;
}

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

.pub-links {
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .page {
    padding: 24px 18px 44px;
  }

  .header {
    display: block;
  }

  .portrait {
    width: 132px;
    height: 132px;
    margin: 0 0 16px;
  }

  .links {
    margin-bottom: 16px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 20px;
  }

  .interests {
    columns: 1;
  }

  .links span {
    margin: 0 4px;
  }
}
