/* About page cards, in the project cards' language: rounder corners
   (1.5rem on the card, 1.125rem on anything set inside it), and pictures
   that sit just inside the card with their own rounded corners. */

/* "Working with me" (im-card), "Outside the brief" (off-card) and the
   "Building / Learning" card (now-card). */
.im-card, .off-card, .now-card { border-radius: 1.5rem !important; }
.im-card { padding: 1.5rem 1.5rem 1.625rem; }
.off-card { padding: 1.5rem 1.5rem 1.625rem; }
.now-card { padding: 0.5rem 1.5rem; }

/* Pictures inside the cards: rounded to sit inside the card's curve. */
.om-screen { border-radius: 1.125rem !important; }
.lf-pic { border-radius: 1.125rem !important; }
.ab-snap-pic { border-radius: 0.5rem !important; }
.om-sc { border-radius: 99px !important; }
.om-genres li { border-radius: 99px !important; padding: 0.1875rem 0.625rem !important; }

/* Phones: a size down. */
@media (max-width: 640px) {
  .im-card, .off-card, .now-card { border-radius: 1.25rem !important; }
  .im-card, .off-card { padding: 1.25rem; }
  .om-screen, .lf-pic { border-radius: 1rem !important; }
}

/* "Life, lately": the grey card gets room to breathe. */
.now-card { padding: 0.75rem 2rem !important; }
.now-list > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.375rem 0; }
.ab-life-top { gap: 3rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) {
  .now-card { padding: 0.5rem 1.25rem !important; }
  .now-list > div { grid-template-columns: 1fr; gap: 0.375rem; padding: 1.125rem 0; }
  .ab-life-top { gap: 1.75rem; margin-bottom: 1.75rem; }
}

/* "Life, lately": a tinted card with more room inside, sitting closer to
   the photo strip below. */
.now-card { background: var(--lilac-bg) !important; padding: 1rem 2.25rem !important; }
.now-list > div { padding: 1.5rem 0; }
.now-list > div + div { border-top-color: color-mix(in srgb, var(--lilac-ink) 12%, transparent); }
.now-list dt { color: var(--lilac-ink); opacity: 0.75; }
.ab-life-top { margin-bottom: 1.5rem; }
@media (max-width: 640px) { .now-card { padding: 0.75rem 1.375rem !important; } .now-list > div { padding: 1.25rem 0; } .ab-life-top { margin-bottom: 1.25rem; } }
.ab-life { row-gap: 0 !important; }
.ab-life-top { margin-bottom: 1.5rem !important; }

/* Even space above the first row and below the last. */
.now-list > div:first-child { padding-top: 0.875rem !important; }
.now-list > div:last-child { padding-bottom: 0.875rem !important; }
/* While the strip measures its tallest opened photo (js/about-extra.js),
   nothing animates, so the measurement is the finished size. */
.ab-pile.is-measuring, .ab-pile.is-measuring * { transition: none !important; }
@media (max-width: 640px) { .ab-pile .ab-track { align-items: flex-start; } }
/* Phones: "At a glance" closer to the photo strip above it. */
@media (max-width: 640px) { .ab-glance { margin-top: 2.4306rem !important; } } /* 35px at the default text size */

/* The scroll hint beside "At a glance" (js/about-extra.js), phones only. */
.ab-down { display: none; }
@media (max-width: 640px) {
  .ab-glance.has-down { position: relative; }
  .ab-down { position: absolute; top: 0; right: 0; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--ink); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
  html.ab-top .ab-down { opacity: 1; pointer-events: auto; }
  .ab-down svg { width: 1.125rem; height: 1.125rem; }
  .ab-down:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 50%; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .ab-down:hover svg { transform: translateY(2px); transition: transform 0.25s ease; } }
/* The hint sits on the right of the name row, centred on it. */
@media (max-width: 640px) {
  .ab-glance .ab-sig { display: flex; align-items: center; }
  .ab-sig .ab-down { position: static; margin-left: auto; align-self: center; }
}
/* The hint nudges down, the same rhythm as Home's arrow; still in Calm or
   with motion reduced. */
@keyframes ab-down-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="calm"]) .ab-down svg { animation: ab-down-nudge 2.4s ease-in-out infinite; }
}
