/*
Theme Name: Cubist Watercolor Professional
Theme URI: https://telex.automattic.ai
Author: Telex
Description: A warm, artsy professional portfolio theme inspired by cubist abstraction and watercolor textures. Features geometric shapes, earth-toned palette, and minimalist design with accessible warm colors. Built for creative professionals seeking an artistic, memorable web presence.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cubist-watercolor-professional
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, custom-fonts, editor-style, portfolio, one-column
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ==========================================================================
   Paper texture overlay — subtle noise for watercolor / painted feel
   ========================================================================== */

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.28;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Root & body resets
   ========================================================================== */

:root,
body,
.wp-site-blocks {
	overflow-x: clip;
	overflow-y: visible;
}

/* ==========================================================================
   Sticky header
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Backdrop pseudo — keeps the header clean so mobile nav overlay stays viewport-fixed */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--ivory);
	box-shadow: 0 1px 0 var(--wp--preset--color--pale-ochre);
}

/* ==========================================================================
   Typography polish
   ========================================================================== */

/* Garamond display headings — warm, organic, old-style feel */
h1, h2, h3, h4,
.wp-block-post-title,
.wp-block-site-title {
	font-feature-settings: "onum" 1, "liga" 1;
	text-wrap: balance;
}

/* Body text — Outfit stays crisp and legible */
p,
.wp-block-post-excerpt,
.wp-block-list {
	text-wrap: pretty;
}

/* Dropcap styling for editorial flavor */
.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-weight: 700;
	color: var(--wp--preset--color--terracotta);
	margin-right: 0.05em;
}

/* ==========================================================================
   Link styles — warm terracotta with underline treatment
   ========================================================================== */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
	text-decoration-color: var(--wp--preset--color--dark-terracotta);
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Navigation links — no underline by default */
.wp-block-navigation a {
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

.wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	background: var(--wp--preset--color--terracotta);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus::after {
	transform: scaleX(1);
}

/* Nav separator diamond — cubist accent */
.nav-separator {
	width: 5px;
	height: 5px;
	background-color: var(--wp--preset--color--charcoal);
	transform: rotate(45deg);
	opacity: 0.35;
	flex-shrink: 0;
}

/* ==========================================================================
   Button styles — terracotta warmth
   ========================================================================== */

.wp-block-button .wp-block-button__link {
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(184, 74, 58, 0.25);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: none;
}

.wp-block-button .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--amber);
	outline-offset: 3px;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	border-style: solid;
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--dark-terracotta);
	color: var(--wp--preset--color--ivory);
	border-color: var(--wp--preset--color--dark-terracotta);
}

/* ==========================================================================
   Image treatments — soft corners, watercolor feel
   ========================================================================== */

.wp-block-image img {
	transition: filter 0.4s ease, transform 0.4s ease;
}

.wp-block-image:hover img {
	filter: contrast(1.05) brightness(0.97);
}

/* Gallery images — subtle depth on hover */
.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.02);
}

/* Cover block images — watercolor multiply blend */
.wp-block-cover__image-background {
	mix-blend-mode: multiply;
	filter: contrast(1.05) brightness(0.95);
}

/* ==========================================================================
   Quote & pullquote — cubist accent geometry
   ========================================================================== */

.wp-block-quote::before {
	content: "\201C";
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: clamp(3rem, 5vw, 5rem);
	color: var(--wp--preset--color--pale-ochre);
	line-height: 1;
	display: block;
	margin-bottom: -0.3em;
	opacity: 0.6;
}

.wp-block-pullquote cite,
.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sienna);
}

/* ==========================================================================
   Separator — geometric accent instead of plain line
   ========================================================================== */

.wp-block-separator {
	border: none;
	opacity: 1;
}

.wp-block-separator:not(.is-style-dots):not(.is-style-wide) {
	width: 80px;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--terracotta);
}

/* ==========================================================================
   CSS Geometric accents — cubist shapes used as decoration
   ========================================================================== */

