:root {
  color-scheme: light;
  background: #d1fa12;
  color: #000;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100svh;
  overflow: hidden;
  background: #d1fa12;
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background: linear-gradient(125deg, #d8fc22, #d1fa12 48%, #c5f31a);
}

.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  inset: -35%;
  will-change: transform;
}

.atmosphere::before {
  background:
    radial-gradient(ellipse at 27% 34%, #f0ff9e99, transparent 44%),
    radial-gradient(ellipse at 75% 68%, #94dd364d, transparent 45%);
  animation: drift-light 27s ease-in-out infinite alternate;
}

.atmosphere::after {
  background:
    radial-gradient(ellipse at 70% 20%, #e8ff643d, transparent 40%),
    radial-gradient(ellipse at 25% 80%, #b6ed3438, transparent 40%);
  animation: drift-shade 34s ease-in-out infinite alternate;
}

main {
  display: grid;
  place-items: center;
  min-height: 100svh;
  position: relative;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.brand {
  width: min(82vw, 1180px);
  margin: 0;
  line-height: 0;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: #000;
}

.glyph {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: arrive 1.15s cubic-bezier(.22, 1, .36, 1) both;
}

.glyph:nth-child(1) { animation-delay: .08s; }
.glyph:nth-child(2) { animation-delay: .15s; }
.glyph:nth-child(3) { animation-delay: .23s; }
.glyph:nth-child(4) { animation-delay: .32s; }
.glyph:nth-child(5) { animation-delay: .40s; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(28px) rotate(1.5deg) scale(.97); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: blur(0); }
}

@keyframes drift-light {
  from { transform: translate(-5%, -3%) rotate(-8deg) scale(1); }
  to { transform: translate(8%, 6%) rotate(12deg) scale(1.12); }
}

@keyframes drift-shade {
  from { transform: translate(8%, 4%) rotate(10deg) scale(1.08); }
  to { transform: translate(-7%, -5%) rotate(-12deg) scale(1); }
}

@media (max-width: 600px) {
  .brand { width: 88vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .atmosphere::before, .atmosphere::after { will-change: auto; }
}
