/* ============================================================
   WHAT WE BELIEVE — hero
   ------------------------------------------------------------
   The statement of faith itself is a CSS module living beside
   its component (BeliefsSection.module.css). Only the hero is
   here, because it is page markup rather than component markup.

   The old file carried `.content-give`, `.give-container` and
   `.give-information` -- left over from when this page borrowed
   the Give page's markup. Nothing has rendered those classes in
   a long time, so they are gone.
   ============================================================ */

.wwb-hero,
.wwb-hero * {
  box-sizing: border-box;       /* preflight is off in this project */
}

.wwb-hero {
  --wwb-accent: #ff820d;

  position: relative;
  width: 100%;
  min-height: min(78svh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #1b1b1b;
  font-family: 'Sofia Pro', sans-serif;
}

.wwb-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Anchored to the top of the frame: `center` splits the crop between top
     and bottom, which takes the tops of heads off a photograph of people.
     Trimming from the bottom instead keeps faces in. */
  background-position: center top;
  background-repeat: no-repeat;
}

.wwb-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.wwb-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(3rem, 8vh, 6rem);
}

.wwb-hero__overline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
  color: var(--wwb-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wwb-hero__overline::before {
  content: "";
  width: clamp(2.5rem, 6vw, 5rem);
  height: 2px;
  background: var(--wwb-accent);
  flex: none;
}

.wwb-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

/* The wordmark is 1680x308 -- very wide. Capped by width so it never
   outgrows the gutters, and by a max-width so it does not stretch into a
   banner on a large monitor. `max-width` overrides the 14ch above, which
   is a measure for type and meaningless for a picture. */
.wwb-hero__title-img {
  display: block;
  width: 100%;
  max-width: min(100%, 46rem);
  height: auto;
}

.wwb-hero__title:has(.wwb-hero__title-img) {
  max-width: none;
}

.wwb-hero__cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: 1rem 2.25rem;

  background: #fff;
  border: 0;
  border-radius: 0;
  color: #000;

  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease;
}

.wwb-hero__cta:hover {
  background: var(--wwb-accent);
}

.wwb-hero__cta:focus-visible {
  outline: 2px solid var(--wwb-accent);
  outline-offset: 3px;
}

@media screen and (max-width: 620px) {
  /* Sized to its label, not stretched across the screen: the hero's
     overline, title and lead all begin on the gutter, and a button
     spanning the full measure is the only thing that would not. */
  .wwb-hero__cta {
    width: auto;
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wwb-hero__cta {
    transition: none;
  }
}
