@font-face {
  font-family: "Lexend";
  src: url("assets/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Colours sampled from logo.png. */
:root {
  --void: #000;
  --ink: #f2f4f7;
  --steel: #adb8c6;
  --azure: #21a9f5;
  --cobalt: #005df5;
  --navy: #0b1630;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Lexend", system-ui, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--azure);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
}

/* Hero: logo, promise, ways to follow. */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 9vh, 6rem) 1.5rem clamp(2rem, 5vh, 3rem);
  text-align: center;
}

/* Layer positions reproduce the logo.png lockup (see scripts/make_assets.py). */
.lockup {
  width: min(78vw, 27.5rem);
  margin: 0;
}

.emblem {
  display: grid;
  width: 71.713%;
  margin-left: 13.446%;
}

.emblem > img {
  grid-area: 1 / 1;
  width: 100%;
}

.wordmark {
  width: 100%;
  margin-top: -2.29%;
}

/* The ring circles back once: a small wind-up, then one turn the way the arrow points. */
@media (prefers-reduced-motion: no-preference) {
  .emblem-ring {
    animation: circle-back 1.6s 0.4s both;
  }
}

@keyframes circle-back {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  18% {
    transform: rotate(14deg);
    animation-timing-function: cubic-bezier(0.3, 0, 0.1, 1);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.tagline {
  margin: 2.5rem 0 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.intro {
  margin: 0.75rem 0 0;
  color: var(--steel);
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Game-UI button: a solid lip underneath that the face presses into. */
.button {
  --face: #14264f;
  --face-hover: #1b3266;
  --lip: #0a1530;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 0.875rem;
  background: var(--face);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 4px 0 var(--lip);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 80ms ease-out,
    box-shadow 80ms ease-out,
    background-color 150ms;
}

.button:hover {
  background: var(--face-hover);
}

.button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 1px 0 var(--lip);
}

.button-primary {
  --face: var(--cobalt);
  --face-hover: #0a66ff;
  --lip: #0036a0;
  color: #fff;
}

/* Phones: full-width buttons, one line each down to 320px. */
@media (max-width: 30rem) {
  .actions {
    flex-direction: column;
    align-self: stretch;
  }

  .button {
    padding-inline: 1rem;
    font-size: 1rem;
  }
}

/* Upcoming games: locked tiles shaped like Roblox game cards. */

.games {
  padding: 4rem 1.5rem 6rem;
  text-align: center;
}

.games h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.games p {
  max-width: 32rem;
  margin: 0.75rem auto 0;
  color: var(--steel);
  text-wrap: balance;
}

.slots {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 5vw, 2rem);
  margin-top: 3rem;
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: clamp(8.5rem, 34vw, 12.5rem);
}

.slot-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 30%, #0f2d6b, #07142e 55%, #030812);
  box-shadow:
    inset 0 0 0 1px rgb(33 169 245 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  color: var(--azure);
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 1.5rem rgb(33 169 245 / 0.5);
}

/* Blank title and stats lines, like a card whose details have not loaded. */
.slot::before,
.slot::after {
  content: "";
  order: 1;
  height: 0.75rem;
  border-radius: 1rem;
  background: var(--navy);
}

.slot::before {
  width: 78%;
  margin-top: 0.25rem;
}

.slot::after {
  width: 46%;
  height: 0.625rem;
}

.slot:nth-child(2)::before {
  width: 62%;
}

.slot:nth-child(2)::after {
  width: 54%;
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgb(173 184 198 / 0.12);
  color: var(--steel);
  font-size: 0.875rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

/* Wrap between sentences, not inside one. */
.footer span {
  display: inline-block;
}
