/*
Theme Name: Soul Magic
Theme URI: https://soulmagicstudio.com
Author: Agnes, Soul Magic Studio
Author URI: https://soulmagicstudio.com
Description: A block theme for healers, artists and intuitives, built on the Soul Magic Studio design system. Indigo, cream, rose and teal, with section moods named after the phases of the moon.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soul-magic
Tags: block-patterns, block-styles, full-site-editing, editor-style, one-column, wide-blocks, custom-colors, translation-ready
*/

/* Small extras theme.json can't express. Kept short on purpose. */

/* Keyboard focus that shows on every surface. */
:where(a, button, input, summary, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--teal-mid);
	outline-offset: 3px;
}

/* Header: thin blush rule under the bar. */
.sms-header {
	border-bottom: 1px solid var(--wp--preset--color--blush);
}

/* FAQ (Details block): serif question with a plus/minus marker. */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--im-fell);
	font-size: var(--wp--preset--font-size--heading-5);
	line-height: 1.35;
	color: var(--sms-heading, var(--wp--preset--color--indigo));
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 300;
	color: var(--sms-eyebrow, var(--wp--preset--color--rose));
}
.wp-block-details[open] summary::after {
	content: "\2212";
}
.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
}

/* Post cards in query loops lift a touch on hover. */
.sms-post-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sms-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -18px rgba(46, 43, 69, 0.35);
}
.sms-post-card .wp-block-post-featured-image img {
	border-radius: 4px;
}

/* Small decorative star divider. */
.sms-stars {
	letter-spacing: 0.6em;
	color: var(--sms-eyebrow, var(--wp--preset--color--rose));
}

@media (prefers-reduced-motion: reduce) {
	.sms-post-card {
		transition: none;
	}
	.sms-post-card:hover {
		transform: none;
	}
}

/* Header, main and footer sit flush; sections carry their own spacing. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Full-width sections on landing pages stack without cream gaps between them. */
.sms-flush > .alignfull + .alignfull,
.sms-flush > .alignfull:first-child {
	margin-block-start: 0;
}
.sms-flush > .alignfull:last-child {
	margin-block-end: 0;
}

/* Post titles inside cards keep the heading colour rather than the link colour. */
.wp-block-post-title a {
	color: inherit;
}

/* Small screens: the menu holds "Work with me", so the header button steps aside. */
@media (max-width: 599px) {
	.sms-header .wp-block-buttons.sms-header-cta {
		display: none;
	}
}

/* Footer link lists: no bullets, quiet links. */
.sms-footer-links {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
.sms-footer-links li + li {
	margin-top: 0.45rem;
}
.sms-footer-links a {
	text-decoration: none;
}
.sms-footer-links a:hover,
.sms-footer-links a:focus {
	text-decoration: underline;
}
