:root {
  --paper: oklch(96.3% 0.016 84);
  --ink: oklch(31% 0.014 210);
  --ink-soft: oklch(45% 0.013 210);
  --moon: oklch(87% 0.052 185);
  --moon-soft: oklch(91% 0.034 185);
  --line: oklch(77% 0.025 185);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, Futura, "Century Gothic", sans-serif;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 20rem;
  background: var(--paper);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.page {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
}

.page::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.page::after {
  position: absolute;
  z-index: -2;
  width: min(98vw, 72rem);
  aspect-ratio: 1;
  right: min(-46vw, -18rem);
  top: min(-46vw, -21rem);
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.brand,
.message,
.footer {
  position: relative;
  z-index: 1;
}

.brand {
  align-self: start;
  animation: reveal 700ms 80ms both var(--ease-out-quint);
}

.brand__logo {
  display: block;
  width: clamp(7.75rem, 23vw, 11.5rem);
  height: auto;
}

.message {
  align-self: center;
  width: min(100%, 65rem);
  margin: clamp(3.5rem, 13vh, 9rem) 0 clamp(3rem, 11vh, 7rem);
}

.message__eyebrow {
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: reveal 700ms 180ms both var(--ease-out-quint);
}

h1 {
  max-width: 10ch;
  margin: 0 0 clamp(1.5rem, 4vw, 2.75rem) -0.045em;
  font-family: var(--serif);
  font-size: clamp(3.45rem, 14vw, 8.75rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.87;
  animation: reveal 850ms 260ms both var(--ease-out-quint);
}

.message__note {
  max-width: 29rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  animation: reveal 700ms 390ms both var(--ease-out-quint);
}

.footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
  animation: reveal 700ms 480ms both var(--ease-out-quint);
}

.footer__mark {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--moon);
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--moon-soft);
  pointer-events: none;
}

.orb--large {
  width: clamp(15rem, 41vw, 37rem);
  aspect-ratio: 1;
  right: clamp(-13rem, -10vw, -5rem);
  top: clamp(-7rem, -6vw, -3rem);
  animation: settle 1.1s 100ms both var(--ease-out-quint);
}

.orb--small {
  width: clamp(2.5rem, 6vw, 5.5rem);
  aspect-ratio: 1;
  right: clamp(2rem, 16vw, 15rem);
  bottom: clamp(2rem, 12vh, 8rem);
  border: 1px solid var(--line);
  background: transparent;
  animation: settle 1.1s 250ms both var(--ease-out-quint);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 48rem) {
  .page {
    padding:
      max(2.5rem, env(safe-area-inset-top))
      max(4rem, env(safe-area-inset-right))
      max(2.5rem, env(safe-area-inset-bottom))
      max(4rem, env(safe-area-inset-left));
  }

  .message {
    padding-left: clamp(2rem, 8vw, 8rem);
  }

  .footer {
    justify-self: end;
  }
}

@media (min-width: 70rem) {
  .page {
    padding-inline: max(6vw, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
