/* About page: a reading page (see --page-reading). The text is set at reading size (--fs-heading, 16px) and the lead-text width
   (--measure-short, about 73 characters a line), the same right edge as the subtitle above it, and the contents list takes the rest
   of the column and stays in view. On narrow screens the contents move above the text. The contents come first in the markup, so
   the grid places the two explicitly rather than reordering them. The text is in pages/about.md */
.about-layout { --about-top: calc(var(--mast-bottom, 68px) + var(--sp-3));   /* 12px under the sticky masthead */
  display: grid; grid-template-columns: minmax(0, var(--measure-short)) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.about-toc { grid-column: 2; grid-row: 1; position: sticky; top: var(--about-top); }
.about-toc-small { display: none; }
.about-toc-links { display: grid; gap: var(--sp-2); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.about-toc-links a { color: var(--muted); font-weight: var(--fw-medium); }
.about-toc-links a:hover, .about-toc-links a[aria-current] { color: var(--ink); }
.about-doc { grid-column: 1; grid-row: 1; display: grid; gap: var(--sp-5); min-width: 0; font-size: var(--fs-heading); line-height: var(--lh-body); }
.about-doc p, .about-doc li { margin: 0; text-wrap: pretty; }
.about-doc ul { margin: 0; padding-left: var(--sp-4); display: grid; gap: var(--sp-2); }
.about-doc section { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--rule); scroll-margin-top: var(--about-top); }
.about-doc h3 { font-family: var(--display); font-size: var(--fs-section); font-weight: var(--fw-medium); line-height: var(--lh-tight); letter-spacing: var(--ls-display); margin: 0; text-wrap: balance; }
@media (max-width: 860px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .about-doc { grid-column: auto; grid-row: auto; }
  .about-toc { display: none; }
  .about-toc-small { display: block; border-block-start: 1px solid var(--rule); }   /* the first section's mark closes it, so no line underneath */
  .about-toc-small summary { padding-block: var(--sp-3); cursor: pointer; font-weight: var(--fw-medium); }
  .about-toc-small .about-toc-links { padding-block-end: var(--sp-3); }
  .about-doc section { scroll-margin-top: var(--sp-4); }
}
