/*
 * Reality theme — main stylesheet.
 * Vanilla CSS, no framework, no page-builder markup, no remote fonts.
 */

:root {
	--reality-bg: #0B0B0B;
	--reality-surface: #171717;
	--reality-gold: #D4AF37;
	--reality-text: #F5F5F5;
	--reality-text-muted: #B3B3B3;
	--reality-border: #2A2A2A;
	--reality-radius: 10px;
	--reality-radius-lg: 16px;
	--reality-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	--reality-max-width: 1100px;
	--reality-content-width: 720px;
	--reality-space-1: 0.5rem;
	--reality-space-2: 1rem;
	--reality-space-3: 1.5rem;
	--reality-space-4: 2.5rem;
	--reality-space-5: 4rem;
	--reality-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Smooth in-page scroll for the "Read the message" anchor link.
	   Overridden back to instant under prefers-reduced-motion below. */
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--reality-bg);
	color: var(--reality-text);
	font-family: var(--reality-font);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--reality-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid var(--reality-gold);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--reality-gold);
	color: #0B0B0B;
	padding: var(--reality-space-1) var(--reality-space-2);
	z-index: 1000;
	text-decoration: none;
}

.skip-link:focus {
	position: fixed;
	top: var(--reality-space-1);
	left: var(--reality-space-1);
	width: auto;
	height: auto;
	clip: auto;
}

/* Header */
.site-header {
	background: rgba(11, 11, 11, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--reality-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	padding: var(--reality-space-3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--reality-space-3);
	position: relative;
}

.site-branding__link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.site-branding__badge {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: 0 0 auto;
	display: block;
}

.site-branding__name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--reality-text);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--reality-space-1);
	background: transparent;
	border: 1px solid var(--reality-border);
	color: var(--reality-text);
	border-radius: var(--reality-radius);
	padding: 0.5rem 0.75rem;
	cursor: pointer;
}

.menu-toggle__icon {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before {
	top: -6px;
}

.menu-toggle__icon::after {
	top: 6px;
}

.primary-navigation {
	display: none;
}

.primary-navigation.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--reality-surface);
	border-bottom: 1px solid var(--reality-border);
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: var(--reality-space-2) var(--reality-space-3);
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-2);
}

.primary-menu a {
	color: var(--reality-text);
	text-decoration: none;
	display: inline-block;
	padding: var(--reality-space-1) 0;
	font-weight: 500;
	position: relative;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--reality-gold);
	transition: right 0.15s ease;
}

.primary-menu a:hover,
.primary-menu a[aria-current="page"] {
	color: var(--reality-gold);
}

.primary-menu a:hover::after,
.primary-menu a[aria-current="page"]::after {
	right: 0;
}

@media (min-width: 768px) {
	.menu-toggle {
		display: none;
	}

	.primary-navigation {
		display: block;
		position: static;
		background: none;
		border: none;
	}

	.primary-menu {
		flex-direction: row;
		padding: 0;
		gap: var(--reality-space-4);
	}

	.primary-menu a {
		padding: 0;
	}
}

/* Hero */
.hero {
	background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.10), transparent 55%),
		linear-gradient(180deg, var(--reality-bg) 0%, var(--reality-surface) 100%);
	padding: var(--reality-space-5) var(--reality-space-3) var(--reality-space-4);
	text-align: center;
	animation: reality-fade-up 0.6s ease-out both;
}

@keyframes reality-fade-up {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__inner {
	max-width: 720px;
	margin: 0 auto;
}

.hero__title {
	font-size: clamp(3rem, 10vw, 5.5rem);
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 var(--reality-space-3);
	color: var(--reality-text);
	text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}

.hero__tagline {
	font-size: clamp(1.1rem, 2.5vw, 1.4rem);
	font-weight: 500;
	margin: 0 0 var(--reality-space-4);
	color: var(--reality-text);
}

.hero__intro {
	color: var(--reality-text-muted);
	max-width: 480px;
	margin: 0 auto var(--reality-space-4);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--reality-space-2);
	margin-bottom: var(--reality-space-3);
}

.hero__secondary-link {
	display: inline-block;
	color: var(--reality-text-muted);
	font-size: 0.95rem;
}

.hero__secondary-link:hover {
	color: var(--reality-gold);
}

