/* Sticky header: big logo on the left, navigation pinned to the right. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  background: rgba(14, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 84px;
  height: 60px;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--text-2);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .brand-mark {
    width: 60px;
    height: 43px;
  }

  .brand-name {
    font-size: 21px;
  }

  .site-nav li:not(:last-child) {
    display: none;
  }

  .site-nav .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }
}

/* On tiny screens the name is only read out, so the logo link keeps an accessible name. */
@media (max-width: 400px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
