/* ALBUMS PAGE ONLY
   Overrides and additions on top of about.css.
   Loaded only for the albums page template.
 */

/* Decorative hero covers positioned absolutely; they do not affect text flow or hero height. */
.kw-album-hero__covers {
	position: absolute;
	bottom: 92px;
	right: clamp(80px, 10vw, 180px);
	width: 460px;
	height: 320px;
	z-index: 3;
	pointer-events: none;
}

.kw-album-hero__covers.has-3 {
	width: 540px;
	height: 340px;
	right: clamp(40px, 6vw, 120px);
}

.kw-album-hero__cover {
	position: absolute;
	object-fit: cover;
	border: 1px solid rgba(238, 230, 213, 0.45);
	box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

.kw-album-hero__cover--back {
	width: 240px;
	height: 240px;
	left: 0;
	bottom: 0;
	transform: rotate(-5deg) translateY(12px);
	z-index: 2;
}

.kw-album-hero__cover--middle {
	width: 250px;
	height: 250px;
	left: 135px;
	bottom: 10px;
	transform: rotate(0deg);
	z-index: 2;
}

.kw-album-hero__cover--front {
	width: 275px;
	height: 275px;
	right: 0;
	bottom: 0;
	transform: rotate(4deg) translate(-38px, 24px);
	z-index: 3;
}

.kw-album-hero__covers.has-3 .kw-album-hero__cover--front {
	transform: rotate(4deg) translate(-20px, 24px);
}

/* Album list */
.kw-album-intro__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.kw-album-intro__list li {
	min-width: 0;
	margin: 0;
	overflow: visible;
}

.kw-album-intro__list a {
	font-family: var(--kw-font-serif, Georgia, "Times New Roman", serif);
	font-size: 27px;
	line-height: 1.45;
	color: var(--kw-about-ink);
	text-decoration: none;
	white-space: nowrap;
}

.kw-album-intro__list a:hover,
.kw-album-intro__list a:focus-visible {
	color: var(--kw-about-rust);
}

.kw-album-intro__year {
	display: inline-block;
	margin-left: 18px;
	font-family: var(--kw-font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: rgba(37, 37, 30, 0.55);
	white-space: nowrap;
}

.kw-album-intro__year.is-coming-soon,
.kw-album-card__year.is-coming-soon {
	color: #c0392b;
	font-style: italic;
}

/* Album cards */
.kw-album-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 80px;
	margin-top: 68px;
}

.kw-album-card {
	background: rgba(238, 230, 213, 0.72);
	border: 1px solid rgba(168, 138, 81, 0.38);
	padding: 56px 56px 62px;
}

.kw-album-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.kw-album-card__cover {
	margin: 0 auto;
	width: min(72%, 440px);
	background: #c7bca7;
	border: 1px solid rgba(37, 37, 30, 0.1);
}

.kw-album-card__cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.kw-album-card__meta {
	margin-top: 1.6rem;
}

.kw-album-card__year {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--kw-font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kw-about-rust);
}

.kw-album-card__meta h3 {
	font-size: clamp(1.55rem, 1.9vw, 2rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--kw-about-ink);
}

/* Responsive */
@media (max-width: 1180px) {
	.kw-album-hero__covers {
		position: relative;
		bottom: auto;
		right: auto;
		justify-self: center;
		width: min(82vw, 460px);
		height: 280px;
		margin: 0 auto -50px;
	}

	.kw-album-hero__covers.has-3 {
		width: min(82vw, 520px);
		height: 300px;
	}

	.kw-album-hero__cover--back {
		width: 220px;
		height: 220px;
		left: 0;
		bottom: 0;
		transform: rotate(-5deg) translateY(10px);
	}

	.kw-album-hero__cover--middle {
		width: 230px;
		height: 230px;
		left: 120px;
		bottom: 5px;
		transform: rotate(0deg);
	}

	.kw-album-hero__cover--front {
		width: 250px;
		height: 250px;
		right: 0;
		bottom: 0;
		transform: rotate(4deg) translate(-30px, 20px);
	}

	.kw-album-hero__covers.has-3 .kw-album-hero__cover--front {
		transform: rotate(4deg) translate(-15px, 20px);
	}

	.kw-album-intro__list a {
		font-size: 24px;
	}

	.kw-album-intro__year {
		font-size: 13px;
	}
}

@media (max-width: 1024px) {
	.kw-album-page .kw-about-intro {
		margin-top: 0;
	}

	.kw-album-page .kw-about-intro__paper {
		clip-path: none;
	}

	.kw-album-page .kw-about-intro__paper::before,
	.kw-album-page .kw-about-intro__paper::after {
		display: none;
	}

	.kw-album-intro__list {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.kw-album-intro__list a {
		font-size: 22px;
	}

	.kw-album-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 620px) {
	.kw-album-hero__covers {
		width: min(82vw, 320px);
		height: 220px;
		margin-bottom: -40px;
	}

	.kw-album-hero__covers.has-3 {
		width: min(82vw, 320px);
		height: 200px;
	}

	.kw-album-hero__cover--back {
		width: 150px;
		height: 150px;
		left: 0;
		bottom: 0;
		transform: rotate(-5deg) translateY(8px);
	}

	.kw-album-hero__cover--middle {
		width: 160px;
		height: 160px;
		left: 75px;
		bottom: 4px;
		transform: rotate(0deg);
	}

	.kw-album-hero__cover--front {
		width: 170px;
		height: 170px;
		right: 0;
		bottom: 0;
		transform: rotate(4deg) translate(-15px, 12px);
	}

	.kw-album-hero__covers.has-3 .kw-album-hero__cover--front {
		transform: rotate(4deg) translate(-8px, 12px);
	}

	.kw-album-card {
		padding: 36px 28px 40px;
	}

	.kw-album-card__cover {
		width: min(78%, 320px);
	}
}

@media (max-width: 480px) {
	.kw-album-intro__list {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.kw-album-intro__list a {
		font-size: 19px;
	}

	.kw-album-cards {
		gap: 16px;
	}

	.kw-album-card {
		padding: 24px 20px;
	}

	.kw-album-card__cover {
		width: min(86%, 260px);
	}

	.kw-album-card__meta h3 {
		font-size: 1.15rem;
	}
}
