/*
Theme Name: Ehimocaz for Blocksy
Theme URI: https://www.ehimocaz.co.uk/
Template: blocksy
Author: The Oguguo Family
Description: A Blocksy child theme for the Oguguo family archive, styled after the "Tasty" starter (warm cream, Poppins, warm-orange accent, rounded and soft). Blocksy supplies the page chrome and Customizer; this supplies the sermon library with its filters and PDF viewer, the chronicle timeline, and the photo galleries, plus the Tasty palette and font applied to both.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ehimocaz
*/

/* -------------------------------------------------------------------------
   Bespoke components only.

   Everything structural — containers, header, footer, typography scale,
   colours, dark mode, buttons — is Blocksy's, and is left alone. What follows
   styles the parts Blocksy does not have: the sermon rows, the filter bar, the
   media frames, the galleries and the contact cards. They read Blocksy's own
   custom properties, so changing the palette in the Customizer moves these too
   rather than leaving them stranded on a hardcoded colour.
   ---------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Tasty
   Adapted from the Blocksy "Tasty" starter (startersites.io/blocksy/tasty):
   warm cream paper, near-black ink, a warm orange accent, Poppins throughout,
   rounded corners and soft shadows. The values were read off the starter's own
   markup — its accent is --theme-palette-color-2: #fd7c47.

   Blocksy's palette and font tokens are overridden here rather than in its
   options, so the change is self-contained in the child theme: everything
   Blocksy draws (header, footer, nav, buttons) and everything this theme draws
   (sermon rows, cards, galleries) turn warm together, because both read these
   same tokens.
   ---------------------------------------------------------------------- */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-500.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-700.woff2") format("woff2");
}

:root {
	/* Override Blocksy's palette with Tasty's warm scheme. Its own chrome reads
	   these, so the whole site moves, not just the bespoke parts. */
	--theme-palette-color-1: #ff6310 !important;   /* links, deeper orange */
	--theme-palette-color-2: #fd7c47 !important;   /* buttons, warm orange */
	--theme-palette-color-3: #6b625b !important;   /* body text, warm grey */
	--theme-palette-color-4: #241f1b !important;   /* headings, near-black */
	--theme-palette-color-5: #efe6df !important;   /* borders, warm line   */
	--theme-palette-color-6: #fdf3ec !important;   /* tint, soft warm      */
	--theme-palette-color-7: #fffaf6 !important;   /* page, warm cream     */
	--theme-palette-color-8: #ffffff !important;   /* cards, white         */

	--theme-font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	--theme-headings-font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif !important;

	/* Component tokens, resolved from the palette above. */
	--e-ink: var(--theme-palette-color-4);
	--e-text: var(--theme-palette-color-3);
	--e-muted: color-mix(in srgb, var(--e-text) 78%, transparent);
	--e-line: var(--theme-palette-color-5);
	--e-tint: var(--theme-palette-color-6);
	--e-card: var(--theme-palette-color-8);
	--e-accent: var(--theme-palette-color-2);
	--e-accent-deep: var(--theme-palette-color-1);
	--e-gold: var(--theme-palette-color-2);   /* the "gold" rules become the orange accent */
	--e-display: "Poppins", sans-serif;
	--e-ui: "Poppins", sans-serif;
	--e-radius: 14px;
	--e-radius-sm: 10px;
	--e-shadow: 0 6px 24px rgba(64, 40, 24, 0.08), 0 2px 6px rgba(64, 40, 24, 0.05);
	--e-shadow-lg: 0 14px 44px rgba(64, 40, 24, 0.12), 0 4px 12px rgba(64, 40, 24, 0.07);
	--e-gap: 2rem;
}

/* Warm the page itself. */
body {
	background: var(--theme-palette-color-7);
}

/* --- Sermon list --- */


.sermon-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--e-line);
}

.sermon-row {
	display: grid;
	gap: 0.35rem 1.5rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--e-line);
}

@media (min-width: 46rem) {
	.sermon-row {
		grid-template-columns: 9.5rem minmax(0, 1fr) auto;
		align-items: start;
	}
}

.sermon-row__date {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	color: var(--e-muted);
	font-size: 0.875rem;
}

@media (min-width: 46rem) {
	.sermon-row__date {
		flex-direction: column;
		gap: 0.2rem;
		padding-top: 0.2rem;
	}
}

