:root {
  --ink: #15231c;
  --paper: #e8f0ea;
  --accent: #1f6f4a;
  --mist: rgba(255, 255, 255, 0.55);
  --shadow: rgba(21, 35, 28, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 10% -10%, #cfe8d7 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #d7e4f2 0%, transparent 50%),
    linear-gradient(160deg, #f3f7f4 0%, #dbe7df 45%, #c9d8ce 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-48px, -48px, 0);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 52rem;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 700ms ease-out both;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  animation: rise 800ms ease-out 80ms both;
}

.lede {
  margin: 0;
  max-width: 36ch;
  font-size: 1.125rem;
  line-height: 1.5;
  opacity: 0.9;
  animation: rise 900ms ease-out 140ms both;
}

.cta-row {
  margin: 0.75rem 0 0;
  animation: rise 1000ms ease-out 200ms both;
}

.cta {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform 160ms ease, background 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: #18583a;
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .brand,
  h1,
  .lede,
  .cta-row {
    animation: none;
  }
}
