/*
 * home.css — front page, matching the homepage prototype.
 * Depends on the tokens in main.css (and .qcm-pill / .qcm-band__btn
 * from archive.css, which is also enqueued on the front page).
 */

.qcm-home {
	max-width: var(--qcm-max);
	margin: 0 auto;
}


.qcm-highlight--peach {
	background: var(--qcm-peach);
	color: var(--qcm-white);
}

.qcm-highlight--ink {
	background: var(--qcm-ink);
	color: var(--qcm-white);
}

/* Tinted image placeholders */
.qcm-tint--cyan { background: var(--qcm-cyan); }
.qcm-tint--powder { background: var(--qcm-powder); }
.qcm-tint--peach { background: var(--qcm-peach); }

/* ---- Hero ---- */
.qcm-hero {
	padding-top: 56px;
}

.qcm-hero__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.qcm-hero__title {
	margin: 16px 0 0;
	font-size: clamp(48px, 7vw, 96px);
	line-height: 0.96;
	max-width: 1120px;
	text-wrap: pretty;
}

.qcm-hero__title .qcm-highlight {
	padding: 0 0.1em;
}

.qcm-hero__row {
	margin-top: 28px;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 48px;
	align-items: end;
}

.qcm-hero__lede {
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
	max-width: 600px;
}

.qcm-hero__cta {
	display: flex;
	justify-content: flex-end;
}

.qcm-hero__btn {
	padding: 16px 24px;
	background: var(--qcm-ink);
	color: var(--qcm-white);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.qcm-hero__btn:hover {
	background: var(--qcm-peach);
	color: var(--qcm-white);
}

.qcm-hero__img {
	margin-top: 36px;
	height: 520px;
	overflow: hidden;
	background: var(--qcm-cyan);
}

.qcm-hero__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Stats band */
.qcm-stats {
	margin-top: 2px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px;
	background: var(--qcm-ink);
	border: var(--qcm-rule);
}

.qcm-stat {
	background: var(--qcm-white);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.qcm-stat:hover {
	background: var(--qcm-cyan);
	color: var(--qcm-ink);
}

.qcm-stat__num {
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1;
}

.qcm-stat__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--qcm-slate);
}

/* ---- Trending ---- */
.qcm-trending {
	margin-top: 56px;
	padding-top: 22px;
	border-top: var(--qcm-rule);
}

.qcm-trending__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.qcm-trending__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qcm-slate);
	white-space: nowrap;
}

.qcm-trending__rule {
	flex: 1;
	height: 1px;
	background: var(--qcm-powder);
}

.qcm-trending__grid {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 32px;
}

.qcm-trend {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--qcm-powder);
}

.qcm-trend:hover {
	background: var(--qcm-cyan);
	color: var(--qcm-ink);
}

.qcm-trend__num {
	flex: none;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.05em;
	color: var(--qcm-powder);
	line-height: 0.9;
}

.qcm-trend__title {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

/* ---- Section head ---- */
.qcm-sect {
	padding-top: 96px;
}

.qcm-sect__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.qcm-sect__title {
	margin: 0;
	font-size: 56px;
	line-height: 1;
}



/* ---- Latest: editorial list rows ---- */
.qcm-latestlist {
	margin-top: 28px;
	border-top: var(--qcm-rule);
}

.qcm-latestrow {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 180px;
	gap: 32px;
	align-items: baseline;
	padding: 26px 0;
	border-bottom: 1px solid var(--qcm-powder);
}

.qcm-latestrow:hover {
	background: var(--qcm-cyan);
	color: var(--qcm-ink);
}

.qcm-latestrow__cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qcm-slate);
}

.qcm-latestrow__title {
	display: block;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.qcm-latestrow__dek {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.45;
	max-width: 640px;
}

.qcm-latestrow__meta {
	font-size: 13px;
	color: var(--qcm-slate);
	text-align: right;
}

/* (qcm-story styles below are shared with the Spotlights page.) */
.qcm-story__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 16px;
}

