/**
 * Mafron Meet the Founder — front-end styles.
 *
 * Colours and metrics come from the theme's tokens where they exist, with the
 * Mafron palette as the fallback so the section still looks right on its own.
 */

.maffd-section {
	--maffd-gold: var(--maf-gold, #c08d2d);
	--maffd-gold-600: var(--maf-gold-600, #a8761f);
	--maffd-ink: var(--maf-ink, #171717);
	--maffd-ink-2: var(--maf-ink-2, #3d3d3d);
	--maffd-muted: var(--maf-muted, #6e6e6e);
	--maffd-line: var(--maf-line, #ece5d9);
	--maffd-radius: var(--maf-radius, 8px);
	--maffd-display: var(--maf-display, "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);

	--maffd-bg: var(--maf-bg-soft, #faf7f2);
	--maffd-fg: var(--maffd-ink-2);
	--maffd-strong: var(--maffd-ink);

	padding: var(--maf-section-y, 92px) 0;
	background: var(--maffd-bg);
	color: var(--maffd-fg);
}

.maffd-section--white {
	--maffd-bg: var(--maf-bg, #ffffff);
}

.maffd-section--dark {
	--maffd-bg: var(--maf-dark, #1c1c1c);
	--maffd-fg: rgba(255, 255, 255, .78);
	--maffd-strong: #ffffff;
	--maffd-line: rgba(255, 255, 255, .14);
	--maffd-muted: rgba(255, 255, 255, .6);
}

.maffd-container {
	width: 100%;
	max-width: var(--maf-container, 1200px);
	margin: 0 auto;
	padding: 0 var(--maf-gutter, 24px);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.maffd-grid {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.maffd-section--photo-right .maffd-grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}

.maffd-section--photo-right .maffd-portrait {
	order: 2;
}

.maffd-section--no-photo .maffd-grid {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
	text-align: center;
}

/* ==========================================================================
   Portrait
   ========================================================================== */

.maffd-portrait {
	position: relative;
}

/*
 * A thin gold rule offset behind the photo. It is decorative, so it is drawn
 * with a pseudo-element rather than an extra element in the markup.
 */
.maffd-portrait::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--maffd-gold);
	border-radius: var(--maffd-radius);
	opacity: .55;
	pointer-events: none;
}

.maffd-section--photo-right .maffd-portrait::before {
	inset: 22px 22px -22px -22px;
}

.maffd-portrait__frame {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: var(--maffd-radius);
	background: var(--maf-bg-warm, #f6f2ea);
	box-shadow: var(--maf-shadow, 0 18px 44px rgba(28, 28, 28, .09));
	aspect-ratio: 6 / 7;
}

.maffd-portrait__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* ==========================================================================
   Text
   ========================================================================== */

.maffd-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--maffd-gold);
}

.maffd-heading {
	margin: 0 0 22px;
	font-family: var(--maffd-display);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.02em;
	color: var(--maffd-strong);
}

.maffd-prose {
	font-size: 17px;
	line-height: 1.78;
	color: var(--maffd-fg);
}

.maffd-prose > :first-child { margin-top: 0; }
.maffd-prose > :last-child { margin-bottom: 0; }

.maffd-prose p {
	margin: 0 0 1.15em;
}

.maffd-prose h3,
.maffd-prose h4 {
	font-family: var(--maffd-display);
	color: var(--maffd-strong);
	margin: 1.6em 0 .5em;
}

.maffd-prose strong {
	color: var(--maffd-strong);
	font-weight: 700;
}

.maffd-prose a {
	color: var(--maffd-gold-600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.maffd-section--dark .maffd-prose a {
	color: var(--maffd-gold);
}

.maffd-prose ul,
.maffd-prose ol {
	margin: 0 0 1.15em;
	padding-left: 1.3em;
}

.maffd-prose li {
	margin-bottom: .4em;
}

.maffd-prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--maffd-gold);
	font-size: 19px;
	font-style: italic;
	color: var(--maffd-strong);
}

.maffd-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--maffd-radius);
}

/* ==========================================================================
   Name and position
   ========================================================================== */

.maffd-signature {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--maffd-line);
}

.maffd-section--no-photo .maffd-signature {
	display: inline-block;
	padding-left: 40px;
	padding-right: 40px;
}

.maffd-signature__name {
	margin: 0;
	font-family: var(--maffd-display);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--maffd-strong);
}

.maffd-signature__role {
	margin: 4px 0 0;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--maffd-gold);
}

/* ==========================================================================
   Editor notice
   ========================================================================== */

.maffd-empty {
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--maf-line, #ece5d9);
	border-radius: var(--maf-radius, 8px);
	color: var(--maf-muted, #6e6e6e);
	text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.maffd-section {
		padding: 60px 0;
	}

	.maffd-grid,
	.maffd-section--photo-right .maffd-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.maffd-section--photo-right .maffd-portrait {
		order: 0;
	}

	.maffd-portrait {
		max-width: 420px;
	}

	.maffd-section--no-photo .maffd-grid {
		text-align: left;
	}

	.maffd-section--no-photo .maffd-signature {
		display: block;
		padding-left: 0;
		padding-right: 0;
	}
}

@media (max-width: 600px) {
	.maffd-portrait::before,
	.maffd-section--photo-right .maffd-portrait::before {
		inset: 14px -14px -14px 14px;
	}

	.maffd-prose {
		font-size: 16px;
	}
}
