/* ==========================================================================
   MORIFA — Single Activity Story page
   Plugin: morifa-activities-block / templates/single-activity.css
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────── */
.mrf-story-hero {
	position: relative;
	min-height: 540px;
	display: flex;
	align-items: flex-end;
	background-color: var(--color-sage-dark, #1F4D38);
	overflow: hidden;
}

/* Featured image (set as CSS custom property) */
.mrf-story-hero.has-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--mrf-hero-img);
	background-size: cover;
	background-position: center 30%;
}

/* Dark gradient overlay — stronger at bottom where text lives */
.mrf-story-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 35, 22, 0.90) 0%,
		rgba(15, 35, 22, 0.55) 45%,
		rgba(15, 35, 22, 0.22) 100%
	);
}

/* Content layer (above overlay) */
.mrf-story-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 120px;   /* clears fixed navbar (~80px) + breathing room */
	padding-bottom: 72px;
}

/* Breadcrumb / back link */
.mrf-story-crumb {
	margin-bottom: 20px;
}

.mrf-story-crumb a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-body, 'Outfit', sans-serif);
	font-size: 0.8125rem;        /* 13px */
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-brass-light, #E5C684);
	text-decoration: none;
	transition: color 180ms ease, gap 180ms ease;
}

.mrf-story-crumb a:hover {
	color: var(--color-brass, #D1A84B);
	gap: 10px;
}

/* Post title */
.mrf-story-hero-title {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(2.25rem, 4.5vw, 4rem);
	font-weight: 600;
	line-height: 1.12;
	color: var(--color-cream, #FDFAF5);
	margin: 0 0 20px 0;
	max-width: 820px;
}

/* Excerpt / lead text */
.mrf-story-hero-lead {
	font-family: var(--font-body, 'Outfit', sans-serif);
	font-size: 1.125rem;         /* 18px */
	line-height: 1.65;
	color: rgba(253, 250, 245, 0.80);
	max-width: 640px;
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────
   ARTICLE SECTION
   ────────────────────────────────────────────────────────────── */
.mrf-story-article {
	background: var(--color-stone, #F5F3F0);
	padding: 72px 0 96px;
}

.mrf-story-body {
	max-width: 780px;
	margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   PROSE TYPOGRAPHY
   ────────────────────────────────────────────────────────────── */
.mrf-story-content {
	font-family: var(--font-body, 'Outfit', sans-serif);
	font-size: 1.0625rem;        /* 17px */
	line-height: 1.85;
	color: var(--color-espresso, #3D2F1F);
}

.mrf-story-content p {
	margin: 0 0 1.6rem 0;
}

.mrf-story-content h2 {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
	font-weight: 600;
	color: var(--color-sage-dark, #1F4D38);
	margin: 2.8rem 0 1rem 0;
	line-height: 1.22;
}

.mrf-story-content h3 {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(1.2rem, 2.2vw, 1.6rem);
	font-weight: 600;
	color: var(--color-sage, #2D6B4F);
	margin: 2.2rem 0 0.75rem 0;
	line-height: 1.3;
}

.mrf-story-content ul,
.mrf-story-content ol {
	padding-left: 1.75rem;
	margin-bottom: 1.6rem;
}

.mrf-story-content li {
	margin-bottom: 0.5rem;
}

.mrf-story-content blockquote {
	border-left: 4px solid var(--color-brass, #D1A84B);
	margin: 2.4rem 0;
	padding: 1.25rem 1.75rem;
	background: var(--color-stone-dark, #EDE9E4);
	border-radius: 0 8px 8px 0;
}

.mrf-story-content blockquote p {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--color-sage-dark, #1F4D38);
	margin: 0;
	line-height: 1.55;
}

.mrf-story-content a {
	color: var(--color-sage, #2D6B4F);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mrf-story-content a:hover {
	color: var(--color-sage-dark, #1F4D38);
}

.mrf-story-content img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 2rem 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.mrf-story-content figure {
	margin: 2rem 0;
}

.mrf-story-content figcaption {
	font-size: 0.875rem;
	color: var(--muted-foreground, rgba(61, 47, 31, 0.6));
	text-align: center;
	margin-top: 0.5rem;
}

/* Empty / placeholder state */
.mrf-story-content--empty {
	padding: 3rem 2rem;
	background: var(--color-stone-dark, #EDE9E4);
	border-radius: 12px;
	text-align: center;
	color: var(--muted-foreground, rgba(61, 47, 31, 0.6));
	font-style: italic;
}

/* ──────────────────────────────────────────────────────────────
   BACK CTA ROW
   ────────────────────────────────────────────────────────────── */
.mrf-story-back-row {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(61, 47, 31, 0.12);
}

.mrf-story-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body, 'Outfit', sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-sage, #2D6B4F);
	text-decoration: none;
	padding: 10px 22px;
	border: 1.5px solid var(--color-sage, #2D6B4F);
	border-radius: 9999px;
	transition: background 180ms ease, color 180ms ease;
}

.mrf-story-back-btn svg {
	flex-shrink: 0;
	transition: transform 180ms ease;
}

.mrf-story-back-btn:hover {
	background: var(--color-sage, #2D6B4F);
	color: var(--color-cream, #FDFAF5);
}

.mrf-story-back-btn:hover svg {
	transform: translateX(-3px);
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.mrf-story-hero {
		min-height: 400px;
	}

	.mrf-story-hero-content {
		padding-top: 100px;
		padding-bottom: 52px;
	}

	.mrf-story-article {
		padding: 48px 0 64px;
	}

	.mrf-story-body {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.mrf-story-hero {
		min-height: 340px;
	}

	.mrf-story-hero-content {
		padding-top: 90px;
		padding-bottom: 40px;
	}
}
