/* His Love theme: the look hislovecf.org has had since 2024, refreshed in November 2026.
   Colors and type tokens live in theme.json; this file covers layout and the homepage sections. */

:root {
	--hl-purple: #5d47d7;
	--hl-purple-dark: #4a35c2;
	--hl-purple-tint: #efecfc;
	--hl-highlight: #c4baf7;
	--hl-text: #3f3f3f;
	--hl-muted: #5e5e5e;
	--hl-heading: #212121;
	--hl-line: #e8e8e8;
	--hl-surface-2: #f7f7f8;
	--hl-dark: #202020;
	--hl-on-dark: #c8c8c8;
	--hl-radius: 6px;
	--hl-gutter: 1.25rem;
	--hl-head: var(--wp--preset--font-family--headings);
	--hl-body: var(--wp--preset--font-family--base);
	/* Icons (stroke drawn in the church purple; also used as masks in the hero). */
	--hl-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d47d7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--hl-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d47d7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--hl-i-family: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d47d7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20v-1.5a3.5 3.5 0 0 0-3.5-3.5h-5A3.5 3.5 0 0 0 4 18.5V20'/%3E%3Ccircle cx='10' cy='8' r='3.5'/%3E%3Cpath d='M20 20v-1.5a3.5 3.5 0 0 0-2.5-3.35M15.5 4.65a3.5 3.5 0 0 1 0 6.7'/%3E%3C/svg%3E");
	--hl-i-evening: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d47d7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Focus: a clear ring everywhere, white on the dark and purple areas. */
:where(a, button, summary, input, select, textarea, iframe, [tabindex]):focus-visible {
	outline: 3px solid var(--hl-purple-dark);
	outline-offset: 3px;
	border-radius: 2px;
}
.hl-topbar :focus-visible,
.hl-hero :focus-visible,
.hl-give :focus-visible,
.hl-footer :focus-visible {
	outline-color: #fff;
}

/* Links in running text are underlined so they don't rely on color. */
.wp-block-post-content :where(p, li, td, dd, figcaption) a:not(.wp-element-button),
.hl-footer :where(p, li) a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

/* Buttons: the site's purple with small corners, like today. */
.wp-block-button .wp-block-button__link,
.wp-element-button {
	border-radius: 5px;
	border: 1px solid transparent;
	font-family: var(--hl-head);
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--hl-purple-dark) !important;
	border-color: transparent !important;
	color: #fff !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important;
	border: 1px solid var(--hl-purple-dark) !important;
	color: var(--hl-purple-dark) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--hl-purple-dark) !important;
	color: #fff !important;
}
.wp-block-buttons {
	gap: .75rem;
}

/* ── Top bar ─────────────────────────────────────────────── */
.hl-topbar {
	background: var(--hl-dark);
	color: #fff;
	padding: .55rem var(--hl-gutter);
	font: 400 .95rem/1.4 var(--hl-body);
}
/* Only top and bottom margins here and below: the layout centers blocks with auto left/right margins. */
.hl-topbar p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hl-topbar a {
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: .2em;
}
.hl-topbar a:hover {
	color: var(--hl-highlight);
}
.hl-topbar a::after {
	content: " →" / "";
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
	background: #fff;
	box-shadow: 0 1px 0 var(--hl-line);
	position: relative;
	z-index: 20;
}
.site-header > .wp-block-group,
.site-header > .hl-header {
	padding: .9rem var(--hl-gutter) !important;
}
.hl-header {
	max-width: 1170px;
	margin-inline: auto;
	min-height: 78px;
	gap: 1rem;
}
.hl-brand {
	margin: 0;
	font: 400 1.32rem/1.1 var(--hl-body) !important;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.hl-brand a {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	color: var(--hl-heading) !important;
	text-decoration: none;
}
.hl-brand a::before {
	content: "";
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	background: url("../img/monogram.png") center / contain no-repeat;
}
.hl-brand a:hover {
	color: var(--hl-purple-dark) !important;
}

.hl-nav {
	font: 400 1.04rem/1 var(--hl-body);
	gap: 1.75rem;
}
.hl-nav .wp-block-navigation-item__content {
	color: #191919;
	padding-block: .55rem;
}
.hl-nav .wp-block-navigation-item__content:hover,
.hl-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--hl-purple-dark);
	text-decoration: underline;
	text-underline-offset: .3em;
}
.hl-nav .hl-nav-give > .wp-block-navigation-item__content {
	background: var(--hl-purple);
	color: #fff;
	border-radius: 5px;
	padding: .75rem 1.15rem;
	font-family: var(--hl-head);
	font-weight: 700;
	text-decoration: none;
}
.hl-nav .hl-nav-give > .wp-block-navigation-item__content:hover {
	background: var(--hl-purple-dark);
	color: #fff;
	text-decoration: none;
}
.hl-nav .wp-block-navigation__responsive-container-open {
	border: 1px solid var(--hl-line);
	border-radius: 5px;
	padding: .65rem 1rem;
	font: 700 1rem/1 var(--hl-body);
	color: var(--hl-heading);
	background: #fff;
}
.hl-nav .wp-block-navigation__responsive-container-close {
	font: 700 1rem/1 var(--hl-body);
}
.hl-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--hl-gutter) 2rem;
}
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: .4rem;
	font-size: 1.3rem;
}

