/* Home hero title (CR, 2026-11-21): "St. Joseph" in the logo's own lettering (official SVG pack, white),
   "Catholic Church" in Libre Caslon Text small caps, cap heights matched; see hero-title.php.
   Sizes are in em of the H1, so they follow hero.css's H1 sizes at every width.
   Numbers: logo S cap height = .779em at 5.6em wide; Libre Caslon cap height .77 → line 2 at 1.012em;
   "Catholic Church" in small caps at .045em tracking is 8.81em wide (used to keep it on one line on small screens). */
.stj-heroSunset h1.stj-hero-title {
	max-width: none;
	text-wrap: wrap;
	letter-spacing: 0;
	line-height: 1;
}
.stj-hero-title .stj-ht-sj { display: block; }
.stj-hero-title .stj-ht-svg {
	display: block;
	width: 5.9em; /* 5% larger than 5.6em so St. Joseph balances Catholic Church (CR, 2026-11-21) */
	height: auto;
	margin: 0 0 .023em -.09em; /* pulls the S ink onto the Welcome Home edge (CR, 2026-11-22) */ /* line 2's capitals start .14 cap-height below the J */
	overflow: visible;
}
.stj-hero-title .stj-ht-cc {
	display: block;
	font-family: 'Libre Caslon Text', var(--stj-font-serif);
	font-weight: 400;
	font-size: 1.012em;
	font-variant-caps: small-caps;
	font-feature-settings: "kern", "liga";
	letter-spacing: .045em;
	margin-left: -.054em; /* C side bearing: ink lines up with Welcome Home (CR, 2026-11-22) */
	line-height: 1;
	white-space: nowrap;
}
.stj-hero-title .stj-ht-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.stj-heroSunset .stj-hero-place {
	font-family: 'Libre Caslon Text', var(--stj-font-serif);
	font-weight: 400;
	font-feature-settings: "kern", "liga";
}

/* Keep "Catholic Church" on one line inside the text column */
@media (min-width: 768px) and (max-width: 1099px) {
	.stj-heroSunset h1.stj-hero-title { font-size: min(clamp(2.6rem, 4vw + .6rem, 3.4rem), 3.06rem); }
}
@media (max-width: 767px) {
	/* Phone: same overall width as the old Garamond title (CR, 2026-11-21) */
	/* Steady size on all phones (the balanced size CR liked), shrinking only when the line would not fit */
	.stj-heroSunset h1.stj-hero-title { font-size: min(2.29rem, calc((100vw - 2.5rem) / 8.45)); }
	.stj-heroSunset .stj-ht-cc { letter-spacing: .015em; }
	.stj-heroSunset .stj-hero-place { font-size: calc(1.2rem * .79); } /* shrinks with the title */
}

/* Windows high contrast: the lettering follows the text colour (currentColor) */

/* Over the photo (side-by-side layout), the title is scaled to .75 so "Catholic Church" is no wider than the
   old EB Garamond line and the text stays inside the dark fade, clear of the bright sky (CR, 2026-11-21).
   Stacked layouts (phones, portrait tablets) sit on solid green and keep the size above. */
@media (min-width: 1280px), (min-width: 768px) and (min-aspect-ratio: 5001/4000) {
	.stj-heroSunset h1.stj-hero-title { font-size: calc(clamp(3rem, 3.4vw + 1.2rem, 4.75rem) * .75); }
	.stj-heroSunset .stj-hero-place { font-size: calc(clamp(1.3rem, .6vw + 1rem, 1.6rem) * .8); } /* Caslon runs wider than Garamond; keeps this line no wider than the title */
}
@media (min-width: 768px) and (max-width: 1099px) and (min-aspect-ratio: 5001/4000) {
	.stj-heroSunset h1.stj-hero-title { font-size: calc(clamp(2.6rem, 4vw + .6rem, 3.4rem) * .75); }
	.stj-heroSunset .stj-hero-place { font-size: 1rem; }
}
