:root {
  --text: #333333;
  --muted: #666666;
  --link: #1772d0;
  --link-hover: #f09228;
  --border: #e8e8e8;
  --highlight: #ffffd0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Lato, Verdana, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.page {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(210px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 20px;
}

.profile h1 {
  margin: 0 0 22px;
  color: #222222;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.profile-tagline {
  margin: -12px 0 22px !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.profile-tagline span {
  display: block;
  font-weight: 400;
}

.profile p {
  margin: 0 0 14px;
}

.profile-links {
  margin-top: 18px !important;
  text-align: center;
}

.profile-photo {
  margin: 0;
  text-align: center;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

section {
  padding: 18px 20px 4px;
}

.section-title {
  margin: 0 0 16px;
  color: #222222;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.work-item {
  margin: 0 0 20px;
}

.work-item h3,
.publication h3 {
  margin: 0 0 5px;
  color: #222222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.work-item p {
  margin: 0;
}

.publication {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.publication:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.publication-image {
  display: block;
  width: 200px;
  max-height: 145px;
  object-fit: contain;
  border-radius: 4px;
}

.publication p {
  margin: 2px 0;
}

.venue {
  font-style: italic;
}

.publication-links {
  margin-top: 4px !important;
}

.awards {
  margin: 0;
  padding-left: 20px;
}

.awards li {
  margin-bottom: 8px;
}

.site-footer {
  padding: 26px 20px 0;
  color: #888888;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 22px, 900px);
    padding-top: 8px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile h1 {
    font-size: 28px;
  }

  .profile-photo {
    grid-row: 1;
  }

  .profile-photo img {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .publication-image {
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .site-footer {
    text-align: center;
  }
}
