.topbar:has(> .home-link) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.topbar:has(> .home-link) > :not(.home-link) {
  min-width: 0;
}

.home-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #263047;
  box-shadow:
    inset 0 -4px 0 rgba(38, 48, 71, 0.12),
    0 7px 0 rgba(38, 48, 68, 0.14);
  font-size: 1.6rem;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  pointer-events: auto;
}

.home-link:hover {
  transform: translateY(-1px);
}

.home-link:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -2px 0 rgba(38, 48, 71, 0.12),
    0 4px 0 rgba(38, 48, 68, 0.14);
}

.home-link:focus-visible {
  outline: 4px solid #263047;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .topbar:has(> .home-link) {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .topbar:has(> .home-link) > :last-child:not(.home-link) {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .home-link {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }
}
