.w {
  max-width: 860px;
}

:root {
  --content-width: 52rem;
}

body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.78;
}

h1 {
  letter-spacing: -0.025em;
}

h2 {
  letter-spacing: -0.018em;
}

.site-identity {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.site-logo-link {
  border-radius: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.site-logo-link:hover {
  transform: translateY(-2px);
}

.site-logo {
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  display: block;
  height: 5.5rem;
  object-fit: contain;
  width: 5.5rem;
}

.site-identity-copy p {
  font-size: 0.98rem;
  max-width: 38rem;
  opacity: 0.88;
}

#about {
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 2rem;
}

#team {
  margin-bottom: 2.5rem;
}

.content-page {
  margin-top: 2rem;
  max-width: var(--content-width);
}

.home-content {
  max-width: var(--content-width);
}

.content-page-header {
  margin-bottom: 2rem;
}

.content-page-description {
  font-size: 0.98rem;
  margin-top: 0.5rem;
  max-width: 42rem;
  opacity: 0.82;
}

.bibliography {
  margin-top: 2rem;
}

.bibliography li {
  margin-bottom: 1.25rem;
}

h2.bibliography {
  border-top: 1px solid rgba(127, 127, 127, 0.28);
  font-size: 1.15rem;
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  padding-top: 1rem;
}

ol.bibliography {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

ol.bibliography li {
  padding-left: 0.2rem;
}

.bibliography > li > ol,
.bibliography > li > ul {
  margin-top: 0.8rem;
}

.content-page p,
.home-content p {
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

#projects + .horizontal-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  max-width: var(--content-width);
  padding: 0;
  width: 100%;
}

#projects + .horizontal-list li.card {
  margin: 0;
  min-width: 0;
  width: auto;
}

#projects + .horizontal-list li.card a {
  display: block;
  height: 100%;
}

.research-figure {
  margin: 1.25rem 0 1.75rem;
  max-width: var(--content-width);
}

.research-figure img {
  border-radius: 0.8rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.research-figure figcaption {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 46rem;
  opacity: 0.78;
}

.person-card {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 112px minmax(0, 1fr);
  margin: 1rem 0 1.75rem;
}

.person-card-photo {
  aspect-ratio: 3 / 4;
  border-radius: 0.8rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  display: block;
  height: auto;
  object-fit: cover;
  width: 112px;
}

.person-card-body h4 {
  margin: 0 0 0.35rem;
}

.person-card-body p {
  margin: 0.35rem 0 0;
}

.openscience-logo {
  border-radius: 0.8rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: block;
  height: auto;
  margin: 0.85rem 0 1rem;
  max-width: 112px;
  width: 112px;
}

@media (max-width: 640px) {
  .site-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-logo {
    height: 4.75rem;
    width: 4.75rem;
  }

  .person-card {
    gap: 0.85rem;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .person-card-photo {
    width: 88px;
  }

  .openscience-logo {
    max-width: 88px;
    width: 88px;
  }

  #projects + .horizontal-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #projects + .horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