.sermon-row__year {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	border-radius: 0;
	background: color-mix(in srgb, var(--e-gold) 18%, transparent);
	color: var(--e-text);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sermon-row__title {
	margin: 0;
	font-size: 1.1875rem;
}

.sermon-row__title a {
	color: var(--e-ink);
	text-decoration: none;
}

.sermon-row__title a:hover {
	color: var(--e-accent);
	text-decoration: underline;
}

.sermon-row__theme {
	margin: 0.15rem 0 0;
	font-family: var(--e-display);
	font-style: italic;
	color: var(--e-text);
}

.sermon-row__readings {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0.55rem 0 0;
	color: var(--e-muted);
	font-size: 0.875rem;
}

.sermon-row__readings .icon {
	color: var(--e-accent);
	opacity: 0.9;
}

.sermon-row__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 0.5rem;
}

@media (min-width: 46rem) {
	.sermon-row__actions {
		flex-direction: column;
		align-items: flex-end;
		gap: 0.35rem;
		margin-top: 0;
	}
}

/* The row already shows the file size next to a download arrow, so the PDF
   badge beside it was the same fact twice. Badges stay on cards and in search
   results, where there is no download control to speak for them. */
.sermon-row .badges {
	display: none;
}

.sermon-row__actions .button-link {
	white-space: nowrap;
}


/* --- Filters and stream tabs --- */


.filters {
	box-shadow: var(--e-shadow);
	margin-bottom: 2rem;
	padding: 1.15rem 1.25rem;
	background: var(--e-card);
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
}

.filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
}

.filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0;
	min-width: 10rem;
}

.filters__field--search {
	flex: 1 1 14rem;
}

.filters__field label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--e-muted);
}

.filters__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
}

/* The universal reset is only `*`, which any element-level rule beats — and
   something upstream sets form controls back to content-box. Stated again here
   at matching specificity, otherwise padding and border push a full-width
   textarea past its container. */
input,
select,
textarea,
button {
	box-sizing: border-box;
}

select,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--e-line);
	border-radius: 0;
	background: var(--e-card);
	color: var(--e-ink);
	font: inherit;
	font-size: 0.9375rem;
	max-width: 100%;
}

textarea {
	width: 100%;
}

.streams {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 2rem;
}

.streams__link {
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--e-line);
	border-radius: 0;
	color: var(--e-text);
	font-size: 0.9375rem;
	text-decoration: none;
}

.streams__link:hover {
	border-color: var(--e-accent);
}

.streams__link.is-current {
	background: var(--e-ink);
	border-color: var(--e-ink);
	color: var(--e-card);
}


/* --- Meta, badges, tags, details --- */


.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0.6rem 0 0;
	color: var(--e-muted);
	font-size: 0.875rem;
}

.meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.75rem 0 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--e-line);
	border-radius: 0;
	background: var(--e-card);
	color: var(--e-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.badge--document {
	border-color: color-mix(in srgb, var(--e-gold) 55%, transparent);
	background: color-mix(in srgb, var(--e-gold) 18%, transparent);
	color: var(--e-text);
}

.badge--audio,
.badge--video {
	border-color: color-mix(in srgb, var(--e-accent) 45%, transparent);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
}

.tag {
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--e-line);
	border-radius: 0;
	color: var(--e-muted);
	font-size: 0.8125rem;
	text-decoration: none;
}

.tag:hover {
	border-color: var(--e-accent);
	color: var(--e-ink);
}

.details {
	display: grid;
	gap: 0.15rem;
	margin: 0 0 2rem;
	padding: 1.15rem 1.25rem;
	background: var(--e-tint);
	border-radius: var(--e-radius-sm);
	font-size: 0.9375rem;
}

.details__row {
	display: grid;
	gap: 0.15rem 1rem;
}

@media (min-width: 34rem) {
	.details__row {
		grid-template-columns: 7rem minmax(0, 1fr);
	}
}

.details dt {
	color: var(--e-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.details dd {
	margin: 0 0 0.5rem;
	color: var(--e-text);
}

.details__row:last-child dd {
	margin-bottom: 0;
}


/* --- Media --- */


.media-stack {
	display: grid;
	gap: 1.75rem;
	margin-top: 2.5rem;
}

.media {
	box-shadow: var(--e-shadow);
	margin: 0;
	background: var(--e-card);
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	overflow: hidden;
}

.media__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.1rem;
	border-bottom: 1px solid var(--e-line);
	background: var(--e-tint);
}

.media__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 500;
}

