/**
 * Sparksome Theme Core Stylesheet
 */
html {
	scroll-behavior: smooth;
	scroll-padding: 100px;
}

/* ==========================================================================
   1. CSS Reset & Variables
   ========================================================================== */
:root {
	--line-height-base: 1.6;

	/* Spacing Scale */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 3rem;
	--spacing-xl: 5rem;

	/* Transitions */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
::before,
::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: var(--line-height-base);
	color: var(--wp--preset--color--primary, #111827);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Layout & Accessibility
   ========================================================================== */
.container {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;

	@media screen and (max-width: 1440px) {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Screen reader text accessibility helper */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--white, #ffffff);
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--primary, #111827);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px;
	position: absolute;
	top: 5px;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

/* Focus indicator safety */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #3b82f6);
	outline-offset: 2px;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
}