/*
Theme Name: Liturgical Template
Theme URI: https://internetoutreachexperts.com/templates/liturgical/
Author: Internet Outreach Experts
Author URI: https://internetoutreachexperts.com
Description: Heritage and reverence. Cormorant Garamond + Lora, parchment + burgundy + gold, decorated initial caps, ornamental SVGs and a live liturgical-calendar widget. Built for cathedrals, historic high-church parishes, and traditional Anglican / Lutheran / Roman Catholic congregations.
Version: 1.0.0
License: Proprietary - IOE customer use only
Text Domain: liturgical-template
*/

/*
 * THE LITURGICAL — a cathedral / high-church template
 * Aesthetic: Medieval psalter × modern web.
 * All-serif, parchment-dominant, gold used like actual leaf.
 */

/* ========== DESIGN TOKENS ========== */
:root {
	/* Ecclesiastical palette */
	--burgundy: #5a1f2a;
	--burgundy-deep: #3f1219;
	--midnight: #14223e;
	--midnight-deep: #0a1225;
	--parchment: #f4ebd7;
	--parchment-light: #fbf4e1;
	--parchment-dark: #e4d8bc;
	--gold: #c39a3f;
	--gold-deep: #9a7628;
	--gold-pale: #e9d396;
	--ink: #281914;
	--ink-soft: #5a4a40;
	--ink-muted: #8c7b6d;
	--rule: #c0b293;

	/* Liturgical season accents (updated by JS on the calendar widget) */
	--season-purple: #4f3b68;
	--season-green:  #3a6b3f;
	--season-white:  #f5efda;
	--season-red:    #952218;
	--season-rose:   #c48a92;

	/* Type — serif only */
	--font-display: 'Cormorant Garamond', 'Adobe Garamond Pro', 'Garamond', 'Times New Roman', serif;
	--font-body:    'Lora', Georgia, 'Book Antiqua', serif;

	/* Measures */
	--measure-narrow: 34em;
	--measure-read:   44em;
	--measure-wide:   62em;
	--page-max: 1240px;
	--gutter: clamp(1.25rem, 4vw, 3rem);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== RESET + BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background-color: var(--parchment);
	/* Subtle parchment texture — warm vignette + noise */
	background-image:
		radial-gradient(ellipse 1400px 900px at 50% 0%, rgba(195, 154, 63, 0.06), transparent 70%),
		radial-gradient(ellipse 1000px 700px at 0% 100%, rgba(90, 31, 42, 0.04), transparent 60%),
		radial-gradient(ellipse 1000px 700px at 100% 100%, rgba(20, 34, 62, 0.04), transparent 60%),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 0.07 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "liga" 1, "dlig" 1, "kern" 1, "onum" 1;
}

img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: var(--burgundy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-deep); }

::selection { background: var(--burgundy); color: var(--parchment-light); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	color: var(--burgundy);
	margin: 0 0 .4em;
	letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 4.5vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; }
h4 { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem); font-weight: 500; letter-spacing: 0.02em; }

h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--midnight); }

/* Small caps — the signature classical device */
.smallcaps, .eyebrow, .label, .roman {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.78rem;
	color: var(--ink-soft);
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	color: var(--gold-deep);
}
.eyebrow::before,
.eyebrow::after {
	content: '';
	display: inline-block;
	width: 1.8em;
	height: 1px;
	background: var(--gold);
}
.eyebrow.no-rule::before,
.eyebrow.no-rule::after { display: none; }
.eyebrow-solo::after { display: none; }

/* Roman numerals as section number markers */
.roman-mark {
	font-family: var(--font-display);
	font-variant: small-caps;
	font-style: italic;
	color: var(--gold-deep);
	font-size: 1rem;
	letter-spacing: 0.08em;
}

p { margin: 0 0 1em; max-width: var(--measure-read); }
p.lead {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
	line-height: 1.4;
	font-weight: 300;
	color: var(--ink-soft);
	max-width: 36ch;
}
p.lead em { font-style: italic; color: var(--burgundy); }

.latin {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	color: var(--gold-deep);
	letter-spacing: 0.04em;
}

