/* /picks/christmas-candy: a vintage Christmas card. Cranberry, gold foil
   double frame, a porcelain candy dish, slow snow. */
.pk-xmas {
	--pk-bg: #fbf6ee; --pk-ink: #3a0d10; --pk-muted: #6e4b4b; --pk-card: #fffdf9; --pk-line: rgba(58, 13, 16, .14);
	--pk-accent: #c9a24a; --pk-accent-ink: #2a0709; --pk-pop: #9e1b22;
	--fl-display: 'Rozha One', Georgia, serif; --fl-body: 'Figtree', 'Inter', sans-serif; --fl-radius: 12px;
}
.pk-xmas .pk-hero { color: #fbf1e1;
	background: radial-gradient(ellipse at 70% 40%, #a51f27 0%, #7e1419 45%, #4c0a0e 100%); }
.xc-frame { position: relative; padding: clamp(28px, 4vw, 48px); }
.xc-frame::before, .xc-frame::after { content: ""; position: absolute; pointer-events: none; border-radius: 6px; }
.xc-frame::before { inset: 0; border: 2px solid #d8b867; }
.xc-frame::after { inset: 8px; border: 1px solid rgba(216, 184, 103, .55); }
.pk-xmas .pk-kicker { color: #e8cd86; }
.pk-xmas .pk-h1 { color: #fff7ea; }
.pk-xmas .pk-h1 em { font-style: normal; color: #e8cd86; }
.pk-xmas .pk-lead { color: #f1dcc9; }
.pk-xmas .pk-hero a.fl-btn.fl-btn-ghost { color: #fbf1e1; }
.pk-xmas .pk-proof li::before { color: #e8cd86; }

/* snow: two layers of dots drifting down */
.xc-snow { position: absolute; inset: -20% 0 0; z-index: -1; opacity: .55;
	background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 120px, #fff, transparent),
		radial-gradient(2.5px 2.5px at 160px 60px, #fff, transparent), radial-gradient(1.5px 1.5px at 230px 170px, #fff, transparent);
	background-size: 260px 220px; animation: xc-fall 18s linear infinite; }
@keyframes xc-fall { to { background-position: 40px 220px; } }

/* the candy dish */
.xc-dish-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.xc-dish-wrap::before { content: ""; position: absolute; inset: 4%; border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, #ffffff 0 48%, #f1ebe2 58%, #e2d8ca 66%, #fffdf8 67% 70%, #d9cbb5 71%, #f6efe4 74%, #cbb89a 100%);
	box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 6px #d8b867, inset 0 0 0 9px #fffdf8, inset 0 0 0 10px #d8b867; }
.xc-dish { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.xc-piece { position: absolute; top: 50%; left: 50%; width: 30%; aspect-ratio: 1;
	transform: translate(-50%, -50%) rotate(var(--a)) translate(118%) rotate(calc(var(--a) * -1));
	animation: xc-in .9s cubic-bezier(.34, 1.56, .64, 1) calc(.4s + var(--i) * .08s) both; }
@keyframes xc-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.xc-piece a { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; box-shadow: 0 10px 18px -10px rgba(58, 13, 16, .6);
	transition: transform .35s cubic-bezier(.16, 1, .3, 1); position: relative; }
.xc-piece img { width: 100%; height: 100%; object-fit: contain; padding: 14%; border-radius: 50%; }
.xc-label { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; max-width: 150%; overflow: hidden; text-overflow: ellipsis;
	background: #3a0d10; color: #fbf1e1; font: 700 .68rem/1 var(--fl-body); padding: .45em .7em; border-radius: 999px; opacity: 0; transition: opacity .25s; }
.xc-piece a:hover, .xc-piece a:focus-visible { transform: scale(1.1); }
.xc-piece a:hover .xc-label, .xc-piece a:focus-visible .xc-label { opacity: 1; }
.xc-center { position: absolute; inset: 38%; display: grid; place-content: center; text-align: center; color: #9e1b22; font: 400 clamp(1rem, .7rem + 1vw, 1.5rem)/1 var(--fl-display); }
.xc-center span:last-child { font-size: .7em; color: #b38b37; margin-top: 4px; }

.pk-xmas .pk-sec-n { color: var(--pk-pop); }
.pk-xmas .pk-rail-all { background: var(--pk-pop); color: #fff !important; }
.pk-xmas .pk-card-feature { background: linear-gradient(#fffdf9, #fbf1e1); }
.pk-xmas .pk-close { background: #4c0a0e; color: #fbf1e1; }

@media (max-width: 820px) {
	.xc-frame::before, .xc-frame::after { display: none; }
	.xc-dish-wrap { width: min(100%, 360px); }
}

/* Phones: the candy dish sits right under the headline. */
@media (max-width: 820px) {
	.pk-xmas .pk-hero-grid { display: flex; flex-direction: column; gap: 0; }
	.xc-copy { display: contents; }
	.pk-xmas .pk-kicker { order: 1; } .pk-xmas .pk-h1 { order: 2; } .xc-dish-wrap { order: 3; width: min(100%, 300px); margin: 14px auto 0; }
	.pk-xmas .pk-lead { order: 4; } .pk-xmas .pk-cta-row { order: 5; } .pk-xmas .pk-proof { order: 6; }
	.xc-label { display: none; }
}
