/* Brand #F2615A is 3.2:1 on white, so text uses darker shades of it. */
:root {
  --brand: #f2615a;
  --brand-text: #b8332d;
  --ink: #1f2328;
  --muted: #4a525c;
  --paper: #ffffff;
  --error: #a3221c;
  --ok: #1d6b3a;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
  border-top: 6px solid var(--brand);
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  font-size: 1.3rem;
  color: var(--muted);
}

form {
  margin: 2.25rem 0 2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  border: 2px solid #6b7480;
  border-radius: 6px;
}

button {
  flex: 0 0 auto;
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 6px;
  cursor: pointer;
}

/* Only where a pointer hovers: on a touch screen the color stays after a tap. */
@media (hover: hover) {
  button:hover {
    background: #f47e78;
  }
}

button:disabled {
  cursor: progress;
  opacity: 0.7;
}

a {
  color: var(--brand-text);
  font-weight: 600;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d0d5db;
}

.status {
  min-height: 1.55em;
  margin: 0.6rem 0 0;
  color: var(--error);
}

.status.ok {
  color: var(--ok);
}

/* Shown after the no-JavaScript redirect to #joined or #email-error. */
.notice {
  display: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--ok);
  background: #e9f5ee;
  border-left: 4px solid var(--ok);
  border-radius: 4px;
}

.notice.error {
  color: var(--error);
  background: #fbeceb;
  border-left-color: var(--error);
}

.notice:target {
  display: block;
}

/* The honeypot stays in the form for bots, out of view for people. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
