.brand-logo {
  display: block;
  width: clamp(220px, 27vw, 360px);
  height: auto;
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  padding: .25rem .35rem;
  border: 1px solid rgba(210, 180, 124, .55);
  background: rgba(8, 10, 12, .72);
  color: #f8f6f0;
}

.language-switch button {
  min-width: 2rem;
  padding: .25rem .35rem;
  border: 0;
  background: transparent;
  color: #b8c0bd;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: #d2b47c;
  color: #080a0c;
}

.language-switch button:focus-visible {
  outline: 2px solid #f8f6f0;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .topbar {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 68px;
    gap: .75rem;
    padding-inline: 1rem;
  }

  .brand {
    flex: 0 1 190px;
  }

  .brand-logo {
    width: min(100%, 180px);
    height: auto;
  }

  .header-tools {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-tools nav {
    display: none;
  }

  .hero,
  .article-shell {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: min(100%, 180px);
  }

  .language-switch {
    gap: .15rem;
    padding: .2rem;
  }

  .language-switch button {
    min-width: 1.8rem;
    padding-inline: .25rem;
  }
}
