.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(217 208 197 / 76%);
  background: rgb(250 247 241 / 92%);
  backdrop-filter: blur(16px);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.site-header .brand strong,
.site-header .brand small {
  display: block;
}

.site-header .brand strong {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.site-header .brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-nav a,
.site-header .header-app-link {
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--terracotta);
}

.site-header .header-app-link {
  justify-self: end;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 16px;
    width: calc(100% - 32px);
    min-height: auto;
    padding: 11px 0 9px;
  }

  .site-header .brand strong {
    font-size: 14px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .header-app-link {
    padding: 7px 12px;
    font-size: 11px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 24px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 0 1px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 12px;
  }
}
