.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(15, 23, 42, 0.45);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}
body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}
.site-header__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .site-header__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.nav-bar > a:first-child {
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: nowrap;
  flex: 1;
}
@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
  }
  .nav-links {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
  .nav-link--settings {
    margin-left: 0;
  }
}
.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.nav-link--settings {
  margin-left: auto;
}
.nav-link:hover {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
}
.nav-link.is-active {
  color: #facc15;
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.14);
}
body.theme-light .nav-link {
  color: rgba(15, 23, 42, 0.6);
}
body.theme-light .nav-link:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.35);
}
body.theme-light .nav-link.is-active {
  color: #b45309;
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.24);
}
.site-header__menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .site-header__menu {
    flex-direction: row;
    align-items: center;
  }
}
