/*
Theme Name: Blue Petal Reads
Description: Custom block theme for Blue Petal Reads, recreated from the original Wix design.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: bluepetalreads
*/

/* Faded French-blue pinstripe used behind the header and hero */
.bpr-stripes {
	background-color: #fff;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
		repeating-linear-gradient(90deg, #8bb3dd 0 14px, #fff 14px 34px);
}

/* Scrolling ticker */
.bpr-marquee {
	overflow: hidden;
	white-space: nowrap;
}
.bpr-marquee__track {
	display: inline-flex;
	gap: 3rem;
	animation: bpr-marquee 40s linear infinite;
}
.bpr-marquee__track span {
	flex: none;
}
@keyframes bpr-marquee {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.bpr-marquee__track { animation: none; }
}

/* Header nav */
.bpr-nav a {
	text-decoration: none;
}
.bpr-nav .current-menu-item a,
.bpr-nav a[aria-current="page"],
.bpr-nav a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Post cards */
.bpr-card {
	background: #fff;
	border: 1px solid rgba(95, 127, 166, 0.25);
	border-radius: 6px;
	overflow: hidden;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bpr-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(40, 60, 90, 0.12);
}
.bpr-card .wp-block-post-featured-image {
	margin: 0;
}
.bpr-card .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.bpr-card .wp-block-post-title a {
	text-decoration: none;
}
.bpr-card--on-blue {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
}

/* Rounded hero/feature photos */
.bpr-photo img {
	border-radius: 4px;
	box-shadow: 0 12px 30px rgba(40, 60, 90, 0.18);
}

/* Single post: framed article like the Wix layout */
.bpr-article {
	border: 1px solid rgba(95, 127, 166, 0.3);
	background: #fff;
}
.bpr-article .wp-block-post-content .wp-block-image.aligncenter img,
.bpr-article .wp-block-post-content .wp-block-image img {
	max-width: min(100%, 420px);
	height: auto;
	box-shadow: 0 6px 18px rgba(40, 60, 90, 0.15);
}
.bpr-article .wp-block-post-content h2 {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
	margin-top: 2.5rem;
}
.bpr-article .wp-block-post-content h3 {
	color: var(--wp--preset--color--contrast);
	font-size: 1.25rem;
}
.bpr-article .wp-block-post-content a {
	color: var(--wp--preset--color--primary);
}

/* Substack embed */
.bpr-substack iframe {
	width: 100%;
	max-width: 480px;
	border: 1px solid #eee !important;
	background: #fff;
	display: block;
	margin: 0 auto;
}
