/* ==========================================================================
   Coin360 Theme — base.css
   Reset enxuto + tipografia base. As cores/fontes principais vêm das
   variáveis CSS geradas pelo theme.json (--wp--preset--color--*), que o
   WordPress já imprime globalmente — aqui só usamos essas variáveis.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--wp--preset--color--background, #ffffff);
	color: var(--wp--preset--color--foreground, #101418);
	font-family: var(--wp--preset--font-family--system);
	font-size: 1.0625rem; /* 17px */
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--wp--preset--color--accent-blue, #1b4b91); text-decoration: none; }
a:hover { color: var(--wp--preset--color--brand-dark, #9c7420); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--wp--preset--color--foreground, #101418);
}
h1 { font-size: 2.375rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.4em; }

button { font-family: inherit; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.5em 0.75em; border: 1px solid var(--wp--preset--color--border, #e5e5e0); text-align: left; }

blockquote {
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--wp--preset--color--brand, #c8932b);
	color: var(--wp--preset--color--foreground-muted, #5b6470);
	font-style: italic;
}

/* Foco visível — nunca remover outline sem substituir por algo igualmente
   visível (acessibilidade / navegação por teclado). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-blue, #1b4b91);
	outline-offset: 2px;
}

/* Link "Pular para o conteúdo" — invisível até receber foco. */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--wp--preset--color--foreground, #101418);
	color: #fff;
	border-radius: 0 0 6px 0;
}
.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Respeita a preferência do usuário por menos movimento. */
@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;
	}
}
