:root {
  --paper: #efece6;
  --ink: #141414;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --ink: #ece8e1;
  }
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Anybody', system-ui, sans-serif;
  overflow: hidden;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  padding: 0 16px;
  perspective: 1000px;
}

.title {
  margin: 0;
  display: flex;
  font-size: clamp(3rem, 14vw, 13rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.title span {
  display: inline-block;
  font-variation-settings: "wght" 800, "wdth" 100;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 70ms);
}

.title span:nth-child(1) { --i: 0; }
.title span:nth-child(2) { --i: 1; }
.title span:nth-child(3) { --i: 2; }
.title span:nth-child(4) { --i: 3; }
.title span:nth-child(5) { --i: 4; }
.title span:nth-child(6) { --i: 5; }
.title span:nth-child(7) { --i: 6; }

.status {
  margin: 0;
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  font-variation-settings: "wght" 400, "wdth" 125;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title span {
    animation: none;
  }
}