/* Illuminated drop cap — signature */
.illuminated::first-letter {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 5.5em;
	float: left;
	line-height: 0.82;
	padding: 0.05em 0.15em 0 0;
	margin-right: 0.04em;
	color: var(--burgundy);
	background: linear-gradient(180deg, var(--gold), var(--gold-deep));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-feature-settings: "swsh" 1, "dlig" 1;
}
.illuminated { text-indent: 0; }

blockquote {
	margin: 2.5rem 0;
	padding: 0 0 0 2rem;
	border-left: 2px solid var(--gold);
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem);
	line-height: 1.45;
	color: var(--burgundy);
	font-weight: 300;
	max-width: 34em;
}
blockquote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-display);
	font-style: normal;
	font-variant: small-caps;
	font-size: 0.9rem;
	letter-spacing: 0.12em;
	color: var(--ink-muted);
}

/* ========== LAYOUT ========== */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--measure-read); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-read { max-width: var(--measure-read); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(4rem, 2.5rem + 6vw, 8rem) 0; }
.section-tight { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; }

/* ========== ORNAMENTS — decorative SVG marks ========== */
.ornament {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .75rem;
	margin: 2.5rem auto;
	color: var(--gold);
}
.ornament::before,
.ornament::after {
	content: '';
	width: clamp(3rem, 20vw, 7rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament svg { flex-shrink: 0; }

/* Chapter header — decorative rule above h2 */
.chapter-header {
	text-align: center;
	margin-bottom: 2.5rem;
}
.chapter-header .eyebrow { margin-bottom: .75rem; }
.chapter-header h2 { margin: 0; }

/* ========== BUTTONS ========== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .8em;
	padding: .85em 1.75em;
	font-family: var(--font-display);
	font-weight: 500;
	font-variant: small-caps;
	font-size: 1rem;
	letter-spacing: 0.18em;
	background: transparent;
	color: var(--burgundy);
	border: 1.5px solid var(--burgundy);
	text-decoration: none;
	transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}
.btn:hover { background: var(--burgundy); color: var(--parchment-light); }
.btn .caret { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .caret { transform: translateX(4px); }

.btn-filled { background: var(--burgundy); color: var(--parchment-light); }
.btn-filled:hover { background: var(--burgundy-deep); color: var(--parchment-light); }

.btn-gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--parchment-light); }

.btn-on-dark { color: var(--parchment-light); border-color: var(--gold-pale); }
.btn-on-dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--parchment-light); }

.btn-lg { padding: 1em 2.2em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1.2em; font-size: 0.82rem; }

/* ========== MASTHEAD ========== */
.topbar {
	background: var(--midnight);
	color: var(--parchment-dark);
	font-size: 0.82rem;
	border-bottom: 1px solid rgba(195, 154, 63, 0.2);
}
.topbar-inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0.6rem var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.topbar .latin {
	color: var(--gold-pale);
	font-size: 0.95rem;
}
.topbar-contact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-variant: small-caps;
	letter-spacing: 0.1em;
}
.topbar-contact a { color: var(--parchment-light); }
.topbar-contact a:hover { color: var(--gold-pale); }

.masthead {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--rule);
	background: var(--parchment-light);
	position: relative;
}
.masthead::after {
	/* Second hairline — double rule signature of classical typesetting */
	content: '';
	position: absolute;
	left: var(--gutter); right: var(--gutter); bottom: -5px;
	height: 1px;
	background: var(--rule);
	opacity: .5;
}
.masthead-inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 1.1rem;
	color: var(--burgundy);
}
.brand-mark {
	width: 52px; height: 52px;
	flex-shrink: 0;
	color: var(--gold-deep);
}
.brand-text { line-height: 1; }
.brand-name {
	display: block;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	color: var(--burgundy);
	letter-spacing: -0.005em;
}
.brand-name em { font-style: italic; font-weight: 300; color: var(--midnight); }
.brand-tagline {
	display: block;
	margin-top: 6px;
	font-variant: small-caps;
	letter-spacing: 0.22em;
	font-size: 0.72rem;
	color: var(--ink-muted);
	font-family: var(--font-display);
}

