/* ==========================================================================
   AM10 Records — main stylesheet
   ========================================================================== */

:root {
	/* Brand blue + cream (from the AM10 Records logo artwork).
	   fg is a hair lighter than the logo cream so small text clears 4.5:1 on the blue. */
	--bg: #3170ca;
	--bg-rgb: 49, 112, 202;
	--surface: #2a62b3;
	--fg: #fbf8f2;
	--muted: #fbf8f2;
	--line: rgba(251, 248, 242, 0.28);
	--accent: #ffd400;      /* large text and focus rings only (3.4:1 on the blue) */
	--highlight: #ffd400;
	--ink: #0b1f3f;         /* text on yellow */

	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(16px, 3.5vw, 56px);
	--section: clamp(88px, 12vw, 176px);
	--bar-h: 64px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--fast: 180ms;
	--slow: 700ms;

	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--mono);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* Sections receive focus programmatically after nav clicks; no ring needed there */
[tabindex="-1"]:focus { outline: none; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--fg); }

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

.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 1000;
	padding: 10px 16px; background: var(--fg); color: var(--bg);
	font-size: 14px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Underline-on-hover for text links */
.menu__meta a,
.contact__info a,
.site-footer a,
.roster__links a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--fast) var(--ease-out), color var(--fast);
	padding-bottom: 1px;
}
.menu__meta a:hover,
.contact__info a:hover,
.site-footer a:hover,
.roster__links a:hover { background-size: 100% 1px; }

/* Top menus: a yellow block wipes in behind the item on hover / keyboard focus.
   Side padding is cancelled by negative margin so the text doesn't move. */
.hero__list a,
.site-bar__list a {
	padding-inline: 6px;
	margin-inline: -6px;
	background: linear-gradient(var(--highlight), var(--highlight)) 0 50% / 0 1.7em no-repeat;
	transition: background-size 260ms var(--ease-out), color 160ms;
}
.hero__list a:hover,
.hero__list a:focus-visible,
.site-bar__list a:hover,
.site-bar__list a:focus-visible {
	background-size: 100% 1.7em;
	color: var(--ink);
}
.site-bar__list a[aria-current="true"] { text-decoration: underline; text-underline-offset: 5px; }

/* ==========================================================================
   Sticky bar + mobile menu
   ========================================================================== */

.site-bar {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--bar-h);
	display: flex; align-items: center; gap: 24px;
	padding: 0 var(--gutter);
	background: rgba(var(--bg-rgb), 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transform: translateY(-100%);
	transition: transform 360ms var(--ease-out);
}
.site-bar.is-visible,
.site-bar.is-static,
.site-bar:focus-within,
body.menu-open .site-bar { transform: none; }

.site-bar__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-bar__logo .logo { width: 88px; height: auto; }

.site-bar__nav { margin-left: auto; }
.site-bar__list { display: flex; gap: 32px; }
.site-bar__list a { display: inline-block; padding: 12px 0; }

.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 4px; }

.menu {
	position: fixed; inset: var(--bar-h) 0 0 0; z-index: 90;
	background: var(--bg);
	overflow-y: auto;
}
.menu__inner {
	min-height: 100%;
	display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
	padding: 32px var(--gutter) 40px;
}
.menu__list a {
	display: block;
	font-family: var(--serif);
	font-size: clamp(44px, 13vw, 72px);
	line-height: 1.1;
	padding: 4px 0;
}
.menu__meta { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.menu__meta a { display: inline-block; padding: 6px 0; }

body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
	min-height: 100vh;
	min-height: 100svh;
}

.hero__media { position: relative; overflow: hidden; background: #000; }
.hero__media img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 59% 50%; /* keeps the skyline's tallest tower in frame */
	animation: hero-media 1.6s var(--ease-out) both;
}

.hero__panel {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: clamp(28px, 5vw, 80px) clamp(24px, 4vw, 64px) clamp(28px, 3.5vw, 56px) clamp(24px, 2.2vw, 40px);
	background: var(--bg);
}

/* One row: section links, then socials, ending at the panel's right edge */
.hero__cols {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: baseline;
	gap: 8px clamp(22px, 2.6vw, 44px);
	font-size: clamp(12px, 0.5vw + 7.5px, 14px);
	line-height: 1.7;
}
.hero__cols .hero__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px clamp(12px, 1.6vw, 26px);
}