/* Finding Jesus hero — a full sentence heading, not a brand wordmark,
   so no uppercase transform / gold glow / giant scale. Same calm dark
   background treatment as the homepage hero, single action only. */
.hero--gospel {
	padding-bottom: var(--reality-space-3);
}

.hero__title--sentence {
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.25;
	text-shadow: none;
}

/* App promotion section (homepage only) */
.app-promo {
	padding: var(--reality-space-5) var(--reality-space-3);
	border-top: 1px solid var(--reality-border);
}

.app-promo__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--reality-space-4);
	align-items: center;
}

@media (min-width: 860px) {
	.app-promo__inner {
		grid-template-columns: minmax(220px, 320px) 1fr;
		gap: var(--reality-space-5);
	}
}

.app-promo__visual {
	display: flex;
	justify-content: center;
}

/* Phone mockup — no real screenshot exists, so this is a clean CSS
   frame using the site's own tokens, not a fabricated screenshot.
   .phone-mockup__screenshot is the swap-in point for a real <img>
   later — it already clips to the screen's border-radius and sizes
   responsively, so dropping in an image needs no other changes. */
.phone-mockup {
	width: 220px;
	background: #050505;
	border: 2px solid var(--reality-border);
	border-radius: 2.25rem;
	padding: 0.6rem;
	box-shadow: var(--reality-shadow);
}

/* Desktop: phone enlarged ~14% (220px -> 250px), screen min-height
   scaled by the same ratio to keep the frame's proportions intact. */
@media (min-width: 860px) {
	.phone-mockup {
		width: 250px;
	}

	.phone-mockup__screen {
		min-height: 386px;
	}

	.phone-mockup__notch {
		width: 79px;
		height: 20px;
	}
}

.phone-mockup__notch {
	width: 70px;
	height: 18px;
	background: #050505;
	border: 1px solid var(--reality-border);
	border-top: none;
	border-radius: 0 0 12px 12px;
	margin: 0 auto;
	position: relative;
	top: 2px;
	z-index: 1;
}

.phone-mockup__screen {
	background: linear-gradient(180deg, var(--reality-bg) 0%, var(--reality-surface) 100%);
	border-radius: 1.75rem;
	padding: var(--reality-space-3) var(--reality-space-2) var(--reality-space-2);
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-2);
	min-height: 340px;
	overflow: hidden;
}

.phone-mockup__screenshot {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--reality-space-2);
	border-radius: 1.25rem;
	overflow: hidden;
}

.phone-mockup__screenshot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 1.25rem;
}

.phone-mockup__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--reality-space-1);
}

.phone-mockup__badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.phone-mockup__brand {
	color: var(--reality-text);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.phone-mockup__card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius);
	padding: var(--reality-space-2);
	display: flex;
	align-items: center;
	gap: var(--reality-space-1);
}

.phone-mockup__label {
	display: block;
	color: var(--reality-text-muted);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.phone-mockup__title {
	display: block;
	color: var(--reality-text);
	font-weight: 700;
	font-size: 0.9rem;
}

.phone-mockup__play {
	margin-left: auto;
	width: 1.75rem;
	height: 1.75rem;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--reality-gold);
	color: #0B0B0B;
	font-size: 0.65rem;
}

.phone-mockup__card--event {
	gap: var(--reality-space-2);
}

.phone-mockup__day {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--reality-gold);
	line-height: 1;
}

.phone-mockup__event-text {
	display: flex;
	flex-direction: column;
}

.app-promo__heading {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	margin: 0 0 var(--reality-space-3);
}

.app-promo__intro {
	color: var(--reality-text-muted);
	margin: 0 0 var(--reality-space-3);
}

.app-promo__features {
	list-style: none;
	margin: 0 0 var(--reality-space-3);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-1);
}

.app-promo__features li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--reality-text);
}

.app-promo__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--reality-gold);
}

.app-promo__availability {
	margin: 0 0 var(--reality-space-2);
	color: var(--reality-text-muted);
	font-size: 0.9rem;
}

.app-promo__availability-highlight {
	color: var(--reality-gold);
	font-weight: 600;
}

.app-promo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--reality-space-2);
}

/* Store badges — approximate the recognised official badge shapes
   (dark rounded rectangle, icon + two-line label) using only inline
   SVG and CSS. No hotlinked or third-party badge images. */
