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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #EBF0EC;
  color: #1A2E22;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

p {
  margin: 0 0 1em;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(40px, 8vw, 64px);
}

h2 {
  font-size: clamp(26px, 4.4vw, 34px);
}

.lead {
  font-size: clamp(20px, 3vw, 23px);
  line-height: 1.5;
}

.small {
  font-size: 14px;
  color: #625A50;
}

a {
  color: #805A30;
  text-underline-offset: 3px;
}
a:hover {
  color: #3F5161;
}

:focus-visible {
  outline: 3px solid #3F5161;
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: #1A2E22;
  color: #EBF0EC;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
  color: #EBF0EC;
}

.site-header {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 28px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}
.wordmark-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #824E43;
  display: inline-block;
  margin-left: 3px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 20px;
}

section + section {
  margin-top: clamp(56px, 10vw, 88px);
}

.hero {
  padding-top: clamp(56px, 12vw, 110px);
}

.site-footer {
  width: 100%;
  max-width: 640px;
  margin: clamp(64px, 12vw, 110px) auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid #D9CFC1;
  font-size: 16px;
}
.site-footer p {
  margin-bottom: 0.4em;
}

.badge {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3F5161;
  border: 1px solid #3F5161;
  border-radius: 999px;
  padding: 4px 12px;
}

.btn {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: #805A30;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: #3F5161;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.steps-motif {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 34px;
  margin-bottom: 26px;
}
.steps-motif span {
  opacity: 0;
  transform: translateY(6px);
  animation: step-in 0.6s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .steps-motif span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.steps-motif span:nth-child(1) {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43584C;
  animation-delay: 0.15s;
}
.steps-motif span:nth-child(2) {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3F5161;
  animation-delay: 0.45s;
}
.steps-motif span:nth-child(3) {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #824E43;
  animation-delay: 0.75s;
}
.steps-motif span:nth-child(4) {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #805A30;
  animation-delay: 1.05s;
}

@keyframes step-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.method-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.method-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  -moz-column-gap: 14px;
       column-gap: 14px;
  align-items: center;
}
.method-list li > span:last-child {
  grid-column: 2;
  color: #625A50;
  font-size: 16px;
}
.method-list strong {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 22px;
}
.method-list .step-dot {
  grid-row: span 2;
  justify-self: center;
}
.method-list li:nth-child(1) .step-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #43584C;
}
.method-list li:nth-child(2) .step-dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3F5161;
}
.method-list li:nth-child(3) .step-dot {
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #824E43;
}
.method-list li:nth-child(4) .step-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #805A30;
}

.signup {
  background: #FBF7F1;
  border: 1px solid #D9CFC1;
  border-radius: 18px;
  padding: clamp(24px, 5vw, 36px);
}
.signup > .small {
  margin: 14px 0 0;
}

.signup-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: #1A2E22;
  background: #fff;
  border: 1.5px solid #D9CFC1;
  border-radius: 12px;
  padding: 12px 14px;
}
.field input:focus-visible {
  border-color: #3F5161;
}
.field input[aria-invalid=true] {
  border-color: #805A30;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #3F5161;
}

.form-status {
  margin: 0;
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.is-error {
  color: #805A30;
}
.form-status.is-success {
  color: #3F5161;
}