/* The artist page (/artist/?u=<username>), a top-level section of its own.
   ---------------------------------------------------------------------------
   It used to live at /music/artist/ and was styled on the music engine's
   --mus-* tokens because it sat inside the music app shell. Owner rule (Kaʻo,
   2026-08-02): an artist is not a music entity, their work is a mix of posters,
   songs and who they are. So this is written on the site's own --wt-* tokens,
   the ones /resources/, /store/ and every article page use, and it inherits
   light and dark from the shell with no rules of its own for either.

   Every color here is a watchtower token whose contrast is measured in
   assets/cdo-watchtower.css (--wt-ink 11.8:1 light / 13.6:1 dark on the page,
   --wt-ink-soft 7.4 / 9.3, --wt-ink-quiet 5.0 / 5.2). The one color this file
   introduces is the avatar, and the ink on it is chosen by luminance in
   lib/artists.js (modeOf), the same rule the crown on a poster follows. */

.ap { max-width: 1120px; margin: 0 auto; padding: clamp(18px, 4vw, 34px) clamp(16px, 3vw, 24px) 64px; }
.ap-loading { color: var(--wt-ink-quiet); font-size: 15px; }

/* ---- the profile ---- */
.ap-profile { max-width: 62rem; }
.ap-eyebrow {
  margin: 0 0 .5rem; font: 800 .68rem/1.2 var(--wt-font-display, "Montserrat", system-ui, sans-serif);
  letter-spacing: .12em; text-transform: uppercase; color: var(--wt-ink-quiet);
}
/* Letter-spacing pulls a cursive script apart and breaks the joins between
   letters, so the tracked-out eyebrow is Latin only. Same carve-out
   templates/coach-detail.html makes for its focus label. */
html[dir="rtl"] .ap-eyebrow { letter-spacing: normal; }

.ap-id { display: flex; align-items: center; gap: clamp(14px, 3vw, 22px); flex-wrap: wrap; }
/* The initial stands in for a photo: a persona has no portrait, and inventing a
   face for one would imply a person who does not exist. aria-hidden in the
   markup, because the name it stands for is the h1 right beside it. */
.ap-avatar {
  flex: 0 0 auto; width: clamp(72px, 14vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--ap-color, #2c5f4e);
  font: 800 clamp(30px, 6vw, 44px)/1 var(--wt-font-display, "Montserrat", system-ui, sans-serif);
  color: #fffdf9;
}
.ap-avatar[data-ink="dark"] { color: #161616; }
.ap-name { margin: 0; font-size: clamp(28px, 5.6vw, 42px); line-height: 1.08; letter-spacing: -.02em; color: var(--wt-ink); }
.ap-handle { margin: 4px 0 0; color: var(--wt-ink-quiet); font-size: 15px; }
.ap-bio { margin: 18px 0 0; color: var(--wt-ink-soft); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; max-width: 62ch; }

.ap-facts {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--wt-ink-quiet); font-size: 14.5px;
}
.ap-fact { display: flex; align-items: baseline; gap: 6px; }
.ap-fact__n { font-weight: 700; color: var(--wt-ink); }
.ap-note {
  margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--wt-panel-border);
  background: var(--wt-panel-bg); border-radius: 10px;
  color: var(--wt-ink-soft); font-size: 14px; line-height: 1.5; max-width: 62ch;
}

/* ---- the work ---- */
.ap-shelf { margin: clamp(30px, 5vw, 46px) 0 0; }
.ap-shelf__h { margin: 0 0 14px; font-size: clamp(19px, 2.6vw, 23px); letter-spacing: -.01em; color: var(--wt-ink); }
/* The cell size only; .kc-pcard fills whatever cell it is given, exactly as it
   does on the poster wall (.pa-grid). One card system, one measurement. */
.ap-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ap-grid .kc-pcard { min-width: 0; }
.ap-empty { margin: 26px 0 0; color: var(--wt-ink-quiet); font-size: 15px; }

/* The player bar is fixed to the bottom of the viewport once a song starts, so
   the last shelf needs somewhere to end that is not underneath it. */
body:has(.mus-bar) .ap { padding-bottom: 132px; }
