/* Holiday accents are deliberately limited to the home page. */
.site-header .site-logo {
	position: relative;
	overflow: visible;
}

.holiday-logo-lights {
	position: absolute;
	left: 50%;
	bottom: -13px;
	width: min(100%, 210px);
	aspect-ratio: 210 / 31;
	transform: translateX(-50%);
	pointer-events: none;
}

.holiday-logo-lights svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.holiday-logo-lights__wire {
	fill: none;
	stroke: #28553a;
	stroke-width: 1.3;
	stroke-linecap: round;
	opacity: .7;
}

.holiday-bulb {
	animation: wr-holiday-bulb-twinkle 1.25s ease-in-out infinite;
}

.holiday-bulb__socket {
	fill: #23412e;
}

.holiday-bulb__glass {
	fill: currentColor;
	stroke: rgba(255, 255, 255, .32);
	stroke-width: .45;
}

.holiday-bulb--red {
	color: #d94d4d;
	fill: #d94d4d;
	animation-delay: -.12s;
}

.holiday-bulb--gold {
	color: #e2ae39;
	fill: #e2ae39;
	animation-delay: -.72s;
}

.holiday-bulb--green {
	color: #278451;
	fill: #278451;
	animation-delay: -.42s;
}

.holiday-bulb--blue {
	color: #34a9b6;
	fill: #34a9b6;
	animation-delay: -.95s;
}

.home .search-form--hero .search-form__field input {
	border: 1px solid #b9cfc0;
}

.holiday-search-garland {
	position: absolute;
	top: -12px;
	left: 12px;
	right: 12px;
	z-index: 3;
	height: 22px;
	background: url('../images/holiday-search-pine.svg') repeat-x center top / 180px 22px;
	pointer-events: none;
}

.holiday-search-garland__ornament {
	position: absolute;
	top: 14px;
	width: 6px;
	height: 7px;
	border-radius: 50%;
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .3);
}

.holiday-search-garland__ornament::before {
	content: '';
	position: absolute;
	top: -2px;
	left: 1.5px;
	width: 3px;
	height: 2px;
	border-radius: 1px;
	background: #b79d67;
}

.holiday-search-garland__ornament::after {
	content: '';
	position: absolute;
	top: -6px;
	left: 2.5px;
	width: 1px;
	height: 4px;
	background: #728466;
}

.holiday-search-garland__ornament--red {
	background: #b94f46;
}

.holiday-search-garland__ornament--gold {
	background: #c5a05c;
}

.holiday-search-garland__ornament:nth-child(1) {
	left: 21%;
}

.holiday-search-garland__ornament:nth-child(2) {
	left: 52%;
}

.holiday-search-garland__ornament:nth-child(3) {
	left: 82%;
}

.home .hero__inner > .holiday-hero-media {
	--holiday-note-background: rgba(18, 62, 39, .78);
	--holiday-note-border: rgba(255, 255, 255, .28);
	align-self: start;
	justify-self: end;
	width: min(100%, 440px);
	min-width: 0;
}

.home .hero__visual .hero-visual-note {
	padding: .82rem .9rem;
	border: 1px solid var(--holiday-note-border);
	border-radius: 7px;
	background: var(--holiday-note-background);
	color: #fff;
	font-family: inherit;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.home .hero__visual .holiday-greeting-panel {
	--holiday-note-background: rgba(104, 24, 39, .78);
	--holiday-note-border: rgba(255, 233, 224, .38);
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 2;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	column-gap: .6rem;
	background-image: linear-gradient(130deg, rgba(255, 255, 255, .14), transparent 62%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 14px rgba(38, 8, 14, .12);
}

.home .hero__visual .hero-visual-note strong,
.home .hero p.holiday-greeting {
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.3;
}

.home .hero p.holiday-greeting {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: none;
	margin: 0;
	color: inherit;
	text-align: left;
	pointer-events: none;
}

.holiday-greeting__text,
.holiday-greeting__typed {
	grid-area: 1 / 1;
	min-width: 0;
}

/* The complete, accessible text reserves space while its visual copy types. */
.holiday-greeting.has-typewriter .holiday-greeting__text {
	opacity: 0;
	user-select: none;
}

.holiday-greeting__text::after,
.holiday-greeting__typed::after {
	content: '';
	display: inline-block;
	width: 1px;
	height: .9em;
	margin-left: .15em;
	vertical-align: -.05em;
}

.holiday-greeting__typed::after {
	background: currentColor;
	opacity: .65;
}

.holiday-greeting__typed {
	white-space: pre-line;
}

.holiday-hero-tree {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 3px 8px rgba(11, 43, 26, .3));
	pointer-events: none;
}

.holiday-hero-tree__star {
	fill: #f2c65b;
	filter: drop-shadow(0 0 3px rgba(255, 220, 116, .7));
}

.holiday-hero-tree__leaves {
	fill: #155a3b;
	stroke: #e4f2df;
	stroke-opacity: .65;
	stroke-width: 1.1;
	stroke-linejoin: round;
}

.holiday-hero-tree__trunk {
	fill: #8a5a35;
}

.holiday-hero-tree__base {
	fill: #d9e8dc;
}

.holiday-hero-tree__garland {
	fill: none;
	stroke: #e8d291;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.holiday-hero-tree__light {
	animation: wr-holiday-bulb-twinkle 1.35s ease-in-out infinite;
}

.holiday-hero-tree__light--red {
	fill: #ec5a51;
	animation-delay: -.2s;
}

.holiday-hero-tree__light--gold {
	fill: #ffd76b;
	animation-delay: -.75s;
}

.holiday-hero-tree__light--blue {
	fill: #5bc1cc;
	animation-delay: -.48s;
}

@keyframes wr-holiday-bulb-twinkle {
	0%, 100% {
		opacity: .58;
		filter: drop-shadow(0 0 1px currentColor);
	}
	50% {
		opacity: 1;
		filter: drop-shadow(0 0 4px currentColor);
	}
}

@media (max-width: 900px) {
	.home .hero__inner > .holiday-hero-media {
		justify-self: start;
	}
}

@media (max-width: 480px) {
	.home .hero__visual .holiday-greeting-panel {
		left: .625rem;
		right: .625rem;
		padding-inline: .6rem;
		grid-template-columns: 36px minmax(0, 1fr);
		column-gap: .45rem;
	}

	.home .hero p.holiday-greeting {
		font-size: clamp(.8rem, 3.55vw, .92rem);
	}

	/* Keep the complete greeting and lower caption apart on narrow screens. */
	.holiday-hero-media .hero__visual {
		min-height: 340px;
	}

	.holiday-logo-lights {
		bottom: -11px;
	}
}

@media (max-width: 359px) {
	.home .hero__visual .holiday-greeting-panel {
		left: .25rem;
		right: .25rem;
		padding-inline: .3rem;
		grid-template-columns: 26px minmax(0, 1fr);
		column-gap: .25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.holiday-bulb,
	.holiday-hero-tree__light {
		animation: none;
		opacity: 1;
		filter: none;
	}
}
