/**
 * The front page (GCN Modern Design System).
 *
 * Built to read like gcn.live's home page: the name, the standfirst, the
 * fishing-boat photograph with Matthew 4:19 set over it, the sentence of
 * purpose, and one button through to About.
 */

.gcn-front {
	padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 100px);
	padding-inline: clamp(16px, 4.5vw, 36px);
	background: var(--gcn-surface, #ffffff);
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
}

#brx-content .gcn-front .gcn-front__column {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(18px, 3.5vw, 28px);
	text-align: center;
	max-width: 1280px;
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}

/* ==========================================================================
   Name and standfirst
   ========================================================================== */

.gcn-front__title {
	margin: 0;
	font-size: clamp(1.75rem, 4.8vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--gcn-text, #16263d);
	word-wrap: break-word;
	max-width: 24ch;
}

.gcn-front__standfirst,
.gcn-front__standfirst p {
	margin: 0;
	font-size: clamp(1rem, 2.3vw, 1.22rem);
	font-weight: 500;
	line-height: 1.55;
	color: var(--gcn-text-soft, #4a5a70);
	max-width: 680px;
	margin-inline: auto;
}

/* ==========================================================================
   The photograph, with the verse over it
   ========================================================================== */

.gcn-front__hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: clamp(10px, 2vw, 18px);
	box-shadow: 0 4px 24px rgba(22, 38, 61, 0.12);
	margin-block: clamp(4px, 1.5vw, 12px);
}

.gcn-front__photo img,
img.gcn-front__photo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 580px;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.gcn-front__hero:hover .gcn-front__photo img,
.gcn-front__hero:hover img.gcn-front__photo {
	transform: scale(1.02);
}

/*
 * The verse sits on the picture. The scrim is on the wrapper rather than the
 * text so the words keep their own shape.
 */
.gcn-front__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 20, 18, 0.05) 0%,
		rgba(10, 20, 18, 0.45) 45%,
		rgba(10, 20, 18, 0.72) 100%
	);
	pointer-events: none;
}

.gcn-front__verse {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: clamp(16px, 4vw, 36px) clamp(16px, 4vw, 32px) clamp(20px, 4.5vw, 40px);
	box-sizing: border-box;
}

.gcn-front__verse,
.gcn-front__verse p {
	margin: 0;
	font-size: clamp(1.05rem, 2.5vw, 1.55rem);
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   Purpose and the way on
   ========================================================================== */

.gcn-front__purpose,
.gcn-front__purpose p {
	max-width: 54rem;
	margin: 0 auto;
	font-size: clamp(0.95rem, 2.1vw, 1.12rem);
	font-weight: 450;
	line-height: 1.7;
	color: var(--gcn-text-soft, #4a5a70);
	padding-inline: 4px;
}

.gcn-front__cta {
	margin-top: clamp(12px, 2.5vw, 24px);
	margin-bottom: clamp(20px, 4vw, 36px);
	padding: 13px 36px !important;
	font-size: clamp(14.5px, 2vw, 16px);
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none;
	background: var(--gcn-brand, #0e8b72) !important;
	border: 0 !important;
	border-radius: 9999px !important;
	box-shadow: 0 3px 10px rgba(14, 139, 114, 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gcn-front__cta:hover,
.gcn-front__cta:focus-visible {
	background: var(--gcn-brand-strong, #0a715c) !important;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(14, 139, 114, 0.38);
}

@media (max-width: 640px) {
	.gcn-front {
		padding-block: 28px clamp(48px, 8vw, 80px);
		padding-inline: 14px;
	}

	.gcn-front__title {
		font-size: 1.75rem;
		line-height: 1.22;
	}

	.gcn-front__standfirst,
	.gcn-front__standfirst p {
		font-size: 0.95rem;
		line-height: 1.45;
	}

	.gcn-front__photo img,
	img.gcn-front__photo {
		min-height: 320px;
		max-height: 420px;
		object-fit: cover;
		object-position: 60% center;
	}

	.gcn-front__verse {
		padding: 16px 14px 22px;
	}

	.gcn-front__verse,
	.gcn-front__verse p {
		font-size: 1.05rem;
		line-height: 1.4;
	}

	.gcn-front__purpose,
	.gcn-front__purpose p {
		font-size: 0.92rem;
		line-height: 1.6;
	}

	.gcn-front__cta {
		width: 100%;
		max-width: 320px;
		text-align: center;
		padding: 12px 24px !important;
		margin-bottom: 24px;
	}
}

@media (max-width: 400px) {
	.gcn-front {
		padding-inline: 10px;
	}

	.gcn-front__title {
		font-size: 1.55rem;
	}

	.gcn-front__photo img,
	img.gcn-front__photo {
		min-height: 280px;
		max-height: 360px;
	}
}
