:root {
  --bg: #F6F1EB;
  --ink: #1a1a1a;
  --wine: #8f2255;
  --red: #ed333b;
  --pink: #d32b60;
  --quiet: rgba(26, 26, 26, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: Georgia, "Times New Roman", serif;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#wallpaper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#wallpaper span {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--wine);
  opacity: 0.14;
  white-space: nowrap;
  transform: rotate(var(--rot, -8deg));
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  gap: 18px;
}

.wordmark {
  width: min(86vw, 720px);
  height: auto;
  display: block;
}

#heart {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.15;
  color: var(--wine);
  text-align: center;
  min-height: 7em;
}

#signup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(86vw, 320px);
}

#email {
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  padding: 8px 0;
  color: var(--ink);
}

#email:focus {
  outline: none;
  border-bottom-color: var(--pink);
}

#join {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--wine);
  padding: 8px 0;
  text-align: left;
  cursor: pointer;
}

#join:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.age {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: center;
}

.privacy,
#form-error {
  margin: 0;
  font-size: 12px;
  color: var(--quiet);
}

#form-error[hidden],
#signup[hidden],
#thanks[hidden] { display: none; }

#thanks {
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

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