/* What We Build (pages/build.php): the hero with the five-family key along its foot, the five family
   chapters (who it is for on the left; the work that proves it and what you could ask for on the right),
   and the Start block. Tokens and shared classes (.status, .link, .prose, .sec, .start) come from phl.css.
   Mobile first. */

/* ---- hero: copy on the left, the five displays (scenes/build.js) on the right, the key along the foot ---- */
@media (min-width: 861px) { .hero--families { min-height: var(--shot-h, max(700px, 94svh)); } }   /* phones: phl.css sizes the hero to its content */
.hero--families .hero__copy { max-width: 600px; }
.hero--families .lede { max-width: 36ch; }
.famkey { padding: 0 var(--gutter) clamp(26px, 4vh, 40px); }
.famkey .mono { margin: 0 0 12px; }
.famkey ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.famkey li + li { border-left: 1px solid var(--line); }
.famkey a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 14px 14px; color: var(--fg-2); text-decoration: none; transition: background .2s, color .2s; }
.famkey li:first-child a { padding-left: 0; }
.famkey a b { font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; color: var(--fg-3); transition: color .2s; }
.famkey a span { font: 620 15px/1.22 var(--sans); font-stretch: 106%; letter-spacing: -.005em; color: var(--fg); }
.famkey a:hover, .famkey a:focus-visible, .famkey a.is-on { background: rgba(236, 239, 241, .045); }
.famkey li:first-child a:hover, .famkey li:first-child a.is-on { padding-left: 10px; }
.famkey a:hover b, .famkey a:focus-visible b, .famkey a.is-on b { color: var(--signal); }
.famkey__note { margin: 10px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--fg-3); }

/* ---- the five families ---- */
.fam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: clamp(64px, 8vw, 128px); scroll-margin-top: var(--bar); }
.fam__id { min-width: 0; }
/* the family's number in a drawing callout, as on the figure's displays */
.fam__no { display: grid; place-items: center; width: 48px; height: 48px; margin: 0; border: 1px solid var(--line-2); border-radius: 50%; font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); transition: border-color .3s, color .3s; }
.fam:target .fam__no, .fam:hover .fam__no { border-color: var(--signal); color: var(--fg); }
.fam h2 { margin: 22px 0 16px; max-width: 15ch; font-size: clamp(32px, 3.6vw, 58px); }
.fam__line { margin: 0 0 22px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--fg); }
main .sec .fam__meaning { margin: 0; max-width: 46ch; }
.fam__meaning p { margin: 0; }
.fam h3.mono { margin: 0 0 14px; }
.fam__tech { margin-top: 28px; }
.fam__tech ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.fam__body { display: grid; gap: 44px; min-width: 0; }

/* the real work behind a family: name, why it counts here, the status of the parts that matter */
.proofs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.proof__name { justify-self: start; font: 620 clamp(18px, 1.5vw, 21px)/1.2 var(--sans); font-stretch: 106%; letter-spacing: -.01em; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.proof__name:hover, .proof__name:focus-visible { text-decoration-color: var(--signal); }
.proof p { margin: 0; max-width: 52ch; color: var(--fg-2); font-size: 15px; }
.proof__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.proof__chips li { display: inline-flex; align-items: center; gap: 8px; }
.proof__part { font: 400 12px/1.4 var(--mono); letter-spacing: .03em; color: var(--fg-3); }
.proof__chips .status { font-size: 10px; padding: 4px 8px; }

/* what a customer could ask for: possibilities, set apart from the proof by a dashed rule */
.fam__ideas ul { display: grid; gap: 12px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line-2); }
.fam__ideas li { position: relative; padding-left: 22px; max-width: 48ch; color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
.fam__ideas li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--fg-3); }

/* ---- start ---- */
.fam-start { padding-block: clamp(96px, 12vw, 200px); }
.fam-start .start h2 { font-size: clamp(38px, 5.2vw, 84px); }
.fam-start .start h2::before { content: ""; display: block; width: 56px; height: 1px; margin-bottom: 30px; background: var(--signal); }

/* ---- wider screens ---- */
@media (min-width: 760px) {
  .proof { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .proof__chips { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; }
}
@media (min-width: 1024px) {
  .fam { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
  .fam__id { position: sticky; top: calc(var(--bar) + 32px); }
  .fam__ideas ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .fam__ideas li { padding: 0 20px 0 22px; }
  .fam__ideas li + li { padding-left: 40px; border-left: 1px solid var(--line); }
  .fam__ideas li + li::before { left: 18px; }
}

/* ---- the key on narrower screens ---- */
@media (max-width: 1100px) {
  .famkey a span { font-size: 14px; }
}
@media (max-width: 860px) {
  .famkey { order: 6; padding-top: 18px; padding-bottom: 30px; }
  .famkey ol { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .famkey li { border-bottom: 1px solid var(--line); }
  .famkey li + li { border-left: 0; }
  .famkey a { flex-direction: row; align-items: baseline; gap: 14px; padding: 10px 0; }
  .famkey li:first-child a:hover, .famkey li:first-child a.is-on { padding-left: 0; }
}
@media (max-width: 560px) {
  .hero--families > .fig { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .famkey a, .fam__no, .proof__name { transition: none; }
}
