/* Artists listing page — Ernie Ball */

/* ── Header Section ─────────────────────────────────────────── */

.artists-header {
    background: #000;
    color: #fff;
    padding: 3rem 1rem 2rem;
}

.artists-header-family {
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Legacy h6 eyebrow: Medium, 5px tracking. */
    font-weight: 500;
    letter-spacing: 5px;
    color: #999; /* 7.4:1 on the header's black */
    margin: 0 0 0.25rem;
}

.artists-header-title {
    /* Weight, case and tracking from the global heading rule (legacy h1);
       sized to the legacy page title, capped at 3.5rem. */
    font-size: clamp(2.25rem, 1rem + 5.5vw, 3.5rem);
    margin-bottom: 1rem;
}

.artists-header-description {
    font-size: var(--type-body-size);
    line-height: 1.6;
    color: #ccc;
    max-width: 48rem;
    margin: 0 auto;
}

/* ── Featured Artists Masonry ────────────────────────────────── */

.artists-featured {
    background: #000;
}

.featured-card {
    position: relative;
    overflow: hidden;
}

.featured-card-inner {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
}

.featured-card--hero .featured-card-inner {
    aspect-ratio: 1 / 1;
}

.featured-card--tall .featured-card-inner {
    aspect-ratio: 1 / 2;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-card-caption {
    overflow-wrap: anywhere; /* same reason as .artist-card-caption */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.featured-card-caption .artist-name {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.featured-card-caption .artist-band {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.15rem;
}

/* ── Regular Artists Grid ────────────────────────────────────── */

.artists-grid {
    background: #000;
}

.artist-card {
    position: relative;
    overflow: hidden;
}

.artist-card-inner {
    position: relative;
    display: block;
}

.artist-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.artist-card:hover img {
    transform: scale(1.05);
}

.artist-card-caption {
    /* Names and bands in caps ("MAN/WOMAN/CHAINSAW", "COUNTERPUNCH/DEATH BY
       STEREO") outran a phone-width card, which clips; break them instead. */
    overflow-wrap: anywhere;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.artist-name {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

/* Legacy band names were uppercase (Light at 12pt; Book here, under 24px). */
.artist-band {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.15rem;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Legacy caption scale: names 16pt and band names 12pt from 1200px. */
@media (min-width: 1200px) {
    .artist-name,
    .featured-card-caption .artist-name {
        font-size: 1.3333rem;
    }

    .artist-band,
    .featured-card-caption .artist-band {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .featured-card--hero .featured-card-inner,
    .featured-card--tall .featured-card-inner {
        aspect-ratio: 1 / 1;
    }
}

/* ── Card links ──────────────────────────────────────────────
   The whole card is the link. `.artist-card-inner` and
   `.featured-card-inner` are already position:relative + display:block,
   so promoting them to <a> needs no layout change — only colour reset
   and a visible focus ring, which the grid never had.               */

.artist-card-link {
    color: inherit;
    text-decoration: none;
}

.artist-card-link:focus-visible {
    outline: 3px solid #ff10a4;
    outline-offset: 2px;
}
