:root {
  --text: #1f2428;
  --muted: #687076;
  --line: #dde5e8;
  --link: #0a6f8f;
  --link-hover: #f09228;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #fbfcfc;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.page-shell {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 36px 28px 42px;
}

.profile {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 22px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  padding-bottom: 7px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin-bottom: 4px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
}

.intro {
  font-size: 16px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 16px;
}

.links a {
  font-weight: 700;
}

.links a {
  padding: 2px 0;
}

.section {
  padding: 20px 0 18px;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}

time {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.news-list em {
  margin-right: 4px;
}

.publication {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.paper-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--line);
}

.paper-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.authors,
.venue {
  color: var(--muted);
  margin-bottom: 4px;
}

.venue {
  font-weight: 700;
}

.badge {
  display: inline;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: inherit;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.compact-list p {
  margin: 0;
}

.compact-list strong:first-child {
  color: var(--text);
}

.project-list {
  display: grid;
  gap: 4px;
}

.project-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  padding: 0;
  color: var(--text);
  border: 0;
}

.project-row:hover .project-title,
.project-row:focus-visible .project-title {
  color: var(--link-hover);
}

.project-row img {
  width: auto;
  height: 18px;
  flex: 0 0 auto;
}

.project-title {
  color: var(--link);
  font-size: 15px;
  font-weight: 400;
}

.timeline {
  display: grid;
  gap: 7px;
}

.timeline p {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.timeline span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

footer {
  margin-top: 18px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 18px 34px;
  }

  .profile {
    max-width: none;
  }

  h1 {
    font-size: 32px;
  }

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

  .paper-thumb {
    max-width: 300px;
  }

  .timeline p,
  .news-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 840px) {
  .project-row {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }
}
