:root {
  --ink: #2b2622;
  --cream: #fffaf2;
  --sand: #f3ece1;
  --blush: #f4b6a6;
  --muted: #6b625a;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.5;
}

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  max-width: 640px;
  margin: 0 auto;
}

.badger {
  width: min(380px, 90vw);
  height: auto;
}

.eyebrow {
  margin: 24px 0 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--muted);
}

h1 {
  margin: 0 0 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.12;
}

.lede {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34ch;
}

.signup {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(43,38,34,.1);
}

.signup input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.signup button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.signup button:hover { background: #453c35; transform: translateY(-1px); }
.signup:focus-within { box-shadow: 0 0 0 3px var(--blush), 0 6px 24px rgba(43,38,34,.1); }

.note { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 12px;
  border-radius: 50%;
  color: var(--ink);
  transition: background .15s ease;
}

.social:hover, .social:focus-visible { background: rgba(43,38,34,.08); }

footer {
  text-align: center;
  padding: 20px 16px;
  font-size: .85rem;
  color: var(--muted);
}

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

@media (max-width: 420px) {
  .signup { flex-direction: column; border-radius: 20px; }
  .signup button { width: 100%; }
}
