/* Riled coming-soon page. Colors and type from the brand kit. */
:root {
  --bg: #0C0E12;
  --text: #F4F7FB;
  --muted: #93A0B5;
  --faint: #6C788C;
  --accent: #3DDC97;
  --coral: #FF6B7A;
  --line: rgba(255, 255, 255, 0.08);
  --wash: rgba(244, 247, 251, 0.03);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --fade: 900ms;
  --tint: 1200ms;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 48%, var(--wash) 0%, transparent 70%);
  transition: background var(--tint) ease;
}

body[data-plate="green"] {
  --wash: rgba(61, 220, 151, 0.18);
}

body[data-plate="coral"] {
  --wash: rgba(255, 107, 122, 0.16);
}

body[data-plate="dark"] {
  --wash: rgba(244, 247, 251, 0.03);
}

main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  gap: 0;
  text-align: center;
}

.wordmark {
  display: block;
  width: min(10.5rem, 42vw);
  height: auto;
  margin: 0 auto 1.15rem;
}

h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.stage {
  position: relative;
  width: min(100%, 22.5rem, calc((100dvh - 18.5rem) * 0.8));
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: #14181f;
  box-shadow:
    0 0 0 1px var(--line),
    0 18px 40px rgba(0, 0, 0, 0.35);
  touch-action: pan-y;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade) ease;
  pointer-events: none;
}

.stage img.is-on {
  opacity: 1;
  z-index: 1;
}

.signature {
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.handle {
  margin: 0.7rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.handle-name {
  letter-spacing: 0.01em;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.social:hover,
.social:focus-visible {
  color: var(--accent);
  background: rgba(61, 220, 151, 0.12);
  outline: none;
}

.social svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

@media (min-width: 800px) {
  .wordmark {
    width: 11.5rem;
    margin-bottom: 1.25rem;
  }

  h1 {
    margin-bottom: 1.5rem;
  }

  .stage {
    width: min(26rem, calc((100dvh - 20rem) * 0.8));
    border-radius: 1.15rem;
  }

  .signature {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wash,
  .stage img,
  .social {
    transition: none;
  }
}