/* ========== NAV ========== */
.primary-menu {
	display: flex;
	align-items: center;
	gap: 0;
}
.primary-menu a {
	display: inline-block;
	padding: 0.4rem 1.1rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-variant: small-caps;
	font-size: 0.98rem;
	letter-spacing: 0.14em;
	color: var(--ink-soft);
	border-bottom: 1.5px solid transparent;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}
.primary-menu a:hover { color: var(--burgundy); border-bottom-color: var(--gold); }
.primary-menu a.current { color: var(--burgundy); border-bottom-color: var(--burgundy); }

.menu-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 1.5px solid var(--burgundy);
	color: var(--burgundy);
	background: transparent;
	align-items: center; justify-content: center;
}

@media (max-width: 860px) {
	.masthead-inner { flex-wrap: wrap; }
	.menu-toggle { display: inline-flex; }
	.primary-menu {
		order: 3; width: 100%;
		flex-direction: column;
		align-items: stretch;
		border-top: 1px solid var(--rule);
		padding-top: .5rem;
		margin-top: 1rem;
		display: none;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu a { padding: .85rem 0; border-bottom: 1px solid var(--rule); text-align: center; }
	.primary-menu a:hover { border-bottom-color: var(--gold); }
	.topbar-inner { justify-content: center; text-align: center; }
}

/* ========== HERO ========== */
.hero {
	position: relative;
	padding: clamp(4rem, 2rem + 7vw, 9rem) 0 clamp(4rem, 2rem + 6vw, 8rem);
	text-align: center;
	overflow: hidden;
}
.hero-inner {
	max-width: var(--measure-wide);
	margin: 0 auto;
	padding: 0 var(--gutter);
	position: relative;
	z-index: 1;
}
.hero .latin {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	letter-spacing: 0.05em;
}
.hero h1 {
	font-weight: 300;
	font-size: clamp(2.8rem, 1.6rem + 5.5vw, 7rem);
	line-height: 0.98;
	margin: 0 0 1rem;
	color: var(--burgundy);
}
.hero h1 .of {
	font-size: 0.56em;
	font-style: italic;
	font-weight: 300;
	color: var(--gold-deep);
	display: block;
	margin: 0.1em 0 -0.05em;
}
.hero h1 .saint {
	display: block;
	color: var(--midnight);
}
.hero-tagline {
	font-variant: small-caps;
	letter-spacing: 0.25em;
	font-size: 0.92rem;
	color: var(--ink-muted);
	margin-top: 1.75rem;
	margin-bottom: 2.25rem;
}
.hero-actions {
	display: flex;
	justify-content: center;
	gap: .85rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}
.hero-meta {
	font-family: var(--font-display);
	font-variant: small-caps;
	letter-spacing: 0.18em;
	color: var(--ink-muted);
	font-size: 0.82rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gold);
	display: inline-flex;
	gap: 1rem;
	align-items: center;
}
.hero-meta .sep {
	display: inline-block;
	width: 6px; height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
}

/* Decorative gothic arch behind hero */
.hero-arch {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: min(700px, 90vw);
	height: min(800px, 95vh);
	opacity: 0.08;
	pointer-events: none;
	color: var(--burgundy);
}

