/* Shared site chrome: header, navigation, social link, and footer. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem clamp(1rem, 4vw, 3rem);
  background: rgba(9, 11, 13, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(248, 244, 234, 0.1);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.mark-symbol {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.86rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.24rem;
  border: 1px solid rgba(248, 244, 234, 0.13);
  border-radius: 999px;
  background: rgba(248, 244, 234, 0.055);
  color: rgba(248, 244, 234, 0.76);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(248, 244, 234, 0.06);
}

nav a:not(.social-link) {
  padding: 0.54rem 0.74rem;
  border-radius: 999px;
  color: rgba(248, 244, 234, 0.72);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

nav a:not(.social-link):hover,
nav a[aria-current="page"] {
  background: rgba(248, 244, 234, 0.09);
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--gold);
}

.social-link {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: rgba(248, 244, 234, 0.74);
  border-radius: 50%;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(248, 244, 234, 0.09);
  color: var(--gold);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-footer {
  padding: 2.25rem clamp(1rem, 4vw, 3rem);
  color: rgba(248, 244, 234, 0.58);
  font-size: 0.85rem;
  border-top: 1px solid rgba(248, 244, 234, 0.12);
  background: #090b0d;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }
}
