:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0066cc;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  min-height: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: fade 1.15s var(--ease) both;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(
      ellipse 28% 18% at 50% 46%,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.16) 62%,
      rgba(255, 255, 255, 0) 80%
    );
}

main,
footer {
  position: relative;
  z-index: 2;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

p {
  margin-top: 0.45rem;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--muted);
}

body:not(.legal) h1,
body:not(.legal) main > p,
body:not(.legal) main > a {
  animation: in 0.95s var(--ease) both;
}

body:not(.legal) main > p {
  animation-delay: 0.1s;
}

body:not(.legal) main > a {
  animation-delay: 0.2s;
}

main > a {
  margin-top: 1.15rem;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.45s var(--ease), color 0.25s var(--ease);
}

main > a:active {
  transform: scale(0.94);
  transition-duration: 0.08s;
}

main > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: -0.006em;
  color: #86868b;
  animation: in 1.1s 0.15s var(--ease) both;
}

footer a {
  color: #86868b;
  font-size: 0.75rem;
  text-decoration: none;
  transition: transform 0.45s var(--ease), color 0.25s var(--ease);
}

footer a:active {
  transform: scale(0.94);
  transition-duration: 0.08s;
}

footer a:hover {
  color: var(--ink);
}

body.legal {
  background: #fff;
}

body.legal main {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
  animation: in 0.85s var(--ease) both;
}

body.legal h1 {
  margin-top: 2.5rem;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
}

body.legal h2 {
  margin-top: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

body.legal p {
  margin-top: 0.55rem;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
}

body.legal a {
  color: var(--blue);
  text-decoration: none;
}

body.legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.legal .back {
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #field,
  h1,
  p,
  a,
  main,
  footer {
    animation: none;
  }

  main > a,
  footer a,
  main > a:active,
  footer a:active {
    transition: none;
    transform: none;
  }
}
