/*
Theme Name: Arkansas Crafts
Theme URI: https://arkansascrafts.com
Description: Epoxy & Walnut. A bold, handmade-feeling child theme of Twenty Twenty-Five for Michael Davis's maker site. Everything is built from core blocks, global styles and patterns, so it can be edited in the Site Editor.
Author: Michael Davis
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arkansas-crafts
*/

/* ------------------------------------------------------------------
   Most styling lives in theme.json (Site Editor > Styles).
   This file only holds the few effects blocks can't do on their own.
   ------------------------------------------------------------------ */

/* Soft, slightly quirky shapes for the Fraunces display font */
h1, h2, h3, .wp-block-site-title { font-variation-settings: 'SOFT' 100, 'WONK' 1; }

/* Block style: Pinned photo (Image and Featured Image blocks) */
.is-style-pinned-left img, .is-style-pinned-right img, .is-style-pinned-straight img,
.is-style-pinned-left.wp-block-post-featured-image img, .is-style-pinned-right.wp-block-post-featured-image img {
	background: #FFFDF8; padding: 12px 12px 16px; box-sizing: border-box;
	box-shadow: 0 18px 40px -18px rgba(42,26,18,.55), 0 2px 6px rgba(42,26,18,.18);
}
.is-style-pinned-left { transform: rotate(-2deg); }
.is-style-pinned-right { transform: rotate(2deg); }
.is-style-pinned-left, .is-style-pinned-right, .is-style-pinned-straight { position: relative; }
/* the strip of tape */
.is-style-pinned-left::before, .is-style-pinned-right::before, .is-style-pinned-straight::before {
	content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
	background: rgba(227,167,47,.82); transform: rotate(-4deg); z-index: 2;
}

/* Query Loop galleries: alternate the tilt so it looks hand-pinned */
.ac-bench .wp-block-post:nth-child(odd) .wp-block-post-featured-image { transform: rotate(-1.5deg); }
.ac-bench .wp-block-post:nth-child(even) .wp-block-post-featured-image { transform: rotate(1.5deg); margin-top: 3rem; }

/* Block style: Scrolling marquee (Group block) */
.is-style-marquee { overflow: hidden; white-space: nowrap; }
.is-style-marquee > * { display: inline-block; padding-right: 3rem; animation: ac-marquee 38s linear infinite; }
@keyframes ac-marquee { to { transform: translateX(-100%); } }

/* Block style: Spinning sticker (Image block) */
.is-style-spinning-sticker img { animation: ac-spin 26s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* Block style: Shop note (handwritten paragraph) */
.is-style-shop-note { transform: rotate(-3deg); transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
	.is-style-marquee > *, .is-style-spinning-sticker img { animation: none; }
}
