.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 var(--space-5, 2.5rem);
  padding: 0 0 var(--space-4, 1.5rem);
  border-bottom: 1px solid var(--line, #e5e5e5);
  width: 100%;
}

/* Homepage: single rule under header, no stacked list border */
body.home .site-header {
  margin-bottom: var(--space-4, 1.5rem);
}

.site-brand {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  border: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-logo img {
  display: block;
  width: auto;
  height: 4.25rem;
  max-width: min(100%, 12rem);
  margin: 0 auto;
  object-fit: contain;
}

.site-logo:hover {
  opacity: 0.72;
}

.site-logo:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .site-header {
    margin-bottom: var(--space-4, 1.5rem);
    padding-bottom: var(--space-3, 1rem);
  }

  .site-logo img {
    height: 3.25rem;
    max-width: min(100%, 10rem);
  }
}
