/* ==========================================
   Everyday Bible Adventures
   Welcome Page
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #faf7f2;
  --navy: #233b67;
  --gold: #d9a441;
  --green: #536b3f;
  --ink: #2f4739;
  --paper: rgba(255, 250, 241, 0.76);
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

/* =========================
   FULL PAGE HERO
========================= */

.welcome-page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  text-align: center;

  padding: 20px 20px 22px;

  background-image:
    linear-gradient(
      to bottom,
      rgba(250, 247, 242, 0.02) 0%,
      rgba(250, 247, 242, 0.00) 42%,
      rgba(250, 247, 242, 0.07) 70%,
      rgba(250, 247, 242, 0.88) 100%
    ),
    url("./images/hero-background.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Soft mist at the bottom */
.welcome-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 27%;

  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0) 0%,
    rgba(250, 247, 242, 0.70) 72%,
    rgba(250, 247, 242, 0.98) 100%
  );

  pointer-events: none;
  z-index: 1;
}

/* =========================
   TOP COPY
========================= */

.hero-copy {
  position: relative;
  z-index: 2;
}

.logo {
  width: 300px;
  max-width: 72vw;
  height: auto;
  margin-bottom: 10px;
}

.hero-copy h1 {
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: min(360px, 72vw);
  margin: 15px auto 11px;

  color: var(--gold);
}

.divider span {
  flex: 1;
  height: 1px;
  background: rgba(217, 164, 65, 0.42);
}

.divider strong {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 auto;

  color: var(--green);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.38;
  font-weight: 600;
}

/* =========================
   SIGNUP CARD
========================= */

.signup-card {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);

  z-index: 2;

  width: min(560px, 78%);
  padding: 12px 14px;

  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 15px;

  background: var(--paper);
  backdrop-filter: blur(4px);

  box-shadow: 0 10px 28px rgba(90, 63, 30, 0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.signup-copy {
  text-align: left;
}

.signup-copy h2 {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}

form {
  display: flex;
  gap: 9px;
  align-items: center;
}

input {
  width: 190px;
  padding: 10px 12px;

  border: 1px solid rgba(35, 59, 103, 0.16);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.9);

  color: var(--ink);
  font-size: 0.88rem;
  font-family: Georgia, "Times New Roman", serif;
}

button {
  padding: 10px 14px;

  border: none;
  border-radius: 8px;

  background: var(--navy);
  color: #fff6df;

  font-size: 0.88rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;

  cursor: pointer;
  white-space: nowrap;
  min-width: 106px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.button-star {
  color: var(--gold);
}

button:hover {
  background: #2f4e86;
  transform: translateY(-1px);
}
button .button-star {
  color: var(--gold) !important;
}

/* =========================
   FOOTER
========================= */

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;

  z-index: 2;

  color: var(--green);
  font-size: 0.82rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .hero-copy h1 {
    white-space: normal;
    font-size: clamp(2.05rem, 8vw, 3.15rem);
  }

}

@media (max-width: 760px) {

  .welcome-page {
    min-height: 100svh;
    padding-top: 22px;
    background-position: center top;
  }

  .logo {
    width: 215px;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .divider {
    width: min(240px, 68vw);
    margin: 14px auto 12px;
  }

  .hero-copy p {
    max-width: 92%;
    font-size: 1rem;
  }

  .signup-card {
    position: absolute;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);

    width: min(92%, 420px);

    flex-direction: column;
    text-align: center;

    padding: 18px;
  }

  .signup-copy {
    text-align: center;
  }

  .signup-copy h2 {
    font-size: 1.3rem;
  }

  form {
    width: 100%;
    flex-direction: column;
  }

  input,
  button {
    width: 100%;
  }

}