:root {
  --bg: #ffffff;
  --text: #171717;
  --ink: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --success: #166534;
  --error: #b91c1c;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.site-header {
  margin-bottom: 40px;
}

.site-name {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.site-name:hover {
  text-decoration: underline;
}

h1 {
  color: var(--ink);
  font-size: 28px;
  margin: 0 0 12px;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

input[type="email"]:focus {
  outline: 2px solid var(--ink);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

button {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.btn-small {
  display: inline-block;
  width: auto;
  padding: 6px 12px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  margin-right: 8px;
}

.btn-small:hover {
  opacity: 0.9;
}

#message {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
}

#message.success {
  color: var(--success);
}

#message.error {
  color: var(--error);
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.draft-badge {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--error);
}

@media (max-width: 480px) {
  .wrap {
    padding: 32px 16px 56px;
  }

  h1 {
    font-size: 24px;
  }
}