.store-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 1.1rem;
	border-radius: 0.65rem;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	text-decoration: none;
	font-family: inherit;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.store-badge__icon svg {
	width: 1.6rem;
	height: 1.6rem;
}

.store-badge__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-align: left;
}

.store-badge__eyebrow {
	font-size: 0.62rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.store-badge__name {
	font-size: 1.05rem;
	font-weight: 600;
}

.store-badge--apple:hover {
	transform: translateY(-2px);
	filter: brightness(1.15);
}

.store-badge--coming-soon {
	opacity: 0.82;
	cursor: not-allowed;
}

.store-badge--coming-soon:hover {
	transform: none;
	filter: none;
}

.store-badge__ribbon {
	position: absolute;
	top: -0.55rem;
	right: -0.5rem;
	background: var(--reality-gold);
	color: #0B0B0B;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	box-shadow: var(--reality-shadow);
}

/* Buttons */
.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: var(--reality-radius);
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.15s ease, background-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.button--primary {
	background: var(--reality-gold);
	color: #0B0B0B;
	box-shadow: 0 6px 16px rgba(212, 175, 55, 0.18);
}

.button--secondary {
	background: transparent;
	color: var(--reality-text);
	border: 1px solid var(--reality-border);
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary:hover {
	filter: brightness(1.08);
}

.button--secondary:hover {
	border-color: var(--reality-gold);
	color: var(--reality-gold);
}

/* Page structure */
.page-heading {
	padding: var(--reality-space-4) var(--reality-space-3) 0;
}

.page-heading__inner,
.page-content__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
}

.page-content {
	padding: var(--reality-space-3) var(--reality-space-3) var(--reality-space-5);
}

/* Used when the page's own heading comes from the_content() rather
   than a separate .page-heading section, to preserve top spacing. */
.page-content--intro {
	padding-top: var(--reality-space-4);
}

.page-content--intro h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin-top: 0;
}

.page-content--long-form .page-content__inner,
.page-content--legal .page-content__inner {
	max-width: 720px;
}

.page-content--long-form h2,
.page-content--legal h2,
.page-content--legal h3 {
	color: var(--reality-gold);
}

/* Comfortable long-form reading rhythm (Finding Jesus) */
.page-content--long-form h2 {
	font-size: 1.4rem;
	margin: var(--reality-space-4) 0 var(--reality-space-2);
	scroll-margin-top: var(--reality-space-4);
}

.page-content--long-form p {
	line-height: 1.75;
	margin: 0 0 var(--reality-space-3);
	color: var(--reality-text);
}

.page-content--long-form ul,
.page-content--long-form ol {
	line-height: 1.75;
	margin: 0 0 var(--reality-space-3);
	padding-left: 1.25rem;
}

.page-content--long-form li {
	margin-bottom: var(--reality-space-1);
}

.page-content--long-form a {
	text-underline-offset: 3px;
}

/* Restrained key-message treatment — used only where the content
   itself marks a genuine callout (currently: the Pray Now prayer),
   never applied automatically to every paragraph. */
.key-message {
	display: block;
	background: var(--reality-surface);
	border: 1px solid var(--reality-gold);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-3);
	margin: 0 0 var(--reality-space-3);
}

.key-message p {
	margin-bottom: var(--reality-space-2);
}

.key-message p:last-child {
	margin-bottom: 0;
}

/* "On this page" navigation — only rendered when the content has at
   least two real headings; links are generated from actual heading
   text, never invented. */
.on-this-page {
	padding: 0 var(--reality-space-3);
}

.on-this-page__inner {
	max-width: 720px;
	margin: 0 auto var(--reality-space-4);
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius);
	padding: var(--reality-space-2) var(--reality-space-3);
}

.on-this-page__label {
	margin: 0 0 var(--reality-space-1);
	color: var(--reality-text-muted);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
}

.on-this-page__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--reality-space-1) var(--reality-space-3);
}

/* Closing "What now?" response section */
.gospel-response {
	padding: var(--reality-space-5) var(--reality-space-3);
	text-align: center;
	border-top: 1px solid var(--reality-border);
	background: var(--reality-surface);
}

.gospel-response__inner {
	max-width: 560px;
	margin: 0 auto;
}

