:root {
  --bg: #f5f5f5;
  --fg: #000;
  --muted: #555;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Jost", "futura-pt", "Futura", "Century Gothic", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

.masthead { padding: 18px 16px 0; text-align: center; }
.logo { width: 354px; margin: 0 auto; }

main { width: min(892px, calc(100vw - 32px)); margin: 70px auto 120px; }

/* Alternating photo / text rows */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  align-items: start;
  margin-bottom: 40px;
}
.row img { width: 100%; }
.row.img-right img { order: 2; }
.copy { text-align: center; }
h2 {
  font-weight: 300;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.copy p, .join p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Join section */
.join {
  border-top: 1px solid var(--muted);
  margin-top: 120px;
  padding-top: 24px;
  text-align: center;
}
.join h2 { margin-bottom: 32px; }

.pill {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 24px 32px;
  margin-top: 36px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--fg); color: var(--bg); }

.lost { text-align: center; font-size: 15px; margin: -30px 0 50px; }

/* Sign-up dialog */
.signup {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  border: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 44px 40px 36px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .25);
}
.signup::backdrop { background: rgba(245, 245, 245, .75); }
.signup h2 { font-size: 32px; text-align: left; margin-bottom: 40px; }
.close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  font: 300 32px/1 "Jost", sans-serif;
  cursor: pointer;
  color: var(--fg);
}
form { display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, label { font-size: 15px; }
small { color: var(--muted); font-size: 12px; }
label input, label select, label textarea { margin-top: 6px; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.names legend { margin-bottom: 10px; }
.names label { font-size: 13px; }
input, select, textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: #fafafa;
  border: 1px solid #999;
  border-radius: 0;
  padding: 12px;
}
select { appearance: none; background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--fg); outline-offset: -1px; }
.choices { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  font-size: 13px;
  padding: 16px 30px;
  border: 2px solid #777;
  cursor: pointer;
}
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
form .pill { justify-self: center; margin-top: 6px; padding: 22px 32px; }
.status { text-align: center; font-size: 14px; margin: 0; min-height: 1em; }
.hp { display: none; }
.thanks { text-align: center; font-size: 17px; padding: 20px 0; }

/* Phones */
@media (max-width: 720px) {
  .logo { width: 260px; }
  main { margin-top: 44px; }
  .row { grid-template-columns: 1fr; row-gap: 22px; margin-bottom: 56px; }
  .row.img-right img { order: 0; }
  h2 { font-size: 34px; margin-bottom: 16px; }
  .join { margin-top: 40px; }
  .signup { padding: 40px 18px 28px; }
  .signup h2 { font-size: 26px; margin-bottom: 26px; }
  .names { grid-template-columns: 1fr; }
}
