/**
 * M · Promo Grid — styles
 * Brand tokens: moss / terracotta / cream / gold, Cormorant Garamond.
 * Scoped under .mpg-wrapper so nothing leaks into the rest of the theme.
 */

.mpg-wrapper {
	--mpg-cream: #f8f4ec;
	--mpg-moss: #5c6650;
	--mpg-terracotta: #c1663f;
	--mpg-gold: #b98d3e;
	--mpg-ink: #2f2b24;

	font-family: 'MuseoModerno', Georgia, serif;
	color: var(--mpg-ink);
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Hero — quiet "spotlight" frame ---------- */

.mpg-hero {
	position: relative;
	background: var(--mpg-cream);
	border-radius: 14px;
	border-top: 3px solid var(--mpg-moss);
	padding: 2.5rem 2rem 3rem;
	text-align: center;
	margin-bottom: 2.5rem;
	box-shadow: 0 2px 10px rgba(47, 43, 36, 0.06);
}

/* Open corner brackets, top-left and bottom-right, echoing a frame */
.mpg-hero::before,
.mpg-hero::after {
	content: '';
	position: absolute;
	width: 28px;
	height: 28px;
	border-color: rgba(92, 102, 80, 0.35);
	border-style: solid;
}

.mpg-hero::before {
	top: 14px;
	left: 14px;
	border-width: 1px 0 0 1px;
}

.mpg-hero::after {
	bottom: 14px;
	right: 14px;
	border-width: 0 1px 1px 0;
}

.mpg-hero__frame {
	max-width: 640px;
	margin: 0 auto;
}

.mpg-hero__intro,
.mpg-hero__calm,
.mpg-hero__cta-text {
	font-style: italic;
	font-size: 1.1rem;
	color: var(--mpg-ink);
	opacity: 0.8;
	margin: 0;
}

.mpg-hero__divider {
	width: 60px;
	height: 1px;
	background: var(--mpg-moss);
	opacity: 0.5;
	margin: 1rem auto;
}

.mpg-hero__quote-box {
	background: rgba(92, 102, 80, 0.12);
	border-left: 3px solid var(--mpg-moss);
	border-radius: 10px;
	padding: 1.5rem 2rem;
	margin: 0 0 1.5rem;
}

.mpg-hero__quote {
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	font-weight: 600;
	color: var(--mpg-moss);
	line-height: 1.4;
	margin: 0;
}

.mpg-hero__calm {
	margin-bottom: 0;
}

.mpg-hero__cta-text {
	margin-bottom: 1.75rem;
}

.mpg-hero__button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--mpg-moss);
	color: var(--mpg-cream);
	font-size: 1.05rem;
	text-decoration: none;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.mpg-hero__button:hover,
.mpg-hero__button:focus {
	background: var(--mpg-terracotta);
	transform: translateY(-1px);
	color: var(--mpg-cream);
}

/* ---------- Grid ---------- */

.mpg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.mpg-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(92, 102, 80, 0.15);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mpg-card:hover,
.mpg-card:focus {
	box-shadow: 0 6px 18px rgba(47, 43, 36, 0.12);
	transform: translateY(-3px);
}

.mpg-card__image-wrap {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--mpg-cream);
}

.mpg-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpg-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem 1.1rem;
}

.mpg-card__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--mpg-moss);
	line-height: 1.3;
}

.mpg-card__price {
	font-size: 0.95rem;
	color: var(--mpg-terracotta);
}

/* ---------- Admin notice ---------- */

.mpg-admin-notice {
	font-family: sans-serif;
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	padding: 0.75rem 1rem;
}

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

@media (max-width: 480px) {
	.mpg-hero {
		padding: 2rem 1.25rem;
	}

	.mpg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}
