@font-face {
  font-family: "Nunito Sans";
  src: url(/assets/NunitoSans-Variable.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --white: #fff;
  --quiet: #f5f4f2;
  --espresso: #211b19;
  --gray: #68615d;
  --cherry: #9d2f48;
  --sans: "Avenir Next", "Nunito Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--quiet);
  color: var(--espresso);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer, on every page. */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(16px, 4vw, 48px);
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid #ece9e6;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Home: the centred stage with scattered photos. */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 16px;
  overflow: hidden;
}
.photo {
  position: absolute;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(33, 27, 25, 0.12);
}
.p1 {
  width: 150px;
  height: 190px;
  top: 9%;
  left: 8%;
}
.p2 {
  width: 120px;
  height: 120px;
  top: 14%;
  right: 16%;
}
.p3 {
  width: 190px;
  height: 130px;
  bottom: 12%;
  left: 14%;
}
.p4 {
  width: 140px;
  height: 180px;
  bottom: 9%;
  right: 9%;
}
.p5 {
  width: 96px;
  height: 96px;
  top: 46%;
  left: 3%;
}
.p6 {
  width: 110px;
  height: 140px;
  top: 40%;
  right: 3%;
}
.logo {
  width: 170px;
  height: auto;
  margin-bottom: 40px;
  position: relative;
}
.stage h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: 18px;
  position: relative;
}
.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray);
  max-width: 34rem;
  margin-bottom: 28px;
  position: relative;
}
.stage form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.field {
  display: flex;
  gap: 8px;
  max-width: 420px;
  width: 100%;
}
.field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d9d5d2;
  padding: 0 20px;
  font: 400 15px var(--sans);
  color: var(--espresso);
  background: var(--white);
}
.field input:focus {
  outline: 2px solid var(--espresso);
  outline-offset: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--white);
  font: 600 15px/1 var(--sans);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.small {
  font-size: 13px;
  color: var(--gray);
}
.thanks,
.error {
  display: none;
  font-size: 15px;
}
.error {
  color: var(--cherry);
}
form.done .field {
  display: none;
}
form.done .thanks,
form.failed .error {
  display: block;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  position: relative;
}
.pills span {
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
}
.pills b {
  color: var(--cherry);
  font-weight: 600;
}

/* Terms and privacy. */
.legal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px;
}
.legal header img {
  width: 150px;
  height: auto;
}
.legal header a {
  font-size: 14px;
  text-decoration: none;
}
.legal main {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 40px clamp(16px, 5vw, 56px);
  background: var(--white);
  border-radius: 8px;
}
.legal main a {
  color: var(--cherry);
}
.legal h1 {
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 10px;
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.legal p,
.legal li,
.legal td,
.legal th {
  font-size: 16px;
  line-height: 1.6;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  margin: 10px 0 0 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #ece9e6;
}
.legal th {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray);
}
.legal td:first-child {
  width: 42%;
  font-weight: 600;
}

/* Phones: the form stacks, and two photos sit in the corners clear of the words. */
@media (max-width: 760px) {
  .stage {
    padding: 112px 16px 96px;
  }
  .photo {
    opacity: 0.35;
  }
  .p1 {
    width: 88px;
    height: 112px;
    top: 16px;
    left: -12px;
  }
  .p4 {
    width: 96px;
    height: 120px;
    top: auto;
    bottom: 16px;
    right: -12px;
  }
  .p2,
  .p3,
  .p5,
  .p6 {
    display: none;
  }
  .field {
    flex-direction: column;
  }
  .field input {
    flex: none;
  }
}
@media (max-width: 560px) {
  .legal td:first-child {
    width: auto;
  }
  .legal th,
  .legal td {
    display: block;
    padding: 4px 0;
    border: 0;
  }
  .legal tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #ece9e6;
  }
  .legal thead {
    display: none;
  }
}