/* Subtle cubist background shapes that can be applied via className */
.has-cubist-accent {
	position: relative;
}

.has-cubist-accent::before {
	content: "";
	position: absolute;
	width: 200px;
	height: 200px;
	background: var(--wp--preset--color--pale-ochre);
	opacity: 0.15;
	clip-path: polygon(20% 0%, 100% 20%, 80% 100%, 0% 80%);
	z-index: 0;
	pointer-events: none;
	top: -40px;
	right: -40px;
	transform: rotate(15deg);
	mix-blend-mode: multiply;
}

.has-cubist-accent::after {
	content: "";
	position: absolute;
	width: 150px;
	height: 150px;
	background: var(--wp--preset--color--coral);
	opacity: 0.1;
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
	bottom: -30px;
	left: 10%;
	filter: blur(30px);
	mix-blend-mode: multiply;
}

/* Hero accent shapes */
.accent-coral {
	position: absolute;
	z-index: 1;
	mix-blend-mode: multiply;
	pointer-events: none;
	width: 20vw;
	height: 20vw;
	max-width: 300px;
	max-height: 300px;
	background-color: var(--wp--preset--color--coral);
	border-radius: 50%;
	opacity: 0.15;
	filter: blur(40px);
}

.accent-ochre {
	position: absolute;
	z-index: 1;
	mix-blend-mode: multiply;
	pointer-events: none;
	width: 15vw;
	height: 15vw;
	max-width: 250px;
	max-height: 250px;
	background-color: var(--wp--preset--color--pale-ochre);
	clip-path: polygon(20% 0%, 100% 20%, 80% 100%, 0% 80%);
	opacity: 0.25;
	filter: blur(30px);
	transform: rotate(15deg);
}

.accent-line {
	position: absolute;
	width: 35%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--terracotta), transparent);
	opacity: 0.3;
	transform: rotate(-15deg);
	transform-origin: left center;
	z-index: 1;
	pointer-events: none;
}

/* ==========================================================================
   Icon frames — detailed pen-line drawings
   ========================================================================== */

.icon-gallery {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	flex-wrap: wrap;
}

.icon-frame {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(44, 44, 42, 0.2);
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.4s ease;
	position: relative;
	background: transparent;
	cursor: default;
}

.icon-frame:hover {
	border-color: var(--wp--preset--color--terracotta);
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(166, 61, 47, 0.15);
}

.icon-frame svg {
	width: 26px;
	height: 26px;
	stroke: var(--wp--preset--color--charcoal);
	stroke-width: 1.2;
	stroke-linecap: square;
	stroke-linejoin: miter;
	fill: none;
	transition: stroke 0.4s ease;
}

.icon-frame:hover svg {
	stroke: var(--wp--preset--color--terracotta);
}

/* ==========================================================================
   Floating geometric sunflower button
   ========================================================================== */

.floating-button {
	position: fixed;
	right: clamp(1rem, 4vw, 2.5rem);
	bottom: 30%;
	z-index: 100;
	width: 76px;
	height: 76px;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
}

.floating-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--terracotta);
	outline-offset: 4px;
}

.sunflower-svg {
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 8px 12px rgba(166, 61, 47, 0.2))
		drop-shadow(0 3px 5px rgba(232, 168, 87, 0.35));
}

.floating-button:hover .sunflower-svg {
	transform: rotate(90deg) scale(1.08);
	filter: none;
}

.sunflower-petal {
	fill: var(--wp--preset--color--amber);
	stroke: var(--wp--preset--color--terracotta);
	stroke-width: 1.5;
	stroke-linejoin: miter;
	transition: fill 0.4s ease, stroke 0.4s ease;
}

.floating-button:hover .sunflower-petal {
	fill: transparent;
	stroke: var(--wp--preset--color--charcoal);
	stroke-width: 2;
}

.sunflower-center {
	fill: var(--wp--preset--color--amber);
	stroke: var(--wp--preset--color--terracotta);
	stroke-width: 2;
	transition: fill 0.4s ease, stroke 0.4s ease;
}