@media (max-width: 600px) {
	.hl-brand {
		font-size: 1.02rem !important;
	}
	.hl-brand a::before {
		width: 40px;
		height: 40px;
	}
	.hl-header {
		min-height: 68px;
	}
}

/* ── Main areas ──────────────────────────────────────────── */
.hl-main,
.hl-main > .wp-block-post-content {
	margin-top: 0 !important;
}
.hl-home > * {
	margin-block: 0 !important;
}
.hl-section {
	padding: clamp(3.5rem, 7vw, 6rem) var(--hl-gutter) !important;
}
.hl-section.is-alt {
	background: var(--hl-surface-2);
}
.hl-section h2 {
	margin-top: 0;
}
.hl-section p {
	margin-bottom: 1.25em;
}
.hl-eyebrow {
	font: 700 .78rem/1.2 var(--hl-body) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	color: var(--hl-purple-dark);
	margin-top: 0 !important;
	margin-bottom: .9rem !important;
}
.hl-section-head {
	align-items: flex-end !important;
	gap: 1rem 2rem !important;
	margin-bottom: 2rem !important;
}
.hl-section-head h2,
.hl-section-head p {
	margin-bottom: 0 !important;
}
.hl-head-link a {
	font-weight: 700;
	color: var(--hl-purple-dark);
	text-decoration: underline;
	text-underline-offset: .2em;
}
.hl-head-link a::after {
	content: " →" / "";
}

/* ── Hero ────────────────────────────────────────────────── */
.hl-hero {
	min-height: clamp(520px, 74vh, 720px) !important;
	padding: 4rem var(--hl-gutter) !important;
	text-align: center;
	margin: 0 !important;
}
.hl-hero .wp-block-cover__inner-container {
	text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.hl-hero h1 {
	color: #fff;
	font-size: clamp(2.6rem, 6.4vw, 4.5rem) !important;
	line-height: 1.06 !important;
	margin-top: 0 !important;
	margin-bottom: 1.1rem !important;
}
.hl-hero .hl-sub {
	color: #fff;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hl-hero .wp-block-buttons {
	margin-top: 2rem !important;
}
.hl-hero .wp-block-button__link {
	text-shadow: none;
}
.hl-when {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem 1.75rem;
	margin-top: 2.25rem !important;
	margin-bottom: 0 !important;
	padding: 0;
	font-weight: 700;
	color: #fff;
}
.hl-when li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
}
.hl-when li::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: var(--hl-icon) center / contain no-repeat;
	mask: var(--hl-icon) center / contain no-repeat;
}
.hl-when .is-time { --hl-icon: var(--hl-i-clock); }
.hl-when .is-place { --hl-icon: var(--hl-i-pin); }

/* ── Service times ───────────────────────────────────────── */
.hl-split {
	gap: clamp(2rem, 5vw, 4rem) !important;
}
.hl-split h2 {
	margin-bottom: 1.1rem;
}
.hl-split img {
	border-radius: 2px;
	width: 100% !important;
	height: auto;
}

