/* One-off treatment for "Pink. The color. The idea. Redefined. Again."
   (post 30705) — enqueued only on that post by inc/hooks/pink-post.php,
   which documents the three pieces below. Keep this ID in step with
   SHEW_PINK_POST_ID there. */

body.postid-30705
{
	--pink-post-ink: #C2185B;   /* readable pink for body text (5.9:1 on white) */
	--pink-post-pms: #F8A3BC;   /* PMS 189 C — graphics only, too light for text */
	--pink-post-olive: #8C8638; /* what "pink" meant in the 1600s */
	--pink-post-tan: #E6D8B4;
	--pink-post-paper: #F8F4EA;
	--pink-post-dark: #2A2620;
}

/* ── 1. Pink arrives with permission ─────────────────────────── */

.pinkWord
{
	transition: color 1.2s ease var(--pink-delay, 0s);
}
body.pink-permitted .pinkWord
{
	color: var(--pink-post-ink);
}

/* ── 2. Pinking-shears dividers ──────────────────────────────── */

/* A strip with zigzag top and bottom edges, like fabric cut with pinking
   shears. Two conic-gradient masks: the top half's 90° wedges point up,
   the bottom half's point down, and they overlap into a solid middle. */
.pinkingDivider,
.entry-content hr.wp-block-separator.pinkingDivider
{
	--s: 9px;
	border: 0;
	opacity: 1;
	width: min(240px, 60%);
	height: calc(3 * var(--s));
	margin: 2.5em auto;
	background-color: var(--pink-post-olive);
	-webkit-mask:
		conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--s)) 51% repeat-x,
		conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--s)) 51% repeat-x;
	mask:
		conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--s)) 51% repeat-x,
		conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--s)) 51% repeat-x;
	transition: background-color 1.2s ease 0.4s;
}
body.pink-permitted .pinkingDivider,
body.pink-permitted .entry-content hr.wp-block-separator.pinkingDivider
{
	background-color: var(--pink-post-pms);
}

/* ── 3. Hero: "This is not pink." chip ───────────────────────── */

.defaultImageHero .imageWrapper.heroCustomStage
{
	background-color: var(--pink-post-tan);
}

/* .parallaxWrapper is oversized 20% above and below the hero (see
   hero-default-image.css), so the visible band is its middle 5/7ths. The
   piece sits in the upper part of that band, clear of the title. */
.pinkHero
{
	position: absolute;
	left: 0;
	right: 0;
	top: 14.2857%;
	bottom: 14.2857%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: clamp(72px, 12%, 96px);
	box-sizing: border-box;
}
.pinkHero__piece
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(10px, 2vw, 22px);
}
.pinkHero__chip
{
	width: clamp(170px, 21vw, 300px);
	box-sizing: border-box;
	padding: 5% 5% 0;
	background: var(--pink-post-paper);
	box-shadow: 13px 16px 0 rgba(60, 48, 30, 0.14);
}
.pinkHero__swatch
{
	position: relative;
	aspect-ratio: 378 / 300;
	overflow: hidden;
	isolation: isolate;
	background: var(--pink-post-pms);
}
.pinkHero__slides
{
	position: absolute;
	inset: 0;
	mix-blend-mode: luminosity;
	opacity: 0.4;
}
.pinkHero__slide
{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.5s ease;
}
.pinkHero__slide.is-active
{
	opacity: 1;
}
.pinkHero__slide.is-top
{
	z-index: 1;
}
/* Audubon's plate is portrait — show the whole bird, feathering the sides
   so the paper edge doesn't read as a hard rectangle. */
.pinkHero__slide.is-contain
{
	object-fit: contain;
	transform: scale(1.3);
	-webkit-mask-image: linear-gradient(to right, transparent 15%, #000 25%, #000 75%, transparent 85%);
	mask-image: linear-gradient(to right, transparent 15%, #000 25%, #000 75%, transparent 85%);
}
.pinkHero__label
{
	padding: 0.85em 2px 1em;
	font-family: 'DM Mono', monospace;
	font-size: clamp(10px, 0.95vw, 14px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pink-post-dark);
}
.pinkHero__caption
{
	margin: 0;
	font-family: 'Parisienne', cursive;
	font-size: clamp(34px, 4.2vw, 60px);
	line-height: 1.1;
	color: var(--pink-post-dark);
	white-space: nowrap;
}
.pinkHero__caption span
{
	display: inline-block;
}
.pinkHero__caption span:nth-child(1) { transform: rotate(-1.6deg) translateY(2px); }
.pinkHero__caption span:nth-child(2) { transform: rotate(1.2deg) translateY(-3px); font-size: 1.04em; }
.pinkHero__caption span:nth-child(3) { transform: rotate(-0.5deg) translateY(1px); }
.pinkHero__caption span:nth-child(4) { transform: rotate(1.6deg) translateY(-1px); font-size: 0.97em; }

/* Phones: the hero is ~230px tall and the title fills it, so there's no
   room for the caption — just a small chip tucked into the top-right. */
@media (max-width: 767px)
{
	.pinkHero
	{
		justify-content: flex-end;
		padding: 14px 16px 0 0;
	}
	.pinkHero__chip
	{
		width: 120px;
		box-shadow: 7px 9px 0 rgba(60, 48, 30, 0.14);
	}
	.pinkHero__label
	{
		font-size: 9px;
	}
	.pinkHero__caption
	{
		display: none;
	}
}

@media (prefers-reduced-motion: reduce)
{
	.pinkWord,
	.pinkingDivider,
	.entry-content hr.wp-block-separator.pinkingDivider,
	.pinkHero__slide
	{
		transition: none;
	}
}
