:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #fff;
  background: #141a23;
}

* { box-sizing: border-box; }

body { margin: 0; }

h1, h2, p { margin: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(.75rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  text-align: center;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #141a23 url("/img/bg-poster.webp") center / cover no-repeat;
}

.backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(12, 17, 25, .58);
}

.backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.backdrop video.is-playing { visibility: visible; }

.container {
  width: min(100%, 44rem);
  margin: auto;
}

.logo {
  display: block;
  width: clamp(8.5rem, 26vw, 14rem);
  height: auto;
  margin: 0 auto .85rem;
}

@media (prefers-reduced-motion: no-preference) {
  .landing.motion-enabled .logo {
    animation: breathe 5s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.container h1 {
  margin: .45rem 0 .25rem;
  font-size: clamp(1.95rem, 5.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.status {
  width: fit-content;
  margin-inline: auto;
  padding: .25rem .65rem;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  font-size: .875rem;
  color: #eff3fa;
}

.tagline {
  font-size: clamp(1.13rem, 3vw, 1.5rem);
  font-weight: 650;
}

.intro, .availability {
  max-width: 60ch;
  margin: .75rem auto 0;
  color: #f1f3f7;
  text-wrap: pretty;
}

.availability {
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .32);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.75rem, 3vw, 1.25rem);
  margin: 1rem 0;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-width: 7rem;
  max-width: 100%;
  min-height: 5.5rem;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: .6rem;
  background: rgba(20, 26, 35, .8);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.action .icon { font-size: clamp(1.95rem, 5vw, 2.65rem); }

.action-primary {
  background: #4149af;
  border-color: #a3a9f8;
}

.action:hover,
.action:focus-visible {
  background: #313b4b;
  border-color: #fff;
  transform: translateY(-2px);
}

.action-primary:hover,
.action-primary:focus-visible { background: #4c55c4; }

.site-footer { padding-top: 1rem; }

.site-footer a,
.motion-toggle,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #f1f3f7;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-links,
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .9rem;
}

.footer-links,
.site-footer > a { font-size: .875rem; }

.social { column-gap: .35rem; }

.social a {
  justify-content: center;
  width: 2.75rem;
  border-radius: .35rem;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background-color .18s ease;
}

.social a:hover,
.social a:focus-visible { background: rgba(255, 255, 255, .16); }

.motion-toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.container-compact { max-width: 34rem; }

@font-face {
  font-family: "Font Awesome Brands";
  src: url("/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Font Awesome Solid";
  src: url("/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
  font-display: block;
}

.icon {
  font-family: "Font Awesome Brands";
  font-weight: normal;
  line-height: 1;
}

.icon-join, .icon-home { font-family: "Font Awesome Solid"; }

.icon-discord::before { content: "\f392"; }
.icon-instagram::before { content: "\f16d"; }
.icon-facebook::before { content: "\f09a"; }
.icon-twitter::before { content: "\f099"; }
.icon-twitch::before { content: "\f1e8"; }
.icon-join::before { content: "\f2f6"; }
.icon-home::before { content: "\f015"; }

@media (prefers-reduced-motion: reduce) {
  .action, .social a { transition: none; }
  .action:hover, .action:focus-visible { transform: none; }
}
