/* pages/home.css: the homepage compositions (templates/page.html; Chuck's own
   copy, 26 Nov 2026). Marked floor: tokens only (tokens.css); no hex, no
   gradients, no shadows, no mono, no caps labels, no numbers on things that
   are not a sequence. The hero is the shared macro. */

/* 2 · Someone to talk to: the H2 left and the body right from 992 px, on the
   shared 4 / 7 split. */
.home-talk__grid .section-head { margin-bottom: var(--space-5); }
@media (min-width: 992px) {
  .home-talk__grid { display: grid; grid-template-columns: var(--split-cols); column-gap: var(--split-gap); align-items: start; }
  .home-talk__grid .section-head { margin-bottom: 0; }
}
.home-talk__body p { font-size: var(--fs-lead); line-height: 1.55; color: var(--color-text-heading); text-wrap: pretty; }
.home-talk__body p:last-child { margin-bottom: 0; }

/* 3 · The six questions: concrete cards on white; the question is the H3. */
.home-questions .card__text { max-width: 62ch; }

/* 4 · How I help: Chuck's three cards, white on concrete. Icon, title, short
   line, then a 1 px divider (a panel on its own ground) above what it covers.
   The icon is teal, never yellow (tokens.css rule 1). */
.home-help__icon { display: block; width: 32px; height: 32px; margin-bottom: var(--space-5); color: var(--color-brand); }
.home-help__line { margin: 0; padding-bottom: var(--space-4); font-size: var(--fs-lead); line-height: 1.45; color: var(--color-text-heading); text-wrap: pretty; }
.home-help__text { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }

/* Card rows line up (subgrid, from 768 px): the question cards share title
   and text rows; Chuck's cards share icon, title, line and text rows, so the
   dividers sit level across a row; the article cards share meta, title, text
   and link. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .home-questions__grid > .card { --card-rows: 2; }
    .home-help__grid > .card { --card-rows: 4; }
    .home-questions__grid > .card,
    .home-help__grid > .card,
    .home-articles .card-grid > .card { display: grid; grid-row: span var(--card-rows, 4); grid-template-rows: subgrid; row-gap: 0; }
    .home-questions__grid > .card > .card-body,
    .home-help__grid > .card > .card-body,
    .home-articles .card-grid > .card > .card-body { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 0; }
    .home-help__line { align-self: start; }
    .home-articles__meta { align-self: end; }
  }
}

/* Between 768 and 991 px (two columns) an odd last card takes the full row,
   so three cards never leave one alone. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .home-help__grid > :last-child:nth-child(odd),
  .home-articles .card-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 5 · Chuck's closing note: his words at reading width, lead size. */
.home-note__body p { font-size: var(--fs-lead); line-height: 1.6; color: var(--color-text-heading); text-wrap: pretty; }
.home-note__body p:last-child { margin-bottom: 0; }
.home-note .section-foot { margin-top: var(--space-5); }

/* 6 · Articles: the date and reading time are meta (small, stone), not a
   label. */
.home-articles__meta { margin: 0 0 var(--space-3); font-size: var(--fs-small); font-weight: 400; line-height: 1.5; color: var(--color-text-muted); }

/* Leads: no one-word last lines. */
.page-home .section-head .lead { text-wrap: pretty; }