/* ========== LITURGICAL CALENDAR WIDGET — the signature feature ========== */
.liturgical-widget {
	background: var(--parchment-light);
	border: 1px solid var(--gold);
	padding: 2.5rem 2rem;
	margin: 0 auto;
	max-width: 880px;
	position: relative;
}
.liturgical-widget::before,
.liturgical-widget::after {
	/* Quatrefoil corner ornaments */
	content: '';
	position: absolute;
	width: 18px; height: 18px;
	background: var(--parchment-light);
	border: 1px solid var(--gold);
	transform: rotate(45deg);
}
.liturgical-widget::before { top: -10px; left: 50%; margin-left: -9px; }
.liturgical-widget::after { bottom: -10px; left: 50%; margin-left: -9px; }
.liturgical-widget h3 {
	margin: 0 0 .4rem;
	text-align: center;
	font-size: 1.1rem;
	font-variant: small-caps;
	letter-spacing: 0.18em;
	color: var(--ink-soft);
	font-weight: 500;
}
.liturgical-widget-title {
	text-align: center;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 1.6rem + 2.5vw, 3.6rem);
	font-weight: 400;
	color: var(--burgundy);
	font-style: italic;
	line-height: 1.05;
	margin: .5rem 0 1rem;
}
.liturgical-widget-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) { .liturgical-widget-body { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.liturgical-color-swatch {
	display: flex;
	justify-content: center;
}
.liturgical-color-swatch .swatch {
	width: 110px; height: 110px;
	border: 1.5px solid var(--gold-deep);
	background: var(--season-green); /* set by JS */
	box-shadow: inset 0 0 0 3px var(--parchment-light), 0 0 0 3px var(--season-green);
	position: relative;
	transition: background 0.5s;
}
.liturgical-color-swatch .swatch::before {
	content: '';
	position: absolute;
	inset: 15px;
	background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}
.liturgical-meta {
	text-align: center;
	font-family: var(--font-body);
	font-style: italic;
	color: var(--ink-soft);
	line-height: 1.5;
	font-size: 0.98rem;
}
.liturgical-meta strong {
	display: block;
	font-family: var(--font-display);
	font-variant: small-caps;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 0.15em;
	color: var(--burgundy);
	font-size: 1rem;
	margin-bottom: .25rem;
}
.liturgical-dates {
	font-family: var(--font-display);
	font-variant: small-caps;
	letter-spacing: 0.14em;
	color: var(--gold-deep);
	font-size: 0.88rem;
}

/* ========== WORSHIP SCHEDULE TABLE ========== */
.schedule {
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}
.schedule li {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1.5rem 1rem;
	border-bottom: 1px solid var(--rule);
	align-items: baseline;
}
@media (min-width: 640px) { .schedule li { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.schedule .time {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.75rem);
	color: var(--burgundy);
}
.schedule .service {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--midnight);
	font-size: 1.1rem;
}
.schedule .note {
	font-variant: small-caps;
	letter-spacing: 0.12em;
	font-size: 0.82rem;
	color: var(--ink-muted);
	text-align: right;
}

/* ========== TWO-COLUMN EDITORIAL ========== */
.split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}
@media (min-width: 820px) { .split { grid-template-columns: 5fr 6fr; gap: 4.5rem; } }
.split.flip-lg { @media (min-width: 820px) { grid-template-columns: 6fr 5fr; } }

/* Decorative panel — architectural illustration as sidebar */
.arch-panel {
	aspect-ratio: 3 / 4;
	background: linear-gradient(160deg, var(--midnight) 0%, var(--midnight-deep) 100%);
	border: 1px solid var(--gold);
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	color: var(--gold-pale);
	padding: 2rem;
}
.arch-panel svg { width: 75%; height: 75%; opacity: 0.9; }

/* ========== CARDS — ornamental frames ========== */
.ornate-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 780px) { .ornate-grid { grid-template-columns: repeat(3, 1fr); } }
.ornate-card {
	background: var(--parchment-light);
	border: 1px solid var(--rule);
	padding: 2rem 1.75rem;
	position: relative;
	text-align: center;
	transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ornate-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.ornate-card::before {
	content: '';
	position: absolute;
	top: 8px; left: 8px; right: 8px; bottom: 8px;
	border: 1px solid var(--gold);
	opacity: 0.35;
	pointer-events: none;
}
.ornate-card .roman-mark { margin-bottom: 1rem; }
.ornate-card h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.ornate-card h3 em { color: var(--gold-deep); font-style: italic; font-weight: 400; }
.ornate-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; line-height: 1.6; }

