/*
	The artist tag page. Loads after tokens.css and news.css (pageStyles: [tokens, news,
	artist]), so the masthead, the wrap and the tag-row grammar arrive from news.css and
	this file only styles what the page adds: the artist header with its feed link, and
	the story list, each row wearing the same colour family its home card wears.

	Keyboard hyphen only, sentence-case, no BEM: descriptive names and native nesting.
*/

.artist-main {
	padding-block-end: clamp(3rem, 7vw, 5.5rem);
}

.artist-inner {
	max-width: 44rem;
	margin-inline: auto;
	padding-block-start: clamp(1.75rem, 4vw, 2.75rem);
}

/* ------------------------------------------------------------------- header */

.artist-head {
	padding-block-end: clamp(1.5rem, 3vw, 2.25rem);
	border-block-end: 1px solid var(--hairline);
	margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.artist-kicker {
	font-family: var(--font-display);
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.artist-name {
	margin-block-start: 0.4rem;
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 5vw, 3.15rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--text);
	text-wrap: balance;
}

.artist-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 1rem;
	row-gap: 0.4rem;
	margin-block-start: 0.9rem;
}

.artist-count {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

/* The subscribe surface. Inked in the house accent so it reads as the action on the
   page; the icon is the conventional feed mark, the words carry the meaning. */
.artist-feed {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--font-display);
	font-size: 0.78rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--accent-text);
	text-decoration: none;
	border: 1px solid var(--hairline-bright);
	padding: 0.4rem 0.7rem;

	.icon {
		font-size: 0.85rem;
	}

	&:hover {
		border-color: var(--accent);
		color: var(--text);
	}
}

.artist-note {
	margin-block-start: 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--muted);
	max-width: 52ch;
}

/* ---------------------------------------------------------------- the stories */

.artist-stories {
	display: grid;
	gap: 0.85rem;
}

/* One row per story, the whole row one link, wearing the story's colour family the
   same way its home card does: a tinted panel with the type's ink on the leading edge. */
.artist-story {
	--row-accent: var(--accent);
	--row-accent-text: var(--accent-text);

	display: block;
	padding: 1rem 1.05rem;
	background: color-mix(in srgb, var(--row-accent) 3%, var(--panel));
	border: 1px solid color-mix(in srgb, var(--row-accent) 22%, var(--hairline));
	border-inline-start: 3px solid var(--row-accent);
	border-radius: 2px;
	text-decoration: none;

	&:hover {
		border-color: color-mix(in srgb, var(--row-accent) 45%, var(--hairline));
	}

	.tag-type {
		color: var(--row-accent-text);
	}
}

.artist-story[data-accent='tour'] {
	--row-accent: var(--tracker-tour);
	--row-accent-text: var(--tracker-tour-text);
}

.artist-story[data-accent='festival'] {
	--row-accent: var(--tracker-festival);
	--row-accent-text: var(--tracker-festival-text);
}

.artist-story[data-accent='award'] {
	--row-accent: var(--tracker-award);
	--row-accent-text: var(--tracker-award-text);
}

.artist-story[data-accent='band'] {
	--row-accent: var(--type-band);
	--row-accent-text: var(--type-band-text);
}

.artist-story[data-accent='industry'] {
	--row-accent: var(--type-industry);
	--row-accent-text: var(--type-industry-text);
}

.artist-story[data-accent='new'] {
	--row-accent: var(--type-new);
	--row-accent-text: var(--type-new-text);
}

/* A death story stays matte here as everywhere: no tint, no colour on its edge. */
.artist-story[data-accent='matte'] {
	--row-accent: var(--type-matte);
	--row-accent-text: var(--type-matte-text);

	background: var(--panel);
}

.artist-story-headline {
	margin-block-start: 0.55rem;
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
	text-wrap: balance;
}

.artist-story:hover .artist-story-headline {
	color: var(--row-accent-text);
}

.artist-story-dek {
	margin-block-start: 0.45rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--muted);
	max-width: 52ch;
}

/* The same thumb-target floor the hub's own feed link takes (audited 2026-08-28). */
@media (width < 64rem) {
	.artist-feed {
		min-height: 2.5rem;
	}
}
