/* Crosslights – site styles. Colours and fonts come from theme.json. */

:root {
	--cl-snow: var(--wp--preset--color--snow, #FFFFFF);
	--cl-mist: var(--wp--preset--color--mist, #EEF4EF);
	--cl-pine: var(--wp--preset--color--pine, #173B2F);
	--cl-moss: var(--wp--preset--color--moss, #4D6A5E);
	--cl-berry: var(--wp--preset--color--cranberry, #C62F43);
	--cl-gold: var(--wp--preset--color--gold, #F4B740);
	--cl-twilight: var(--wp--preset--color--twilight, #1B3550);
	--cl-line: #DCE6DF;
	--cl-display: var(--wp--preset--font-family--display);
	--cl-pad: clamp(1.25rem, 5vw, 2.5rem);
	--cl-radius: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }

:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--cl-gold);
	outline-offset: 3px;
	border-radius: 6px;
}

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

/* ---------- Header ---------- */
.cl-header { padding-block: 0.9rem; background: var(--cl-snow); }
.cl-header__inner { gap: 1rem; }
.cl-wordmark, .cl-wordmark a {
	font-family: var(--cl-display);
	font-weight: 600;
	font-size: 1.625rem;
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--cl-pine);
	text-decoration: none;
	margin: 0;
}
.cl-wordmark a:hover { color: var(--cl-berry); }
.cl-nav { font-size: 1.0625rem; font-weight: 700; gap: 1.5rem; }
.cl-nav a { color: var(--cl-pine); text-decoration: none; }
.cl-nav a:hover { color: var(--cl-berry); }
.cl-nav .cl-nav__donate .wp-block-navigation-item__content {
	background: var(--cl-berry);
	color: #fff;
	padding: 0.45em 1em;
	border-radius: 999px;
}
.cl-nav .cl-nav__donate .wp-block-navigation-item__content:hover { background: #A82236; color: #fff; }
.cl-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem var(--cl-pad); }
.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.375rem; }

/* ---------- Main & sections ---------- */
.cl-main { padding-top: 0; padding-bottom: 0; }
.cl-main > .wp-block-post-content > * + * { margin-block-start: 0; }
.cl-page { padding-block: var(--wp--preset--spacing--50); }
.cl-page > * + * { margin-block-start: 1.25rem; }

.cl-section { padding-block: var(--wp--preset--spacing--60); }
.cl-section > .wp-block-heading:first-child { margin-top: 0; }
.cl-section h2 + * { margin-top: 1rem; }
.cl-section h3 { margin-top: 2.5rem; }
.cl-lede { color: var(--cl-moss); font-size: 1.1875rem; max-width: 58ch; }

/* A soft band that runs edge to edge behind a section. */
.cl-why, .cl-follow-band {
	background: var(--cl-mist);
	box-shadow: 0 0 0 100vmax var(--cl-mist);
	clip-path: inset(0 -100vmax);
}

/* ---------- Hero: the display photo with the welcome over it ---------- */
.cl-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 80vh, 740px);
	background: #132840;
	color: #fff;
	margin-block: 0 !important;
	overflow: hidden;
}
.cl-hero__photo { position: absolute; inset: 0; margin: 0; }
.cl-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cl-hero__photo::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(19, 40, 64, 0.9) 0%, rgba(19, 40, 64, 0.72) 34%, rgba(19, 40, 64, 0.15) 64%, rgba(19, 40, 64, 0) 80%),
		linear-gradient(0deg, rgba(19, 40, 64, 0.45) 0%, rgba(19, 40, 64, 0) 30%);
}
.cl-hero__caption {
	position: absolute; right: var(--cl-pad); bottom: 1.25rem; z-index: 1;
	font-size: 0.875rem; font-weight: 700;
	color: var(--cl-pine); background: rgba(255, 255, 255, 0.92);
	padding: 0.3em 0.85em; border-radius: 999px;
}
.cl-hero__copy {
	width: 100%;
	max-width: calc(1180px + 2 * var(--cl-pad));
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 5rem) var(--cl-pad);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
.cl-hero__copy > * { max-width: 560px; }
.cl-hero__title {
	font-family: var(--cl-display);
	font-weight: 600;
	font-size: clamp(2.5rem, 6.4vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 0;
	color: #fff;
	text-wrap: balance;
}
.cl-hero__lede {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.5;
	color: #E6EEF6;
	max-width: 40ch;
	margin: 1rem 0 0;
}
.cl-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- The tap-to-play lit-up house, further down the page ---------- */
.cl-scene-band {
	background: linear-gradient(180deg, #132840 0%, #1B3A5A 55%, #2A5476 100%);
	padding-top: clamp(2.75rem, 6vw, 4.5rem);
	margin-block: 0 !important;
	overflow: hidden;
}
.cl-scene-band__copy { max-width: 1180px; margin: 0 auto; padding-inline: var(--cl-pad); box-sizing: content-box; }
.cl-scene-band h2 { color: #fff; margin: 0; }
.cl-scene {
	position: relative;
	height: clamp(260px, 36vw, 430px);
	margin-top: clamp(0.5rem, 2vw, 1.5rem);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cl-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-scene:focus-visible { outline-offset: -6px; }
.cl-scene__hint {
	position: absolute;
	left: 50%;
	bottom: 0.9rem;
	transform: translateX(-50%);
	z-index: 1;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--cl-moss);
	background: var(--cl-snow);
	padding: 0.35em 0.9em;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(23, 59, 47, 0.12);
}

/* Status: one little bulb that's lit while the show is running. */
.cl-status {
	display: inline-flex; align-items: center; gap: 0.6rem;
	margin: 1.25rem 0 0;
	padding: 0.45rem 1rem 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 1.0625rem; font-weight: 700;
	color: #fff;
}
.cl-status__dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #9FB3C8; }
.cl-status.is-live .cl-status__dot {
	background: #41D97F;
	box-shadow: 0 0 0 4px rgba(65, 217, 127, 0.25), 0 0 14px 2px rgba(65, 217, 127, 0.8);
	animation: cl-pulse 2s ease-in-out infinite;
}
.cl-status.is-soon .cl-status__dot { background: var(--cl-gold); box-shadow: 0 0 10px 1px rgba(244, 183, 64, 0.8); }
.cl-status.is-over .cl-status__dot { background: #FF6B7A; }
@keyframes cl-pulse { 50% { box-shadow: 0 0 0 7px rgba(65, 217, 127, 0.1), 0 0 18px 4px rgba(65, 217, 127, 0.5); } }
@media (prefers-reduced-motion: reduce) { .cl-status.is-live .cl-status__dot { animation: none; } }

/* ---------- Buttons ---------- */
.cl-btn {
	display: inline-block;
	background: var(--cl-berry);
	color: #fff;
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1.2;
	padding: 0.85em 1.45em;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid var(--cl-berry);
}
.cl-btn:hover { background: #A82236; border-color: #A82236; color: #fff; }
.cl-btn--light { background: #fff; color: var(--cl-pine); border-color: #fff; }
.cl-btn--light:hover { background: var(--cl-mist); border-color: var(--cl-mist); color: var(--cl-pine); }

/* ---------- Visit ---------- */
.cl-moved {
	background: #FFF4DC;
	border-radius: var(--cl-radius);
	padding: 1.1rem 1.35rem;
	font-size: 1.125rem;
	max-width: 720px;
	margin: 0 0 2rem;
}
.cl-moved a { font-weight: 700; }
.cl-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
}
.cl-fact {
	background: var(--cl-mist);
	border-radius: var(--cl-radius);
	padding: 1.25rem 1.4rem 1.4rem;
}
.cl-fact dt { display: flex; align-items: center; gap: 0.5rem; color: var(--cl-moss); font-weight: 700; margin-bottom: 0.4rem; }
.cl-fact__icon { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; align-items: center; justify-content: center; }
.cl-fact__icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--cl-berry); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-fact dd { margin: 0; }
.cl-fact__big {
	display: block;
	font-family: var(--cl-display);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.6vw, 1.875rem);
	line-height: 1.15;
	color: var(--cl-pine);
}
.cl-fact__sub { display: block; margin-top: 0.35rem; color: var(--cl-moss); }
.cl-fact__sub a { font-weight: 700; }
@media (min-width: 760px) { .cl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cl-map { max-width: 960px; margin-top: 1.5rem; aspect-ratio: 16 / 9; border-radius: var(--cl-radius); overflow: hidden; background: var(--cl-mist); }
.cl-map iframe { width: 100%; height: 100%; border: 0; }
.cl-specs { color: var(--cl-moss); margin-top: 1.25rem; max-width: 720px; }
.cl-specs strong { color: var(--cl-pine); }

.cl-tips { padding-left: 1.3rem; max-width: 64ch; }
.cl-tips li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.cl-tips li::marker { content: "✱  "; color: var(--cl-berry); }

/* ---------- Why ---------- */
.cl-why p { max-width: 62ch; font-size: 1.125rem; }
.cl-raised {
	margin: 2rem 0;
	max-width: 640px;
	background: #fff;
	border-radius: var(--cl-radius);
	padding: 1.5rem 1.5rem 2.6rem;
}
.cl-raised figcaption { font-size: 1.0625rem; margin-bottom: 1.25rem; color: var(--cl-moss); }
.cl-raised figcaption strong { display: block; font-family: var(--cl-display); font-weight: 600; font-size: 2.25rem; line-height: 1.1; color: var(--cl-berry); }
.cl-raised__bars {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1rem);
	height: 10rem;
	border-bottom: 2px solid var(--cl-line);
}
.cl-raised__bars li {
	flex: 1 1 0; max-width: 5rem; height: 100%;
	display: flex; flex-direction: column; justify-content: flex-end;
	position: relative;
}
.cl-raised__bar { display: block; height: var(--h); background: var(--cl-gold); border-radius: 10px 10px 0 0; }
.cl-raised__bars li:last-child .cl-raised__bar { background: var(--cl-berry); }
.cl-raised__amt { font-size: 0.875rem; font-weight: 700; text-align: center; margin-bottom: 0.3rem; }
.cl-raised__year { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 0.875rem; color: var(--cl-moss); padding-top: 0.4rem; }

/* ---------- Videos ---------- */
.cl-video-grid { gap: 1.5rem; }
.cl-video { margin: 0; }
.cl-video__play {
	position: relative; display: block; width: 100%;
	aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
	background: var(--cl-twilight); border-radius: var(--cl-radius); overflow: hidden;
}
.cl-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-video__icon {
	position: absolute; left: 50%; top: 50%; width: 3.75rem; height: 3.75rem; margin: -1.875rem 0 0 -1.875rem;
	border-radius: 50%; background: var(--cl-berry);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.cl-video__play:hover .cl-video__icon { transform: scale(1.08); }
.cl-video__icon::after {
	content: ""; position: absolute; left: 1.45rem; top: 1.1rem;
	border-style: solid; border-width: 0.78rem 0 0.78rem 1.25rem;
	border-color: transparent transparent transparent #fff;
}
.cl-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--cl-radius); display: block; }
.cl-video figcaption, .cl-shows .wp-element-caption { color: var(--cl-moss); font-size: 0.9375rem; margin-top: 0.6rem; text-align: left; }

/* ---------- Facebook ---------- */
.cl-facebook { display: grid; gap: 2rem; align-items: start; }
.cl-facebook h2 { margin-top: 0; }
.cl-facebook__copy p { max-width: 44ch; font-size: 1.125rem; }
.cl-facebook__feed iframe { width: 100%; max-width: 500px; height: 640px; border: 0; border-radius: var(--cl-radius); background: #fff; box-shadow: 0 6px 30px rgba(23, 59, 47, 0.1); }
@media (min-width: 880px) { .cl-facebook { grid-template-columns: 1fr 500px; gap: 4rem; } }
.cl-share { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; color: var(--cl-moss); }
.cl-share__link { font: inherit; font-weight: 700; color: var(--cl-berry); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.cl-admin-note { border: 2px dashed var(--cl-gold); padding: 1rem; border-radius: 12px; color: var(--cl-moss); }

/* ---------- Nearby ---------- */
.cl-friends { list-style: none; padding: 0; display: grid; gap: 0.75rem; max-width: 720px; }
.cl-friends li { padding: 1rem 1.25rem; border-radius: var(--cl-radius); border: 2px solid var(--cl-mist); }
.cl-friends strong { display: block; font-family: var(--cl-display); font-size: 1.3125rem; font-weight: 600; }

/* ---------- Supporters ---------- */
.cl-supporters { border-top: 2px solid var(--cl-mist); margin-block: 0 !important; }
.cl-logos { gap: 2.5rem 3rem; margin-top: 1.5rem !important; }
.cl-logo { margin: 0; }
.cl-logo img { max-height: 72px; width: auto; max-width: 220px; display: block; }
.cl-tech { color: var(--cl-moss); margin-top: 2rem !important; }

/* ---------- Footer, with a string of lights along the top ---------- */
.cl-footer {
	position: relative;
	background: var(--cl-pine);
	color: #E4EEE8;
	padding-block: calc(var(--wp--preset--spacing--50) + 1.25rem) var(--wp--preset--spacing--50);
	margin-top: 0 !important;
}
.cl-footer::before {
	content: "";
	position: absolute; left: 0; right: 0; top: -6px; height: 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='26'%3E%3Cpath d='M0 4 Q20 14 40 4 T80 4 T120 4 T160 4 T200 4' fill='none' stroke='%23173B2F' stroke-width='2'/%3E%3Cg%3E%3Cellipse cx='20' cy='16' rx='5' ry='7' fill='%23FF4D5E'/%3E%3Cellipse cx='60' cy='16' rx='5' ry='7' fill='%2341D97F'/%3E%3Cellipse cx='100' cy='16' rx='5' ry='7' fill='%23FFE066'/%3E%3Cellipse cx='140' cy='16' rx='5' ry='7' fill='%234DA8FF'/%3E%3Cellipse cx='180' cy='16' rx='5' ry='7' fill='%23FFA53D'/%3E%3C/g%3E%3C/svg%3E") repeat-x;
}
.cl-footer__inner { display: grid; gap: 0.5rem; }
.cl-footer__name { margin: 0; }
.cl-footer__name a { font-family: var(--cl-display); font-weight: 600; font-size: 1.875rem; color: #fff; text-decoration: none; }
.cl-footer__line { margin: 0; max-width: 56ch; }
.cl-footer__links { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 700; }
.cl-footer__links a { color: var(--cl-gold); }
.cl-footer__copy { color: #A9C2B5; font-size: 0.875rem; margin: 1rem 0 0; }

.cl-page .wp-block-post-title { margin-bottom: 1.5rem; }
.cl-meta { color: var(--cl-moss); font-size: 0.9375rem; }

@media (max-width: 699px) {
	.cl-scene { height: auto; aspect-ratio: 640 / 430; margin-top: 0.5rem; }
	.cl-hero { display: block; min-height: 0; }
	.cl-hero__photo { position: relative; aspect-ratio: 4 / 3; }
	.cl-hero__photo::after { background: linear-gradient(0deg, #132840 0%, rgba(19, 40, 64, 0) 35%); }
	.cl-hero__caption { top: 0.9rem; bottom: auto; right: 0.9rem; }
	.cl-hero__copy { padding-top: 0.5rem; padding-bottom: 2.5rem; margin-top: -1.5rem; }
	.cl-hero__actions .cl-btn { text-align: center; }
}
