:root {
  color-scheme: light dark;
  --bg: #efeeeb;
  --bg-lit: #f8f7f4;
  --ink: #17171a;
  --mute: #636366;
  --line: rgba(23, 23, 26, 0.14);
  --glint-lo: #17171a;
  --glint-hi: #55555d;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --bg-lit: #1b1b1f;
    --ink: #f2f2f0;
    --mute: #a1a1a6;
    --line: rgba(242, 242, 240, 0.16);
    --glint-lo: #b4b4ba;
    --glint-hi: #ffffff;
  }
}

@media (prefers-contrast: more) {
  :root {
    --mute: var(--ink);
    --line: var(--ink);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* minmax(0, 1fr) stops wide children from stretching the page past the viewport */
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  padding: clamp(1.5rem, 5vw, 4rem);
  font: 400 1rem/1.5 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(120% 90% at 0% 0%, var(--bg-lit), var(--bg) 62%);
  -webkit-font-smoothing: antialiased;
}

main {
  align-self: center;
  width: min(100%, 72rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.name {
  margin: 0;
  width: fit-content;
  padding-block: 0.04em;
  font-size: clamp(3rem, 17.5vw, 14rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-optical-sizing: auto;
  color: var(--ink);
}

/* the lit spot follows the pointer; without it the title stays flat ink */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .name {
    background-image: radial-gradient(
      circle 24rem at var(--mx, 22%) var(--my, 30%),
      var(--glint-hi),
      var(--glint-lo)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.pitch {
  display: grid;
  gap: 1.5rem;
}

.lead {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead span {
  color: var(--mute);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease-out, opacity 200ms ease-out;
}

.button:hover {
  opacity: 0.86;
}

.button:active {
  transform: scale(0.97);
}

.addr {
  color: var(--mute);
  text-underline-offset: 0.2em;
}

.addr:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.button:focus-visible {
  border-radius: 999px;
}

.terms {
  margin: 0;
  padding-top: 1.5rem;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.terms dt {
  font-size: 0.9375rem;
  font-weight: 600;
}

.terms dd {
  margin: 0.35rem 0 0;
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 30rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .button {
    justify-content: center;
  }

  .addr {
    text-align: center;
    overflow-wrap: anywhere;
  }
}

footer {
  margin-top: 4rem;
  max-width: 62ch;
  color: var(--mute);
  font-size: 0.8125rem;
  line-height: 1.55;
}

footer p {
  margin: 0 0 0.6rem;
}

/* the title materializes once; everything else just appears behind it */
@media (prefers-reduced-motion: no-preference) {
  .name {
    transform-origin: 0 100%;
    animation: materialize 900ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }

  .pitch,
  .terms,
  footer {
    animation: appear 600ms 250ms ease-out backwards;
  }
}

@keyframes materialize {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.97);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}
