/**
 * Dark Romance Book Blast - home page layout.
 *
 * Loaded only on the front page (see drbb_enqueue_template_styles()).
 * Depends on style.css tokens + main.css components.
 */

/* --- Hero (logo only) -------------------------------------------------- */

.drbb-front-page .drbb-hero {
	padding-block: clamp(1.75rem, 5vw, 3rem) clamp(0.5rem, 2vw, 1rem);
}

/* Blend the band into the logo artwork's own background. */
.drbb-hero--logo {
	background-color: var(--drbb-logo-bg);
}

.drbb-hero__heading {
	margin: 1.25rem 0 0.75rem;
	font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.drbb-front-page .drbb-hero .drbb-lede {
	margin-bottom: 0;
	max-width: 52ch;
	font-size: 1.05rem;
}

.drbb-hero__logo {
	display: block;
	width: min(15rem, 44vw);
	height: auto;
	margin: 0 auto;
}

/* --- Promotions -------------------------------------------------------- */

/* Same ground as the hero, so the logo band flows straight into it -
   with a trimmed top so the gap under the logo stays tight. */
.drbb-promos {
	background-color: var(--drbb-logo-bg);
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Keep the gap between the promo cards and the covers tight. */
.drbb-covers-band {
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.drbb-promo {
	margin: 1.5rem 0 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background-color: var(--drbb-ink);
	color: var(--drbb-text-invert);
	border-radius: var(--drbb-radius);
}

.drbb-promo__date {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--drbb-accent-soft);
}

.drbb-promo__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	color: var(--drbb-text-invert);
}

.drbb-promo__body {
	margin: 0 0 1.5rem;
	color: var(--drbb-text-invert-muted);
	line-height: 1.65;
	max-width: 52ch;
}

/* Authors' note: its own card under the readers' promo. */
.drbb-promo--authors .drbb-promo__body {
	margin-bottom: 0;
	max-width: none;
}

.drbb-promos__subhead {
	margin: 2.75rem 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--drbb-text-muted);
}

.drbb-schedule {
	list-style: none;
	margin: 0;
	padding: 0;
}

.drbb-schedule__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--drbb-rule);
}

.drbb-schedule__item:first-child {
	border-top: 1px solid var(--drbb-rule);
}

.drbb-schedule__date {
	flex: 0 0 10rem;
	font-weight: 600;
	color: var(--drbb-accent-deep);
}

.drbb-schedule__name {
	flex: 1 1 16rem;
}

/* --- Covers ------------------------------------------------------------ */

.drbb-covers {
	list-style: none;
	margin: 2.25rem 0 0;
	padding: 0;
	display: grid;
	gap: var(--drbb-gap);
	grid-template-columns: repeat(6, 1fr);
}

.drbb-covers__item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.drbb-cover {
	display: block;
	aspect-ratio: 2 / 3;
	border-radius: var(--drbb-radius);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25)),
		var(--drbb-ink-raised);
	border: 1px solid var(--drbb-rule);
	border-left: 4px solid var(--drbb-accent);
}

.drbb-cover-link {
	display: block;
	border-radius: var(--drbb-radius);
	overflow: hidden;
	transition: opacity 150ms ease;
}

.drbb-cover-link:hover,
.drbb-cover-link:focus-visible {
	opacity: 0.88;
}

.drbb-cover-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--drbb-radius);
}

@media (prefers-reduced-motion: reduce) {
	.drbb-cover-link {
		transition: none;
	}
}

.drbb-covers__title {
	font-weight: 600;
	line-height: 1.3;
}

.drbb-covers__author {
	color: var(--drbb-text-muted);
}

.drbb-covers__note,
.drbb-covers__band .drbb-covers__note {
	margin: 1.75rem 0 0;
	font-size: 0.8rem;
	color: var(--drbb-text-muted);
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 60rem) {
	.drbb-covers {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 40rem) {
	.drbb-covers {
		grid-template-columns: repeat(3, 1fr);
	}
	.drbb-schedule__date {
		flex-basis: 100%;
	}
}
