/* ============================================================
   Dawn Chorus — bird boy's playful periwinkle look. v1.0.6
   Palette comes from Kadence global palette CSS vars:
   1 coral · 2 navy · 3 ink · 4 text · 5 dim · 6 border
   7 light sky · 8 sky · 9 warm white
   ============================================================ */

:root {
	--bb-shadow: 51, 64, 94;
}

/* WP wraps legacy group blocks in an inner container div;
   flatten it so grid/flex on the outer group reaches the cards. */
.bb-flock > .wp-block-group__inner-container,
.bb-sky > .wp-block-group__inner-container,
.bb-strip > .wp-block-group__inner-container {
	display: contents;
}

/* --- site header: compact logo --- */
.site-branding img.custom-logo {
	max-width: 56px !important;
	height: auto !important;
}

/* --- hero sky card --- */
.bb-sky {
	background: linear-gradient(180deg, var(--global-palette8) 0%, var(--global-palette7) 100%);
	border-radius: 28px;
	padding: clamp(1.25rem, 4vw, 2.75rem);
}

.bb-sky .wp-block-columns {
	align-items: center;
}

.bb-sky .wp-block-column:first-child {
	flex-grow: 1.7;
}

.bb-tilde {
	color: var(--global-palette1);
}

/* --- the borb --- */
.bb-borb {
	position: relative;
	width: fit-content;
	margin: 0 auto;
}

.bb-borb img {
	max-width: min(230px, 58vw);
	height: auto;
	border-radius: 24px;
	box-shadow: 0 14px 32px rgba(var(--bb-shadow), 0.2);
}

.bb-borb::after {
	content: "chicka-dee-dee-dee!";
	position: absolute;
	top: -16px;
	right: -22px;
	background: var(--global-palette9);
	color: var(--global-palette2);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	border-radius: 14px 14px 14px 3px;
	box-shadow: 0 6px 18px rgba(var(--bb-shadow), 0.18);
	transform: rotate(3deg);
	white-space: nowrap;
}

@media (max-width: 781px) {
	.bb-borb::after {
		right: 0;
	}
}

/* --- the flock: clean polaroid cards --- */
.bb-flock {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: clamp(1rem, 3vw, 1.8rem);
}

.bb-polaroid {
	position: relative;
	background: var(--global-palette9);
	padding: 0.7rem 0.7rem 1rem;
	border-radius: 6px;
	box-shadow: 0 10px 26px rgba(var(--bb-shadow), 0.14);
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.bb-polaroid:hover,
.bb-polaroid:focus-within {
	transform: scale(1.02);
	z-index: 2;
}

.bb-polaroid img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border-radius: 3px;
}

.bb-polaroid figure {
	margin: 0;
	overflow: hidden;
	border-radius: 3px;
}

/* wigeon single art: zoom in on the duck (full scene reads too wide at card size) */
.bb-polaroid img[src*="a4167350964"] {
	transform: scale(1.4);
	transform-origin: 44% 40%;
}

.bb-polaroid p {
	margin: 0.15rem 0.2rem 0;
}

.bb-polaroid a {
	text-decoration: none;
	color: var(--global-palette2);
}

.bb-polaroid small,
.bb-polaroid .bb-note {
	color: var(--global-palette5);
	font-size: 0.8rem;
}

/* --- lazy bandcamp mini player (button injected by dawn-chorus.js) --- */
.bb-play {
	display: block;
	width: 100%;
	margin-top: 0.6rem;
	padding: 0.35rem 0.8rem;
	border: 1.5px solid var(--global-palette6);
	border-radius: 100px;
	background: transparent;
	color: var(--global-palette2);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bb-play:hover,
.bb-play:focus-visible {
	background: var(--global-palette7);
}

.bb-player iframe {
	display: block;
	width: 100%;
	height: 42px;
	border: 0;
	margin-top: 0.6rem;
	border-radius: 8px;
}

/* --- licensing / CTA strip --- */
.bb-strip {
	background: var(--global-palette9);
	border-radius: 20px;
	padding: 1.8rem 2rem;
	box-shadow: 0 12px 30px rgba(var(--bb-shadow), 0.12);
}

/* --- general dawn-chorus touches --- */
.wp-block-image img {
	border-radius: 12px;
}

.wp-block-quote {
	border-left: 4px solid var(--global-palette1);
	background: var(--global-palette7);
	border-radius: 0 12px 12px 0;
}

@media (prefers-reduced-motion: reduce) {
	.bb-polaroid { transition: none; }
}
