/**
 * Homepage — B "dark cinema" design (Design Bible v1.0 §3–§7).
 *
 * Scoped under .fr-home. Colours resolve through the B tokens
 * scoped to .fr-home in fr-tokens.css (--fr-bg, --fr-surface,
 * --fr-border, --fr-text, --fr-muted, --fr-accent, --fr-reading-*).
 * Layout follows §4: content 1280px, gutters 80px desktop / 22px
 * mobile, section rhythm 64–88px desktop / 40–56px mobile.
 */

/* Take over the page shell: hide the theme title, drop the boxed
   container, and break out to full width on the dark background. */
body.page:has(.fr-home) .page-header {
	display: none;
}

body.page:has(.fr-home) .page-content {
	padding: 0;
	margin: 0;
	max-width: none;
}

body:has(.fr-home) {
	overflow-x: clip;
}

.fr-home {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--fr-bg);
	color: var(--fr-text);
	font-size: 16.5px;
	line-height: 1.75;
}

.fr-home *,
.fr-home *::before,
.fr-home *::after {
	box-sizing: border-box;
}

.fr-home h1,
.fr-home h2,
.fr-home h3 {
	line-height: 1.3;
	font-weight: 700;
	margin: 0;
}

.fr-home p {
	margin: 0;
}

.fr-home a {
	color: var(--fr-accent);
	text-decoration: none;
}

.fr-home a:focus-visible,
.fr-home button:focus-visible,
.fr-home input:focus-visible {
	outline: 2px solid var(--fr-accent);
	outline-offset: 3px;
}

.frh-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 80px;
	padding-right: 80px;
}

.frh-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--fr-accent);
	margin-bottom: 16px;
}

.frh-h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.3;
}

.frh-section {
	padding: 76px 0;
}

/* ---------- Hero ---------- */

.frh-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 650px;
	padding: 96px 0;
	/* Post 2441 featured still (Design Bible §6.1). In CSS, not an
	   inline style: the EN content field is kses-filtered on save
	   and would strip it. */
	background-image: url('/wp-content/uploads/2026/10/fr-article01-featured.jpg');
	background-size: cover;
	background-position: center;
}

.frh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 23, 24, .66);
}

.frh-hero .frh-inner {
	position: relative;
	width: 100%;
}

.frh-hero-text {
	max-width: 760px;
}

.frh-hero h1 {
	font-size: clamp(36px, 5.2vw, 64px);
	line-height: 1.25;
	margin-bottom: 22px;
}

.frh-hero-sub {
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.8;
	color: var(--fr-text);
	max-width: 34em;
	margin-bottom: 34px;
}

.frh-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-bottom: 40px;
}

.frh-btn {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 12px 30px;
	background: var(--fr-accent);
	color: var(--fr-reading-text) !important;
	font-weight: 700;
	font-size: 16px;
	border-radius: 3px;
}

.frh-btn:hover {
	filter: brightness(.95);
}

.frh-link {
	color: var(--fr-text) !important;
	font-weight: 600;
	border-bottom: 1px solid var(--fr-accent);
	padding-bottom: 2px;
}

.frh-link:hover {
	color: var(--fr-accent) !important;
}

.frh-hero-caption {
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--fr-muted);
}

/* ---------- Manifesto strip ---------- */

.frh-manifesto {
	padding: 52px 0;
	border-bottom: 1px solid var(--fr-border);
	text-align: left;
}

.frh-manifesto .frh-eyebrow {
	margin-bottom: 10px;
}

.frh-manifesto p {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.4;
}

/* ---------- Featured story ---------- */

.frh-featured-grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 44px;
	align-items: center;
}

.frh-featured-media {
	display: block;
	border-radius: 3px;
	overflow: hidden;
}

.frh-featured-media img {
	display: block;
	width: 100%;
	aspect-ratio: 710 / 400;
	object-fit: cover;
}

.frh-featured-body h2 {
	margin-bottom: 16px;
}

.frh-featured-body p {
	color: var(--fr-muted);
	margin-bottom: 24px;
	max-width: 30em;
}

/* ---------- Reading paths (questions) ---------- */

.frh-questions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.frq-card {
	background: var(--fr-surface);
	border: 1px solid var(--fr-border);
	border-radius: 3px;
	padding: 28px;
}

.frq-num {
	color: var(--fr-accent);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	margin-bottom: 14px;
}

.frq-card h3 {
	font-size: 21px;
	margin-bottom: 12px;
}

.frq-card a {
	font-weight: 600;
}

/* ---------- Recent field notes ---------- */

.fr-post-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 40px;
}

.fr-post-card {
	background: var(--fr-surface);
	border: 1px solid var(--fr-border);
	border-radius: 3px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fr-post-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--fr-bg);
}

.fr-post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fr-post-card-media.fr-media-contain img {
	object-fit: contain;
}

.fr-post-card-body {
	padding: 24px 26px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.fr-post-card-type {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--fr-accent);
	text-transform: uppercase;
}

.fr-post-card-body h3 {
	font-size: 21px;
	line-height: 1.45;
}

