.site-header {
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
  background: #2b2b2c;
}

.archive-page > .site-header { position: fixed; left: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.1vw, 20px);
  min-height: 60px;
  padding-inline: clamp(12px, 3vw, 40px);
}

.site-header__logo { flex: none; }
.site-header__logo img { display: block; width: 76px; height: 51px; object-fit: contain; }
.site-header__nav { flex: 1 0 auto; }
.site-header__links, .site-header__sections { margin: 0; padding: 0; list-style: none; }
.site-header__links { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 40px); }
.site-header__sections, .site-header__toggle { display: none; }

.site-header__links a {
  box-sizing: border-box;
  color: #ffbc2c;
  font: 650 12px/1.25 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: #ffbc2c4d;
  text-underline-offset: .18em;
  white-space: nowrap;
}

.site-header__links a:hover, .site-header__links a[aria-current="page"] { color: #fff; }
.site-header__links a[aria-current="page"] { text-decoration: none; }
.site-header a:focus-visible, .site-header__toggle:focus-visible { outline: 2px solid #ffe18c; outline-offset: 3px; }
.site-header__social { display: flex; flex: 1 0 auto; align-items: center; gap: 4px; }
.site-header__social span { color: #a2a2a2; font: 700 12px/1 system-ui, sans-serif; }
.site-header__social img { display: block; width: auto; height: 24px; }

@media (max-width: 900px) {
  .site-header__inner { min-height: 56px; flex-wrap: wrap; }
  .site-header__logo img { width: 66px; height: 44px; }
  .site-header__social { display: none; }
  .site-header__nav { flex: 0 0 100%; }
  .site-header__links { display: grid; gap: 0; padding: 4px 8px 8px; }
  .site-header__sections { display: grid; margin-left: 16px; }
  .site-header__links a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; white-space: normal; }
  .site-header__toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid #e9ce827a;
    border-radius: 4px;
    background: #18171e;
    color: #ffe18c;
    font: 600 14px system-ui, sans-serif;
    cursor: pointer;
  }
  .site-header__toggle:not([hidden]) + .site-header__nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    border-top: 1px solid #e9ce8250;
    background: #242229;
  }
  .site-header__toggle:not([hidden])[aria-expanded="false"] + .site-header__nav { display: none; }
}
