/* =========================================================================
   LAYOUT — page width, header, footer, sections
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding-block: 2.5rem;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.section__head h2 {
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

/* Menu sits right after the logo; the social icons get pushed to the far right */
.header-socials {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.header-social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}

.header-social svg { width: 18px; height: 18px; }
.header-social:hover { background: var(--surface-2); }
.header-social--youtube:hover { color: var(--youtube); }
.header-social--twitch:hover  { color: var(--twitch); }
.header-social--x:hover       { color: var(--text); }

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu: collapses into a dropdown under 720px */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    padding: 0.5rem 16px 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-open .site-nav { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  padding-block: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer__mark {
  height: 44px;
  width: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

.site-footer .social-row {
  justify-content: center;
  margin-bottom: 1rem;
}
