:root {
  --canvas: #fafaf7;
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --accent: #c87d5b;
  --accent-ink: #ffffff;
  --rule: #e8e6de;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Georgia, Charter, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.85;
}

.hero {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  color: var(--ink);
}

.sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  max-width: 46ch;
}

.bubble {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
  min-height: 1.4em;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(200, 125, 91, 0.18);
  display: inline-flex;
  align-items: center;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  width: 100%;
  max-width: 480px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-top: 6px;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 8px 0;
}

.signup input[type="email"]::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.signup button {
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.signup button:hover {
  color: var(--accent);
}

.signup button:disabled {
  opacity: 0.5;
  cursor: default;
}

.signup-status {
  font-size: 14px;
  color: var(--ink-muted);
  margin: -4px 0 0;
  min-height: 1.2em;
}
.signup-status.error { color: #a83f3f; }
.signup-status.ok { color: var(--accent); }

footer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 24px 16px 28px;
  letter-spacing: 0.02em;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.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: 520px) {
  main { padding: 40px 22px 32px; gap: 22px; }
  .sub { font-size: 17px; }
  .bubble { font-size: 16px; max-width: 100%; }
}
