/* ============================================================
   Artist pages (/artists/<id>) — built by scripts/build-artists.mjs.
   Rides on styles.css tokens; light ivory page, works in dark theme.
   ============================================================ */
.ap-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.ap-brand { font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: -.04em; line-height: 44px; }
.ap-top .link-btn { line-height: 44px; border-bottom-color: var(--rule); }

.ap { padding-top: clamp(28px, 4vw, 56px); }
.ap-hero {
  display: grid; gap: clamp(24px, 4vw, 64px); align-items: end;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.ap-card { margin: 0; aspect-ratio: 9 / 16; background: var(--ivory-2); overflow: hidden; justify-self: start; width: min(100%, calc(80svh * 9 / 16)); }
.ap-card img { width: 100%; height: 100%; object-fit: cover; }
.ap-info { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(8px, 2vw, 24px); }
.ap-info .eyebrow { margin: 0; }
.ap-info .display { font-size: clamp(54px, 9vw, 150px); }

.ap-sec { padding-top: clamp(56px, 7vw, 104px); }
.ap-sec > .eyebrow { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }

.ap-gallery { display: grid; gap: clamp(10px, 1.4vw, 20px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-gallery figure { margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ivory-2); }
.ap-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.ap-gallery figure:hover img { transform: scale(1.04); }

.ap-rels { list-style: none; margin: 0; padding: 0; }
.ap-rels li > a, .ap-rels li > div {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule); min-height: 44px;
}
.ap-rels li > a:hover .ap-t { text-decoration: underline; text-underline-offset: 4px; }
.ap-thumb { width: 52px; aspect-ratio: 1; overflow: hidden; background: var(--ivory-2); }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-t { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.ap-a { font-weight: 400; font-size: 13px; color: var(--muted); }
.ap-d { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-go { color: var(--muted); }

.ap-more { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
.ap-more a { display: flex; flex-direction: column; gap: 6px; }
.ap-more img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ivory-2); }
.ap-more .n { font-weight: 600; font-size: 14px; }
.ap-more .lb { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ap-more a:hover .n { text-decoration: underline; text-underline-offset: 4px; }

.ap .site-footer { margin-top: clamp(64px, 8vw, 112px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 759px) {
  .ap-hero { grid-template-columns: minmax(0, 1fr); }
  .ap-card { width: 100%; }
  .ap-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-rels li > a, .ap-rels li > div { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ap-thumb { width: 44px; }
  .ap-go { display: none; }
}
