/* ==========================================================================
   Home page
   The hero is a new member kit on a blue table (an inline SVG in index.html).
   Everything printed for one member 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.5rem, 1.25rem + 4.3vw, 4.4rem);
  max-width: 11ch;
}
.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;
}
.kit {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}
.kit__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .35rem;
  font-size: var(--fs-sm);
}
.kit__key {
  flex: none;
  width: 1.7rem;
  height: .85rem;
  border-radius: 2px;
  background: var(--green);
}

/* The one moving moment on the site: the kit's pieces settle onto the table when the page opens. */
.kit__piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: kit-settle .7s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
@keyframes kit-settle {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kit__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; }
}

/* Year one ------------------------------------------------------------------ */
.yearone {
  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;
}
.yearone__head { grid-area: head; }
.yearone__head .lead { margin-top: 1rem; }
.yearone__body { grid-area: body; max-width: 60ch; }
.yearone__fact {
  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; }
.yearone__fact .source { margin-top: 1rem; }
@media (max-width: 879px) {
  .yearone {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "fact" "body";
    gap: 1.5rem;
  }
}

/* What makes it manageable ------------------------------------------------------ */
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4.5rem);
}
.promise {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.promise h3 { text-wrap: balance; }
.promise p { margin-top: .6rem; max-width: 56ch; }
@media (max-width: 767px) {
  .promises { grid-template-columns: 1fr; }
}

/* Association management companies ---------------------------------------------- */
.amc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.amc .lead { margin-top: 1rem; }
.amc__list li { padding-block: .5rem; }
@media (max-width: 879px) {
  .amc { 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; }
}
