@font-face {
  font-family: "Teletext";
  src:
    url("fonts/teletext-regular.woff2") format("woff2"),
    url("fonts/teletext-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #008d25;
  --stripe: calc(100vw / 12);
  --noise: url("noise.png");
  --noise-opacity: 1;
  --noise-size: 600px;
  --control-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

@supports (background-image: image-set(url("noise.png") 1x)) {
  :root {
    --noise: image-set(url("noise.png") 1x, url("noise@2x.png") 2x);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8f6f2;
}

body {
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--green);
  font-family: "Teletext", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8f6f2;
  overflow-x: hidden;
}

/* Keep the full gradient tied to the browser window, even on long pages. */
body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background-color: #f8f6f2;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 68%,
      rgba(244, 217, 197, 0.46) 86%,
      rgba(207, 159, 119, 0.72) 100%
    ),
    radial-gradient(
      ellipse 13% 94% at -3% 50%,
      rgba(148, 172, 245, 0.74) 0%,
      rgba(174, 190, 246, 0.48) 42%,
      rgba(178, 193, 244, 0) 100%
    ),
    radial-gradient(
      ellipse 70% 28% at 0% 0%,
      rgba(0, 141, 37, 0.25) 0%,
      rgba(0, 141, 37, 0.11) 34%,
      rgba(0, 141, 37, 0) 74%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0,
      rgba(255, 255, 255, 0.92) calc(var(--stripe) * 0.12),
      rgba(238, 204, 240, 0.74) calc(var(--stripe) * 0.84),
      rgba(238, 204, 240, 0.74) var(--stripe)
    );
  background-repeat: no-repeat, no-repeat, repeat-x, repeat;
  background-size: 100% 100%, 100% 100%, var(--stripe) 360px, var(--stripe) 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

body::after {
  background-image: var(--noise);
  background-position: 0 0;
  background-repeat: repeat;
  background-size: var(--noise-size) var(--noise-size);
  opacity: var(--noise-opacity);
  mix-blend-mode: normal;
}

.coming-soon {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: clamp(26px, 1.37vw + 10px, 30px) clamp(14px, 1.37vw, 20px) 48px;
  text-align: center;
}

h1 {
  width: 100%;
  max-width: 1420px;
  margin: 0 0 5px;
  line-height: 0;
}

.brand {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.status {
  margin: clamp(20px, 1.9vw, 28px) 0 0;
  color: var(--green);
  font-size: clamp(2.4rem, 4.17vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signup {
  width: min(800px, 100%);
  margin-top: clamp(72px, 12vh, 140px);
}

.signup-heading,
.signup-form,
.social-links,
.legal-links {
  font-size: clamp(1.125rem, 1.94vw, 1.75rem);
}

.signup-heading {
  margin: 0 0 14px;
  line-height: 1.2;
}

.signup-form {
  width: 100%;
}

.email-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.email-field input,
.email-field button {
  min-height: 64px;
  border-radius: 8px;
  box-shadow: var(--control-shadow);
  font: inherit;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1;
}

.email-field input {
  min-width: 0;
  padding: 0 18px;
  border: 1px solid rgba(0, 141, 37, 0.34);
  outline: 0;
  color: var(--green);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.email-field input::placeholder {
  color: rgba(0, 141, 37, 0.46);
  opacity: 1;
}

.email-field input:focus-visible {
  box-shadow: inset 0 0 0 3px var(--green);
}

.email-field button {
  min-width: 160px;
  padding: 0 28px;
  border: 0;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}

.email-field button:hover {
  background: #00751f;
}

.email-field button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.email-field button:focus-visible,
.consent input:focus-visible,
.signup a:focus-visible,
.legal-links a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.consent input {
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(0, 141, 37, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--control-shadow);
  cursor: pointer;
}

.consent input::before {
  width: 16px;
  height: 16px;
  transform: scale(0);
  border-radius: 4px;
  background: var(--green);
  content: "";
}

.consent input:checked::before {
  transform: scale(1);
}

.form-message {
  margin: 16px 0 0;
  font-size: clamp(1.125rem, 1.67vw, 1.5rem);
  line-height: 1.3;
}

.form-message[hidden],
.fallback-message {
  display: none;
}

.fallback-message:target {
  display: block;
}

.form-error {
  color: #9b1c1c;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.social-links a,
.legal-links a {
  color: inherit;
  text-decoration: none;
}

.social-links a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--control-shadow);
  line-height: 1;
}

@media (hover: hover) {
  .social-links a:hover {
    color: #fbf7e7;
    background: var(--green);
  }
}

.social-links a:active {
  color: #fbf7e7;
  background: var(--green);
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-links {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 40px;
}

.visually-hidden,
.website {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 700px) {
  :root {
    --stripe: calc(100vw / 6);
  }

  .coming-soon {
    padding-top: 28px;
  }

  .status {
    margin-top: clamp(26px, 7.5vw, 42px);
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .signup {
    margin-top: clamp(56px, 10vh, 88px);
  }

  .email-field {
    grid-template-columns: 1fr;
  }

  .email-field button {
    min-height: 56px;
  }

  .consent {
    font-size: 1rem;
  }

  .legal-links {
    padding-top: 48px;
  }
}
