@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
	--bg: #efe8db;
	--panel: #f9f5ed;
	--ink: #1f231f;
	--muted: #5f665f;
	--line: #d7ccb8;
	--brand: #354a3e;
	--brand-2: #9a6a2c;
	--paper: #fffdf8;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Source Sans 3", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 10% 10%, rgba(154, 106, 44, 0.08), transparent 38%),
		radial-gradient(circle at 90% 20%, rgba(53, 74, 62, 0.12), transparent 34%),
		var(--bg);
}

a {
	color: var(--brand);
}

.page-shell {
	max-width: 1200px;
	margin: 22px auto;
	padding: 0 18px;
}

.topbar {
	background: var(--brand);
	border-radius: 12px;
	border: 1px solid #2b3a31;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	box-shadow: 0 10px 24px rgba(22, 30, 25, 0.16);
}

.brand {
	color: #f7efe2;
	text-decoration: none;
	font-family: "Fraunces", serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.main-nav a {
	color: #efe6d6;
	text-decoration: none;
	padding: 6px 9px;
	border-radius: 7px;
}

.main-nav a:hover {
	background: rgba(255, 255, 255, 0.14);
}

main {
	margin-top: 16px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px;
}

.hero-slider {
	margin-bottom: 18px;
}

.slide {
	min-height: 360px;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	overflow: hidden;
}

.overlay {
	min-height: 360px;
	color: #f6f2e7;
	background: linear-gradient(102deg, rgba(9, 12, 10, 0.8), rgba(9, 12, 10, 0.2));
	padding: 26px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.overlay h1,
.overlay h2 {
	margin: 0;
	max-width: 740px;
	font-family: "Fraunces", serif;
	font-weight: 700;
	font-size: clamp(1.9rem, 2.8vw, 2.7rem);
	line-height: 1.12;
}

.subtitle {
	max-width: 560px;
	margin-top: 10px;
	color: #e9e0cf;
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #7b846f;
	font-weight: 700;
}

.hero-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	text-decoration: none;
	padding: 10px 13px;
	border-radius: 8px;
	background: var(--brand-2);
	color: #1f1a10;
	font-weight: 600;
	border: 1px solid #7f5722;
}

.btn.ghost {
	background: transparent;
	color: var(--brand);
	border-color: var(--brand);
}

.text-link {
	color: var(--brand);
	font-weight: 600;
}

.grid {
	margin-top: 18px;
}

.narrow {
	max-width: 860px;
}

.lead {
	color: var(--muted);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

h1,
h2,
h3,
h4 {
	font-family: "Fraunces", serif;
	letter-spacing: 0.01em;
}

p,
li,
label,
input,
textarea,
select,
button {
	font-family: "Source Sans 3", sans-serif;
}

.featured-sermon {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	padding: 16px;
}

.featured-sermon img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	border-radius: 9px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 11px;
	overflow: hidden;
}

.sermon-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.card-body {
	padding: 12px;
}

.meta {
	color: var(--muted);
	font-size: 0.93rem;
}

.card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.card-actions a {
	font-size: 0.92rem;
}

.filter-bar,
.demo-form,
.newsletter {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.filter-bar select,
.filter-bar button,
.newsletter input,
.newsletter button,
.demo-form input,
.demo-form textarea,
.demo-form button {
	font: inherit;
	padding: 9px 10px;
	border-radius: 8px;
	border: 1px solid #c8bda9;
}

.filter-bar button,
.demo-form button,
.newsletter button {
	background: var(--brand);
	color: #fff;
	border-color: #2d3f34;
	cursor: pointer;
}

.demo-form {
	display: grid;
	margin-top: 12px;
}

.demo-form textarea {
	min-height: 160px;
}

.support-cta {
	margin-top: 20px;
	border: 1px solid #ad9c82;
	border-radius: 12px;
	background: linear-gradient(140deg, #f8f3e9, #efe4d0);
	padding: 18px;
}

.sermon-detail {
	max-width: 920px;
	margin: 0 auto;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px;
}

.detail-header h1 {
	margin-top: 2px;
	margin-bottom: 6px;
	line-height: 1.2;
}

.hero-image {
	width: 100%;
	border-radius: 10px;
	margin: 12px 0;
}

.detail-media {
	display: grid;
	gap: 14px;
	margin: 14px 0;
}

.media-block {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px;
	background: #fcfaf4;
}

.video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 9px;
}

.video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

audio {
	width: 100%;
}

.teaching-content {
	line-height: 1.72;
	font-size: 1.1rem;
}

.teaching-content h1,
.teaching-content h2,
.teaching-content h3,
.teaching-content h4 {
	line-height: 1.28;
}

.resource-card {
	padding: 14px;
}

.resource-links {
	display: grid;
	gap: 8px;
	padding-left: 20px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.gallery-item {
	display: block;
	border-radius: 9px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
}

.gallery-item img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.gallery-item span {
	display: block;
	padding: 8px;
	font-size: 0.9rem;
}

.flash-wrap {
	margin-top: 12px;
}

.flash {
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 8px;
}

.flash.success {
	background: #d7eedf;
	border: 1px solid #b5dcc2;
}

.flash.error {
	background: #f7dede;
	border: 1px solid #efbebe;
}

.site-footer {
	margin-top: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #ece4d5;
	padding: 16px;
	display: grid;
	gap: 14px;
}

.footer-newsletter h3 {
	margin: 0 0 6px;
}

.footer-newsletter p {
	margin: 0 0 8px;
	color: var(--muted);
}

.footer-links,
.footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-links a,
.footer-socials a {
	color: var(--brand);
}

@media (max-width: 860px) {
	.featured-sermon {
		grid-template-columns: 1fr;
	}

	.overlay,
	.slide {
		min-height: 300px;
	}
}

@media (max-width: 700px) {
	.topbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.page-shell {
		margin-top: 12px;
	}

	main {
		padding: 14px;
	}
}
