.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(16px);
  background: rgba(5, 11, 16, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}

.site-main {
  padding: 26px 0 56px;
}

.page-banner {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(11, 21, 32, 0.92), rgba(7, 15, 21, 0.96));
  box-shadow: var(--shadow);
}

.page-banner h1 {
  max-width: 16ch;
}

.page-banner p {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--muted);
}

.page-content {
  display: grid;
  gap: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.top-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.top-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 960px) {
  .header-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(var(--site-width), calc(100vw - 20px));
  }

  .site-main {
    padding-top: 18px;
  }

  .page-banner {
    padding: 16px;
  }
}
