.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  gap: clamp(0.85rem, 2.5vw, 2rem);
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-inline);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.brand {
  display: inline-flex;
  min-width: 0;
  width: fit-content;
  align-items: center;
}

.brand__logo {
  width: clamp(10.5rem, 17vw, 13.5rem);
  max-height: calc(var(--header-height) - 1.5rem);
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.header-action {
  display: inline-grid;
  width: 2.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(222, 97, 34, 0.5);
  color: #120b07;
  background: linear-gradient(180deg, #ef7a2a, var(--color-orange));
  box-shadow: 0 10px 22px rgba(222, 97, 34, 0.18);
  transition: border-color 160ms ease, transform 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--color-orange-dark);
  transform: translateY(-1px);
}

.header-action svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1rem, 2.8vw, 2rem);
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  scroll-target-group: auto;
}

.site-nav a {
  padding: 0.45rem 0;
}

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

.site-nav a:target-current {
  text-decoration: underline;
  text-underline-offset: 0.45rem;
}

.nav-target-sentinel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: clamp(0.65rem, 2vw, 1rem);
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 0.75rem;
  }

  .brand__logo {
    width: clamp(9rem, 48vw, 10.5rem);
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-action {
    width: 2.45rem;
  }

  .header-action svg {
    width: 1.12rem;
    height: 1.12rem;
  }
}
