/* /picks/retro-candy: a five-and-dime candy counter. Cream paper with a
   halftone dot, a red-and-cream awning, oak shelves of glass jars. */
.pk-retro {
	--pk-bg: #f6eedd; --pk-ink: #2a1610; --pk-muted: #6d5446; --pk-card: #fffaf0; --pk-line: rgba(42, 22, 16, .14);
	--pk-accent: #c8281e; --pk-accent-ink: #fff8ec; --pk-pop: #c8281e;
	--fl-display: 'Shrikhand', 'Bebas Neue', serif; --fl-body: 'Karla', 'Inter', sans-serif; --fl-radius: 14px;
	background:
		radial-gradient(rgba(200, 40, 30, .06) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
		var(--pk-bg);
}
.pk-retro .pk-hero { padding-top: clamp(70px, 8vw, 110px); }

/* awning: stripes with a scalloped edge */
.rc-awning { position: absolute; inset: 0 0 auto 0; height: 46px; z-index: -1;
	background: repeating-linear-gradient(90deg, #c8281e 0 44px, #fff4e2 44px 88px);
	-webkit-mask: radial-gradient(22px at 22px 100%, transparent 98%, #000) 0 0 / 44px 100%;
	mask: radial-gradient(22px at 22px 100%, transparent 98%, #000) 0 0 / 44px 100%;
	filter: drop-shadow(0 6px 0 rgba(42, 22, 16, .12)); }

.pk-retro .pk-kicker { color: var(--pk-accent); }
.pk-retro .pk-h1 { color: var(--pk-ink); letter-spacing: -.01em; }
.rc-underline { background: linear-gradient(transparent 62%, rgba(251, 191, 36, .75) 62%, rgba(251, 191, 36, .75) 92%, transparent 92%); padding: 0 .08em; }
.pk-retro .pk-lead { color: var(--pk-muted); }

/* counter */
.rc-counter { display: grid; gap: 34px; padding: 18px 10px 0; }
.rc-shelf { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; padding: 0 14px 20px; }
.rc-shelf::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 20px; border-radius: 4px;
	background: linear-gradient(#b67b45, #8a5428 60%, #6b3f1d); box-shadow: 0 10px 18px -8px rgba(42, 22, 16, .55); }
.rc-jar { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit;
	transform: rotate(var(--tilt)); animation: rc-drop .9s cubic-bezier(.34, 1.56, .64, 1) var(--d) both; }
@keyframes rc-drop { from { opacity: 0; transform: translateY(-40px) rotate(var(--tilt)); } to { opacity: 1; transform: rotate(var(--tilt)); } }
.rc-lid { width: 62%; height: 18px; border-radius: 6px 6px 3px 3px; background: linear-gradient(#e6c06a, #b88a2c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
	transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.rc-glass { position: relative; width: 100%; aspect-ratio: 4 / 5; margin-top: -2px; border-radius: 18px 18px 22px 22px; overflow: hidden;
	background: #fff; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), inset 0 0 0 5px rgba(150, 190, 200, .35), 0 6px 0 rgba(42, 22, 16, .08); }
.rc-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, rgba(255, 255, 255, .55) 0 12%, transparent 22% 70%, rgba(255, 255, 255, .25) 82%, transparent); }
.rc-glass img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.rc-tag { position: absolute; bottom: 18%; right: -10px; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px 6px 14px; min-width: 76px;
	background: #fff8e6; border: 1.5px solid #2a1610; border-radius: 3px 8px 8px 3px; font: 600 .7rem/1.15 var(--fl-body);
	box-shadow: 2px 3px 0 rgba(42, 22, 16, .2); transform: rotate(6deg); transform-origin: left center;
	clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.rc-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #2a1610; }
.rc-tag-name { max-width: 9.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-tag-price { font: 800 .95rem/1 var(--fl-body); color: var(--pk-accent); }
.rc-jar:hover .rc-lid { transform: translateY(-9px) rotate(-6deg); }
.rc-jar:hover .rc-glass img { transform: scale(1.08); }
.rc-jar:focus-visible { outline-offset: 6px; }

/* sections in the counter palette */
.pk-retro .pk-sec-n { color: #e9b44c; -webkit-text-stroke: 1.5px var(--pk-ink); }
.pk-retro .pk-card { box-shadow: 4px 4px 0 var(--pk-line); }
.pk-retro .pk-close { background: #2a1610; color: #f6eedd; }

@media (max-width: 820px) {
	.rc-counter { gap: 26px; }
	.rc-shelf { gap: 8px; padding: 0 6px 16px; }
	.rc-tag { font-size: .62rem; min-width: 64px; right: -4px; }
	.rc-tag-price { font-size: .82rem; }
}

/* Phones: the counter sits right under the headline (one shelf), so the first
   screen shows candy, not just copy. */
@media (max-width: 820px) {
	.pk-retro .pk-hero-grid { display: flex; flex-direction: column; gap: 0; }
	.rc-copy { display: contents; }
	.pk-retro .pk-kicker { order: 1; } .pk-retro .pk-h1 { order: 2; } .rc-counter { order: 3; margin: 18px 0 4px; padding: 0; }
	.pk-retro .pk-lead { order: 4; margin-top: 14px; } .pk-retro .pk-cta-row { order: 5; } .pk-retro .pk-proof { order: 6; }
	.rc-shelf + .rc-shelf { display: none; }
	.rc-glass { aspect-ratio: 1; }
}
