/* The team bio pages (round 4, row 43): a contributor's page. The story in the article measure with a drop cap, then
   Experience as a dated ledger, the expertise list quiet in the margin. Tokens only (system/tokens.css): Gloock and
   Figtree, paper and ink, flat. Served as system/bios.css on the bio pages (design-lab/vix-site/bios/README.md). */

/* The two columns of the bio hero (inner.css: portrait .6fr, name 1.4fr), carried down the page: the headings and the
   quiet list sit under the portrait, the story and the ledger start on the name's left edge. */
.bio-sec .bio-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: var(--s5) clamp(28px, 5vw, 72px); align-items: start; }
.bio-story .bio-grid { grid-template-areas: "head body" "side body"; grid-template-rows: auto 1fr; }
.bio-story .bio-head { grid-area: head; }
.bio-story .bio-body { grid-area: body; }
.bio-story .bio-side { grid-area: side; }
.bio-sec .bio-head h2 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.05; max-width: 12ch; }
.bio-exp .bio-head h2 { position: sticky; top: 92px; }
.bio-title { color: var(--muted); }

/* the story: the article's measure and its drop cap (site.css .read-body) */
.bio-prose { max-width: 660px; }
.bio-prose > p { max-width: none; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.62; text-wrap: pretty; }
.bio-prose > p + p { margin-top: 1.1em; }
.bio-prose > p:first-child::first-letter { float: left; font: 400 5em/.82 var(--display); padding: .07em .1em 0 0; color: var(--ink); }
.bio-prose > .bio-links { margin-top: var(--s5); font-size: 16px; clear: both; }

/* the quiet list: what live prints as the person's expertise */
.bio-side { padding-top: var(--s2); }
.bio-sec .bio-label { font: 600 var(--label)/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bio-quiet { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* the ledger: a heavy rule on top, a hairline between entries; the period in the margin in small caps, the entry's
   name in Gloock, the role and the description in Figtree */
.bio-ledger { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.bio-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2) var(--s5); padding-block: var(--s5) calc(var(--s5) + 2px); border-bottom: 1px solid var(--line); }
.bio-ledger.dated .bio-entry { grid-template-columns: 172px minmax(0, 1fr); }
.bio-when { font: 600 var(--label)/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: none; white-space: nowrap; }
.bio-ledger.dated .bio-when { padding-top: .62em; }
.bio-what { min-width: 0; }
.bio-what h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.bio-what .bio-role { margin-top: 6px; font: 600 15px/1.35 var(--body); max-width: none; }
.bio-what .bio-desc { margin-top: var(--s3); font-size: var(--text); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }

/* one column: the heading, then the words, then the quiet list; on a phone the period sits above each entry */
@media (max-width: 860px) {
  .bio-sec .bio-grid { grid-template-columns: minmax(0, 1fr); }
  .bio-story .bio-grid { grid-template-areas: "head" "body" "side"; grid-template-rows: auto; }
  .bio-sec .bio-head h2 { max-width: none; }
  .bio-exp .bio-head h2 { position: static; }
  .bio-side { padding-top: var(--s4); border-top: 1px solid var(--line); margin-top: var(--s3); }
}
@media (max-width: 620px) {
  .bio-ledger.dated .bio-entry { grid-template-columns: minmax(0, 1fr); }
  .bio-ledger.dated .bio-when { padding-top: 0; }
  .bio-when:empty { display: none; }
}
@media (max-width: 480px) {
  .bio-prose > p { font-size: 17.5px; }
  .bio-prose > p:first-child::first-letter { font-size: 4.4em; }
}
