/* ==========================================================================
   Home page
   The hero is the loop a gift travels (an inline SVG in index.html): a yard sign,
   an appeal, a thank-you and a report, with arrows running clockwise.
   Everything printed for one donor is highlighted in green.
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.hero {
  background: var(--blue);
  color: var(--slate-light);
  overflow: hidden;
}
.hero :focus-visible { outline-color: var(--green); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(2.25rem, 4.5vw, 3.75rem);
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 1.25rem + 4.6vw, 4.6rem);
  max-width: 10ch;
}
.hero__second {
  margin-top: .75rem;
  color: var(--slate-light);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.hero .lead { margin-top: 1.25rem; max-width: 54ch; }
.hero .actions { margin-top: 1.9rem; }

.hero__figure {
  margin: 0;
  width: 100%;
  max-width: 580px;
  justify-self: end;
}
.loop {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}
.loop__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .35rem;
  font-size: var(--fs-sm);
}
.loop__key {
  flex: none;
  width: 1.7rem;
  height: .85rem;
  border-radius: 2px;
  background: var(--green);
}

/* The one moving moment on the site: the four pieces settle into the loop, in order, when the page opens. */
.loop__piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: loop-settle .7s var(--ease) both;
  animation-delay: calc(var(--i) * 140ms + 120ms);
}
@keyframes loop-settle {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loop__piece { animation: none; }
}

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero__figure { justify-self: center; max-width: 480px; }
}

/* The second gift ------------------------------------------------------------------ */
.fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head fact"
    "body fact";
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.fact__head { grid-area: head; }
.fact__head .lead { margin-top: 1rem; }
.fact__body { grid-area: body; max-width: 60ch; }
.fact__figure {
  grid-area: fact;
  align-self: center;
  padding-top: 1.5rem;
  border-top: 4px solid var(--blue);
}
.statement {
  color: var(--ink);
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.statement b { color: var(--blue); font-weight: 900; }
.fact__figure .source { margin-top: 1rem; }
@media (max-width: 879px) {
  .fact {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "fact" "body";
    gap: 1.5rem;
  }
}

/* Events band ---------------------------------------------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.band .lead { margin-top: 1rem; }
.band__list li { padding-block: .5rem; }
@media (max-width: 879px) {
  .band { grid-template-columns: 1fr; }
}

/* About Zimmermann ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about .lead { margin-top: 1rem; }
.about .lead + p { margin-top: 1rem; }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  margin: 0;
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts strong {
  display: block;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}
@media (max-width: 879px) {
  .about { grid-template-columns: 1fr; }
}

.band .lead + p { margin-top: 1.1rem; }
.facts a { font-weight: 700; }
