/**
 * Base styling, CSS reset, and accessible element defaults
 *
 * @package Meet_Partner_Theme
 * @since 1.0.0
 */

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

html {
	font-family: var(--mpt-font-family);
	font-size: 16px;
	line-height: var(--mpt-line-height-normal);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--mpt-color-primary-bg);
	color: var(--mpt-dark-text-primary);
	font-family: var(--mpt-font-family);
	font-weight: var(--mpt-font-weight-regular);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block-start: 0;
	margin-block-end: var(--mpt-spacing-md);
	font-weight: var(--mpt-font-weight-bold);
	line-height: var(--mpt-line-height-tight);
	color: inherit;
}

h1 {
	font-size: var(--mpt-font-size-4xl);
	letter-spacing: -0.02em;
}

h2 {
	font-size: var(--mpt-font-size-3xl);
	letter-spacing: -0.015em;
}

h3 {
	font-size: var(--mpt-font-size-2xl);
}

h4 {
	font-size: var(--mpt-font-size-xl);
}

h5 {
	font-size: var(--mpt-font-size-lg);
}

h6 {
	font-size: var(--mpt-font-size-base);
}

p {
	margin-block-start: 0;
	margin-block-end: var(--mpt-spacing-md);
}

a {
	color: var(--mpt-color-primary);
	text-decoration: none;
	transition: color var(--mpt-transition-fast);
}

a:hover,
a:focus {
	color: var(--mpt-color-primary-hover);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: inherit;
	margin: 0;
}

/* Accessible focus styling */
:focus-visible {
	outline: 2px solid var(--mpt-color-secondary);
	outline-offset: 3px;
}

/* 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;
	}
}
