:root {
  --ink: #102018;
  --ink-soft: rgba(16, 32, 24, 0.72);
  --paper: #f3eee4;
  --paper-glow: rgba(243, 238, 228, 0.92);
  --line: rgba(16, 32, 24, 0.28);
  --accent: #8b6b3d;
  --sky-top: #b7c9c4;
  --sky-mid: #7f9a90;
  --sky-low: #4a675c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 300;
  background: var(--sky-low);
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 22%, rgba(232, 196, 138, 0.45), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 100%);
}

.mist {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(ellipse 50% 35% at 30% 55%, rgba(243, 238, 228, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 30% at 75% 65%, rgba(183, 201, 196, 0.35), transparent 70%);
  pointer-events: none;
}

.mist-a {
  animation: drift 28s ease-in-out infinite alternate;
}

.mist-b {
  opacity: 0.7;
  animation: drift 36s ease-in-out infinite alternate-reverse;
}

.landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: settle 1.8s ease-out both;
}

.sun {
  transform-origin: 1080px 220px;
  animation: glow 10s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  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");
}

.sheet {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 42rem;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 1px 0 rgba(16, 32, 24, 0.15);
  animation: rise 0.9s ease-out both;
}

.headline {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--paper-glow);
  animation: rise 0.9s ease-out 0.12s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(243, 238, 228, 0.82);
  animation: rise 0.9s ease-out 0.22s both;
}

.cta {
  margin: 0;
  animation: rise 0.9s ease-out 0.34s both;
}

.cta a {
  display: inline-block;
  color: var(--paper);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 238, 228, 0.45);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cta a:hover,
.cta a:focus-visible {
  color: #fff8ea;
  border-bottom-color: #e8c48a;
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1.5%, 0, 0);
  }
  to {
    transform: translate3d(1.5%, -1%, 0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(18px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist-a,
  .mist-b,
  .sun,
  .landscape,
  .brand,
  .headline,
  .lede,
  .cta {
    animation: none;
  }
}

@media (min-width: 900px) {
  .sheet {
    justify-content: center;
    padding-left: clamp(3rem, 8vw, 7rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }
}