.gospel-response__inner h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 var(--reality-space-2);
}

.gospel-response__inner p {
	color: var(--reality-text-muted);
	margin: 0 0 var(--reality-space-2);
}

.gospel-response__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--reality-space-2);
	margin-top: var(--reality-space-3);
}

.content-fallback {
	color: var(--reality-text-muted);
}

/* Reusable small gold eyebrow label */
.eyebrow-label {
	color: var(--reality-gold);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0 0 var(--reality-space-2);
}

/* Music */
.music-catalogue {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
}

.music-catalogue__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-4);
}

/* Albums with artwork (Marvellous Light, Best News Ever) */
.album-section {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-4);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--reality-space-3);
}

@media (min-width: 720px) {
	.album-section {
		/* ~10% larger again (Stage 7.2 polish) */
		grid-template-columns: minmax(242px, 346px) 1fr;
		gap: var(--reality-space-4);
		align-items: start;
	}
}

.album-section__art-col {
	overflow: hidden;
	border-radius: var(--reality-radius);
}

.album-section__art {
	display: block;
	width: 100%;
	height: auto;
	background: var(--reality-bg);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.album-section:hover .album-section__art {
	transform: scale(1.02);
}

.album-section__art--placeholder {
	width: 100%;
}

.album-section__title {
	margin: 0 0 0.35rem;
	font-size: 1.65rem;
	font-weight: 800;
}

.album-section__count {
	color: var(--reality-text-muted);
	font-size: 0.9rem;
	margin: 0 0 var(--reality-space-2);
}

/* Groups without artwork (Recent Music, Songs 2021, Songs 2023) */
.group-card {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-4);
}

.group-card__header {
	display: flex;
	align-items: center;
	gap: var(--reality-space-2);
	margin-bottom: var(--reality-space-2);
}

.group-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.12);
	color: var(--reality-gold);
}

.group-card__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.group-card__title {
	margin: 0;
	font-size: 1.25rem;
}

.group-card__count {
	color: var(--reality-text-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* Track rows — shared by album sections and group cards */
.track-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.track-row {
	border-bottom: 1px solid var(--reality-border);
	display: flex;
	align-items: center;
	gap: var(--reality-space-1);
}

.track-row:last-child {
	border-bottom: none;
}

.track-row__button {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: none;
	color: var(--reality-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: var(--reality-space-2);
	padding: 0.8rem 0.25rem;
	text-align: left;
	border-radius: var(--reality-radius);
	transition: background-color 0.15s ease;
}

.track-row__button:hover {
	background: rgba(255, 255, 255, 0.03);
}

.track-row__number {
	flex: 0 0 auto;
	width: 1.5rem;
	text-align: center;
	color: var(--reality-text-muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.track-row__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--reality-border);
	font-size: 0.8rem;
}

.track-row__download {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--reality-border);
	color: var(--reality-text-muted);
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.track-row__download:hover,
.track-row__download:focus-visible {
	border-color: var(--reality-gold);
	color: var(--reality-gold);
	background: rgba(212, 175, 55, 0.1);
	box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
	text-decoration: none;
}

.track-row__download svg {
	width: 1rem;
	height: 1rem;
}

.track-row__icon-pause {
	display: none;
}

.track-row__title {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.track-row__button.is-playing {
	background: rgba(212, 175, 55, 0.08);
}

.track-row__button.is-playing .track-row__number {
	color: var(--reality-gold);
}

.track-row__button.is-playing .track-row__icon {
	background: var(--reality-gold);
	border-color: var(--reality-gold);
	color: #0B0B0B;
}

.track-row__button.is-playing .track-row__icon-play {
	display: none;
}

.track-row__button.is-playing .track-row__icon-pause {
	display: inline;
}

.track-row__button.is-playing .track-row__title {
	color: var(--reality-gold);
	font-weight: 600;
}

.track-row__button.is-unsupported {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Events */
.events-container {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
}

.events-container__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
}

.events-state {
	color: var(--reality-text-muted);
}

.events-state[hidden] {
	display: none;
}

.events-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--reality-space-2);
}

.events-list[hidden] {
	display: none;
}

/* Shared event row (homepage preview and full Events page alike):
   large day number + short month on the left, uppercase location on
   the right, subtle divider underneath. */
.events-list__item {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--reality-border);
	border-radius: 0;
	padding: var(--reality-space-2) 0;
	display: flex;
	align-items: center;
	gap: var(--reality-space-3);
}

.events-list__item:last-child {
	border-bottom: none;
}

.events-list__date-col {
	flex: 0 0 auto;
	width: 3.25rem;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.events-list__day {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--reality-gold);
}

.events-list__month {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--reality-text-muted);
}