.media__label > span:not(.media__size) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.media__size {
	color: var(--e-muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

.media__frame {
	background: var(--e-tint);
}

/* Tall enough to read a page of a sermon without scrolling the frame itself. */
.media--document object {
	display: block;
	width: 100%;
	height: min(85vh, 900px);
	border: 0;
}

@media (max-width: 46rem) {
	.media--document object {
		height: 60vh;
	}
}

.media__fallback {
	margin: 0;
	padding: 2.5rem 1.25rem;
	text-align: center;
	color: var(--e-muted);
}

.media--audio .mejs-container,
.media--audio audio {
	width: 100% !important;
}

.media--audio audio {
	display: block;
	padding: 1rem 1.1rem;
}

.media__frame--video {
	aspect-ratio: 16 / 9;
}

.media__frame--video iframe,
.media__frame--video video {
	width: 100%;
	height: 100%;
	border: 0;
}

.media--gallery {
	border-radius: 0;
	border: 0;
	background: none;
	overflow: visible;
}

.gallery--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__link {
	display: block;
	border-radius: var(--e-radius-sm);
	overflow: hidden;
	background: var(--e-tint);
}

.gallery__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.gallery__link:hover .gallery__image {
	transform: scale(1.04);
	opacity: 0.92;
}

/* The home-page strip: a taster rather than a contact sheet, so it stays a
   plain even grid — two columns on a phone, four from tablet up, always
   filling whole rows for the eight photographs it is given. */
.gallery--strip {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 34rem) {
	.gallery--strip {
		grid-template-columns: repeat(4, 1fr);
	}
}

.section--photos {
	background: var(--e-tint);
	border-top: 1px solid var(--e-line);
}

.gallery-section {
	margin-top: 3rem;
}

.gallery__more {
	margin-top: 1.5rem;
}

.feature-image {
	margin: 0 0 2.5rem;
}

.feature-image img {
	width: 100%;
	border-radius: var(--e-radius);
}

.feature-image figcaption {
	margin-top: 0.6rem;
	color: var(--e-muted);
	font-size: 0.875rem;
	text-align: center;
}


/* --- Albums --- */


.album {
	background: none;
	border: 0;
}

.album__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.album__media {
	border-radius: var(--e-radius);
	aspect-ratio: 4 / 5;
	background: var(--e-tint);
	overflow: hidden;
}

.album__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.album__image--placeholder {
	display: grid;
	place-items: center;
	color: var(--e-muted);
}

.album__caption {
	padding: 1.15rem 0 0;
}

.album__title {
	margin: 0;
	font-size: 1.125rem;
}

.album__count {
	margin: 0.25rem 0 0;
	color: var(--e-muted);
	font-size: 0.875rem;
}


/* --- Contact --- */


.contact-list {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

/* A card per person rather than one wide bar: the name leads, the address sits
   under it, and the envelope carries the gold. */
.contact-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	/* Packed to the top rather than centred: a card whose actions wrap onto a
	   second line would otherwise sit its name higher than its neighbour's. */
	align-items: start;
	align-content: start;
	gap: 0.15rem 0.9rem;
	padding: 1.15rem 1.3rem;
	background: var(--e-card);
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-card:hover,
.contact-card:focus-within {
	border-color: color-mix(in srgb, var(--e-gold) 60%, transparent);
	box-shadow: none;
	transform: translateY(-2px);
}

.contact-card__icon {
	display: grid;
	place-items: center;
	grid-row: 1 / span 2;
	margin-top: 0.1rem;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--e-gold) 18%, transparent);
	color: var(--e-text);
}

.contact-card__icon .icon {
	width: 1.2rem;
	height: 1.2rem;
}

.contact-card__name {
	font-family: var(--e-display);
	font-size: 1.1875rem;
	line-height: 1.2;
}

.contact-card__email {
	min-width: 0;
	margin-top: 0.35rem;
	font-size: 0.9375rem;
}

/* The address is printed masked and the mailto is built in the browser; see
   ehimocaz_masked_email(). */
.email {
	display: grid;
	gap: 0.6rem;
	justify-items: start;
}

.email__masked {
	color: var(--e-muted);
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
}

.email__actions:empty {
	display: none;
}

.email__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.85rem;
}

