/* Reset, variáveis e tipografia. */

/*
Fontes do Grupo Marlan, hospedadas no tema.

PP Pangram Sans Rounded é a fonte dos títulos (licença comercial da Pangram
Pangram, já em uso no site desde 01/2026). Inter Tight vem como fonte
variável: um arquivo só cobre do 400 ao 700.
*/
@font-face {
	font-family: "PP Pangram Sans Rounded";
	src: url("../fonts/pp-pangram-sans-rounded-medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "PP Pangram Sans Rounded";
	src: url("../fonts/pp-pangram-sans-rounded-bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Sobrescritas por inc/assets.php a partir de Personalizar Site */
	--am-cor-principal: #CC1A6D;
	--am-cor-secundaria: #933235;

	--am-texto: #525B66;
	--am-texto-suave: #6b7280;
	--am-fundo: #FFF9F6;
	--am-borda: #F1E4DC;

	/*
	Paleta da marca. O laranja é sempre o #FF6A13 (identidade do cliente),
	sem versões escurecidas. Texto branco sobre ele fica em 2,9:1 — por isso o
	texto do rodapé laranja é maior e mais pesado (layout.css).
	*/
	--gm-magenta: #E31C79;
	--gm-laranja: #FF6A13;
	--gm-vinho: #933235;
	--gm-roxo: #871866;
	--gm-rosa-claro: #F9D2E4;
	--gm-pessego: #FFE1D0;
	--gm-branco: #FFFFFF;

	--am-fonte: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gm-fonte-titulo: "PP Pangram Sans Rounded", "Inter Tight", system-ui, sans-serif;
	--am-largura: 1240px;
	--am-espaco: 1.5rem;
	--am-raio: 15px;
	--gm-raio-grande: 30px;
}

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

body {
	margin: 0;
	font-family: var(--am-fonte);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--am-texto);
	background: var(--am-fundo);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--gm-fonte-titulo);
	font-weight: 700;
	color: var(--gm-vinho);
	line-height: 1.1;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
	color: var(--am-cor-principal);
	text-underline-offset: 2px;
}

/* Foco visível pelo teclado — sem isto o site fica inutilizável para quem
   navega por tab, e o tema-pai não está mais aqui para cuidar disso. */
:focus-visible {
	outline: 2px solid var(--am-cor-principal);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
