/* Join: a thin ink line on the paper. */
.join {
  position: absolute;
  left: 50%;
  bottom: calc(max(clamp(28px, 7vh, 72px), env(safe-area-inset-bottom)) + var(--kb, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, calc(100vw - 64px));
  border-bottom: 1px solid rgba(20, 18, 15, 0.55);
  transition: border-color .3s, opacity .3s, bottom .25s ease-out;
}
.join-field { flex: 1; }
/* 16px keeps iOS from zooming the page when the field is focused. */
.join input[type="email"] {
  width: 100%;
  padding: 8px 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14120f;
  font: 400 16px/1.2 var(--font-wordmark);
  letter-spacing: 0.01em;
}
.join input::placeholder { color: rgba(20, 18, 15, 0.38); }
.join input { caret-color: #14120f; }
/* Browsers paint autofilled fields blue/yellow; keep them ink on paper. */
.join input:-webkit-autofill,
.join input:-webkit-autofill:hover,
.join input:-webkit-autofill:focus {
  -webkit-text-fill-color: #14120f;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 100000s 0s, color 100000s 0s;
}
.join input:autofill { background: transparent; }
.join:focus-within { border-bottom-color: #14120f; }
.join button {
  padding: 8px 0 7px;
  border: 0;
  background: none;
  color: #14120f;
  font: 400 15px/1.2 var(--font-wordmark);
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
}
.join button:hover, .join button:focus-visible { opacity: 1; }
.join-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 18px var(--font-wordmark);
  color: #14120f;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}
.join.is-sending { opacity: .5; }
.join.is-done { border-bottom-color: transparent; }
.join.is-done .join-field, .join.is-done button { visibility: hidden; }
.join.is-done .join-done { opacity: 1; }
.join.is-error { border-bottom-color: #8a2b1d; }
.join-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.card .join { display: none; }