/* ── What to expect ──────────────────────────────────────── */
.hl-facts {
	gap: 1.25rem !important;
}
.hl-fact {
	background: #fff;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	padding: 1.4rem;
	margin: 0 !important;
}
.hl-fact::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	border-radius: var(--hl-radius);
	background: var(--hl-icon) center / 22px no-repeat, var(--hl-purple-tint);
	margin-bottom: .9rem;
}
.hl-fact.is-time { --hl-icon: var(--hl-i-clock); }
.hl-fact.is-family { --hl-icon: var(--hl-i-family); }
.hl-fact.is-place { --hl-icon: var(--hl-i-pin); }
.hl-fact.is-evening { --hl-icon: var(--hl-i-evening); }
.hl-fact h3 {
	font-size: 1.28rem !important;
	letter-spacing: -.02em !important;
	margin: 0 0 .35rem !important;
}
.hl-fact p {
	margin: 0 !important;
	color: var(--hl-muted);
	font-size: 1rem;
}

/* ── Latest message ──────────────────────────────────────── */
.hl-message {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}
.hl-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--hl-radius);
	background: #000;
}
.hl-video img,
.hl-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}
.hl-video-play {
	position: absolute;
	inset: 0;
	display: block;
}
.hl-play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--hl-purple);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
	transform: translate(-50%, -50%);
	transition: transform .15s ease, background-color .15s ease;
}
.hl-play-icon::after {
	content: "";
	position: absolute;
	left: 54%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
}
.hl-video-play:hover .hl-play-icon,
.hl-video-play:focus-visible .hl-play-icon {
	background: var(--hl-purple-dark);
	transform: translate(-50%, -50%) scale(1.06);
}
.hl-video-play:focus-visible {
	outline-offset: -6px;
	outline-color: #fff;
}
.hl-message-text h3 {
	font-size: clamp(1.4rem, 2.4vw, 1.75rem) !important;
	margin: 0 0 .6rem !important;
}
.hl-message-text p {
	color: var(--hl-muted);
	margin: 0 0 .9rem !important;
}
.hl-text-link a {
	font-weight: 700;
	color: var(--hl-purple-dark);
	text-decoration: underline;
	text-underline-offset: .2em;
}
.hl-text-link a::after {
	content: " →" / "";
}

/* ── Our story ───────────────────────────────────────────── */
.hl-story {
	gap: clamp(2rem, 5vw, 4rem) !important;
}
.hl-story img {
	border-radius: 2px;
}
.hl-story h2 {
	margin-bottom: 1.1rem;
}
.hl-leaders {
	display: grid;
	gap: .9rem;
	margin: 1.75rem 0 2rem !important;
}
.hl-leader {
	gap: .9rem !important;
	align-items: center !important;
	margin: 0 !important;
}
.hl-leader figure {
	margin: 0 !important;
	flex: 0 0 56px;
}
.hl-leader img {
	border-radius: 50%;
}
.hl-leader p {
	margin: 0 !important;
	line-height: 1.35;
	color: var(--hl-muted);
}
.hl-leader strong {
	color: var(--hl-heading);
}

/* ── Verse ───────────────────────────────────────────────── */
.hl-verse {
	text-align: center;
}
:root .hl-verse .hl-verse-quote {
	border: 0;
	margin: 0 auto;
	padding: 0;
}
:root .hl-verse .hl-verse-quote p {
	font: 500 clamp(1.9rem, 4.4vw, 3rem)/1.18 var(--hl-head);
	letter-spacing: -.035em;
	color: var(--hl-heading);
	margin: 0 !important;
}
:root .hl-verse .hl-verse-quote cite {
	display: block;
	margin-top: 1.25rem;
	font: 700 .8rem/1.2 var(--hl-body);
	font-style: normal;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hl-purple-dark);
}

/* ── Give ────────────────────────────────────────────────── */
.hl-give {
	background: var(--hl-purple);
	color: #fff;
}
.hl-give h2,
.hl-give p {
	color: #fff;
}
.hl-give .hl-eyebrow {
	color: #ece9fd;
}
.hl-give p:last-child {
	margin-bottom: 0;
}
.hl-give .hl-btn-light .wp-block-button__link {
	background: #fff !important;
	color: var(--hl-purple-dark) !important;
}
.hl-give .hl-btn-light .wp-block-button__link:hover {
	background: var(--hl-highlight) !important;
	color: #191919 !important;
}

