
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;

  width: 100%;
  height: var(--header-height);
  isolation: isolate;

  border-bottom: 1px solid var(--color-header-border);
  background: var(--color-header);
  color: var(--color-nav-text);
}

.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.105) 0.8px,
    transparent 0.9px
  );

  background-size: 15px 15px;

  content: "";
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;

  gap: 12px;

  width: 100%;
  height: 100%;

  margin: 0;
  padding-inline: 8px 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;

  color: #ffffff;
}

.brand-mark {
  display: block;
  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  overflow: hidden;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.primary-nav {
  position: relative;

  display: flex;
  align-self: stretch;
  align-items: stretch;

  gap: 0;
  min-width: 0;
}

.primary-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 100%;
  padding-inline: 14px;

  color: var(--color-nav-text);

  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;

  transition:
    color 260ms var(--motion-ease),
    transform 360ms var(--motion-ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.primary-nav a[aria-current="page"] {
  color: #ffffff;
}

.nav-indicator {
  position: absolute;
  bottom: 18px;
  left: 0;

  width: 0;
  height: 2px;

  border-radius: 2px 2px 0 0;
  background: var(--color-accent);

  box-shadow:
    0 -2px 14px rgba(255, 152, 80, 0.22);

  pointer-events: none;
  will-change: width, transform;

  transition:
    width 320ms var(--motion-ease),
    transform 420ms var(--motion-ease);
}

.login-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  margin-left: auto;
  padding: 9px 19px;

  border: 1px solid transparent;
  border-radius: 7px;

  background: #f1f2f3;
  color: #202226;

  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;

  transition:
    background 300ms var(--motion-ease),
    border-color 300ms var(--motion-ease),
    transform 300ms var(--motion-ease);
}

.login-link:hover {
  transform: translateY(-1px);

  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #ffffff;
}

.login-link:active {
  transform: translateY(0);
}

.login-link[aria-current="page"] {
  background: #f1f2f3;
  color: #202226;
}

@media (max-width: 650px) {
  .nav-shell {
    gap: 8px;
    padding-inline: 6px 10px;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .primary-nav a {
    padding-inline: clamp(7px, 1.8vw, 11px);
    font-size: 13px;
  }

  .login-link {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .nav-shell {
    gap: 4px;
    padding-inline: 4px 5px;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .primary-nav a {
    padding-inline: 6px;
    font-size: 12px;
  }

  .login-link {
    padding: 7px 9px;
  }
}
