:root {
  --ink: #152844;
  --paper: #fffef8;
  --dim: #5c6b80;
  --edge: #1e3a5c;
  --sky-0: #5aaae9;
  --sky-1: #8cc7f1;
  --sky-2: #cfeaf7;
  --ground: #46953e;
  --font: "SF Pro Rounded", ui-rounded, Nunito, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.home {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 9%, rgba(255, 240, 168, 0.7) 0 28px, rgba(255, 240, 168, 0.28) 29px, transparent 110px),
    linear-gradient(var(--sky-0) 0%, var(--sky-1) 42%, var(--sky-2) 78%);
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 132px 24px 42vh;
  text-align: center;
}

.hero-copy { width: min(100%, 680px); }

h1 {
  margin: 0;
  color: var(--paper);
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow:
    -2px 0 var(--edge),
    2px 0 var(--edge),
    0 -2px var(--edge),
    0 2px var(--edge),
    -2px 2px var(--edge),
    2px 2px var(--edge),
    0 3px var(--edge),
    3px 3px var(--edge);
}

.narrow { display: none; }

.lede {
  max-width: 440px;
  margin: 16px auto 0;
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
}

.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #16151c;
  color: var(--paper);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cta:hover { background: #000; }
.cta:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.signup { min-height: 100vh; background: linear-gradient(var(--sky-0) 0%, var(--sky-1) 42%, var(--sky-2) 78%); }
.signup .back { display: inline-block; margin: 22px 0 0 22px; }
.card {
  position: relative;
  width: min(100% - 32px, 440px);
  margin: 8vh auto 48px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: var(--paper);
  text-align: center;
}
#done:not([hidden]) {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--paper);
  padding: 28px 24px 24px;
}
.signup h1 { color: var(--ink); text-shadow: none; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.card p { margin: 12px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.card form { margin-top: 18px; }
.card label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; text-align: left; }
.card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
.card input[type="email"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card .cta { width: 100%; margin-top: 12px; }
.card .fine { margin-top: 12px; color: var(--dim); font-size: 13px; font-weight: 700; }
.honey { position: absolute; left: -10000px; height: 0; width: 0; opacity: 0; }

.meta, .copy {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.copy { margin-top: 12px; color: var(--dim); font-size: 13px; }

.links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }

.links a, .back {
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.links a:focus-visible, .back:focus-visible, .mail:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cloud, .hills, .mill, .sheep { position: absolute; pointer-events: none; }

.cloud { z-index: 1; animation: drift 18s ease-in-out infinite alternate; }
.cloud.a { top: 8%; left: 30%; width: 300px; --shift: 22px; }
.cloud.b { top: 16%; left: -6%; width: 210px; --shift: 16px; animation-duration: 22s; }
.cloud.c { top: 14%; right: -4%; width: 240px; --shift: -18px; animation-duration: 20s; }
.cloud svg { display: block; width: 100%; height: auto; }

.hills { z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(220px, 40vh, 480px); background: var(--ground); }
.hills svg { display: block; width: 100%; height: 100%; }

.mill { z-index: 1; left: 44%; bottom: 25.6vh; width: 112px; margin-left: -56px; }
.mill svg { display: block; width: 100%; height: auto; overflow: visible; }


.sheep { z-index: 1; bottom: 10px; }
.sheep.asleep { left: 28px; width: min(19.5vw, 288px); }
.sheep.awake { z-index: 3; right: 24px; bottom: 4px; display: flex; flex-direction: column; align-items: center; width: min(230px, 42vw); }
.sheep img { display: block; width: 100%; height: auto; }
.sheep.awake img { width: 92%; }

.bubble {
  position: relative;
  margin-bottom: 6px;
  max-width: 230px;
  padding: 11px 16px;
  border-radius: 16px;
  background: var(--paper);
  font-size: 16px;
  line-height: 21px;
  font-weight: 800;
  text-align: center;
}

.bubble:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--paper);
  transform: rotate(45deg);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 12px;
}

.back { font-size: 16px; font-weight: 800; text-decoration: none; }
.word { color: var(--dim); font-size: 16px; font-weight: 800; }

.doc { width: min(100%, 680px); margin: 0 auto; padding: 0 22px 64px; }
.doc h1 { color: var(--ink); text-shadow: none; font-size: 36px; line-height: 40px; letter-spacing: 0; }
.doc h2 { margin: 28px 0 0; font-size: 18px; }
.doc p { margin: 10px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.mail { font-weight: 800; }

@keyframes drift { to { transform: translateX(var(--shift)); } }

@media (max-width: 719px) {
  .wide { display: none; }
  .narrow { display: inline; }
  h1 { font-size: 36px; }
  .hero { padding-top: 108px; }
  .lede { font-size: 17px; line-height: 24px; }
  .cloud.a { top: 6%; width: 168px; }
  .cloud.b { width: 120px; }
  .cloud.c { top: 12%; width: 140px; }
  .mill { left: 34%; bottom: 23vh; width: 78px; margin-left: -39px; }
  .sheep { bottom: 0; }
  .sheep.asleep { left: 4px; width: min(30vw, 200px); }
  .sheep.awake { right: 4px; width: min(168px, 46vw); }
  .bubble { max-width: 168px; margin-bottom: 2px; padding: 8px 12px; font-size: 14px; line-height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .sails animateTransform { display: none; }
}