/* ── Questions ───────────────────────────────────────────── */
.hl-faq {
	display: grid;
	gap: .75rem;
	max-width: 820px;
	margin-top: 2rem !important;
}
.hl-faq .wp-block-details {
	background: #fff;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	margin: 0 !important;
}
.hl-faq summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 1.05rem 3rem 1.05rem 1.2rem;
	font: 500 1.1rem/1.35 var(--hl-head);
	letter-spacing: -.01em;
	color: var(--hl-heading);
}
.hl-faq summary::-webkit-details-marker {
	display: none;
}
.hl-faq summary::after {
	content: "+";
	position: absolute;
	right: 1.2rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: var(--hl-purple-dark);
}
.hl-faq details[open] summary::after {
	content: "–";
}
.hl-faq details > :not(summary) {
	padding-inline: 1.2rem;
	color: var(--hl-muted);
}
.hl-faq details > p:last-child {
	margin: 0 !important;
	padding-bottom: 1.15rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
	margin-top: 0 !important;
}
.hl-footer {
	background: var(--hl-dark);
	color: var(--hl-on-dark);
	padding: 4rem var(--hl-gutter) 2rem !important;
	font-size: .98rem;
	text-align: center;
}
.hl-footer a {
	color: #fff;
}
.hl-footer a:hover {
	color: var(--hl-highlight);
}
.hl-footer-logo {
	margin-bottom: 1.25rem !important;
}
.hl-footer-logo img {
	width: min(340px, 80vw) !important;
	height: auto;
}
.hl-social {
	gap: .5rem !important;
	margin-bottom: 2.25rem !important;
}
.hl-social .wp-social-link {
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
}
.hl-social .wp-social-link a {
	padding: 12px !important;
}
.hl-social .wp-social-link:hover {
	background: var(--hl-highlight) !important;
	color: #191919 !important;
	transform: none;
}
.hl-footer-cols {
	gap: 2rem !important;
	margin-bottom: 0 !important;
}
.hl-footer h2 {
	font: 700 1.02rem/1.3 var(--hl-body) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #e6e6e6 !important;
	margin: 0 0 .5rem !important;
}
.hl-footer-cols p {
	margin: 0 !important;
	line-height: 1.6;
}
.hl-footer-links {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	display: grid;
	gap: .1rem;
}
.hl-footer-links a {
	display: inline-block;
	padding-block: .2rem;
}
.hl-footer-base {
	border-top: 1px solid rgba(255, 255, 255, .14);
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	font-size: .9rem;
}
.hl-footer-base p {
	margin-top: 0 !important;
	margin-bottom: .5rem !important;
}
.hl-credits {
	font-size: .82rem;
}

/* ── Forms (Contact) ─────────────────────────────────────── */
.wp-block-post-content :is(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=search], select, textarea) {
	border: 1px solid #8a8a8a;
	border-radius: 5px;
	background-color: #fff;
	color: var(--hl-text);
}
.wp-block-post-content :is(input, select, textarea):focus {
	border-color: var(--hl-purple-dark);
	outline: 3px solid var(--hl-purple-dark);
	outline-offset: 1px;
}
.wpcf7 input[type=submit] {
	width: auto;
	min-width: 9rem;
	margin-top: .75rem;
	background: var(--hl-purple);
	color: #fff;
	border: 0;
	border-radius: 5px;
	padding: calc(1em + 2px) 1.75em;
	font: 700 1rem/1 var(--hl-head);
	cursor: pointer;
}
.wpcf7 input[type=submit]:hover,
.wpcf7 input[type=submit]:focus-visible {
	background: var(--hl-purple-dark);
	color: #fff;
}

/* ── Inner pages ─────────────────────────────────────────── */
.hl-page-head {
	padding: clamp(2.75rem, 6vw, 4.5rem) var(--hl-gutter) clamp(1.5rem, 3vw, 2.25rem) !important;
	text-align: center;
}
.hl-page-head h1 {
	font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
	margin: 0 0 .75rem;
}
.hl-page-content {
	padding-bottom: clamp(3rem, 6vw, 5rem);
	padding-inline: var(--hl-gutter);
}
.hl-page-content > .alignfull {
	margin-inline: calc(-1 * var(--hl-gutter)) !important;
}

@media (max-width: 781px) {
	.hl-hero {
		min-height: 0 !important;
		padding: 3.5rem var(--hl-gutter) 3rem !important;
	}
	.hl-message {
		grid-template-columns: 1fr;
	}
	.hl-give .wp-block-buttons {
		justify-content: flex-start !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Posts and sermon episodes */
.hl-post-date {
	color: var(--hl-muted);
	font-size: .95rem;
}
.hl-post-nav {
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hl-line);
	gap: 1rem 2rem;
}
.hl-post-nav a {
	color: var(--hl-purple-dark);
}
