:root {
  --ink: #14201c;
  --paper: #e8efe8;
  --moss: #2f5d4a;
  --moss-deep: #1d3b30;
  --signal: #c45c26;
  --mist: rgba(232, 239, 232, 0.86);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

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

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 12% 18%, rgba(47, 93, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(196, 92, 38, 0.18), transparent 50%),
    linear-gradient(160deg, #d7e4da 0%, #e8efe8 42%, #cfdcd2 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.top,
.hero,
.foot {
  width: min(920px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  padding: 1.75rem 0 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moss-deep);
  animation: rise 700ms ease-out both;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 3rem;
  gap: 1.1rem;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: rise 800ms ease-out 80ms both;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  animation: rise 850ms ease-out 160ms both;
}

.cta {
  margin-top: 0.75rem;
  animation: rise 900ms ease-out 240ms both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  background: var(--moss);
  color: #f4faf5;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.35rem;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--moss-deep);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.foot {
  padding: 1.5rem 0 2rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.foot p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .brand,
  .hero h1,
  .lede,
  .cta {
    animation: none;
  }
}
