*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #111;
  --fg: #f4f4f4;
  --muted: #aaa;
  --accent: #ff4fa3;
  --radius: 6px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 2.5rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.signup p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Buttondown form */
.embeddable-buttondown-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.embeddable-buttondown-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.embeddable-buttondown-form input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--fg);
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: var(--radius);
}

.embeddable-buttondown-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.embeddable-buttondown-form input[type="submit"] {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #111;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.embeddable-buttondown-form input[type="submit"]:hover {
  filter: brightness(1.1);
}

footer {
  color: var(--muted);
  font-size: 0.875rem;
}