.floating-button:hover .sunflower-center {
	fill: transparent;
	stroke: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Hero section styling
   ========================================================================== */

.hero-bg-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 55vw;
	height: 90vh;
	z-index: 0;
	mask-image: radial-gradient(ellipse at 30% 30%, black 20%, rgba(0, 0, 0, 0.6) 60%, transparent 85%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 20%, rgba(0, 0, 0, 0.6) 60%, transparent 85%);
}

.hero-bg-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	opacity: 0.85;
	filter: contrast(1.1) brightness(0.95);
}

/* ==========================================================================
   Site logo — geometric sunflower (hover-style: all black lines, no fill)
   ========================================================================== */

.site-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.site-logo-sunflower {
	width: 38px;
	height: 38px;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo-sunflower polygon {
	fill: transparent;
	stroke: var(--wp--preset--color--charcoal);
	stroke-width: 2;
	stroke-linejoin: miter;
	transition: stroke 0.3s ease;
}

.site-logo-link:hover .site-logo-sunflower {
	transform: rotate(45deg);
}

.site-logo-link:hover .site-logo-sunflower polygon {
	stroke: var(--wp--preset--color--terracotta);
}

.site-logo-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ==========================================================================
   Wordmark / Site title refinement
   ========================================================================== */

.wp-block-site-title a {
	text-decoration: none;
	color: inherit;
	letter-spacing: 0.05em;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--terracotta);
}

/* ==========================================================================
   Post meta & date — muted sienna
   ========================================================================== */

.wp-block-post-date,
.wp-block-post-terms {
	letter-spacing: 0.02em;
}

.wp-block-post-terms a {
	text-decoration: none;
	color: var(--wp--preset--color--sage);
	border-bottom: 1px solid transparent;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--terracotta);
	border-bottom-color: var(--wp--preset--color--terracotta);
}

/* Tag / category badges — sage accent */
.wp-block-post-terms a {
	padding: 0.15em 0.6em;
	background: rgba(143, 175, 140, 0.12);
	border-radius: 3px;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-terms a:hover {
	background: rgba(143, 175, 140, 0.22);
}

/* ==========================================================================
   Table styling
   ========================================================================== */

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--pale-ochre);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.wp-block-table th {
	background: var(--wp--preset--color--warm-cream);
	font-family: var(--wp--preset--font-family--outfit);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wp-block-table tr:nth-child(even) td {
	background: rgba(250, 246, 239, 0.5);
}

/* ==========================================================================
   Code block refinement
   ========================================================================== */

.wp-block-code code {
	font-size: inherit;
	tab-size: 4;
}

/* Inline code */
:not(pre) > code {
	background: var(--wp--preset--color--warm-cream);
	padding: 0.15em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	border: 1px solid var(--wp--preset--color--pale-ochre);
	color: var(--wp--preset--color--sienna);
}

/* ==========================================================================
   Form inputs — matching the warm palette
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--charcoal);
	background: var(--wp--preset--color--ivory);
	border: 1px solid var(--wp--preset--color--pale-ochre);
	border-radius: 4px;
	padding: 0.6em 0.9em;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--terracotta);
	box-shadow: 0 0 0 2px rgba(166, 61, 47, 0.15);
	outline: none;
}

/* ==========================================================================
   Search block
   ========================================================================== */

.wp-block-search__button {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--ivory);
	border: none;
	font-family: var(--wp--preset--font-family--outfit);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wp-block-search__button:hover {
	background: var(--wp--preset--color--dark-terracotta);
}

/* ==========================================================================
   Footer polish
   ========================================================================== */

footer.wp-block-template-part a {
	text-decoration: none;
	transition: color 0.3s ease;
}

footer.wp-block-template-part a:hover {
	color: var(--wp--preset--color--terracotta);
}

/* ==========================================================================
   Mobile hamburger overlay
   ========================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   Selection color — warm accent
   ========================================================================== */

::selection {
	background: rgba(232, 168, 87, 0.3);
	color: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Focus visible — global accessible focus ring
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 2px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination-numbers .page-numbers {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.35em 0.7em;
	border-radius: 3px;
	text-decoration: none;
	color: var(--wp--preset--color--charcoal);
	transition: background 0.3s ease, color 0.3s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--warm-cream);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--ivory);
}

