@font-face {
  font-family: Lato;
  src: url("assets/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("assets/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #232323;
  background: #fff;
  font: 15px/1.5 Lato, Arial, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

a {
  color: #1267ba;
  text-decoration: none;
  text-underline-offset: 0.14em;
}

a:hover { color: #925019; text-decoration: underline; }
a:focus-visible { outline: 2px solid #1267ba; outline-offset: 4px; }

.page {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  align-items: center;
  gap: 38px;
  margin: 44px 18px 41px;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 35px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.profile-copy p + p { margin-top: 12px; }

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
}

.profile-links {
  justify-content: center;
  margin-top: 15px;
}

.separator { color: #767676; }

section { margin: 34px 0; }

h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.section-intro, .list-section { padding: 0 18px; }
.section-intro p { margin-top: 8px; }

.publications { margin-top: 12px; }

.publication-filters {
  margin: 12px 18px 0;
  padding-bottom: 13px;
  border-bottom: 1px solid #ddd;
}

.publication-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.publication-filters button {
  min-height: 40px;
  min-width: 44px;
  padding: 7px;
  border: 0;
  border-radius: 999px;
  background: #eef0f2;
  color: #38414a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.publication-filters button:hover { background: #e1e5e9; }

.publication-filters button[aria-pressed="true"] {
  background: #1b2024;
  color: #fff;
}

.publication-filters button:focus-visible {
  outline: 2px solid #1267ba;
  outline-offset: 2px;
}

.publication-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.paper-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.paper {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
}

.paper.highlight { background: #ffffda; }

.paper figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.paper img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 116px;
  object-fit: contain;
}

.paper h3 {
  font-size: 1em;
  line-height: 1.35;
}

.paper .metadata { margin-top: 2px; }
.paper .venue { color: #424242; }
.paper .links { margin-top: 2px; }
.paper .summary { margin-top: 5px; }
.paper-list > .paper[hidden] { display: none; }

.list-section ul { margin: 12px 0 0; padding-left: 19px; }
.list-section li + li { margin-top: 4px; }
.news-date { color: #545454; font-variant-numeric: tabular-nums; }
details { margin-top: 10px; }
summary { color: #1267ba; width: fit-content; cursor: pointer; }
summary:hover { text-decoration: underline; }

footer {
  margin: 37px 18px 0;
  padding: 13px 0 30px;
  border-top: 1px solid #ddd;
  color: #545454;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 620px) {
  .page { width: calc(100% - 28px); }

  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    margin: 27px 5px 30px;
  }

  .profile-photo {
    width: 128px;
    grid-row: 1;
    justify-self: center;
  }

  .section-intro, .list-section { padding: 0 5px; }
  .publication-filters { margin-inline: 5px; }
  .publication-filters button { min-height: 44px; }
  .paper { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 7px; }
  footer { margin-left: 5px; margin-right: 5px; }
}

@media (max-width: 370px) {
  .paper { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
}
