/* David Billing — "Editorial": warm paper, ink, serif, one misty-teal accent from Against the Wind */

:root {
	--bg: #f4f1ea;
	--text: #1d2322;
	--muted: #5d6663;
	--accent: #2e5754;
	--rule: #d9d4c8;
	--serif: 'Fraunces', Georgia, serif;
	--sans: 'Inter', system-ui, sans-serif;
	--gutter: clamp(16px, 6vw, 96px);
	--measure: 1200px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

[hidden] {
	display: none !important;
}

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;
}

em {
	font-style: italic;
	font-weight: 300;
}

.eyebrow {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Navigation */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 1.25rem var(--gutter);
	background: rgba(244, 241, 234, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rule);
	font-size: 0.9375rem;
}

.nav-links {
	display: flex;
	gap: clamp(1rem, 3vw, 2.25rem);
}

.nav a {
	color: var(--muted);
	transition: color 0.3s;
}

.nav a:hover {
	color: var(--text);
}

/* Hero */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	max-width: var(--measure);
	margin: 0 auto;
	padding: clamp(3rem, 10vw, 8rem) var(--gutter);
}

.hero-title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(3.5rem, 10vw, 8.5rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin: 1.25rem 0 2rem;
}

.hero-title em {
	display: block;
	color: var(--accent);
}

.hero-lead {
	max-width: 34ch;
	font-family: var(--serif);
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 300;
	line-height: 1.5;
	margin-bottom: 2.5rem;
}

.text-link {
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.2rem;
	color: var(--accent);
	font-weight: 500;
	transition: color 0.3s;
}

.text-link:hover {
	color: var(--text);
}

.hero-portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: grayscale(1);
}

/* Sections */
.section {
	max-width: var(--measure);
	margin: 0 auto;
	padding: clamp(4rem, 10vw, 7rem) var(--gutter);
	border-top: 1px solid var(--rule);
}

.section-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 5vw, 5rem);
}

.section-title {
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
}

/* Latest release */
.release {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	margin-top: 2rem;
}

.release-cover {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	box-shadow: 0 30px 60px -30px rgba(29, 35, 34, 0.45);
}

.release-title {
	font-family: var(--serif);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 2rem;
}

.player {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}

.release-info .eyebrow {
	margin-bottom: 0.75rem;
}

.release-link {
	display: inline-block;
	margin-top: 1.5rem;
}

/* Listen index */
.index {
	list-style: none;
	border-top: 1px solid var(--text);
}

.index a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--rule);
	font-family: var(--serif);
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 300;
	transition: color 0.3s, padding 0.3s;
}

.index li:first-child a {
	font-style: italic;
	color: var(--accent);
}

.index a:hover {
	color: var(--accent);
	padding-left: 0.75rem;
}

/* Discography reuses the index list, with type and year instead of an arrow */
.discography a {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
}

.discography li:first-child a {
	font-style: normal;
	color: inherit;
}

.discography-meta {
	flex-shrink: 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* About */
.about p {
	max-width: 62ch;
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.about .about-lead {
	color: var(--text);
	font-family: var(--serif);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 300;
	line-height: 1.4;
	margin-bottom: 2rem;
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

.facts dt {
	color: var(--muted);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.facts dd {
	font-family: var(--serif);
	font-size: 1.5rem;
}

/* Contact */
.contact {
	text-align: center;
}

.contact-mail {
	display: inline-block;
	margin-top: 1.5rem;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.75rem, 6vw, 4.5rem);
	line-height: 1.1;
	overflow-wrap: anywhere;
	color: var(--accent);
	border-bottom: 1px solid var(--rule);
	transition: border-color 0.3s;
}

.contact-mail:hover {
	border-color: var(--accent);
}

/* Footer */
.footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--measure);
	margin: 0 auto;
	padding: 2rem var(--gutter);
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.875rem;
}

.footer a {
	border-bottom: 1px solid var(--rule);
}

.footer a:hover {
	color: var(--text);
}

/* Mobile */
@media (max-width: 760px) {
	.hero,
	.release,
	.section-split {
		grid-template-columns: 1fr;
	}

	.hero-portrait {
		order: -1;
		max-width: 360px;
	}

	.facts {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.footer {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