.hero__title {
	position: relative;
	align-self: center;
	justify-self: end;
	display: flex; flex-direction: column;
	width: 62%;
	margin: clamp(40px, 6vw, 80px) 0;
	font-weight: 400;
}
.hero__index {
	position: absolute; top: 42%; right: 100%;
	margin-right: clamp(10px, 1.2vw, 20px);
	font-size: clamp(13px, 1.2vw, 18px);
	text-transform: none;
}
.hero__logo {
	display: block;
	width: 100%; height: auto;
	animation: rise 1.1s var(--ease-out) 0.15s both;
}
.hero__script {
	align-self: flex-end;
	margin-top: clamp(8px, 1.4vw, 24px);
	margin-right: -0.04em;
	font-style: italic;
	font-size: clamp(40px, 5.4vw, 104px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	animation: rise 1.1s var(--ease-out) 0.35s both;
}
/* Circled "c", nodding to the reference's © ligature */
.hero__c {
	display: inline-block;
	font-size: 0.62em;
	line-height: 1;
	padding: 0.02em 0.14em 0.1em;
	margin: 0 0.04em;
	border: max(1.5px, 0.045em) solid currentColor;
	border-radius: 50%;
	vertical-align: 0.1em;
	font-style: normal;
}

.hero__foot {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
	flex-wrap: wrap;
}
.hero__foot .muted { text-transform: none; }

@keyframes rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}
@keyframes hero-media {
	from { opacity: 0; transform: scale(1.06); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
	padding: var(--section) var(--gutter) 0;
	max-width: 1680px;
	margin: 0 auto;
}

.section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 8px 24px;
	padding-bottom: clamp(20px, 2.4vw, 32px);
	margin-bottom: clamp(32px, 5vw, 72px);
	border-bottom: 1px solid var(--line);
}
.section-head__index { grid-column: 1 / -1; }
.section-head__title {
	font-size: clamp(52px, 9vw, 152px);
	line-height: 0.92;
	letter-spacing: -0.02em;
}
.section-head__title em { font-style: italic; }
.section-head__note { padding-bottom: 0.6em; }

/* --- Featured release --- */

.feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 96px);
	align-items: end;
	margin-bottom: clamp(64px, 8vw, 128px);
}
.feature__cover { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.feature__cover img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: 16px; padding-bottom: 8px; }
.feature__title {
	font-size: clamp(44px, 6.4vw, 112px);
	line-height: 0.95;
	font-style: italic;
	letter-spacing: -0.015em;
}
.feature__artist { font-size: 15px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 0 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.arrow { flex: none; }

/* --- Release grid --- */

.grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.card__link { display: block; }
.card__cover {
	position: relative; display: block;
	aspect-ratio: 1; overflow: hidden;
	background: var(--surface);
	margin-bottom: 14px;
}
.card__cover img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--slow) var(--ease-out), opacity var(--fast);
}
.card__listen {
	position: absolute; left: 12px; bottom: 12px;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px;
	font-size: 12px;
	background: var(--fg); color: var(--bg);
	border-radius: 999px;
	opacity: 0; transform: translateY(6px);
	transition: opacity var(--fast), transform var(--fast) var(--ease-out);
}
.card__link:hover .card__cover img,
.card__link:focus-visible .card__cover img { transform: scale(1.04); }
.card__link:hover .card__listen,
.card__link:focus-visible .card__listen { opacity: 1; transform: none; }
.card__meta { display: block; font-size: 12px; margin-bottom: 4px; }
.card__title { display: block; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; }

/* --- Artists roster --- */

.roster {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}
.roster__row {
	display: grid;
	grid-template-columns: 3.5em 1fr auto;
	align-items: center;
	gap: 16px;
	padding: clamp(14px, 1.6vw, 22px) 0;
	border-bottom: 1px solid var(--line);
	transition: color var(--fast);
}
.roster__row:first-child { border-top: 1px solid var(--line); }
.roster__thumb { display: none; }
.roster__main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.roster__name {
	font-size: clamp(36px, 5.4vw, 92px);
	line-height: 1;
	letter-spacing: -0.015em;
	transition: color var(--fast), transform 400ms var(--ease-out);
}
.roster__links { display: flex; gap: 16px; font-size: 12px; }
.roster__links a { display: inline-block; padding: 8px 0; }
.roster__row.is-active .roster__name { color: var(--accent); transform: translateX(10px); }
.roster__role { font-size: 12px; text-align: right; }