/* ==========================================================================
   Cubist watercolor decorative shapes — whimsical side & section accents
   ========================================================================== */

/* Side decorations — geometric shapes that float along the edges of the page */
.wp-site-blocks > main.wp-block-group {
	position: relative;
}

/* Left side — scattered cubist shapes */
.wp-site-blocks > main.wp-block-group::before {
	content: "";
	position: fixed;
	left: -30px;
	top: 20vh;
	width: 120px;
	height: 120px;
	background:
		radial-gradient(circle at 30% 40%, var(--wp--preset--color--coral) 0%, var(--wp--preset--color--coral) 25px, transparent 25px),
		linear-gradient(135deg, var(--wp--preset--color--pale-ochre) 0%, var(--wp--preset--color--pale-ochre) 100%);
	clip-path: polygon(15% 5%, 85% 0%, 100% 35%, 90% 85%, 50% 100%, 10% 80%, 0% 40%);
	opacity: 0.12;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	filter: blur(1px);
}

.wp-site-blocks > main.wp-block-group::after {
	content: "";
	position: fixed;
	right: -20px;
	top: 55vh;
	width: 100px;
	height: 100px;
	background: var(--wp--preset--color--amber);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	opacity: 0.1;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	filter: blur(1px);
	transform: rotate(15deg);
}

/* Section divider shapes — cubist watercolor accents between content blocks */
.wp-site-blocks > main.wp-block-group > .wp-block-group + .wp-block-group {
	position: relative;
}

/* Whimsical cubist shapes that appear between sections */
.wp-site-blocks > main.wp-block-group > .wp-block-group:nth-child(odd)::before {
	content: "";
	position: absolute;
	top: -35px;
	left: 8%;
	width: 70px;
	height: 70px;
	background: var(--wp--preset--color--sage);
	border-radius: 50%;
	opacity: 0.1;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 1;
	filter: blur(8px);
}

.wp-site-blocks > main.wp-block-group > .wp-block-group:nth-child(even)::after {
	content: "";
	position: absolute;
	top: -25px;
	right: 12%;
	width: 55px;
	height: 55px;
	background: var(--wp--preset--color--coral);
	clip-path: polygon(20% 0%, 100% 15%, 85% 100%, 0% 80%);
	opacity: 0.08;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 1;
	filter: blur(4px);
	transform: rotate(-8deg);
}

/* Additional floating watercolor blobs along the margins */
.wp-site-blocks > main.wp-block-group > .wp-block-group:nth-child(3n)::after {
	content: "";
	position: absolute;
	bottom: -40px;
	left: -40px;
	width: 90px;
	height: 90px;
	background: var(--wp--preset--color--amber);
	border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
	opacity: 0.08;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	filter: blur(12px);
}

/* Cubist triangle accents scattered on alternating sections */
.wp-site-blocks > main.wp-block-group > .wp-block-group:nth-child(4n+1)::before {
	content: "";
	position: absolute;
	top: 20%;
	right: -25px;
	width: 60px;
	height: 60px;
	background: var(--wp--preset--color--terracotta);
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
	opacity: 0.06;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	transform: rotate(25deg);
	filter: blur(2px);
}

/* Cubist watercolor wash — subtle background accents on sections */
.cubist-wash-left {
	position: relative;
}

.cubist-wash-left::before {
	content: "";
	position: absolute;
	left: -60px;
	top: 10%;
	width: 180px;
	height: 180px;
	background:
		radial-gradient(ellipse at 40% 50%,
			var(--wp--preset--color--pale-ochre) 0%,
			transparent 70%);
	opacity: 0.2;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	transform: rotate(-10deg);
}

.cubist-wash-right {
	position: relative;
}

