/**
 * Modern CSS Reset
 *
 * Provides a modern, accessible box-model reset and normalized defaults
 * without interfering with Elementor widget rendering.
 *
 * @package ATheme\Theme
 * @since   1.0.0
 */

/* 1. Box Sizing Consistency */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Margin Normalization */
* {
	margin: 0;
}

/* 3. HTML & Body Core */
html {
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
	scroll-behavior: smooth;
}

body {
	line-height: var(--line-height-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* 4. Accessible Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 5. Media & Embeds */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

/* 6. Form Controls Font & Box Inheritance */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* 7. Word Breaking & Overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 8. Table Element Defaults */
table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
}

/* 9. List Element Defaults */
ol,
ul {
	padding-inline-start: var(--space-6);
}

/* 10. Focus Outline Baseline */
:focus {
	outline: none;
}
