:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #f7f7f7;
  --muted: rgba(247, 247, 247, 0.78);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", Arial, sans-serif;
}

.hero {
  display: flex;
  min-height: 100vh;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo {
  width: min(80vw, 40rem);
  height: auto;
  opacity: 0;
  animation: logo-fade-in 520ms ease-out 120ms forwards;
}

.message {
  min-height: 8.5rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.8;
}

.type-line {
  min-height: 1.8em;
  margin: 0;
}

.type-line::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1.05em;
  margin-left: 0.12em;
  background: currentColor;
  transform: translateY(0.14em);
  opacity: 0;
}

.type-line.is-typing::after {
  opacity: 1;
  animation: cursor-blink 700ms steps(1) infinite;
}

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

@keyframes logo-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

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

  .type-line::after {
    display: none;
  }
}
