/* App-inspired lockup for the website's existing header and footer. */
.brand:has(.brand-app-tile) {
  gap: .5rem;
}

.brand .brand-app-tile {
  display: block;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  max-width: none;
  border-radius: .75rem;
}

.brand .brand-wordmark {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.site-header .brand:has(.brand-app-tile) {
  flex: none;
  min-height: 44px;
  border-radius: .75rem;
}

.site-header .brand:has(.brand-app-tile):focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 4px;
}

@media (max-width: 42rem) {
  .site-header .brand .brand-app-tile {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
  }

  .site-header .brand .brand-wordmark {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* Preserve the menu and app button on tight screens and long translations. */
@media (max-width: 25rem) {
  .site-header .brand .brand-wordmark {
    font-size: .875rem;
    line-height: 1.25rem;
  }
}

@media (max-width: 22.5rem) {
  .site-header .brand .brand-wordmark {
    display: none;
  }
}

@media (max-width: 24rem) {
  html:lang(de) .site-header .brand .brand-wordmark,
  html:lang(fr) .site-header .brand .brand-wordmark {
    display: none;
  }
}
