/**
 * Acessibilidade, contraste em fundos claros e ritmo entre secções
 */

:root {
	--mf-surface-cream: #fbfaf3;
	--mf-surface-muted: #f4f6f9;
	--mf-text-on-cream: #334155;
	--mf-text-muted-on-cream: #475569;
	--mf-accent-on-cream: #3b2667;
	--mf-accent-on-cream-hover: #2a1847;
	--mf-eyebrow-on-cream: #4a3f6b;
	--mf-border-on-cream: rgba(15, 23, 42, 0.08);
}

/* —— Listas: −2pt face ao corpo —— */
.mf-wrap :where(ul, ol).wp-block-list {
	font-size: 0.9375rem;
}

.mf-hero__card .wp-block-list,
.mf-cv-pillar .wp-block-list {
	font-size: 0.875rem;
}

.mf-plugins-teaser .mf-plugins-mini-grid {
	font-size: 0.75rem;
}

.mf-intro-columns .wp-block-heading {
	font-size: clamp(1.125rem, 2vw, 1.35rem);
}

/* —— Secções claras: separação e contraste —— */
.mf-section--light {
	background: var(--mf-surface-cream);
	border-top: 1px solid var(--mf-border-on-cream);
	border-bottom: 1px solid var(--mf-border-on-cream);
}

.mf-section--full:not(.mf-section--light) + .mf-section--light,
.mf-section--light + .mf-section--full:not(.mf-section--light) {
	box-shadow: inset 0 1px 0 var(--mf-border-on-cream);
}

.mf-section--light :where(p, li, .wp-block-list) {
	color: var(--mf-text-on-cream);
}

.mf-section--light .has-medium-font-size {
	color: var(--mf-text-muted-on-cream);
}

/* Eyebrows e destaques pequenos (evitar azul-acinzentado fraco no amarelo) */
.mf-section--light .ft1-eyebrow,
.mf-plugins-teaser .ft1-eyebrow,
.mf-portfolio-intro .ft1-eyebrow,
.mf-design-intro .ft1-eyebrow,
.mf-cv-section.mf-section--light .ft1-eyebrow {
	color: var(--mf-eyebrow-on-cream);
	opacity: 1;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.mf-section--light :where(h2, h3, h4) {
	color: #1e293b;
}

.mf-section--light a:not(.wp-block-button__link):not(.mf-trabalhos-filters__btn) {
	color: var(--mf-accent-on-cream);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.mf-section--light a:not(.wp-block-button__link):not(.mf-trabalhos-filters__btn):hover,
.mf-section--light a:not(.wp-block-button__link):not(.mf-trabalhos-filters__btn):focus-visible {
	color: var(--mf-accent-on-cream-hover);
}

.mf-section--light .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--mf-accent-on-cream);
	border-color: #6b5b95;
}

.mf-section--light .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(59, 38, 103, 0.06);
	border-color: var(--mf-accent-on-cream);
	color: var(--mf-accent-on-cream-hover);
}

/* Caixa de nota (fundo creme) */
.mf-contact-note {
	color: var(--mf-text-on-cream);
}

.mf-contact-note a {
	color: var(--mf-accent-on-cream);
	font-weight: 600;
}

.mf-contact-note a:hover,
.mf-contact-note a:focus-visible {
	color: var(--mf-accent-on-cream-hover);
}

/* Badges / pills em fundo claro */
.mf-plugins-teaser .mf-plugins-mini-grid li.is-highlight {
	color: #3b2667;
	border-color: #6b4fa8;
	background: #ede9fe;
}

.mf-cv-section.mf-section--light .mf-cv-job__period {
	color: #3b2667;
	background: #e8e0f5;
}

.mf-cv-section.mf-section--light .mf-cv-tags li {
	color: var(--mf-text-on-cream);
	background: #fff;
	border-color: #d4d4d8;
}

/* Corpo branco entre blocos creme (contacto, etc.) */
.mf-contact-body {
	background: #fff;
}

.mf-contact-card a {
	color: var(--mf-accent-on-cream);
}