.email__copy.is-copied {
	color: var(--e-accent);
}

/* Only reached with JavaScript off, where the mailto cannot be built. It says
   so rather than printing the address, which would put it back in the source. */
.email__noscript {
	color: var(--e-muted);
	font-size: 0.875rem;
	font-style: italic;
}


/* --- Lightbox --- */


.lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: rgba(12, 16, 22, 0.94);
	color: #fff;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.25rem;
	font-size: 0.875rem;
}

.lightbox__stage {
	display: grid;
	place-items: center;
	padding: 0 1rem;
	min-height: 0;
}

.lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.lightbox__caption {
	padding: 0.9rem 1.25rem 1.5rem;
	text-align: center;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.75);
	min-height: 3rem;
}

.lightbox__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
}

.lightbox__button:hover {
	background: rgba(255, 255, 255, 0.16);
}

.lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--prev {
	left: 1rem;
}

.lightbox__nav--next {
	right: 1rem;
}

.lightbox__nav .icon {
	width: 1.4rem;
	height: 1.4rem;
}

.lightbox__nav--prev .icon {
	transform: rotate(180deg);
}

body.has-lightbox {
	overflow: hidden;
}


/* --- Icons and buttons ---------------------------------------------------
   The inline SVG icons and the base button styles lived in the standalone
   theme's design-system section, which was not copied because Blocksy owns
   that layer. But these components still emit `.icon` and `.button`, so their
   sizing has to come back — without it the SVGs default to their intrinsic
   size and a book icon fills the column. Buttons inherit Blocksy's palette
   through its tokens. */
.icon {
	width: 1.05em;
	height: 1.05em;
	flex: none;
	vertical-align: -0.15em;
}

.button,
.button--small {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 1.35rem;
	border: 1px solid var(--e-line);
	border-radius: 999px;
	background: var(--e-card);
	color: var(--e-ink);
	font-family: var(--e-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover,
.button:focus-visible {
	background: var(--e-tint);
	border-color: var(--e-accent);
	color: var(--e-accent-deep);
	transform: translateY(-1px);
}

.button--primary {
	background: var(--e-accent);
	border-color: var(--e-accent);
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--e-accent) 40%, transparent);
}

.button--primary:hover,
.button--primary:focus-visible {
	background: var(--e-accent-deep);
	border-color: var(--e-accent-deep);
	color: #fff;
	transform: translateY(-1px);
}

.button--small {
	padding: 0.45rem 1rem;
	font-size: 0.75rem;
}

.button-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0;
	border: 0;
	background: none;
	color: var(--e-muted);
	font-family: var(--e-ui);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	cursor: pointer;
}

.button-link {
	text-transform: none;
	letter-spacing: 0.01em;
}

.button-link:hover {
	color: var(--e-accent-deep);
}

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

/* --- Bridging the copied templates to Blocksy's container ---------------- */

/* The templates were written against `.wrap`; Blocksy's container is
   `.ct-container`. Rather than rewrite every template, `.wrap` is given the
   same behaviour so both agree on width and gutters. */