.events-list__day-fallback {
	font-size: 0.95rem;
	color: var(--reality-text);
}

.events-list__info-col {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.events-list__title {
	font-weight: 600;
	color: var(--reality-text);
}

.events-list__location {
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.03em;
	font-size: 1.05rem;
	color: var(--reality-text);
}

.events-list__full-date {
	color: var(--reality-text-muted);
	font-size: 0.85rem;
}

.events-list__link {
	align-self: flex-start;
	margin-top: 0.25rem;
	font-weight: 600;
}

@media (max-width: 420px) {
	.events-list__item {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--reality-space-1);
	}

	.events-list__date-col {
		flex-direction: row;
		align-items: baseline;
		gap: var(--reality-space-1);
		width: auto;
	}
}

/* Shared app-style card */
.app-card {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	box-shadow: var(--reality-shadow);
}

.section-heading {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 var(--reality-space-3);
}

/* Welcome section */
.welcome-section {
	padding: var(--reality-space-5) var(--reality-space-3);
}

.welcome-section__inner {
	max-width: var(--reality-content-width);
	margin: 0 auto;
}

.welcome-card {
	padding: var(--reality-space-4);
	text-align: center;
}

.welcome-card h2 {
	margin-top: 0;
	color: var(--reality-gold);
}

.welcome-card p {
	color: var(--reality-text-muted);
	margin-bottom: 0;
}

.welcome-card p + p {
	margin-top: var(--reality-space-2);
}

/* Primary destination cards */
.destinations {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
}

.destinations__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--reality-space-3);
}

@media (min-width: 640px) {
	.destinations__inner {
		grid-template-columns: 1fr 1fr;
	}
}

.destination-card {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-4);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--reality-space-1);
	text-decoration: none;
	color: var(--reality-text);
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.destination-card:hover,
.destination-card:focus-visible {
	border-color: var(--reality-gold);
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(212, 175, 55, 0.16);
	text-decoration: none;
}

.destination-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.12);
	color: var(--reality-gold);
	margin-bottom: var(--reality-space-2);
	transition: background-color 0.15s ease;
}

.destination-card:hover .destination-card__icon,
.destination-card:focus-visible .destination-card__icon {
	background: rgba(212, 175, 55, 0.2);
}

.destination-card__icon svg {
	width: 1.65rem;
	height: 1.65rem;
}

.destination-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--reality-text);
}

.destination-card__description {
	color: var(--reality-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Connect page — contact option cards. Equal visual weight, explicit
   button per card (not a whole-card link, so the action is always a
   clearly visible, independently focusable control). */
.contact-cards {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
}

.contact-cards__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--reality-space-3);
}

@media (min-width: 640px) {
	.contact-cards__inner {
		grid-template-columns: 1fr 1fr;
	}
}

.contact-card {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-4);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--reality-space-1);
	text-align: left;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--reality-shadow);
}

.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.12);
	color: var(--reality-gold);
	margin-bottom: var(--reality-space-2);
}

.contact-card__icon svg {
	width: 1.65rem;
	height: 1.65rem;
}

.contact-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--reality-text);
	margin: 0;
}

.contact-card__description {
	color: var(--reality-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 var(--reality-space-2);
}

.contact-card__button {
	margin-top: auto;
}

/* Connect closing message — deliberately minimal */
.connect-closing {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
	text-align: center;
}

.connect-closing__inner p {
	color: var(--reality-text-muted);
	font-size: 1.05rem;
	margin: 0;
}

/* Events preview (homepage) — reuses .events-container styles below */
.events-preview-section {
	padding: 0 var(--reality-space-3) var(--reality-space-5);
}

.events-preview-section__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
}

.events-container--preview {
	padding: 0;
}

.events-container--preview .events-container__inner {
	background: var(--reality-surface);
	border: 1px solid var(--reality-border);
	border-radius: var(--reality-radius-lg);
	padding: var(--reality-space-3);
}

