:root {
  color-scheme: dark;
  --black: #090909;
  --white: #f5f3eb;
  --white-soft: rgb(245 243 235 / 42%);
  --yellow: #ffd84a;
}

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

html {
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 38%, #191919 0, #0d0d0d 44%, var(--black) 78%),
    var(--black);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

body::after {
  box-shadow: inset 0 0 18vw rgb(0 0 0 / 62%);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 5rem) 0;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: Bitter, Rockwell, "Rockwell Nova", Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.34;
  text-shadow: 0 0.02em 0.1em rgb(0 0 0 / 35%);
}

.line {
  display: block;
  white-space: nowrap;
}

.line strong {
  font-weight: 700;
}

.brand-highlight {
  display: inline-block;
  color: #ffe173;
  font-weight: 700;
  white-space: nowrap;
}

.challenge {
  display: block;
  margin-top: 0.55em;
  color: rgb(245 243 235 / 72%);
  font-size: 0.7em;
  font-weight: 600;
  white-space: nowrap;
}

footer {
  padding-top: 1.25rem;
  color: var(--white-soft);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.015em;
  line-height: 1.5;
  text-align: center;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--yellow);
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 1rem;
  }

  .hero {
    padding-block: 2rem;
  }

  h1 {
    font-size: clamp(1.2rem, 6.2vw, 2rem);
    line-height: 1.34;
  }

  footer {
    padding-bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  h1,
  footer {
    animation: settle 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  footer {
    animation-delay: 90ms;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(0.12em);
    }
  }
}
