/* ==========================================================================
   v2 additions: splash page (who's visiting?) and the community page.
   Built only from the tokens in styles.css; no new colors or type.
   ========================================================================== */

/* ---------------------------------------------------------------- splash */
.splash .nav__links, .splash .nav__toggle{ display:none; }
.splash .hero__content{ max-width:980px; margin-inline:auto; }
.splash .hero__lockup{ width:clamp(240px, 34vw, 640px); }
.splash .hero__tagline{ font-size:clamp(17px, 10px + 1.2vw, 32px); }

.welcome{ margin-top:clamp(32px, 4vw, 64px); color:#fff; }
.welcome__title{
  font-family:var(--serif); font-weight:600;
  font-size:var(--fs-h2); line-height:1.2; letter-spacing:-.005em;
}
.welcome__lede{
  max-width:34em; margin:clamp(12px, 1.2vw, 20px) auto 0;
  font-size:var(--fs-body-sm); line-height:1.5; color:var(--cream);
}
.welcome__ask{
  margin-top:clamp(24px, 2.4vw, 40px);
  font-size:var(--fs-eyebrow); font-weight:500; letter-spacing:var(--track); text-transform:uppercase;
  color:var(--orange);
}
.choices{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(12px, 1.25vw, 24px);
  max-width:820px; margin:clamp(14px, 1.4vw, 22px) auto 0;
}
.choice{
  display:flex; flex-direction:column; justify-content:center; gap:6px;
  min-height:clamp(96px, 7.3vw, 128px); padding:18px clamp(18px, 1.6vw, 30px);
  text-align:left; text-decoration:none;
  border:0;
  transition:background .25s var(--ease), transform .25s var(--ease);
  position:relative; padding-right:clamp(44px, 3.4vw, 60px);
}
/* solid fills from the site's button colors: orange (like the Join pill) and white (like .btn--white) */
.choice--community{ background:var(--orange); color:#fff; }
.choice--community:hover{ background:var(--orange-dk); }
.choice--staff{ background:#fff; color:var(--ink); }
.choice--staff:hover{ background:#fdf6ec; }
.choice:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.choice:active{ transform:translateY(1px); }
.choice__title{ font-family:var(--serif); font-weight:600; font-size:clamp(19px, 14px + .7vw, 27px); line-height:1.2; }
.choice__sub{ font-size:var(--fs-ui); line-height:1.35; }
.choice--community .choice__sub{ color:rgba(255,255,255,.9); }
.choice--staff .choice__sub{ color:var(--gray-dk); }
.choice svg{
  position:absolute; right:clamp(16px, 1.4vw, 24px); top:50%; width:9px; height:15px; margin-top:-7px;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
@media (max-width:700px){
  .choices{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------------- community page */
.intro .h2--serif{ max-width:24em; margin-inline:auto; color:#fff; }

/* "Read ahead" line on the four weekends, and event notes without the Visioncast link */
.wk__scripture b{ font-weight:600; }

/* Spread the word */
.spread{ padding-block:clamp(64px, 6.35vw, 122px); }
.spread .h2--serif{ margin-top:clamp(18px, 1.98vw, 38px); }
.spread .lede{ max-width:36em; }
.spread .panels{ grid-template-columns:1fr 1fr; max-width:1100px; }
.spread .panel{ min-height:0; gap:clamp(14px, 1.2vw, 22px); }
.spread .panel__heading{ font-size:clamp(28px, 20px + 1.2vw, 44px); }
.spread .panel p{ font-size:var(--fs-body-sm); line-height:1.5; color:var(--gray-dk); }
.spread .panel__bar{ margin:4px 0 6px; }
.spread .panel .btn{ align-self:flex-start; margin-top:auto; }
.spread__actions{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:auto; }
.spread__actions .btn{ margin-top:0; }
.spread__msg{ min-height:1.5em; font-size:14px !important; color:var(--ink) !important; }
.spread__note{
  max-width:40em; margin:clamp(28px, 2.6vw, 44px) auto 0; padding-inline:var(--gutter);
  text-align:center; font-size:var(--fs-ui); line-height:1.5; color:var(--gray-dk);
}
.spread__note a{ color:var(--ink); }
@media (max-width:820px){
  .spread .panels{ grid-template-columns:1fr; margin-inline:16px; }
}

/* back link to the splash, in the footer */
.footer__switch{ margin-top:14px; font-size:var(--fs-footer); }
.footer__switch a{ color:inherit; }

/* staff sign-up: lead pastors only */
.panel__note{
  margin:calc(-1 * clamp(8px, .8vw, 14px)) 0 clamp(16px, 1.25vw, 24px);
  padding:10px 14px; border-left:3px solid var(--orange); background:var(--cream);
  font-size:var(--fs-label); line-height:1.45; color:var(--ink);
}

/* ---------------------------------------------------------------- splash legibility
   The welcome copy sits on the busy ribbon animation. Darken the middle of the hero behind the
   text (more than the home page's scrim) and give the words a soft shadow, so they read cleanly. */
.splash .hero__scrim{
  background:
    radial-gradient(62% 56% at 50% 60%, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,0) 82%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 22%);
}
.welcome{ text-shadow:0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.6); }
.welcome__lede{ color:#fff; font-weight:500; }
.choice{ text-shadow:none; }

/* ---------------------------------------------------------------- splash intro: "focus pull"
   The scene drifts from blurry to sharp, top to bottom; "Which are you?" glows twice; then the two
   buttons shoot in from opposite sides and glide to a stop (strong ease-out). About 2.7s in all. */
@keyframes splashFocus{ from{ opacity:0; filter:blur(18px); transform:scale(1.18); } to{ opacity:1; filter:blur(0); transform:none; } }
@keyframes splashFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes splashRibbons{ from{ opacity:0; transform:scale(1.35) rotate(-3deg); } to{ opacity:.95; transform:none; } }
@keyframes splashDoorL{ from{ opacity:0; transform:translateX(-110px); } 25%{ opacity:1; } to{ opacity:1; transform:none; } }
@keyframes splashDoorR{ from{ opacity:0; transform:translateX(110px); } 25%{ opacity:1; } to{ opacity:1; transform:none; } }
@keyframes splashGlow{
  0%, 100%{ text-shadow:0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.6); }
  50%{ text-shadow:0 0 18px rgba(225,139,26,.9); }
}
.splash .hero__content{ animation:none; }
.splash .hero__field{ animation:splashFade 1.1s var(--ease) both; }
.splash .hero__ribbons{ animation:splashRibbons 1.7s var(--ease) both; }
.splash .hero__lockup{ animation:splashFocus 1s .2s var(--ease) both; }
.splash .hero__tagline{ animation:splashFocus .85s .5s var(--ease) both; }
.splash .welcome__title{ animation:splashFocus .8s .85s var(--ease) both; }
.splash .welcome__lede--1{ animation:splashFade .7s 1.1s var(--ease) both; }
.splash .welcome__lede--2{ animation:splashFade .7s 1.2s var(--ease) both; }
.splash .welcome__ask{ animation:splashFade .6s 1.45s var(--ease) both, splashGlow 1.2s 1.9s ease-in-out 2; }
.splash .choice--community{ animation:splashDoorL 1.2s 1.55s cubic-bezier(0,.85,.15,1) both; }
.splash .choice--staff{ animation:splashDoorR 1.2s 1.55s cubic-bezier(0,.85,.15,1) both; }
@media (prefers-reduced-motion: reduce){
  .splash .hero__field, .splash .hero__ribbons, .splash .hero__lockup, .splash .hero__tagline,
  .splash .welcome__title, .splash .welcome__lede--1, .splash .welcome__lede--2, .splash .welcome__ask,
  .splash .choice{ animation:none; }
}

/* "It Begins With Us" in the gold accent on the splash */
.splash .hero__tagline{ color:var(--orange); }

/* one-line button labels (no sublines), so the buttons are slimmer */
.splash .choice{ min-height:0; padding-block:clamp(16px, 1.3vw, 22px); }
