/* Home page only: a gallery look. Styles whatever the owner puts in the page and in Banners; no images
   of its own beyond two small inline brush shapes. */
.home {
	--paper: #fbf8f3;
	--plum: #8a2d63;
	--ochre: #d9822b;
	--shadow: 0 1px 2px rgb(38 38 38 / .08), 0 12px 30px -12px rgb(38 38 38 / .25);
	--brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 11C35 4 78 2 122 4c28 1 55 3 76 1-8 4-21 4-34 5 8 0 16 1 21 2-39 3-70-3-110 0-27 1-49 5-73 2 4-1 8-2 13-2-5 0-10 0-13-1Z'/%3E%3C/svg%3E");
	background: var(--paper);
}
.content--home { overflow: hidden; }

/* Headings: handwritten, with a brush stroke underneath. */
.content--home .banner__title,
.content--home .wp-block-heading { font-family: var(--wp--preset--font-family--script); font-weight: 400; line-height: 1.15; }
.content--home h1.banner__title { max-width: 18ch; margin-inline: auto; font-size: clamp(2.1rem, 6vw, 4rem); }
.content--home .wp-block-heading { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.content--home h1.banner__title::after,
.content--home h1.wp-block-heading::after,
.content--home h2.wp-block-heading::after {
	content: ""; display: block; width: min(11rem, 50%); height: .9rem; margin: .35rem auto 0;
	background: linear-gradient(90deg, var(--plum), var(--ochre)); -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}

/* Opening: soft watercolour washes behind the title and hero. */
.content--home {
	background:
		radial-gradient(ellipse 40% 50% at 12% 30%, rgb(138 45 99 / .13), transparent 70%),
		radial-gradient(ellipse 38% 48% at 88% 25%, rgb(217 130 43 / .16), transparent 70%),
		radial-gradient(ellipse 45% 48% at 52% 55%, rgb(29 92 119 / .10), transparent 70%);
	background-repeat: no-repeat; background-size: 100% 44rem;
}
.content--home .banners--hero .banner { margin: 0; }
.content--home .entry-content > h1.wp-block-heading { max-width: min(20ch, 100% - 2rem); margin-block: clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
.content--home .entry-content > p:first-of-type { margin-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); color: var(--wp--preset--color--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 300; line-height: 1.7; text-align: center; }

/* Buttons: soft pills. */
.content--home .banner .button,
.content--home li.product > .button { border: 1px solid currentcolor; border-radius: 999px; background: transparent; color: var(--wp--preset--color--ink); }
.content--home .banner .button:hover,
.content--home li.product > .button:hover { border-color: var(--plum); background: var(--plum); color: #fff; }
.content--home .banners--hero:not(.banners--tiles) .button { padding-inline: 2rem; border-color: var(--wp--preset--color--ink); background: var(--wp--preset--color--ink); color: #fff; }

/* Hero tiles and promotions: framed works on a gallery wall. The whole frame is the link. */
.content--home :is(.banners--promo, .banners--tiles) { gap: clamp(1.5rem, 4vw, 3rem); }
.content--home :is(.banners--promo, .banners--tiles) .banner { position: relative; margin: 0; padding: clamp(.6rem, 1.5vw, 1rem); background: #fff; box-shadow: var(--shadow); }
.content--home :is(.banners--promo, .banners--tiles) .banner__media img { background: var(--wp--preset--color--wash); }
.content--home :is(.banners--promo, .banners--tiles) .banner__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.content--home :is(.banners--promo, .banners--tiles) .banner__link::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 700px) {
	.content--home :is(.banners--promo, .banners--tiles) .banner:nth-child(odd) { rotate: -.7deg; }
	.content--home :is(.banners--promo, .banners--tiles) .banner:nth-child(even) { rotate: .7deg; }
	.content--home :is(.banners--promo, .banners--tiles) .banner:hover, .content--home :is(.banners--promo, .banners--tiles) .banner:focus-within { rotate: 0deg; }
}

/* Full-width bands behind the artworks and the testimonials. */
.content--home .entry-content > .wp-block-group:has(ul.products) {
	margin-top: clamp(3rem, 7vw, 5rem); padding-block: clamp(1.5rem, 4vw, 3rem);
	background: #f1ebe1; box-shadow: 0 0 0 100vmax #f1ebe1; clip-path: inset(0 -100vmax);
}
.content--home .wp-block-group:has(ul.products) .wp-block-heading { margin-top: 0; }

/* Featured categories and gift vouchers */
.content--home .entry-content > .wp-block-group:has(.featured-categories), .content--home .entry-content > .adelas-voucher { margin-top: clamp(3rem, 7vw, 5rem); }
.content--home .featured-categories a { box-shadow: var(--shadow); }

/* Artworks: white mounts, whole pictures. */
.content--home ul.products { margin-bottom: 0; }
.content--home li.product img { padding: clamp(.5rem, 1.5vw, 1rem); background: #fff; box-shadow: var(--shadow); }
.content--home .woocommerce-loop-product__title { margin-top: 1rem; font-size: 1rem; }
.content--home li.product .price { color: var(--wp--preset--color--muted); font-weight: 600; }

/* "As seen on" */
.content--home .entry-content > p.has-muted-color { margin-block: clamp(2.5rem, 6vw, 4rem); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; }

/* Testimonials */
.content--home .is-style-adelas-quote { height: 100%; margin: 0; padding: 1.5rem 1.75rem 1.75rem; background: #fff; box-shadow: var(--shadow); text-align: center; }
.content--home .is-style-adelas-quote::before { content: "\201C"; display: block; height: 2.5rem; color: var(--plum); font: 4.5rem/1 Georgia, serif; }
.content--home .is-style-adelas-quote p { font-size: 1.1rem; font-weight: 300; }
.content--home .is-style-adelas-quote cite { color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--script); font-size: 1.15rem; font-style: normal; }

@media (prefers-reduced-motion: no-preference) {
	.content--home :is(.banners--promo, .banners--tiles) .banner { transition: rotate .25s, translate .25s; }
	.content--home :is(.banners--promo, .banners--tiles) .banner:hover { translate: 0 -4px; }
	.content--home li.product img { transition: translate .25s; }
	.content--home li.product:hover img { translate: 0 -6px; }
	.content--home .button { transition: background-color .2s, color .2s, border-color .2s; }
}
