/* ─────────────────────────────────────────────
 *  Mary Peppins — Base + reset + tipografía.
 * ───────────────────────────────────────────── */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--mp-header-h-mob);
}
@media (min-width: 961px) {
	html { scroll-padding-top: var(--mp-header-h); }
}

body.mp-root {
	margin: 0;
	font-family: var(--mp-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--mp-ink);
	background: var(--mp-cream);
	font-feature-settings: 'ss01', 'cv11';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Heading reset */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mp-serif);
	font-weight: 360;
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1;
	font-style: normal;
	color: inherit;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--mp-fast) var(--mp-ease), opacity var(--mp-fast) var(--mp-ease);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--mp-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

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

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
}

iframe {
	border: 0;
}

/* Skip-link accesibilidad */
.mp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 12px 20px;
	background: var(--mp-green);
	color: var(--mp-cream);
	font-weight: 500;
}
.mp-skip:focus {
	left: 12px;
	top: 12px;
}

/* WP body wp-admin bar fix */
body.admin-bar .mp-header {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .mp-header {
		top: 46px;
	}
}

/* Type scale classes */
.mp-display {
	font-family: var(--mp-serif);
	font-weight: 340;
	letter-spacing: -0.035em;
	line-height: 0.92;
}
.mp-h1 {
	font-family: var(--mp-serif);
	font-weight: 340;
	letter-spacing: -0.03em;
	line-height: 0.95;
}
.mp-h2 {
	font-family: var(--mp-serif);
	font-weight: 360;
	letter-spacing: -0.025em;
	line-height: 1.0;
}
.mp-h3 {
	font-family: var(--mp-serif);
	font-weight: 380;
	letter-spacing: -0.015em;
	line-height: 1.1;
}
.mp-bodyL {
	font-family: var(--mp-sans);
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.55;
	letter-spacing: -0.005em;
}
.mp-body {
	font-family: var(--mp-sans);
	font-size: 16px;
	line-height: 1.6;
}
.mp-small {
	font-family: var(--mp-sans);
	font-size: 13px;
	line-height: 1.5;
	color: var(--mp-stone);
}
.mp-eyebrow {
	display: inline-block;
	font-family: var(--mp-sans);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--mp-stone);
}
.mp-num {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.mp-italic {
	font-style: italic;
}

em {
	font-style: italic;
}

/* Layout helpers */
.mp-container {
	max-width: var(--mp-container-max);
	margin: 0 auto;
	padding-left: var(--mp-section-px);
	padding-right: var(--mp-section-px);
	width: 100%;
}

.mp-section {
	padding-top: var(--mp-section-py);
	padding-bottom: var(--mp-section-py);
	background: var(--mp-cream);
}
.mp-section--green {
	background: var(--mp-green);
	color: var(--mp-cream);
}
.mp-section--cream-soft {
	background: var(--mp-cream-soft);
}
.mp-section--tight {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

/* Rule */
.mp-rule {
	display: block;
	height: 1px;
	background: var(--mp-line);
	width: 100%;
	border: 0;
}

/* WP block prose */
.mp-prose p { margin: 0 0 1em; }
.mp-prose h2 { font-size: clamp(28px, 4vw, 48px); margin: 1.4em 0 0.6em; }
.mp-prose h3 { font-size: clamp(22px, 3vw, 32px); margin: 1.4em 0 0.4em; }
.mp-prose a {
	color: var(--mp-green);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.mp-prose ul, .mp-prose ol {
	margin: 1em 0 1em 1.4em;
	padding: 0;
	list-style: disc;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Selection */
::selection {
	background: var(--mp-green);
	color: var(--mp-cream);
}