.qcm-story__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qcm-story__title {
	margin: 8px 0 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.qcm-story__title .qcm-highlight {
	padding: 0 0.12em;
}

.qcm-story__meta {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--qcm-slate);
}

/* ---- Find it in band ---- */
.qcm-findband {
	margin-top: 96px;
	padding: 56px 0;
	border-top: var(--qcm-rule);
	border-bottom: var(--qcm-rule);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
}

.qcm-findband__title {
	margin: 0;
	font-size: 64px;
	line-height: 0.98;
}

.qcm-findband__title .qcm-highlight--peach {
	padding: 0 0.1em;
}

.qcm-findband__sub {
	margin: 16px 0 0;
	font-size: 18px;
	max-width: 440px;
	line-height: 1.45;
}

.qcm-findband__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---- Eat & Drink feature ---- */
.qcm-feature {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.qcm-feature__img {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	margin-bottom: 16px;
}

.qcm-feature__img img,
.qcm-feature__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qcm-feature__title {
	margin: 8px 0 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.qcm-feature__title .qcm-highlight,
.qcm-feature__rowtitle .qcm-highlight {
	padding: 0 0.12em;
}

.qcm-feature__dek {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.5;
}

.qcm-feature__stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 28px;
}

.qcm-feature__row {
	display: flex;
	gap: 22px;
}

.qcm-feature__thumb {
	flex: none;
	width: 200px;
	aspect-ratio: 1;
	overflow: hidden;
}

.qcm-feature__rowtitle {
	margin: 8px 0 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

/* ---- Home events ---- */
.qcm-homeevents {
	padding-top: 96px;
}


.qcm-homeevents__list {
	display: flex;
	flex-direction: column;
	border-top: var(--qcm-rule);
	margin-top: 36px;
}

.qcm-homeevent {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 24px 0;
	border-bottom: 1px solid var(--qcm-powder);
}

.qcm-homeevent:last-child {
	border-bottom: 0;
}

.qcm-homeevent__day {
	font-size: 56px;
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1;
}

.qcm-homeevent__day small {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-left: 6px;
}

.qcm-homeevent__title {
	display: block;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.qcm-homeevent__title .qcm-highlight {
	padding: 0 0.12em;
}

.qcm-homeevent__meta {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: var(--qcm-slate);
}

.qcm-homeevent__arrow {
	font-size: 13px;
	font-weight: 700;
}

/* ---- Get listed band ---- */
.qcm-getlisted {
	margin: 96px 0 0;
	padding: 56px;
	background: var(--qcm-powder);
}

.qcm-getlisted__title {
	margin: 0;
	font-size: 56px;
	line-height: 0.98;
}

.qcm-getlisted__title .qcm-highlight--ink {
	padding: 0 0.1em;
}

.qcm-getlisted__sub {
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.45;
	max-width: 480px;
}

.qcm-getlisted__actions {
	margin-top: 26px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.qcm-hero__row,
	.qcm-findband,
	.qcm-feature,
	.qcm-hero__cta {
		justify-content: flex-start;
	}

	.qcm-hero__img {
		height: 300px;
	}

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

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

	.qcm-latestrow {
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 8px 20px;
	}

	.qcm-latestrow__title {
		font-size: 25px;
	}

	.qcm-latestrow__meta {
		grid-column: 2;
		text-align: left;
	}

	.qcm-sect__title,
	.qcm-findband__title,
	.qcm-getlisted__title {
		font-size: 38px;
	}

	.qcm-homeevent {
		grid-template-columns: 84px 1fr auto;
	}

	.qcm-homeevent__day {
		font-size: 40px;
	}

	.qcm-feature__thumb {
		width: 120px;
	}

	.qcm-getlisted {
		padding: 40px 24px;
	}
}

@media (max-width: 560px) {
	.qcm-stats,
	.qcm-trending__grid {
		grid-template-columns: 1fr;
	}

	.qcm-latestrow {
		grid-template-columns: 1fr;
	}

	.qcm-latestrow__meta {
		grid-column: 1;
	}
}