.roster__preview {
	position: sticky; top: calc(var(--bar-h) + 32px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--surface);
}
.roster__preview img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
	opacity: 0; transform: scale(1.04);
	transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out);
}
.roster__preview img.is-active { opacity: 1; transform: none; }
.roster__caption {
	position: absolute; left: 16px; bottom: 16px;
	padding: 6px 10px; font-size: 12px;
	background: rgba(var(--bg-rgb), 0.85);
}

/* --- About --- */

.about__text {
	max-width: 24ch;
	font-size: clamp(32px, 4.4vw, 72px);
	line-height: 1.12;
	letter-spacing: -0.01em;
}
.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(48px, 6vw, 96px);
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.facts dt, .contact__info dt { font-size: 12px; margin-bottom: 6px; }

/* --- Contact --- */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 120px);
	align-items: start;
}
.contact__text { max-width: 52ch; color: var(--muted); margin-bottom: 32px; }
.contact__email {
	display: inline-flex; align-items: baseline; gap: 0.3em;
	max-width: 100%;
	font-size: clamp(22px, 3vw, 52px);
	line-height: 1.15;
	overflow-wrap: anywhere;
	border-bottom: 1px solid var(--line);
	padding-bottom: 8px;
	transition: color var(--fast), border-color var(--fast);
}
.contact__email .arrow { width: 0.4em; height: 0.4em; }
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__info { display: grid; gap: 28px; }
.contact__info dd { text-transform: none; }
.contact__info dd a { text-transform: uppercase; display: inline-block; padding: 4px 0; }
.contact__info ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	margin-top: clamp(64px, 8vw, 112px);
	padding: 0 var(--gutter) 24px;
}
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
	max-width: 1680px; margin: 0 auto;
	padding-top: 20px; border-top: 1px solid var(--line);
	font-size: 12px;
}
.site-footer__bottom p { text-transform: none; color: var(--muted); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__social a, .to-top { display: inline-block; padding: 10px 0; }

/* ==========================================================================
   Generic pages
   ========================================================================== */

/* Not ".page": WordPress puts that class on <body> for every Page, including a static front page */
.page-main { padding: calc(var(--bar-h) + var(--section) / 2) var(--gutter) 0; max-width: 860px; margin: 0 auto; }
.entry + .entry { margin-top: 80px; }
.entry__title { font-size: clamp(40px, 6vw, 88px); line-height: 1; margin-bottom: 32px; }
.entry__content { font-size: 17px; line-height: 1.75; }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Scroll reveal (only when JS is running)
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
	transition-delay: calc(var(--d, 0) * 60ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.site-bar__nav { display: none; }
	.menu-toggle { display: inline-flex; align-items: center; }

	/* On small screens the bar is always there: it carries the menu */
	.site-bar { transform: none; background: rgba(var(--bg-rgb), 0.95); }

	.hero { grid-template-columns: 1fr; min-height: 0; padding-top: var(--bar-h); }
	.hero__media { aspect-ratio: 4 / 4.2; max-height: 62svh; }
	.hero__cols { display: none; }
	.hero__panel { padding: 32px var(--gutter) 28px; }
	.hero__title { width: 70%; margin: 0 0 40px; }
	.hero__index { position: static; margin: 0 0 12px; }

	.feature { grid-template-columns: 1fr; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.roster { grid-template-columns: 1fr; }
	.roster__preview { display: none; }
	.roster__row { grid-template-columns: 64px 1fr; }
	.roster__thumb {
		display: block; grid-row: span 2;
		width: 64px; height: 80px; object-fit: cover; object-position: 50% 20%;
	}
	.roster__index { display: none; }
	.roster__role { grid-column: 2; text-align: left; }
	.roster__row.is-active .roster__name { transform: none; }

	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
	.grid { gap: 28px 12px; }
	.card__title { font-size: 19px; }
	.menu__meta { grid-template-columns: 1fr; }
}

@media (hover: none) {
	.card__listen { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}