.events-container__view-all {
	display: inline-block;
	margin-top: var(--reality-space-2);
	font-weight: 600;
}

/* Finding Jesus feature */
.gospel-feature {
	padding: var(--reality-space-5) var(--reality-space-3);
	text-align: center;
	border-top: 1px solid var(--reality-border);
	background: var(--reality-surface);
}

.gospel-feature__inner {
	max-width: 560px;
	margin: 0 auto;
}

.gospel-feature__heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 var(--reality-space-2);
}

.gospel-feature__supporting {
	color: var(--reality-text-muted);
	margin: 0 0 var(--reality-space-3);
}

/* Audio player bar — fixed mini-player, always pinned to the viewport
   bottom once a track has been played. body.has-audio-player reserves
   matching space so it never covers the footer or page content. */
.audio-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: var(--reality-surface);
	border-top: 1px solid var(--reality-gold);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
	padding: var(--reality-space-2) var(--reality-space-3);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--reality-space-2) var(--reality-space-3);
}

.audio-player[hidden] {
	display: none;
}

body.has-audio-player {
	padding-bottom: var(--reality-player-height, 96px);
}

@media (min-width: 640px) {
	body.has-audio-player {
		padding-bottom: var(--reality-player-height, 76px);
	}
}

.audio-player__now-playing {
	flex: 1 1 100%;
	font-weight: 600;
	color: var(--reality-gold);
}

.audio-player__controls {
	display: flex;
	align-items: center;
	gap: var(--reality-space-1);
}

.audio-player__button {
	background: transparent;
	border: 1px solid var(--reality-border);
	color: var(--reality-text);
	border-radius: 50%;
	width: 2.25rem;
	height: 2.25rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.audio-player__button--toggle {
	background: var(--reality-gold);
	color: #0B0B0B;
	border-color: var(--reality-gold);
}

.audio-player__progress {
	flex: 1 1 240px;
	display: flex;
	align-items: center;
	gap: var(--reality-space-1);
}

.audio-player__time {
	color: var(--reality-text-muted);
	font-size: 0.85rem;
	min-width: 2.5rem;
}

.audio-player__seek {
	flex: 1 1 auto;
	accent-color: var(--reality-gold);
}

.audio-player__status {
	flex: 1 1 100%;
	margin: 0;
	color: var(--reality-text-muted);
	font-size: 0.85rem;
}

.audio-player__status:empty {
	display: none;
}

/* Connect */
.connect-links {
	list-style: none;
	margin: 0 0 var(--reality-space-3);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-2);
	font-size: 1.1rem;
}

/* Footer */
.site-footer {
	background: var(--reality-surface);
	border-top: 1px solid var(--reality-border);
	padding: var(--reality-space-4) var(--reality-space-3) var(--reality-space-3);
}

.site-footer__inner {
	max-width: var(--reality-max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--reality-space-3);
	text-align: center;
}

.site-footer__tagline {
	color: var(--reality-text-muted);
	margin: var(--reality-space-1) 0 0;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--reality-space-3);
}

.site-footer__bottom {
	max-width: var(--reality-max-width);
	margin: var(--reality-space-3) auto 0;
	padding-top: var(--reality-space-3);
	border-top: 1px solid var(--reality-border);
	text-align: center;
}

.site-footer__copyright {
	color: var(--reality-text-muted);
	font-size: 0.875rem;
	margin: 0;
}

@media (min-width: 640px) {
	.site-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		text-align: left;
	}

	.site-footer__column--links .site-footer__links {
		justify-content: flex-end;
	}
}

/* One-shot scroll reveal (assets/js/reveal.js adds .is-revealed the
   first time an element enters the viewport, then stops watching it
   — never repeats). Scoped to html.js so content stays visible by
   default if JavaScript is unavailable, rather than being stuck
   hidden. reveal.js itself also skips the IntersectionObserver
   entirely under prefers-reduced-motion (reveals everything
   immediately), and the global reduced-motion rule below removes the
   transition too, as defence-in-depth. */
html.js [data-reveal] {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js [data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Footer uses a simple opacity-only fade, no upward movement, per the
   spec's explicit distinction between section reveals and the footer. */
html.js [data-reveal="fade"],
html.js [data-reveal="fade"].is-revealed {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	html.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}
