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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #F4F2ED;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  gap: 48px;
}

.wordmark {
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 500;
  color: #0A0C14;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

.form-row {
  display: flex;
  width: 100%;
  border: 1px solid #D5D1C9;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  background: #FAFAF8;
}

.form-row:focus-within {
  border-color: #0A0C14;
}

input[type="email"] {
  flex: 1;
  width: auto;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #0A0C14;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

input[type="email"]::placeholder {
  color: #C0BDB5;
}

button[type="submit"] {
  padding: 14px 20px;
  background: #0A0C14;
  color: #F4F2ED;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

button[type="submit"]:hover {
  opacity: 0.8;
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.success {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  font-weight: 400;
  color: #5A5854;
  letter-spacing: 0.04em;
}

.error {
  font-size: 12px;
  font-weight: 400;
  color: #B8564F;
}

footer {
  padding: 24px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 400;
  color: #C0BDB5;
  letter-spacing: 0.03em;
}

.dot {
  font-size: 8px;
  color: #D5D1C9;
}

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

  button[type="submit"] {
    padding: 14px;
    text-align: center;
  }
}