/* ========== DARK BAND ========== */
.dark-band {
	background: var(--midnight);
	color: var(--parchment-light);
	padding: clamp(3rem, 2rem + 4vw, 6rem) 0;
	position: relative;
	overflow: hidden;
}
.dark-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(800px 500px at 100% 0%, rgba(195, 154, 63, 0.1), transparent 60%),
		radial-gradient(600px 400px at 0% 100%, rgba(90, 31, 42, 0.2), transparent 60%);
	pointer-events: none;
}
.dark-band > * { position: relative; z-index: 1; }
.dark-band h2, .dark-band h3 { color: var(--parchment-light); }
.dark-band h2 em { color: var(--gold-pale); }
.dark-band .eyebrow { color: var(--gold-pale); }
.dark-band .eyebrow::before,
.dark-band .eyebrow::after { background: var(--gold-pale); }
.dark-band p { color: rgba(244, 235, 215, 0.82); }

/* ========== PAGE BANNER (inner pages) ========== */
.page-banner {
	padding: clamp(3.5rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 1.5rem + 2vw, 4rem);
	text-align: center;
	border-bottom: 1px solid var(--rule);
}
.page-banner .latin { display: block; margin-bottom: 1rem; font-size: 0.95rem; }
.page-banner h1 { font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4.5rem); font-weight: 300; margin-bottom: 1rem; }
.page-banner h1 em { color: var(--gold-deep); font-style: italic; }
.page-banner .lead { margin: 0 auto; }

/* ========== PROSE ========== */
.prose {
	max-width: var(--measure-read);
	margin: 0 auto;
	padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--gutter);
	font-size: 1.08rem;
	line-height: 1.8;
}
.prose p { margin: 0 0 1.4em; color: var(--ink-soft); }
.prose h2 { margin: 2.5em 0 .8em; }
.prose h3 { margin: 2em 0 .5em; color: var(--midnight); }
.prose ul, .prose ol { margin: 1em 0 1.5em; padding-left: 1.5em; color: var(--ink-soft); }
.prose ul li { list-style: none; position: relative; margin-bottom: .5em; }
.prose ul li::before {
	content: '†';
	position: absolute;
	left: -1.2em;
	color: var(--gold-deep);
	font-family: var(--font-display);
}
.prose ol { list-style: none; counter-reset: roman; }
.prose ol li { counter-increment: roman; position: relative; padding-left: 2.5em; margin-bottom: .7em; }
.prose ol li::before {
	content: counter(roman, upper-roman) '.';
	position: absolute;
	left: 0; top: 0;
	font-family: var(--font-display);
	font-variant: small-caps;
	color: var(--gold-deep);
	letter-spacing: 0.05em;
	font-weight: 500;
	width: 2em;
	text-align: right;
	padding-right: .5em;
}

/* ========== TIMELINE (history page) ========== */
.timeline {
	position: relative;
	max-width: 640px;
	margin: 2rem auto;
	padding: 1rem 0;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 60px; top: 0; bottom: 0;
	width: 1px;
	background: var(--rule);
}
.timeline-item {
	position: relative;
	padding-left: 120px;
	padding-bottom: 2.5rem;
}
.timeline-item::before {
	content: '';
	position: absolute;
	left: 54px; top: .4em;
	width: 13px; height: 13px;
	background: var(--gold);
	transform: rotate(45deg);
	border: 1.5px solid var(--burgundy);
}
.timeline-year {
	position: absolute;
	left: 0;
	top: 0;
	width: 50px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--burgundy);
	text-align: right;
}
.timeline-item h4 { margin: 0 0 .3em; color: var(--midnight); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; font-weight: 500; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ========== GIVING PANELS ========== */
.giving-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 780px) { .giving-grid { grid-template-columns: repeat(3, 1fr); } }
.giving-card {
	background: var(--parchment-light);
	border: 1.5px solid var(--rule);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	position: relative;
}
.giving-card.featured { border-color: var(--gold); border-width: 2px; }
.giving-card .seal {
	position: absolute;
	top: -18px; left: 50%;
	transform: translateX(-50%);
	background: var(--parchment);
	padding: 0 1em;
	font-variant: small-caps;
	letter-spacing: 0.15em;
	font-size: 0.78rem;
	color: var(--gold-deep);
	font-weight: 500;
}
.giving-card h3 {
	text-align: center;
	font-size: 1.4rem;
	margin-bottom: .5em;
	color: var(--burgundy);
}
.giving-card h3 em { color: var(--gold-deep); font-style: italic; }
.giving-card p.description {
	color: var(--ink-soft);
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	flex: 1;
}
.giving-card .btn { align-self: center; }

