:root {
  --void: #000000;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.35);
  --accent: #e10600;
  --heart: #ff69b4;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--mono);
  text-transform: lowercase;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

main.page {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) calc(env(safe-area-inset-right, 0px) + 1.5rem)
    calc(env(safe-area-inset-bottom, 0px) + 2.5rem) calc(env(safe-area-inset-left, 0px) + 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Desktop: compose the phone column in the void instead of pinning it to the top */
@media (min-width: 768px) {
  body {
    align-items: center;
  }

  main.page {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }

  .foot {
    margin-top: 2rem;
  }
}

.domain {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.line {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 13.5rem;
  aspect-ratio: 1 / 1;
}

.nine span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  animation: nine-in 1.2s var(--ease) forwards;
}

.nine span:nth-child(1) { animation-delay: 0ms; }
.nine span:nth-child(2) { animation-delay: 60ms; }
.nine span:nth-child(3) { animation-delay: 120ms; }
.nine span:nth-child(4) { animation-delay: 180ms; }
.nine span:nth-child(5) { animation-delay: 240ms; }
.nine span:nth-child(6) { animation-delay: 300ms; }
.nine span:nth-child(7) { animation-delay: 360ms; }
.nine span:nth-child(8) { animation-delay: 420ms; }
.nine span:nth-child(9) { animation-delay: 480ms; }

@keyframes nine-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nine span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.cta:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.meta {
  margin: -0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.almost {
  margin: -0.5rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.foot {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.foot a {
  color: var(--faint);
  text-decoration: none;
}

.foot a:active {
  opacity: 0.7;
}

.foot span {
  color: var(--faint);
}