.cubist-wash-right::after {
	content: "";
	position: absolute;
	right: -50px;
	bottom: 15%;
	width: 160px;
	height: 160px;
	background:
		radial-gradient(ellipse at 60% 50%,
			var(--wp--preset--color--coral) 0%,
			transparent 70%);
	opacity: 0.12;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	transform: rotate(8deg);
}

/* Small geometric dots — cubist stipple effect along page edges */
.cubist-dots {
	position: relative;
}

.cubist-dots::before {
	content: "";
	position: absolute;
	left: 3%;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--terracotta);
	border-radius: 0;
	opacity: 0.25;
	pointer-events: none;
	z-index: 1;
	box-shadow:
		0 20px 0 var(--wp--preset--color--sage),
		0 40px 0 var(--wp--preset--color--amber),
		0 -20px 0 var(--wp--preset--color--coral),
		0 -40px 0 var(--wp--preset--color--pale-ochre),
		0 60px 0 var(--wp--preset--color--terracotta),
		0 -60px 0 var(--wp--preset--color--sienna);
	mix-blend-mode: multiply;
}

/* Watercolor splash — irregular organic blobs */
.watercolor-splash {
	position: relative;
	overflow: visible;
}

.watercolor-splash::before {
	content: "";
	position: absolute;
	right: -30px;
	top: -20px;
	width: 140px;
	height: 100px;
	background: var(--wp--preset--color--amber);
	border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
	opacity: 0.08;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	filter: blur(15px);
	transform: rotate(12deg);
}

.watercolor-splash::after {
	content: "";
	position: absolute;
	left: -20px;
	bottom: -15px;
	width: 100px;
	height: 80px;
	background: var(--wp--preset--color--sage);
	border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
	opacity: 0.06;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
	filter: blur(12px);
	transform: rotate(-15deg);
}

/* ==========================================================================
   Responsive refinements
   ========================================================================== */

@media (max-width: 781px) {
	.site-logo-sunflower {
		width: 32px;
		height: 32px;
	}

	.floating-button {
		width: 60px;
		height: 60px;
		right: 1rem;
		bottom: 25%;
	}

	.icon-gallery {
		gap: 0.75rem;
	}

	.icon-frame {
		width: 44px;
		height: 44px;
	}

	.icon-frame svg {
		width: 22px;
		height: 22px;
	}

	/* Reduce geometric accent sizes on mobile */
	.has-cubist-accent::before {
		width: 120px;
		height: 120px;
	}

	.has-cubist-accent::after {
		width: 90px;
		height: 90px;
	}

	/* Reduce cubist side shapes on mobile */
	.wp-site-blocks > main.wp-block-group::before {
		width: 70px;
		height: 70px;
		left: -40px;
		opacity: 0.08;
	}

	.wp-site-blocks > main.wp-block-group::after {
		width: 60px;
		height: 60px;
		right: -30px;
		opacity: 0.06;
	}

	.cubist-dots::before {
		display: none;
	}
}

@media (max-width: 480px) {
	.floating-button {
		width: 52px;
		height: 52px;
		bottom: 22%;
	}
}

/* ---------- Loop layout utilities ---------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	padding-block: var(--wp--preset--spacing--30);
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--pale-ochre);
	opacity: 0.4;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: "";
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--terracotta);
	border-radius: 50%;
	background: var(--wp--preset--color--ivory);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}

.scroll-expand {
    width: var(--wp--style--global--content-size);
    max-width: var(--wp--style--global--content-size);
    margin-inline: auto;

    animation: expand-to-wide linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
}

@keyframes expand-to-wide {
    from {
        width: var(--wp--style--global--content-size);
        max-width: var(--wp--style--global--content-size);
    }

    to {
        width: var(--wp--style--global--wide-size);
        max-width: var(--wp--style--global--wide-size);
    }
}


/* Don't animate on smaller screens */
@media (max-width: 767px) {
    .scroll-expand {
        width: 100%;
        max-width: 100%;
        animation: none;
    }
}