:root {
  --cream: #f6f0e4;
  --green: #1d5224;
  --green-50: rgba(29, 82, 36, 0.5);
  --serif: "Crimson Pro", Georgia, serif;
  --display: "Tenor Sans", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--green); overflow-x: hidden; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.page {
  width: 100%;
  max-width: 402px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  text-align: center;
}
/* main takes the free space so the footer is pinned to the bottom on tall screens */
.main { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; }

.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; }
.brand h1 { font-weight: 400; font-size: 40px; line-height: normal; white-space: nowrap; }
.brand p { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.intro { font-size: 16px; line-height: normal; max-width: 354px; }
.intro strong { font-weight: 600; }

.signup { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 354px; }
.names { display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--green);
  border-radius: 40px;
  background: transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--green);
  text-align: center;
  outline: none;
  transition: box-shadow .2s;
}
.field::placeholder { color: var(--green-50); opacity: 1; text-align: center; }
.field:focus { box-shadow: 0 0 0 1px var(--green); }
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 40px;
  background: var(--green);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-follow { width: 281px; max-width: 100%; margin: 0 auto; }
.hp { position: absolute; left: -5000px; }
.msg { font-size: 16px; line-height: normal; }
.msg:empty { display: none; }
.done { font-size: 16px; line-height: normal; max-width: 354px; }
.done strong { font-weight: 600; }
form[hidden], .done[hidden] { display: none; }

.rule { width: 60px; height: 0; border-top: 1px solid var(--green); }

.returning { display: flex; flex-direction: column; gap: 12px; max-width: 257px; }
.returning h2 { font-family: var(--display); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.returning p { font-size: 16px; line-height: normal; }

footer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.place { font-family: var(--display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ig { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--green); }
.ig svg { width: 40px; height: 40px; }
.ig:hover { opacity: .7; }
.fine { font-size: 10px; line-height: normal; max-width: 349px; }
.fine p + p { margin-top: 13px; }
.fine a { color: inherit; text-decoration: underline; }

@media (min-width: 768px) {
  .page { max-width: 640px; padding: 56px 40px 32px; }
  .main { justify-content: center; gap: 36px; }
  .brand h1 { font-size: 64px; }
  .brand p, .returning h2, .place { font-size: 13px; }
  .intro, .done { font-size: 18px; max-width: 440px; }
  .names { flex-direction: row; }
  .names .field { flex: 1 1 0; }
  .returning { max-width: 340px; }
  .returning p { font-size: 17px; }
  .fine { font-size: 11px; max-width: 520px; }
  .fine p + p { margin-top: 8px; }
}
