:root {
  --mist: #e6eee8;
  --ink: #16302a;
  --stone: #56695f;
  --tent: #2e6b50;
  --tent-shade: #245640;
  --ground: #c3d6ca;
  --ground-front: #a9c4b4;
  --pine: #1f4a3a;
  --lantern: #f0b34a;
  --field: #f7faf7;
  --line: #9db3a8;
  --button: #16302a;
  --button-ink: #f4f8f5;
  --stars: transparent;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mist: #0e1b18;
    --ink: #e4eee8;
    --stone: #9db3a8;
    --tent: #3f8f6c;
    --tent-shade: #2f7356;
    --ground: #15302a;
    --ground-front: #112620;
    --pine: #0b1512;
    --field: #14251f;
    --line: #35564a;
    --button: #f0b34a;
    --button-ink: #0e1b18;
    --stars: #e4eee8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.wordmark {
  margin: 0 0 2.5rem;
  font: 600 1rem/1 var(--serif);
  letter-spacing: .02em;
}

h1 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font: 600 clamp(2.5rem, 7vw, 4.4rem)/1.04 var(--serif);
  letter-spacing: -.015em;
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: var(--stone);
}

.signup {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  max-width: 34rem;
}

.signup input[type="email"] {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: .5rem;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.signup input[type="email"]::placeholder { color: var(--stone); }

.signup button {
  padding: .85rem 1.4rem;
  border: 0;
  border-radius: .5rem;
  background: var(--button);
  color: var(--button-ink);
  font: 600 1rem/1.2 var(--sans);
  cursor: pointer;
}

.signup button:disabled { opacity: .6; cursor: progress; }

.signup :focus-visible,
.foot a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  margin: 0;
}

.status.is-error { color: #a13a2a; }
@media (prefers-color-scheme: dark) { .status.is-error { color: #f0a08f; } }

.fine {
  margin: .25rem 0 0;
  font-size: .9375rem;
  color: var(--stone);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scene svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 30rem;
  /* The hills end at the edge of the drawing; fade them into the page instead of cutting them off. */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 54%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 54%, #000 62%, transparent 100%);
}

.hill-back { fill: var(--ground); }
.hill-front { fill: var(--ground-front); }
.pine path, .pine rect { fill: var(--pine); }
.tent { fill: var(--tent); }
.tent-side { fill: var(--tent-shade); }
.door { fill: var(--lantern); }
.line { fill: none; stroke: var(--pine); stroke-width: 2; }
.rope { stroke-width: 1.5; opacity: .7; }
.stars circle { fill: var(--stars); }
.halo { opacity: .55; }

/* The one moment of motion: the lantern warms up once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .door, .halo { animation: warm 2.2s ease-out both; }
  @keyframes warm {
    from { opacity: .15; }
  }
}

.crisis {
  margin: 3rem 0 0;
  padding: 1rem 0 0;
  border-top: 1.5px solid var(--line);
  max-width: 44rem;
  color: var(--stone);
  font-size: .9375rem;
}

.crisis p { margin: 0; }
.crisis strong { color: var(--ink); }

.foot {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  color: var(--stone);
  font-size: .875rem;
}

.foot p { margin: 0; }

@media (min-width: 46rem) {
  .page { padding: 3rem 2rem 1.5rem; }
  .hero { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .signup { grid-template-columns: 1fr auto; }
  .foot { padding: 1rem 2rem 2.5rem; }
}