.fr-post-card-body h3 a {
	color: var(--fr-text);
}

.fr-post-card-body h3 a:hover {
	color: var(--fr-accent);
}

.fr-post-card-sum {
	color: var(--fr-muted);
	font-size: 15px;
	line-height: 1.7;
	flex: 1;
}

.fr-post-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	color: var(--fr-muted);
	border-top: 1px solid var(--fr-border);
	padding-top: 14px;
}

.fr-post-card-read {
	font-weight: 700;
	letter-spacing: .06em;
}

.fr-post-row {
	display: grid;
	grid-template-columns: minmax(0, 600px) 1fr;
	gap: 36px;
	align-items: center;
	margin-top: 24px;
	background: var(--fr-surface);
	border: 1px solid var(--fr-border);
	border-radius: 3px;
	overflow: hidden;
}

.fr-post-row-media {
	display: block;
	height: 100%;
}

.fr-post-row-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 600 / 280;
	object-fit: cover;
}

.fr-post-row-body {
	padding: 28px 30px 28px 0;
}

.fr-post-row-body h3 {
	font-size: 23px;
	line-height: 1.45;
	margin-bottom: 12px;
}

.fr-post-row-body h3 a {
	color: var(--fr-text);
}

.fr-post-row-body h3 a:hover {
	color: var(--fr-accent);
}

.fr-post-row-body p {
	color: var(--fr-muted);
	font-size: 15.5px;
}

/* ---------- Evidence ---------- */

.frh-evidence-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.frev-item {
	border-top: 1px solid var(--fr-border);
	padding-top: 22px;
}

.frev-num {
	color: var(--fr-accent);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	margin-bottom: 12px;
}

.frev-item h3 {
	font-size: 20px;
	margin-bottom: 10px;
}

.frev-item p {
	color: var(--fr-muted);
	font-size: 15.5px;
}

/* ---------- Author ---------- */

.frh-author-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 44px;
	align-items: start;
}

.frh-author-body p {
	color: var(--fr-muted);
	font-size: 17px;
	line-height: 1.85;
	max-width: 36em;
	margin-bottom: 22px;
}

/* ---------- Monthly band (coral) ---------- */

.frh-monthly {
	background: var(--fr-accent);
	color: var(--fr-reading-text);
	padding: 68px 0;
}

.frh-monthly .frh-eyebrow {
	color: var(--fr-reading-text);
	opacity: .72;
}

.frh-monthly h2 {
	font-size: clamp(26px, 3vw, 36px);
	margin-bottom: 12px;
}

.frh-monthly-sub {
	font-size: 16.5px;
	max-width: 34em;
}

.frh-monthly .fr-kit-form {
	margin: 26px 0 14px;
	max-width: 560px;
}

.frh-monthly .formkit-form {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	max-width: none !important;
}

.frh-monthly .formkit-input {
	background: #FFFFFF;
	color: var(--fr-reading-text);
	border: 1px solid rgba(36, 44, 40, .35) !important;
	border-radius: 3px !important;
	min-height: 50px;
	font-size: 16px;
}

.frh-monthly .formkit-submit {
	background: var(--fr-bg) !important;
	color: var(--fr-text) !important;
	border-radius: 3px !important;
	min-height: 50px;
	font-weight: 700;
}

.frh-monthly-note {
	font-size: 13.5px;
	color: var(--fr-reading-text);
	opacity: .85;
}

.frh-monthly-note a {
	color: var(--fr-reading-text);
	text-decoration: underline;
}

/* ---------- Family handoff ---------- */

.frh-handoff-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 40px;
}

.frh-handoff-card {
	display: block;
	background: var(--fr-surface);
	border: 1px solid var(--fr-border);
	border-radius: 3px;
	padding: 30px;
}

.frh-handoff-card h3 {
	font-size: 22px;
	color: var(--fr-text);
	margin-bottom: 8px;
}

.frh-handoff-card p {
	color: var(--fr-accent);
	font-weight: 600;
	font-size: 15.5px;
}

.frh-handoff-card:hover {
	border-color: var(--fr-accent);
}

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

@media (max-width: 1024px) {
	.frh-inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.frh-featured-grid,
	.frh-author-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.frh-featured-media {
		order: -1;
	}
}

@media (max-width: 768px) {
	.frh-inner {
		padding-left: 22px;
		padding-right: 22px;
	}

	.frh-section {
		padding: 48px 0;
	}

	.frh-hero {
		min-height: 0;
		padding: 84px 0 72px;
	}

	.frh-hero::before {
		background: rgba(20, 23, 24, .7);
	}

	.frh-questions,
	.fr-post-grid,
	.frh-evidence-grid,
	.frh-handoff-grid {
		grid-template-columns: 1fr;
	}

	.fr-post-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.fr-post-row-body {
		padding: 22px 24px 26px;
	}

	.frh-monthly {
		padding: 52px 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.frh-btn,
	.fr-post-card-body h3 a,
	.frh-handoff-card {
		transition: color .15s ease, border-color .15s ease, filter .15s ease;
	}
}
