:root {
  color-scheme: dark;
  --text: #f2f4eb;
  --text-muted: rgba(242, 244, 235, 0.82);
  --page-padding: clamp(1.5rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #03181b;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(94, 203, 139, 0.78) 0, rgba(23, 116, 86, 0.4) 20%, transparent 43%),
    radial-gradient(circle at 60% 68%, rgba(0, 118, 119, 0.42) 0, transparent 36%),
    radial-gradient(circle at 94% 58%, rgba(15, 74, 130, 0.48) 0, transparent 42%),
    linear-gradient(125deg, #073f34 0%, #022b2d 44%, #04182d 72%, #071326 100%);
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.page-shell::before {
  inset: 0;
  opacity: 0.2;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, transparent 0 1px, rgba(255, 255, 255, 0.08) 1.5px 2px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.page-shell::after {
  width: min(44rem, 68vw);
  aspect-ratio: 1;
  right: -22rem;
  bottom: -28rem;
  border-radius: 50%;
  background: rgba(24, 112, 138, 0.28);
  filter: blur(90px);
  animation: breathe 10s ease-in-out infinite alternate;
}

.site-header,
.site-footer {
  padding-inline: var(--page-padding);
}

.site-header {
  padding-top: clamp(1.75rem, 5vh, 3.75rem);
}

.wordmark {
  color: inherit;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 6rem) var(--page-padding);
  text-align: center;
}

.hero-copy {
  width: min(100%, 60rem);
  transform: translateY(-1.5vh);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 6.3vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  width: min(100%, 39rem);
  margin: clamp(1.75rem, 4vh, 2.75rem) auto 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.5;
  text-wrap: balance;
}

.site-footer {
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
  color: rgba(242, 244, 235, 0.74);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes breathe {
  to {
    opacity: 0.65;
    transform: translate3d(-4rem, -2rem, 0) scale(1.08);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1.5rem;
  }

  .hero-copy {
    transform: none;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 4.4rem);
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell::after {
    animation: none;
  }
}