/* ========== EVENTS LIST ========== */
.events-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 880px;
	margin: 0 auto;
}
.event-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 2rem;
	padding: 1.75rem;
	background: var(--parchment-light);
	border: 1px solid var(--rule);
	align-items: start;
	transition: border-color .25s var(--ease);
}
.event-item:hover { border-color: var(--gold); }
.event-date {
	text-align: center;
	font-family: var(--font-display);
}
.event-date .month {
	font-variant: small-caps;
	letter-spacing: 0.15em;
	color: var(--gold-deep);
	font-size: 0.82rem;
	font-weight: 500;
}
.event-date .day {
	font-size: 2.6rem;
	color: var(--burgundy);
	font-weight: 400;
	line-height: 1;
	margin-top: .15em;
}
.event-body h3 {
	margin: 0 0 .3em;
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--midnight);
}
.event-body .meta {
	font-variant: small-caps;
	letter-spacing: 0.12em;
	color: var(--ink-muted);
	font-size: 0.8rem;
	margin-bottom: .75rem;
}
.event-body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 100%; }

/* ========== HOMILIES / SERMONS ========== */
.homilies-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 920px;
	margin: 0 auto;
}
@media (min-width: 720px) { .homilies-grid { grid-template-columns: 1fr 1fr; } }
.homily {
	background: var(--parchment-light);
	border-top: 1px solid var(--rule);
	padding: 1.5rem 0;
}
.homily .meta {
	display: flex;
	gap: 1rem;
	font-variant: small-caps;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	color: var(--ink-muted);
	margin-bottom: .5rem;
}
.homily .meta .date { color: var(--gold-deep); }
.homily h3 {
	margin: .3em 0 .5em;
	font-size: 1.4rem;
	font-style: italic;
	font-weight: 400;
}
.homily h3 a { color: var(--burgundy); }
.homily h3 a:hover { color: var(--gold-deep); }
.homily .scripture {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--gold-deep);
	font-size: 0.92rem;
	margin-bottom: .5rem;
}
.homily p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ========== FOOTER ========== */
.site-footer {
	background: var(--midnight-deep);
	color: var(--parchment-dark);
	padding: clamp(3rem, 2rem + 3vw, 5rem) 0 1.5rem;
	margin-top: 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .brand { color: var(--parchment-light); }
.footer-brand .brand-name { color: var(--parchment-light); }
.footer-brand .brand-name em { color: var(--gold-pale); }
.footer-brand .brand-tagline { color: rgba(244, 235, 215, 0.6); }
.footer-brand .latin { display: block; margin-top: 1.25rem; color: var(--gold-pale); font-size: 1rem; max-width: 22em; }

.footer-col h5 {
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-variant: small-caps;
	letter-spacing: 0.2em;
	color: var(--gold-pale);
	margin: 0 0 1rem;
	font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
	color: rgba(244, 235, 215, 0.82);
	font-size: 0.98rem;
	font-family: var(--font-body);
}
.footer-col a:hover { color: var(--gold-pale); }
.footer-col p { color: rgba(244, 235, 215, 0.7); font-size: 0.95rem; margin: 0 0 .6em; }

.footer-bottom {
	margin-top: 3rem;
	padding: 1.5rem var(--gutter) 0;
	max-width: var(--page-max);
	margin-left: auto;
	margin-right: auto;
	border-top: 1px solid rgba(195, 154, 63, 0.25);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-variant: small-caps;
	letter-spacing: 0.15em;
	font-size: 0.78rem;
	color: rgba(244, 235, 215, 0.5);
}
.footer-bottom .ornament {
	margin: 0;
	gap: .5rem;
}
.footer-bottom .ornament::before,
.footer-bottom .ornament::after {
	width: 2rem;
	background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}

/* ========== CLERGY CARDS ========== */
.clergy-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 960px;
	margin: 0 auto;
}
@media (min-width: 640px) { .clergy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .clergy-grid { grid-template-columns: repeat(3, 1fr); } }
.clergy-card {
	background: var(--parchment-light);
	border: 1px solid var(--rule);
	padding: 0;
	text-align: center;
	overflow: hidden;
}
.clergy-portrait {
	height: 240px;
	background: linear-gradient(160deg, var(--midnight), var(--burgundy));
	position: relative;
	display: grid;
	place-items: center;
	color: var(--gold-pale);
	font-family: var(--font-display);
	font-size: 4.5rem;
	font-weight: 300;
	border-bottom: 1.5px solid var(--gold);
}
.clergy-portrait::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%);
}
.clergy-body { padding: 1.5rem 1.25rem; }
.clergy-body h3 {
	margin: 0 0 .2em;
	font-size: 1.3rem;
	color: var(--burgundy);
	font-weight: 500;
}
.clergy-body h3 em { color: var(--gold-deep); font-style: italic; font-weight: 400; }
.clergy-role {
	font-variant: small-caps;
	letter-spacing: 0.15em;
	font-size: 0.8rem;
	color: var(--ink-muted);
	margin-bottom: .75rem;
}
.clergy-body p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; max-width: 100%; }

