:root {
  --bg: #0b0b0b;
  --fg: #ffffff;
  --logo: #d3d3cd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Typography from the design: Inter Tight 640 / 64px / 100% / -2% */
.title {
  font-size: clamp(40px, 13vw, 64px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.6s ease;
}

/* With JS on, the title waits for the font (and WebGL) before showing. */
.js .title {
  opacity: 0;
}

.js.is-fallback .title {
  opacity: 1;
}

.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.is-gl .fx {
  opacity: 1;
}

.brand {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  text-align: center;
}

.logo {
  display: block;
  width: 132px;
  height: auto;
  color: var(--fg);
}

.social {
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.45);
}

.social a {
  color: var(--fg);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}

.social a:hover,
.social a:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

@media (max-width: 600px) {
  .brand {
    bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  .logo {
    width: 112px;
  }

  .social {
    font-size: 13px;
  }
}

@media (max-height: 520px) {
  .brand {
    bottom: 24px;
  }
}