.wrap {
	/* Blocksy's --theme-container-edge-spacing is 90vw, not a gutter — using it
	   as padding put 1296px on each side and crushed the content to zero width.
	   A plain clamp gutter, with border-box so the padding stays inside the
	   max-width rather than adding to it. */
	box-sizing: border-box;
	width: 100%;
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.wrap--content {
	max-width: var(--theme-narrow-container-max-width, 42rem);
}

.page-header {
	padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
}

.page-header__text {
	max-width: 42rem;
}

.page-header__title {
	margin: 0;
	font-family: var(--e-display);
}

.page-header__subtitle {
	margin: 0.6rem 0 0;
	color: var(--e-muted);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.5rem;
	color: var(--e-muted);
	font-family: var(--e-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 2px;
	background: var(--e-gold);
}

.grid {
	display: grid;
	gap: var(--e-gap);
}

.grid--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.grid--albums {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card__media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--e-tint);
	border-radius: var(--e-radius);
}

.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card__link:hover .card__image {
	transform: scale(1.035);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 0 0;
}

.card__title {
	margin: 0 0 0.4rem;
	font-family: var(--e-display);
	font-size: 1.1875rem;
}

.card__excerpt {
	margin: 0.4rem 0 0;
	color: var(--e-muted);
	font-size: 0.9375rem;
}

.card .badges {
	margin-top: auto;
	padding-top: 1rem;
}

.notice {
	border-radius: var(--e-radius-sm);
	padding: 1.25rem;
	background: var(--e-tint);
	color: var(--e-text);
}

.notice--empty {
	text-align: center;
}

.entry-content--measure {
	max-width: 42rem;
}

/* --- Front page: no "Home" title ----------------------------------------
   Blocksy prints the page title (an <h1> "Home") above the content. The old
   site's home page opened straight into "About", so the redundant title is
   hidden on the front page only. Elsewhere the page title stays. */
.home .page-title {
	display: none;
}

/* -------------------------------------------------------------------------
   Home page sections
   The front page stacks an About note, recent chronicles, a photo strip and
   the latest sermons. Each opens with a title and a link through to the full
   listing. Warm and rounded, in keeping with the rest.
   ---------------------------------------------------------------------- */

.section {
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.section--about {
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section--photos {
	background: var(--e-tint);
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.section__title {
	margin: 0;
	font-family: var(--e-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--e-ink);
}

.section__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--e-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--e-accent-deep);
	text-decoration: none;
}

.section__more:hover {
	color: var(--e-ink);
}

.section__more .icon {
	transition: transform 0.18s ease;
}

.section__more:hover .icon {
	transform: translateX(4px);
}

/* The photo strip: a taster, not the whole album. */
.gallery--strip {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(0.6rem, 1.5vw, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 34rem) {
	.gallery--strip {
		grid-template-columns: repeat(4, 1fr);
	}
}

.gallery--strip .gallery__item {
	margin: 0;
}

.gallery--strip .gallery__link {
	display: block;
	border-radius: var(--e-radius-sm);
	overflow: hidden;
}

.gallery--strip .gallery__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery--strip .gallery__link:hover .gallery__image {
	transform: scale(1.05);
}

.entry-content--measure {
	max-width: 42rem;
}

/* The About section reads as a warm welcome card. */
.section--about .entry-content--measure {
	font-size: 1.0625rem;
}

/* -------------------------------------------------------------------------
   Home hero (Tasty-style)
   A two-column welcome: the introduction on the left, a family photograph on
   the right, warm and rounded. Matches the image-led hero the Tasty starter
   opens on.
   ---------------------------------------------------------------------- */

.section--hero {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.hero {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 60rem) {
	.hero--paired {
		grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
		gap: clamp(2.5rem, 5vw, 4.5rem);
	}
}

.hero__text {
	max-width: 40rem;
}

.hero__text > .eyebrow {
	margin-bottom: 0.75rem;
}

/* The About heading becomes the hero title: big, warm, Poppins. */
.hero__text h2 {
	margin: 0 0 1rem;
	font-family: var(--e-display);
	font-weight: 700;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--e-ink);
}

.hero__text > p:first-of-type {
	font-size: 1.125rem;
	color: var(--e-text);
}

.hero__text p {
	color: var(--e-muted);
}

.hero__text .wp-block-buttons {
	margin-top: 1.75rem;
}

/* The photograph: rounded, softly shadowed, a touch of warmth behind it. */
.hero__figure {
	position: relative;
	margin: 0;
}

.hero__figure::before {
	content: "";
	position: absolute;
	inset: auto -1.25rem -1.25rem auto;
	width: 62%;
	height: 62%;
	border-radius: var(--e-radius);
	background: color-mix(in srgb, var(--e-accent) 16%, transparent);
	z-index: 0;
}

.hero__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--e-radius);
	box-shadow: var(--e-shadow-lg);
}

/* -------------------------------------------------------------------------
   Card tags (Tasty-style)
   The FAMILY / TRAVEL kicker on chronicle cards, and the eyebrow generally,
   read as small warm tags rather than plain tracked text — the way Tasty tags
   its recipe categories.
   ---------------------------------------------------------------------- */

.card--chronicle .eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.6rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--e-accent) 14%, transparent);
	color: var(--e-accent-deep);
	font-family: var(--e-ui);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card--chronicle .eyebrow::before {
	content: none;
}

.card__title {
	font-weight: 700;
	letter-spacing: -0.01em;
}
