/* /about-me — type and spacing only from the tokens and .t-* styles of shared/site.css (docs/type-system.md) */
.ab-hero { padding-top: calc(var(--header-h) + var(--sp-grid)); padding-bottom: var(--sp-section); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-action) clamp(32px, 6vw, 96px); align-items: center; }
.ab-hero__side > .t-h2 + .t-body { max-width: 560px; }
.ab-nb { white-space: nowrap; }
.ab-hero__photo { margin: 0; }
.ab-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.ab-sec { padding-bottom: var(--sp-section); scroll-margin-top: calc(var(--header-h) + var(--sp-grid)); }
.ab-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-grid) clamp(32px, 6vw, 96px); align-items: start; }
.ab-body { max-width: 640px; }
.ab-body > .t-h3:not(:first-child) { margin-top: calc(var(--sp-action) * 2); }
.ab-body > .t-body + .ab-steps { margin-top: var(--sp-action); }
.ab-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-cap) var(--sp-action); margin-top: var(--sp-action); }
.ab-links + .t-body { margin-top: var(--sp-action); }
.ab-hero .ab-links { margin-top: var(--sp-action); }
/* text link inside paragraphs, as on the homepage */
.tx { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease-in-out; }
@media (hover: hover) { .tx:hover { color: var(--accent); text-decoration: none; } }
.tx:focus-visible { color: var(--accent); }

.ab-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.ab-steps li { position: relative; padding: var(--sp-cap) 0 var(--sp-cap) 32px; border-top: 1px solid var(--line); counter-increment: step; }
.ab-steps li:last-child { border-bottom: 1px solid var(--line); }
.ab-steps li::before { content: counter(step) "."; position: absolute; left: 0; top: var(--sp-cap); font: 600 var(--fs-label)/1.6 var(--font); letter-spacing: .12em; color: var(--accent); }

/* videos: light cover first, the YouTube player only after a click (about.js) */
.ab-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-grid); margin-top: calc(var(--sp-action) * 2); }
.ab-vid { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.ab-vid img, .ab-vid iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ab-vid__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); transition: background-color .2s ease-in-out; }
.ab-vid__play::after { content: ""; position: absolute; left: 28px; top: 23px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ab-vid:hover .ab-vid__play { background: #000; }

/* convention results: year groups in two columns */
.ab-aw { columns: 2; column-gap: clamp(32px, 6vw, 96px); margin-top: calc(var(--sp-action) * 2); }
.ab-aw__year { break-inside: avoid; }
.ab-aw__year + .ab-aw__year { margin-top: var(--sp-action); }
.ab-aw__year > .t-h3 { padding-bottom: var(--sp-label); color: var(--accent); break-after: avoid; }
.ab-aw ul { list-style: none; margin: 0; padding: 0; }
.ab-aw li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--sp-cap); padding: var(--sp-label) 0; border-top: 1px solid var(--line); break-inside: avoid; }
.ab-aw li > .t-label { padding-top: 3px; }
.ab-aw__foot { display: none; margin-top: var(--sp-action); }
.ab-aw__what { display: block; }
.ab-aw__what strong { display: block; font: 700 var(--fs-body)/1.4 var(--font); }
.ab-aw__what .t-small { display: block; margin-top: 2px; color: var(--muted); }

/* recommended pages */
.ab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-action) var(--sp-grid); margin-top: calc(var(--sp-action) * 2); }
.ab-card { display: flex; flex-direction: column; align-items: flex-start; }
.ab-card__img { display: block; width: 100%; margin-bottom: var(--sp-cap); }
.ab-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ab-card .t-h3 + .t-body { margin-top: var(--sp-label); }
.ab-card .tl { margin-top: var(--sp-cap); }
.ab-next { padding-bottom: 0; }

@media (max-width: 960px) {
  .ab-hero__grid, .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-aw { columns: 1; }
  /* Show More (about.js): html.js is set before first paint, so nothing jumps; without JS every row is visible */
  .js .ab-aw__year[data-step] { display: none; }
  .js .ab-aw__year.is-open { display: block; }
  .js .ab-aw__foot { display: flex; justify-content: center; }
  .ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ab-vids, .ab-cards { grid-template-columns: minmax(0, 1fr); }
}
