/*
 * styles/promo-banner.css
 * Site-wide announcement marquee — inauguration + newsletter + gift card promo.
 */

.lc-promo-banner {
	position: relative;
	background-color: var(--lc-text);
	color: #F3E7D4;
	overflow: hidden;
	white-space: nowrap;
	padding: 9px 44px 9px 0;
	line-height: 1.4;
	border-bottom: 1px solid rgba(243, 231, 212, 0.15);
}

.lc-promo-banner__track {
	display: flex;
	width: max-content;
	animation: lc-promo-scroll 32s linear infinite;
}

.lc-promo-banner:hover .lc-promo-banner__track,
.lc-promo-banner:focus-within .lc-promo-banner__track {
	animation-play-state: paused;
}

.lc-promo-banner__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Same typeface as the header sitting right below this banner
   (styles/header.css uses --lc-font-serif too) and the same family
   used for every other uppercase label site-wide (footer column
   titles, form labels) — was previously set to --lc-font-display
   (Cinzel), a different typeface from its neighbors, which read as
   inconsistent right at the top of the page. */
.lc-promo-banner__item {
	display: inline-block;
	padding: 0 28px;
	font-family: var(--lc-font-serif);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #F3E7D4;
	text-decoration: none;
	transition: color 0.15s ease;
}

.lc-promo-banner__item:hover,
.lc-promo-banner__item:focus-visible {
	color: #C9A96A;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lc-promo-banner__divider {
	font-size: 8px;
	color: #8A6A48;
	flex-shrink: 0;
}

.lc-promo-banner__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #B99567;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	z-index: 2;
}

.lc-promo-banner__close:hover,
.lc-promo-banner__close:focus-visible {
	color: #F3E7D4;
}

/* Fade edges so the marquee doesn't look abruptly clipped */
.lc-promo-banner::before,
.lc-promo-banner::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 48px;
	z-index: 1;
	pointer-events: none;
}
.lc-promo-banner::before {
	left: 0;
	background: linear-gradient(to right, var(--lc-text), transparent);
}
.lc-promo-banner::after {
	right: 0;
	background: linear-gradient(to left, var(--lc-text), transparent);
}

@keyframes lc-promo-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.lc-promo-banner__track {
		animation: none;
	}
	.lc-promo-banner {
		overflow-x: auto;
	}
}

@media (max-width: 620px) {
	.lc-promo-banner {
		padding: 6px 34px 6px 0;
		line-height: 1.3;
	}

	.lc-promo-banner__item {
		font-size: 10px;
		letter-spacing: 0.1em;
		padding: 0 14px;
	}

	.lc-promo-banner__divider {
		font-size: 6px;
	}

	.lc-promo-banner__close {
		right: 8px;
		font-size: 17px;
		padding: 2px 6px;
	}
}