:root {
  --bg0: #f3efe6;
  --bg1: #e7e0d2;
  --ink: #1a1f1c;
  --muted: #5c655f;
  --line: rgba(26, 31, 28, 0.12);
  --accent: #1f6b5a;
  --accent-deep: #0f3f35;
  --glow: rgba(31, 107, 90, 0.22);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 12% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(180, 140, 90, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #dfd7c8);
  min-height: 100%;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.mark {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(78vh, 40rem);
  padding: clamp(2rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4.5rem)
    clamp(3rem, 10vh, 5rem);
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.5rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.body {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.cta {
  background: var(--accent-deep);
  color: #f6f3ec;
}

.cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.ghost:hover {
  border-color: rgba(26, 31, 28, 0.28);
  transform: translateY(-1px);
}

.section {
  max-width: 40rem;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) 2.75rem;
  border-top: 1px solid transparent;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.points {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.points li {
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.points strong {
  color: var(--ink);
  font-weight: 600;
}

.section--last {
  padding-bottom: clamp(3rem, 10vh, 5rem);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 1rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

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

.animate {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cta,
  .ghost {
    transition: none;
  }
}
