nav { 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  padding: 10px;
  gap: 20px
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  background-color: #AD0000;
  padding: 10px;
  border-radius: 5px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 180ms ease, outline-offset 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  outline-color: white;
  outline-offset: 5px;
}

.home-content {
  width: min(1000px, calc(100% - 32px));
  margin: 36px auto 56px;
}

.content-section {
  padding: 32px 0;
  border-bottom: 1px solid #d7d7d7;
}

.content-section:first-child {
  padding-top: 0;
}

.content-section:last-child {
  border-bottom: 0;
}

.content-section h2:not(.people-divider) {
  margin: 0 0 16px;
  color: #111;
  font-size: 2rem;
}

.content-section p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #222;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #222;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid #cfcfcf;
  border-radius: 5px;
  padding: 12px;
  color: #111;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #AD0000;
  outline: 3px solid rgba(173, 0, 0, 0.18);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 5px;
  background: #AD0000;
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #870000;
  outline: 3px solid rgba(173, 0, 0, 0.24);
  outline-offset: 2px;
}

.people-list {
  width: min(1000px, calc(100% - 32px));
  margin: 36px auto;
}

.people-section + .people-section {
  margin-top: 44px;
}

.people-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px;
  color: #111;
  font-size: 1.35rem;
}

.people-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #AD0000;
}

.person-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #d7d7d7;
}

.person-block:last-child {
  border-bottom: 0;
}

.person-image {
  width: 140px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 2.4rem;
  font-weight: bold;
  border-radius: 8px;
}

.person-image-initials {
  background: #AD0000;
  color: white;
}

.person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-name {
  margin: 0;
  color: #111;
  font-size: 1.75rem;
}

.person-role,
.person-date,
.person-bio {
  margin: 8px 0 0;
}

.person-role {
  color: #AD0000;
  font-weight: bold;
}

.person-date {
  color: #555;
}

.person-bio {
  color: #222;
  line-height: 1.55;
}

.people-error {
  color: #AD0000;
  font-weight: bold;
}

.people-empty {
  margin: 18px 0 0;
  color: #555;
}

.research-list {
  width: min(1000px, calc(100% - 32px));
  margin: 36px auto 56px;
}

.research-section + .research-section {
  margin-top: 44px;
}

.publication-list {
  margin: 0;
  padding-left: 1.4rem;
}

.publication-item,
.research-empty {
  margin-top: 14px;
  color: #222;
  line-height: 1.55;
}

.grant-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #d7d7d7;
}

.grant-block:last-child {
  border-bottom: 0;
}

.grant-provider {
  width: 120px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: white;
}

.grant-provider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.grant-name {
  margin: 0;
  color: #111;
  font-size: 1.45rem;
}

.grant-provider-name {
  margin: 8px 0 0;
  color: #AD0000;
  font-weight: bold;
}

.grant-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 16px 0 0;
}

.grant-meta dt {
  color: #555;
  font-weight: bold;
}

.grant-meta dd {
  margin: 0;
  color: #222;
}

.grant-investigators,
.grant-description {
  margin: 14px 0 0;
  color: #222;
  line-height: 1.55;
}

.grant-investigators {
  font-weight: bold;
}

.grant-abstract {
  margin-top: 18px;
}

.grant-abstract summary {
  color: #AD0000;
  font-weight: bold;
  cursor: pointer;
}

.grant-abstract p {
  margin-top: 12px;
  color: #222;
  line-height: 1.55;
}

.related-publications {
  margin-top: 18px;
}

.related-publications summary {
  color: #AD0000;
  font-weight: bold;
  cursor: pointer;
}

.related-publications .publication-list {
  margin-top: 12px;
}

.publications-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.publication-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #AD0000 !important;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 20px;
  border-radius: 8px;
  transition: all 200ms ease;
  border: 2px solid transparent;
}

.publication-link:visited {
  color: #AD0000 !important;
}

.publication-link:hover,
.publication-link:focus-visible {
  border-color: #AD0000;
  background-color: rgba(173, 0, 0, 0.08);
  transform: translateY(-4px);
  outline: none;
  text-decoration: none !important;
}

.publication-logo {
  display: block;
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.publication-link:hover .publication-logo,
.publication-link:focus-visible .publication-logo {
  transform: scale(1.1);
}

.site-footer {
  overflow: hidden;
  background: black;
  color: white;
  padding: 18px 0;
}

.site-footer p {
  text-align: center;
  min-width: 100%;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.4;
  /*animation: quote-scroll-left 24s linear infinite;*/
}

@media (max-width: 640px) {
  .person-block,
  .grant-block {
    grid-template-columns: 1fr;
  }

  .person-image,
  .grant-provider {
    width: 112px;
  }
}
