/* About Us page (Yelena's "About Us" mock-up). Tokens only from site.css. */

/* Our Story: two rounded photos left, title and text right */
.about-story { display: grid; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.about-story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.about-story__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.about-story__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-story__text .leaf-title { margin-top: 0; }
/* her long story title ("A Retirement Dream That Became an Adventure"): smaller sprigs, as on the product titles, give
   the words room for three lines beside the photos instead of four */
@media (min-width: 900px) { .about-story__text .leaf-title__sprig { width: 1.4em; } }
@media (min-width: 900px) { .about-story { grid-template-columns: 1.15fr 1fr; } }

/* Our Farm, Our Home: one wide rounded photo with the words on a cream fade at the right */
.about-home { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); }
.about-home__photo { aspect-ratio: 16 / 9; }
.about-home__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-home__text { padding: 1.5rem 1.25rem 1.75rem; }
.about-home__text h2 { margin: 0 0 0.75rem; font-family: var(--serif); color: var(--forest); }
/* her title here is left-aligned with one sprig before it */
.about-home__text .leaf-title { justify-content: flex-start; text-align: left; }
.about-home__text .leaf-title__sprig { width: 2.5rem; }
.about-home__text .leaf-title__sprig--flip { display: none; }
.about-home__text p { margin: 0; }
@media (min-width: 900px) {
  /* her band is about 4.8 to 1; photo and words share one grid cell so long words grow the band instead of clipping.
     The photo keeps her 9:2 as a minimum height (cqi = the band's width) and fills a taller band: with a fixed
     aspect-ratio a taller row stretched it wider than the band and pushed her four paragraphs out of view */
  .about-home { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
  .about-home__photo, .about-home__text { grid-area: 1 / 1; }
  .about-home__photo { position: relative; aspect-ratio: auto; min-height: calc(100cqi * 2 / 9); }
  .about-home__photo img { position: absolute; inset: 0; } /* the image never sizes the band, it only fills it */
  .about-home__photo img { object-position: 50% 38%; } /* the wide crop keeps the ostriches' heads in frame */
  .about-home__text {
    position: relative; /* above the positioned photo */
    justify-self: end; width: 52%; /* wide enough for her one-line "Our Farm, Our Home" beside its sprig at 1280 */
    display: flex; flex-direction: column; justify-content: center;
    padding: 1.75rem clamp(1.5rem, 3vw, 3.5rem) 1.75rem clamp(3rem, 6vw, 7rem);
    background: linear-gradient(90deg, transparent, var(--cream) 20%); /* fully cream before the words start */
  }
}

/* Four Seasons: four rounded photos with the season name under each */
.seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.season__photo { aspect-ratio: 5 / 3; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.season__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.season__name { margin: 0.6rem 0 0; text-align: center; font-family: var(--serif); color: var(--forest); }

/* Friends & Volunteers: her three photos are wider than the shared trio (about 2.5 to 1) */
@media (min-width: 760px) { .about-friends .trio__photo { aspect-ratio: 5 / 2; } }
