/* "The Beyond Young family" band, shown just above .site-footer.
   Markup lives in each page between the family-sites markers; regenerate with
   `node scripts/gen-family-sites.mjs`. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@700&display=swap');

.fam-band { background: var(--ivory-50); border-top: 1px solid var(--stone-300); padding: 64px 24px 72px; font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--ink-800); }
.fam-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.fam-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fam-rule { width: 48px; height: 3px; background: var(--chair-yellow); border-radius: 2px; }
.fam-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--awning); font-weight: 600; }
.fam-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--awning); }

.fam-grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 40px; list-style: none; margin: 0; padding: 0; }
.fam-cell { flex: 0 0 33.333%; box-sizing: border-box; border-left: 1px solid var(--stone-300); }
.fam-cell:nth-child(3n+1) { border-left: 0; }
.fam-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 28px; text-align: center; text-decoration: none; color: inherit; }
.fam-card:hover .fam-name, .fam-card:focus-visible .fam-name { text-decoration: underline; text-underline-offset: 4px; }
.fam-lockup { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.fam-crest { width: 44px; height: 44px; object-fit: contain; }
.fam-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.fam-by { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-600); font-weight: 600; }
.fam-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 25px; color: var(--awning); }
.fam-name--ml { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 27px; letter-spacing: -0.02em; color: #13204d; }
.fam-name--ml span { color: #2f6bff; }
.fam-name--curioo { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 27px; letter-spacing: -0.01em; color: #1b2340; }
.fam-name--las { font-style: italic; font-size: 26px; color: var(--ink-800); }
.fam-blurb { font-size: 16px; line-height: 1.45; color: var(--ink-800); max-width: 260px; }
.fam-url { font-size: 13px; color: var(--tablecloth); }

@media (max-width: 860px) {
  .fam-cell { flex-basis: 50%; }
  .fam-cell:nth-child(3n+1) { border-left: 1px solid var(--stone-300); }
  .fam-cell:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 520px) {
  .fam-band { padding: 44px 16px 36px; }
  .fam-inner { gap: 24px; }
  .fam-grid { row-gap: 0; }
  .fam-cell, .fam-cell:nth-child(3n+1), .fam-cell:nth-child(2n+1) { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--stone-300); }
  .fam-card { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 14px; padding: 16px 4px; }
  .fam-lockup { flex: 1 1 100%; }
  .fam-blurb { max-width: none; font-size: 15px; }
  .fam-url { display: none; }
}
