/* Studio DjB — one-screen label index. The label stays quiet; each artist brings its own type and colour. */

:root {
	--bg: #f5f4f0;
	--text: #161616;
	--muted: #6b6a66;
	--accent: #6d1f3a;
	--rule: rgba(22, 22, 22, 0.14);
	--logo-filter: none;
	--sans: 'Inter', system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 56px);
}

/* Hover (or keyboard focus) on an artist borrows that artist page's palette */
@media (hover: hover) {
	body:has(.artist--pulse > a:is(:hover, :focus-visible)) {
		--bg: #131512;
		--text: #e4e4dc;
		--muted: #8d918a;
		--accent: #c9bf52;
		--rule: rgba(228, 228, 220, 0.14);
		--logo-filter: invert(1) hue-rotate(180deg);
	}

	body:has(.artist--bass > a:is(:hover, :focus-visible)) {
		--bg: #07060a;
		--text: #f5f2f7;
		--muted: #a49db0;
		--accent: #ff3d9a;
		--rule: rgba(245, 242, 247, 0.16);
		--logo-filter: invert(1) hue-rotate(180deg);
	}

	body:has(.artist--david > a:is(:hover, :focus-visible)) {
		--bg: #f4f1ea;
		--text: #1d2322;
		--muted: #5d6663;
		--accent: #2e5754;
		--rule: #d9d4c8;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.4s ease, color 0.4s ease;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Header */
.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: clamp(12px, 2.5vh, 28px) var(--gutter) 0;
}

.logo img {
	width: auto;
	height: clamp(44px, 9vh, 88px);
	filter: var(--logo-filter);
	transition: filter 0.4s ease;
}

.tagline,
.artist-no,
.artist-genre,
.bottom {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 0.4s ease;
}

/* Roster */
.roster {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding: clamp(1rem, 3vh, 2.5rem) var(--gutter);
}

.artists {
	list-style: none;
	border-top: 1px solid var(--rule);
}

.artist a {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: clamp(0.75rem, 2.4vh, 1.75rem) 0;
	border-bottom: 1px solid var(--rule);
	transition: padding 0.3s ease, border-color 0.4s ease;
}

.artist-thumb {
	display: none;
}

.artist-text {
	display: grid;
	gap: 0.35rem;
}

.artist-name {
	font-size: clamp(2.25rem, min(6.2vw, 10vh), 6.5rem);
	line-height: 1;
	transition: color 0.3s ease;
}

/* Each name previews its artist page's typography */
.artist--pulse .artist-name {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 300;
	letter-spacing: -0.04em;
}

.artist--bass .artist-name {
	font-family: 'Anton', 'Impact', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}

.artist--david .artist-name {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 300;
	letter-spacing: -0.02em;
}

.artist-go {
	font-size: clamp(1.25rem, 3vh, 2rem);
	opacity: 0;
	transform: translateX(-0.5rem);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.artist a:is(:hover, :focus-visible) {
	padding-left: 1rem;
}

.artist a:is(:hover, :focus-visible) .artist-name,
.artist a:is(:hover, :focus-visible) .artist-go {
	color: var(--accent);
}

.artist a:is(:hover, :focus-visible) .artist-go {
	opacity: 1;
	transform: none;
}

/* Artwork stack */
.stage {
	position: relative;
	justify-self: center;
	width: min(100%, 52vh);
	aspect-ratio: 1;
}

.art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.45);
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, filter 0.4s ease;
}

.art--pulse {
	transform: rotate(-7deg) translate(-6%, 2%);
}

.art--bass {
	transform: rotate(4deg) translate(5%, -3%);
}

.art--david {
	transform: rotate(-1deg) translate(0, 5%) scale(0.92);
}

.roster:has(.artist a:is(:hover, :focus-visible)) .art {
	opacity: 0.12;
	filter: grayscale(1);
}

.roster:has(.artist--pulse > a:is(:hover, :focus-visible)) .art--pulse,
.roster:has(.artist--bass > a:is(:hover, :focus-visible)) .art--bass,
.roster:has(.artist--david > a:is(:hover, :focus-visible)) .art--david {
	z-index: 1;
	opacity: 1;
	filter: none;
	transform: rotate(0) scale(1.04);
}

/* Footer */
.bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem 2rem;
	padding: 0 var(--gutter) clamp(12px, 2.5vh, 28px);
	letter-spacing: 0.08em;
}

.about {
	max-width: 52ch;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
	font-weight: 400;
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.links a {
	color: var(--text);
	transition: color 0.3s ease;
}

.links a:hover {
	color: var(--accent);
}

/* Tablet and phone: no artwork stack, small covers beside each name instead */
@media (max-width: 860px) {
	.roster {
		grid-template-columns: 1fr;
	}

	.stage {
		display: none;
	}

	.artist a {
		grid-template-columns: clamp(48px, 14vw, 72px) minmax(0, 1fr) auto;
	}

	.artist-no {
		display: none;
	}

	.artist-thumb {
		display: block;
		width: 100%;
		aspect-ratio: 1;
		object-fit: cover;
	}

	.artist-name {
		font-size: clamp(1.75rem, min(9vw, 6.5vh), 3.5rem);
	}

	.artist-go {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
