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

html {
  background: #fff;
  color: #14171a;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid #0b6e4f;
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  padding: 4.25rem 1.25rem 2rem;
  margin: 0 auto 0 max(0px, calc(50vw - 22rem));
}

.brand {
  margin: 0 0 2.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 4.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.lead,
.copy {
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}

.note {
  margin: 0 0 1.1rem;
  color: #5c656d;
  font-size: 0.95rem;
}

form {
  margin: 0 0 2.5rem;
}

.hp,
.sr {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c5c9cc;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}

button[type="submit"] {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 4px;
  background: #0b6e4f;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  color: #5c656d;
  font-size: 0.88rem;
}

.footer a {
  text-underline-offset: 0.15em;
}

@media (min-width: 32rem) {
  .fields {
    flex-direction: row;
    align-items: stretch;
  }

  input[type="email"] {
    flex: 1 1 auto;
  }

  button[type="submit"] {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (prefers-color-scheme: dark) {
  html {
    background: #101214;
    color: #e8eaed;
  }

  .note,
  .footer {
    color: #9aa3ab;
  }

  input[type="email"] {
    background: #1a1d20;
    border-color: #3a3f44;
    color: #e8eaed;
  }
}
