:root {
  --ink: #223349;
  --ink-soft: rgba(34, 51, 73, 0.76);
  --ink-faint: rgba(34, 51, 73, 0.58);
  --gold: #f6bc4f;
  --gold-deep: #eeae35;
  --field-border: rgba(34, 51, 73, 0.24);
  --ok: #2d6a4f;
  --err: #93452f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.4rem 3rem;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 60% at 50% 108%, rgba(246, 188, 79, 0.42) 0%, rgba(250, 216, 154, 0.22) 42%, rgba(250, 216, 154, 0) 72%),
    linear-gradient(180deg, #f6fafd 0%, #fbf7ee 62%, #fceed3 100%);
}

main {
  width: 100%;
  max-width: 28rem;
}

@media (prefers-reduced-motion: no-preference) {
  main {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.wordmark,
h1,
.tagline {
  font-family: Georgia, "Times New Roman", serif;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: #b8790e;
}

.eyebrow {
  margin-top: 1.65rem;
  color: #8a5d0f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.55rem;
  font-weight: 700;
  font-size: clamp(2rem, 7.5vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tagline {
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: balance;
}

form {
  margin-top: 2rem;
  text-align: left;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.field-label {
  display: block;
  margin: 0 0 0.4rem 0.1rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.signup-row {
  display: flex;
  gap: 0.55rem;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]::placeholder {
  color: var(--ink-faint);
}

input[type="email"]:focus,
input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(246, 188, 79, 0.38);
}

button {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(201, 138, 27, 0.55);
  transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
  background: var(--gold-deep);
}

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

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: var(--ink);
}

.status {
  margin-top: 1rem;
  min-height: 1.5em;
  font-size: 0.95rem;
}

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

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

.fine {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

footer {
  margin-top: 3.3rem;
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.privacy {
  max-width: 38rem;
  text-align: left;
}

.privacy .wordmark,
.privacy h1,
.privacy .lede,
.privacy footer {
  text-align: center;
}

.privacy h1 {
  margin-top: 1.4rem;
}

.privacy .lede {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.privacy section {
  margin-top: 1.8rem;
}

.privacy h2 {
  font-size: 1rem;
}

.privacy section p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.privacy .back {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
}

@media (max-width: 460px) {
  .signup-row {
    flex-direction: column;
  }

  button {
    padding: 0.9rem 1.3rem;
  }
}
