/* Shared header and footer component styles. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Material+Icons+Round&family=Orbitron:wght@500;600;700&display=swap");

@supports (-webkit-touch-callout: none) {
  @media (max-width: 700px) {
    body::after {
      content: "";
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 8675309;
      height: 5px;
      pointer-events: none;
      background: transparent;
    }
  }
}

html,
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #000;
  color: #fff;
}

.site-easter-egg { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; pointer-events: none; font-size: clamp(14rem, 50vw, 36rem); animation: site-easter-egg-fade 3s ease-out both; }
.site-easter-egg img { display: block; width: min(80vw, 36rem); height: auto; }

@keyframes site-easter-egg-fade {
  0%, 20% { opacity: 1; }
  100% { opacity: 0; }
}

.page-loading-overlay {
  position: fixed;
  inset: -2rem;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 220ms ease;
}

.page-loading-overlay.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.page-loading-overlay__animation {
  width: min(5rem, 20vw);
  height: min(5rem, 20vw);
  object-fit: contain;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  margin: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  font-family: "Orbitron", sans-serif;
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__inner {
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  padding-inline: 2rem;
  min-height: 4.5rem;
  justify-content: space-between;
}

.site-header__brand,
.site-footer__brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__brand-name {
  font-size: 1.25rem;
}

.site-header__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.site-header__nav,
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header__link,
.site-footer__link {
  color: inherit;
  text-decoration: none;
}

.site-header__link {
  color: rgb(255 255 255 / 0.65);
}

.site-header__link[aria-current="page"] {
  color: #fff;
}

.site-header__link:hover,
.site-header__link:focus-visible,
.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  margin-top: auto;
  padding-block: 2rem;
  background: #000;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: space-between;
}

.site-footer__section-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
}

.site-footer__section-title-link { color: inherit; text-decoration: none; }
.site-footer__section-title-link:hover { text-decoration: underline; }

.site-footer__section-icon {
  display: none;
}

.site-footer__mobile-selector {
  display: none;
}

.site-footer__section {
  justify-self: center;
}

.site-footer__divider {
  width: min(100% - 2rem, 72rem);
  margin: 2rem auto 0;
  border-top: 3px solid #fff;
}

.site-footer__meta {
  width: min(100% - 2rem, 72rem);
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.site-footer__meta span:nth-child(2) {
  text-align: center;
}

.site-footer__meta span:first-child { text-align: left; }

.site-footer__meta span:last-child {
  text-align: right;
}

.site-footer__links {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.site-footer__link--discord {
  color: #5865f2;
}

.material-icons-round {
  display: inline-block;
  font-family: "Material Icons Round";
  font-size: 1.1em;
  font-weight: normal;
  line-height: 1;
  vertical-align: -0.15em;
}

.site-footer__copyright {
  margin: 0;
}

/* Mobile mode: 700px and below. */
@media (max-width: 700px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer__section {
    width: min(100%, 18rem);
    justify-self: center;
    text-align: center;
  }

  .site-footer__mobile-selector {
    display: block;
    position: relative;
    width: min(100%, 18rem);
    margin: 0 auto 1rem;
    text-align: center;
  }

  .site-footer__mobile-selector-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: 600 1.25rem "Orbitron", sans-serif;
    cursor: pointer;
  }

  .site-footer__mobile-options {
    visibility: hidden;
    opacity: 0;
    transform-origin: top center;
    position: absolute;
    z-index: 2;
    top: calc(100% + 0.5rem);
    left: 50%;
    right: auto;
    width: max-content;
    transform: translateX(-50%);
    padding: 0.35rem 0.5rem;
    border-radius: 0.75rem;
    background: #222;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-footer__mobile-selector.is-open .site-footer__mobile-options { visibility: visible; opacity: 1; display: flex; justify-content: center; gap: 0.25rem; }
  .site-footer__mobile-options button { border: 0; border-radius: 0.5rem; padding: 0.6rem; background: transparent; color: #fff; font: 500 1rem "Inter", sans-serif; cursor: pointer; }
  .site-footer__mobile-options button:hover { background: #3a3a3a; }
  .site-footer__section { display: none; }
  .site-footer__section.is-mobile-active { display: block; animation: footer-section-in 180ms ease both; }
  .site-footer__section-title, .site-footer__section-icon { display: none; }

  .site-footer__section .site-footer__links { justify-items: center; text-align: center; }

  .site-footer__meta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__meta span:nth-child(2),
  .site-footer__meta span:last-child {
    text-align: center;
  }
  .site-footer__meta span:first-child { text-align: center; }

  .site-header__inner {
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
  }

  .site-header__nav {
    display: none;
  }
}

@keyframes footer-section-in {
  from { opacity: 0; transform: scaleY(0.92); transform-origin: top center; }
  to { opacity: 1; transform: scaleY(1); }
}