/* ========== MOTION ========== */
@media (prefers-reduced-motion: no-preference) {
	.hero > * > * { animation: lit-rise .9s var(--ease) both; }
	.hero > * > *:nth-child(1) { animation-delay: 0s; }
	.hero > * > *:nth-child(2) { animation-delay: 0.1s; }
	.hero > * > *:nth-child(3) { animation-delay: 0.2s; }
	.hero > * > *:nth-child(4) { animation-delay: 0.3s; }
	.hero > * > *:nth-child(5) { animation-delay: 0.4s; }
}
@keyframes lit-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========== PHOTO COMPONENTS ========== */

/* Photo variant of clergy portrait — fills the 240px-tall card header with a photo */
.clergy-portrait--photo {
	background: none;
	padding: 0;
	font-size: 0;
	overflow: hidden;
}
.clergy-portrait--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 28%;
	display: block;
}

/* Photo variant of arch panel — replaces the SVG illustration with a real photo */
.arch-panel--photo {
	background: none;
	padding: 0;
	border: 1px solid var(--gold);
}
.arch-panel--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Full-width photo band — capped height with centered crop.
   Centered photo subjects + center-crop preserves focal area. */
.photo-band {
	width: 100%;
	display: block;
	margin: 0;
	background: var(--parchment-light);
	overflow: hidden;
}
.photo-band img {
	width: 100%;
	height: auto;
	display: block;
	max-height: clamp(280px, 32vw, 540px);
	object-fit: cover;
	object-position: center;
}

/* Photo inset inside body content, with a thin gold border to match Cathedral aesthetic */
.photo-inset {
	margin: 2.5rem auto;
	border: 1px solid var(--gold);
	overflow: hidden;
	max-width: 880px;
}
.photo-inset img {
	width: 100%;
	height: auto;
	display: block;
}

/* Photo-on-top homepage hero variant — replaces the gothic-arch SVG watermark with a real photo banner */
.hero--photo {
	padding: 0 0 clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.hero--photo .hero-arch { display: none; }
.hero--photo .hero-photo {
	width: 100%;
	margin: 0;
	display: block;
	background: var(--burgundy-deep);
	overflow: hidden;
}
.hero--photo .hero-photo img {
	width: 100%;
	height: auto;
	display: block;
	/* Scale with viewport width so 21:9 photos display at near-natural aspect on wider screens
	   without the top getting clipped. ~543px @ 1280, ~620px @ 1920. */
	max-height: clamp(320px, 32vw, 640px);
	object-fit: cover;
	object-position: center top;  /* preserve cathedral spires; lose foreground if anything */
}
.hero--photo .hero-inner {
	padding-top: clamp(2rem, 1rem + 3vw, 3.5rem);
	text-align: center;
}
.hero--photo .hero-inner > div {
	max-width: 38em;
	margin: 0 auto;
}
.hero--photo .hero-actions { justify-content: center; }
.hero--photo .hero-meta { justify-content: center; }
