:root {
  --gold: #c88412;
  --gold-bright: #e69d1f;
  --cream: #f6f0e3;
  --ink: #020810;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: #020810;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

.poster-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(217,146,24,.16), transparent 45%), #020810;
  overflow: auto;
}

.poster {
  position: relative;
  width: min(100vw, 1536px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,.85);
  background: #020810;
}

.poster-art,
.poster-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.poster-art img { object-fit: cover; }

.signup-form {
  position: absolute;
  z-index: 3;
  left: 56.8%;
  top: 60.35%;
  width: 40.0%;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

/* Intentionally almost invisible: the poster art supplies the frame. */
.form-inner {
  padding: clamp(12px, 1.25vw, 20px);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(2,8,16,.08), rgba(2,8,16,.02));
  box-shadow: none;
  backdrop-filter: none;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
}

.signup-form label { display: block; }
.signup-form span {
  display: block;
  margin-bottom: clamp(4px, .42vw, 7px);
  color: var(--gold-bright);
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-size: clamp(10px, .78vw, 13px);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.email-field { margin-top: clamp(9px, 1vw, 16px); }

input {
  width: 100%;
  height: clamp(38px, 3.45vw, 54px);
  border: 1.25px solid rgba(202, 132, 18, .88);
  border-radius: 5px;
  background: rgba(1, 6, 13, .56);
  color: white;
  padding: 0 clamp(14px, 1.2vw, 22px);
  font-size: clamp(14px, 1.08vw, 18px);
  outline: none;
  box-shadow: none;
  backdrop-filter: blur(1.5px);
}
input::placeholder { color: rgba(246,240,227,.64); }
input:focus {
  border-color: #ffd56c;
  background: rgba(1, 6, 13, .66);
  box-shadow: 0 0 0 3px rgba(202,132,18,.13), 0 0 16px rgba(202,132,18,.24);
}

.join-button {
  width: 100%;
  margin: clamp(12px, 1.45vw, 22px) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 7px rgba(202,132,18,.28));
  transform-origin: center;
  animation: herd-grow 3.2s ease-in-out infinite;
}
.join-button img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.join-button:hover, .join-button:focus-visible {
  animation-play-state: paused;
  transform: scale(1.035);
  filter: drop-shadow(0 0 18px rgba(202,132,18,.58));
}
.join-button:active { transform: scale(.99); }
.join-button.is-submitting {
  opacity: 0.65;
  pointer-events: none;
  transform: scale(0.98);
}

@keyframes herd-grow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 7px rgba(202,132,18,.24)); }
  50% { transform: scale(1.018); filter: drop-shadow(0 0 16px rgba(202,132,18,.44)); }
}

.form-note {
  margin: clamp(7px, .8vw, 12px) auto 0;
  max-width: 92%;
  text-align: center;
  color: rgba(246,240,227,.9);
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,.88);
}

.social-hotspots {
  position: absolute;
  z-index: 4;
  left: 3.2%;
  top: 85.5%;
  width: 21%;
  height: 10%;
}
.social-hotspots a {
  position: absolute;
  left: 0;
  width: 100%;
  height: 44%;
  overflow: hidden;
  text-indent: -9999px;
}
.social-hotspots .facebook { top: 0; }
.social-hotspots .instagram { bottom: 0; }

@media (max-width: 720px), (orientation: portrait) {
  .poster {
    width: min(100vw, 887px);
    aspect-ratio: 887 / 1774;
  }

  .signup-form {
    left: 6.0%;
    top: 62.2%;
    width: 88.0%;
  }

  .form-inner {
    padding: clamp(10px, 3vw, 26px);
    background: transparent;
  }

  .name-grid {
    grid-template-columns: 1fr;
    gap: clamp(8px, 2.2vw, 16px);
  }

  .signup-form span {
    margin-bottom: clamp(4px, 1vw, 8px);
    color: var(--gold-bright);
    letter-spacing: .055em;
    font-size: clamp(10px, 2.55vw, 17px);
  }
  .email-field { margin-top: clamp(8px, 2.2vw, 16px); }

  input {
    height: clamp(38px, 6.25vw, 58px);
    border-radius: 6px;
    font-size: clamp(13px, 3vw, 20px);
    padding-left: clamp(13px, 3.5vw, 30px);
    background: rgba(1, 6, 13, .56);
  }

  .join-button {
    width: 96%;
    margin: clamp(10px, 2.8vw, 22px) auto 0;
  }
  .form-note {
    margin-top: clamp(5px, 1.4vw, 12px);
    max-width: 84%;
    font-size: clamp(10px, 2.45vw, 16px);
  }

  .social-hotspots {
    left: 7%;
    top: 92.7%;
    width: 86%;
    height: 5.2%;
  }
  .social-hotspots a { width: 49%; height: 100%; top: 0; }
  .social-hotspots .facebook { left: 0; }
  .social-hotspots .instagram { left: 51%; bottom: auto; }
}

@media (max-width: 430px) {
  .poster-shell { align-items: start; }
  .poster { width: 100vw; }
  .signup-form { top: 62.8%; }
  .form-note { font-size: 11px; }
}


/* ================================
   Welcome / successful signup page
   ================================ */

.welcome-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(202,132,18,.18), transparent 42%),
    #020810;
  overflow: auto;
}

.welcome-poster {
  position: relative;
  width: min(100vw, 1024px);
  aspect-ratio: 1024 / 1536;
  overflow: hidden;
  background: #020810;
  box-shadow: 0 0 80px rgba(0,0,0,.85);
}

.welcome-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.welcome-grow-link,
.welcome-qr-link,
.welcome-social-links a {
  position: absolute;
  z-index: 3;
  display: block;
}

/* Clickable GrowTheHerd.com brush text */
.welcome-grow-link {
  left: 58.2%;
  top: 62.7%;
  width: 30.8%;
  height: 4.0%;
}

/* Real QR overlay so the code scans forever to https://growtheherd.com */
.welcome-qr-link {
  left: 56.1%;
  top: 69.7%;
  width: 17.8%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 7px;
  padding: .55%;
  box-shadow: 0 0 18px rgba(0,0,0,.7);
}

.welcome-qr-link img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Invisible link hotspots over the baked-in bottom buttons */
.welcome-social-links {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.welcome-social-links a {
  overflow: hidden;
  text-indent: -9999px;
}

.welcome-facebook {
  left: 5.7%;
  top: 90.15%;
  width: 26.5%;
  height: 4.2%;
}

.welcome-instagram {
  left: 36.2%;
  top: 90.15%;
  width: 26.5%;
  height: 4.2%;
}

.welcome-home {
  left: 65.3%;
  top: 90.15%;
  width: 29.5%;
  height: 4.2%;
}

@media (max-width: 720px), (orientation: portrait) {
  .welcome-poster {
    width: min(100vw, 1024px);
    aspect-ratio: 1024 / 1536;
  }

  .welcome-qr-link {
    border-radius: 5px;
  }
}
