:root {
  --bg-base: #070a09;
  --bg-glow: #0d1613;
  --bg-edge: #050706;

  --text-primary-top: #eef2f0;
  --text-primary-bottom: #bcc6c1;
  --text-primary-hover: #f7faf8;

  --text-secondary: #8a9690;
  --text-secondary-hover: #bac6c0;

  --text-punchline: #58645e;
  --text-punchline-hover: #9bb5a7;

  --selection-bg: #1a2e26;
  --selection-text: #e6eeea;
}

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

html {
  height: 100%;
  background-color: var(--bg-base);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100svh;
  background-color: var(--bg-base);
  background-image: radial-gradient(
    ellipse 70% 55% at 50% 45%,
    var(--bg-glow) 0%,
    var(--bg-base) 68%,
    var(--bg-edge) 100%
  );
  color: var(--text-primary-top);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
}

.stage {
  width: 100%;
  padding: 2rem 1.5rem 6vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy {
  max-width: 36rem;
  text-align: center;
}

.line {
  cursor: default;
  opacity: 0;
  transform: translateY(6px);
  animation: surface 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition:
    color 320ms ease,
    opacity 320ms ease,
    letter-spacing 320ms ease;
}

.line--primary {
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary-top);
  background-image: linear-gradient(
    180deg,
    var(--text-primary-top) 0%,
    var(--text-primary-bottom) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-delay: 80ms;
}

.line--primary:hover {
  background-image: linear-gradient(
    180deg,
    var(--text-primary-hover) 0%,
    #d4ded9 100%
  );
}

.line--secondary {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--text-secondary);
  animation-delay: 400ms;
}

.line--secondary:hover {
  color: var(--text-secondary-hover);
}

.line--punchline {
  margin-top: 0.7rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.5;
  color: var(--text-punchline);
  animation-delay: 980ms;
}

.line--punchline:hover {
  color: var(--text-punchline-hover);
  letter-spacing: 0.055em;
}

@keyframes surface {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .line {
    opacity: 1;
    transform: none;
    animation: none;
    transition: color 200ms ease;
  }

  .line--punchline:hover {
    letter-spacing: 0.035em;
  }
}
