:root {
  --cream: #f9efe5;
  --ink: #1a1a1a;
  --muted: #625b55;
  --red: #c9342d;
  --red-dark: #a9231e;
  --green: #0b6d38;
  --green-soft: #e7eee7;
  --line: rgba(26, 26, 26, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(11, 109, 56, 0.055), transparent 28rem),
    var(--cream);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.top-rule {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 6px;
}

.top-rule span:first-child {
  background: var(--red);
}

.top-rule span:last-child {
  background: var(--green);
}

.page-shell {
  width: min(100% - 36px, 540px);
  margin: 0 auto;
}

.brand {
  padding: 38px 0 43px;
}

.brand img {
  display: block;
  width: 172px;
  height: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.45rem, 10.6vw, 4.5rem);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.intro {
  max-width: 450px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 3.6vw, 1.18rem);
  line-height: 1.5;
}

.signup {
  margin-top: 29px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-row input,
.form-row button {
  min-height: 56px;
  border-radius: 8px;
}

.form-row input {
  min-width: 0;
  padding: 0 17px;
  border: 1.5px solid rgba(26, 26, 26, 0.42);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.form-row input::placeholder {
  color: #77706a;
}

.form-row input:hover {
  background: rgba(255, 255, 255, 0.75);
}

.form-row input:focus-visible {
  border-color: var(--green);
  background: #fffaf5;
  box-shadow: 0 0 0 4px rgba(11, 109, 56, 0.15);
}

.form-row input[aria-invalid="true"] {
  border-color: var(--red);
}

.form-row button {
  padding: 0 23px;
  border: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 0 var(--red-dark);
  font-weight: 780;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.form-row button:hover {
  background: #b82b25;
}

.form-row button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--red-dark);
}

.form-row button:focus-visible,
.typo-suggestion:focus-visible,
.archive-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.form-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.typo-suggestion {
  display: block;
  margin: 11px 0 0;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 720;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.typo-suggestion[hidden] {
  display: none;
}

.form-status {
  min-height: 1.35em;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  color: #9d251f;
  font-weight: 650;
}

.success-state {
  padding: 18px 20px;
  border: 1px solid rgba(11, 109, 56, 0.3);
  border-radius: 10px;
  background: var(--green-soft);
}

.success-state strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 1.12rem;
}

.success-state p {
  margin: 0;
  color: #334c3b;
  line-height: 1.45;
}

.giveaway {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid rgba(11, 109, 56, 0.27);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.giveaway-icon {
  padding-top: 1px;
  font-size: 1.2rem;
}

.giveaway p {
  margin: 0;
  color: #34433a;
  font-size: 0.92rem;
  line-height: 1.48;
}

.giveaway strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
}

.benefits {
  display: grid;
  gap: 9px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  color: #3f3a36;
  font-size: 0.94rem;
}

.benefits li {
  position: relative;
  padding-left: 19px;
}

.benefits li::before {
  position: absolute;
  top: 0.53em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.archive-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 31px;
  color: var(--ink);
  font-weight: 770;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.archive-link span {
  color: var(--red);
  font-size: 1.25em;
  transition: transform 140ms ease;
}

.archive-link:hover span {
  transform: translateX(3px);
}

footer {
  width: min(100% - 36px, 540px);
  margin: 56px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: #756e68;
  font-size: 0.79rem;
}

.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: 430px) {
  .page-shell,
  footer {
    width: min(100% - 30px, 540px);
  }

  .brand {
    padding: 28px 0 33px;
  }

  .brand img {
    width: 149px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .form-row input,
  .form-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
