/* Content pages: standard pages, the Artist page (image with text), the 404, the collections list and the artist profile (the Contact page).
   Builds on ui.css. Mobile first; wider layouts from 750px and 990px.

   Sections: 1 generic pages . 2 image with text . 3 404 . 4 collections list . 5 artist profile */

/* ---------- 1. Generic pages ---------- */
.ct { max-width: 130rem; }
.ct--narrow { max-width: 72rem; }
.ct-title { margin: 4px 0 16px; font-size: 2.8rem; line-height: 1.15; overflow-wrap: anywhere; }
.ct-body { font-size: 1.6rem; color: rgba(242, 242, 242, 0.88); overflow-wrap: anywhere; }
.ct-body p, .ct-body ul, .ct-body ol { margin: 0 0 1em; }
.ct-body h2, .ct-body h3 { margin: 1.4em 0 0.5em; }
.ct-body a { color: var(--ui-text); text-underline-offset: 4px; }
.ct-body img { max-width: 100%; height: auto; border-radius: var(--ui-radius-sm); }
.ct-body table { max-width: 100%; display: block; overflow-x: auto; }
@media screen and (min-width: 750px) { .ct-title { font-size: 3.6rem; } }

/* ---------- 2. Image with text (the Artist page) ---------- */
.ct-split { display: grid; gap: 22px; align-items: start; }
.ct-split__media { border-radius: var(--ui-radius); overflow: hidden; background: var(--ui-surface); }
.ct-split__media img { display: block; width: 100%; height: auto; }
.ct-btn { margin-top: 8px; }
@media screen and (max-width: 749px) { .ct-btn { display: flex; width: 100%; } }
@media screen and (min-width: 750px) {
  .ct-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .ct-split--reverse .ct-split__media { order: 2; }
  .ct-split--text { grid-template-columns: minmax(0, 72rem); justify-content: center; }
}

/* ---------- 3. 404 ---------- */
.ct-404 { text-align: center; max-width: 52rem; padding-top: 64px; padding-bottom: 64px; }
.ct-404__code { margin: 0; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.2em; color: var(--ui-signal); }
.ct-404__text { margin: 0 0 24px; color: var(--ui-muted); font-size: 1.6rem; }
.ct-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ct-404__actions .ui-btn { flex: 1 1 180px; max-width: 240px; }

/* ---------- 4. Collections list ---------- */
.ct-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.ct-card { display: block; color: var(--ui-text); text-decoration: none; }
.ct-card__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ui-radius-sm); background: var(--ui-surface); }
.ct-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-card__title { display: block; margin-top: 10px; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.5rem; line-height: 1.3; overflow-wrap: anywhere; }
.ct-card:hover .ct-card__title { text-decoration: underline; text-underline-offset: 4px; }
.ct-card:focus-visible { outline: 2px solid var(--ui-signal); outline-offset: 4px; border-radius: var(--ui-radius-sm); }
@media screen and (min-width: 750px) { .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } .ct-card__title { font-size: 1.7rem; } }

/* ---------- 5. Artist profile ---------- */
.ap { display: block; }
.ap-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ui-surface); }
.ap-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
div.ap-hero__shade { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75)); }
.ap-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 72rem; margin: 0 auto; padding: 44px var(--ui-gutter) 40px; text-align: center; }
.ap-hero__photo { flex: none; width: 150px; height: 150px; overflow: hidden; border-radius: 50%; border: 2px solid var(--ui-text); background: var(--ui-surface-2); }
.ap-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-hero__name { margin: 0; font-size: 3.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.ap-hero__role { margin: -6px 0 0; font-family: var(--ui-font-mono); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-signal); }
.ap-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ap-social a { display: grid; place-items: center; width: var(--ui-tap); height: var(--ui-tap); border-radius: 50%; }
.ap-social a:hover { background: rgba(255, 255, 255, 0.12); }
.ap-social img { width: 30px; height: 30px; object-fit: contain; }
.ap-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 380px; margin-top: 6px; }
.ap-nav__btn { background: rgba(0, 0, 0, 0.55); min-width: 0; }
.ap-nav__btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media screen and (min-width: 750px) {
  .ap-hero__inner { padding: 72px 32px 64px; gap: 18px; }
  .ap-hero__photo { width: 190px; height: 190px; }
  .ap-hero__name { font-size: 4.4rem; }
  .ap-nav { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; width: auto; }
  .ap-nav__btn:last-child:nth-child(odd) { grid-column: auto; }
  .ap-nav__btn { padding: 0 24px; }
}

.ap-section { padding: 44px 0 0; scroll-margin-top: calc(var(--ui-header-h) + 8px); }
.ap-section--last { padding-bottom: 48px; }
.ap-wrap { max-width: 96rem; margin: 0 auto; padding: 0 var(--ui-gutter); }
.ap-h2 { margin: 0 0 6px; font-size: 2.4rem; line-height: 1.2; overflow-wrap: anywhere; }
.ap-sub { margin: 0 0 18px; color: var(--ui-muted); font-size: 1.6rem; }
@media screen and (min-width: 750px) { .ap-wrap { padding: 0 32px; } .ap-h2 { font-size: 3rem; } .ap-section { padding-top: 64px; } }

/* releases: a row to swipe through */
.ap-releases { display: flex; gap: 14px; margin: 0; padding: 2px var(--ui-gutter) 6px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ap-releases::-webkit-scrollbar { display: none; }
.ap-release { flex: none; width: 68vw; max-width: 240px; scroll-snap-align: start; }
.ap-release__cover { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ui-radius-sm); background: var(--ui-surface); }
.ap-release__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-release__title { margin: 10px 0 0; font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
.ap-release__artist { margin: 2px 0 0; color: var(--ui-muted); font-size: 1.4rem; }
.ap-release__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media screen and (min-width: 750px) { .ap-releases { padding-left: max(32px, calc((100% - 96rem) / 2 + 32px)); padding-right: 32px; } }

/* live sets and interviews: image tiles */
.ap-tiles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.ap-tile { display: block; color: var(--ui-text); text-decoration: none; }
.ap-tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ui-radius-sm); background: var(--ui-surface); }
.ap-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-tile__title { display: block; margin-top: 10px; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
a.ap-tile:hover .ap-tile__title { text-decoration: underline; text-underline-offset: 4px; }
a.ap-tile:focus-visible { outline: 2px solid var(--ui-signal); outline-offset: 4px; border-radius: var(--ui-radius-sm); }
@media screen and (min-width: 750px) { .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* bio */
.ap-bio { display: grid; gap: 22px; }
.ap-bio__photo { width: min(100%, 320px); border-radius: var(--ui-radius); overflow: hidden; background: var(--ui-surface); }
.ap-bio__photo img { display: block; width: 100%; height: auto; }
.ap-lang { max-width: 260px; margin: 8px 0 16px; }
.ap-bio__text { max-width: 64ch; }
.bio-content { display: none; margin: 0; font-size: 1.6rem; line-height: 1.6; white-space: pre-line; color: rgba(242, 242, 242, 0.9); overflow-wrap: anywhere; }
.bio-content.active { display: block; }
@media screen and (min-width: 750px) { .ap-bio { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; align-items: start; } }
