/* Winter & Christmas pack. Every rule is scoped to an element class (aas-el-a … aas-el-i) set on <body>. */

body.aas-winter { --aas-night: #0B1F3A; --aas-pine: #1F6B4A; }
/* A: holly accent for seasonal pieces only */
body.aas-winter.aas-el-a {
	--aas-season: #C8323C;
	--aas-season-ink: #9B1F2A;
	--aas-season-soft: #FDEEEF;
	--aas-bar-hi: #FF8A92;
}

/* C: snowy-night hero */
.aas-winter.aas-el-c .aa-hero__poster, .aas-winter.aas-el-c .aa-hero__video { filter: brightness(.72) saturate(.85) contrast(1.05) hue-rotate(8deg); }
.aas-frost {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 70% 45% at 50% 0%, rgba(190, 215, 255, .35), transparent 70%),
		linear-gradient(180deg, rgba(11, 31, 58, .25), rgba(11, 31, 58, 0) 40%, rgba(220, 235, 255, .18));
}
.aas-bokeh { position: absolute; inset: 0; }
.aas-bokeh i {
	position: absolute; border-radius: 50%; filter: blur(3px); mix-blend-mode: screen; opacity: .55;
	animation: aas-glow 4s ease-in-out infinite alternate;
}
@keyframes aas-glow { from { opacity: .3; } to { opacity: .75; } }

/* D: snow */
.aas-snow i {
	position: absolute; top: -12px; border-radius: 50%; background: #fff; opacity: 0;
	box-shadow: 0 0 4px rgba(255, 255, 255, .7);
	animation: aas-snow var(--dur, 10s) linear var(--delay, 0s) infinite;
}
@keyframes aas-snow {
	0% { opacity: 0; transform: translate(0, 0); }
	10% { opacity: .95; }
	90% { opacity: .9; }
	100% { opacity: 0; transform: translate(var(--drift, 30px), calc(var(--h, 520px) + 20px)); }
}

/* E: hat on the logo */
.aas-winter.aas-el-e .aa-header__brand > a { position: relative; }
.aas-winter.aas-el-e .aa-header__brand > a::after {
	content: ""; position: absolute; left: -10px; top: -12px; width: 24px; height: 20px; pointer-events: none; transform: rotate(-22deg);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath fill='%23C8323C' d='M3 15C5 7 9 2 15 2c3 0 5 2 6 5-2-1-4-1-5 1l-1 7Z'/%3E%3Crect x='1' y='14' width='16' height='4.5' rx='2.2' fill='%23fff' stroke='%23DCE6F2' stroke-width='.6'/%3E%3Ccircle cx='20' cy='8.5' r='2.6' fill='%23fff' stroke='%23DCE6F2' stroke-width='.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* F: string lights under the header */
.aas-lights { position: relative; height: 22px; margin-bottom: -22px; z-index: 5; pointer-events: none; overflow: hidden; }
.aas-lights svg { display: block; width: 100%; height: 22px; }
.aas-lights .wire { fill: none; stroke: #1E3350; stroke-width: 1.2; }
.aas-lights .bulb { animation: aas-twinkle 2.4s ease-in-out infinite; }
.aas-lights .bulb:nth-of-type(3n) { animation-delay: .8s; }
.aas-lights .bulb:nth-of-type(3n+1) { animation-delay: 1.6s; }
@keyframes aas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* H: seasonal hero tag */
.aas-winter.aas-el-h .aa-hero--intro .aa-pill { border-color: var(--aas-season); color: #FFE3E5; background: color-mix(in srgb, var(--aas-season) 18%, transparent); }
body.aas-winter.aas-el-h:not(.aas-el-a) .aa-hero--intro .aa-pill { color: #BFD5FF; }

/* I: snowy pines + navy footer (not on cart, checkout or account) */
.aas-pines { position: relative; margin-top: 48px; line-height: 0; }
.aas-pines svg { display: block; width: 100%; height: 130px; }
.aas-pines__greeting {
	position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; padding: 0 16px; text-align: center;
	font: 500 14px/1.4 var(--aa-font); color: #E3ECFA; letter-spacing: .01em;
}
.aas-pines .flake { animation: aas-flake 6s linear infinite; }
.aas-pines .flake:nth-of-type(2n) { animation-duration: 8s; animation-delay: -3s; }
.aas-pines .flake:nth-of-type(3n) { animation-duration: 10s; animation-delay: -5s; }
@keyframes aas-flake { from { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(60px); opacity: 0; } }
.aas-pines + .aa-footer { margin-top: 0; border-top: 0; }
body.aas-winter.aas-el-i:not(.aas-quiet) .aa-footer { background: var(--aas-night); }
body.aas-winter.aas-el-i:not(.aas-quiet) .aa-footer a { color: #E3ECFA; }
body.aas-winter.aas-el-i:not(.aas-quiet) .aa-footer__disclaimer,
body.aas-winter.aas-el-i:not(.aas-quiet) .aa-footer__copy { color: #9FB4D3; }
@media (min-width: 768px) {
	.aas-pines svg { height: 160px; }
	.aas-pines__greeting { bottom: 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.aas-snow { display: none; }
	.aas-bokeh i, .aas-lights .bulb, .aas-pines .flake { animation: none !important; }
}
