/*
 * Tokens, reset e tipografia.
 *
 * A paleta foi amostrada da referência aprovada: creme domina, o verde entra
 * como âncora escura (topo, faixa, blocos) e não como cor de fundo, e o calor
 * vem da madeira — areia, cobre e marrom. É o oposto do site antigo, que
 * espalhava oliva sobre branco.
 */
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-latin-var.woff2") format("woff2-variations");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-var.woff2") format("woff2-variations");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--verde-noite: #1b1f12;
	--verde-mata: #2b2f25;
	--verde-musgo: #414539;
	--verde-folha: #3f5226;
	--sage: #7e8360;
	--creme: #f2efe9;
	--creme-fundo: #eae5db;
	--areia: #ccc0a9;
	--madeira: #5c4026;
	--cobre: #b07d4a;
	--marrom-noite: #221a11;
	--tinta: #241f16;
	--tinta-suave: #5d5648;
	--linha: #d8d2c6;
	--linha-escura: rgba(255, 255, 255, 0.14);
	--fundo: var(--creme);
	--texto: var(--tinta);
	--texto-suave: var(--tinta-suave);
	--destaque: var(--verde-folha);
	--fonte-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--fonte-corpo: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--t-xs: 0.75rem;
	--t-sm: 0.8125rem;
	--t-base: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
	--t-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	--t-xl: clamp(1.25rem, 1.13rem + 0.55vw, 1.625rem);
	--t-2xl: clamp(1.75rem, 1.45rem + 1.3vw, 2.75rem);
	--t-3xl: clamp(2.25rem, 1.7rem + 2.4vw, 4rem);
	--t-display: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
	--track-rotulo: 0.18em;
	--e-1: 0.25rem;
	--e-2: 0.5rem;
	--e-3: 0.75rem;
	--e-4: 1rem;
	--e-5: 1.5rem;
	--e-6: 2rem;
	--e-7: 3rem;
	--e-8: clamp(3.5rem, 2.2rem + 5.5vw, 7rem);
	--largura-max: 1320px;
	--largura-texto: 65ch;
	--gutter: clamp(1.125rem, 0.4rem + 3vw, 3rem);
	--raio: 0px;
	--transicao: 220ms cubic-bezier(0.4, 0, 0.2, 1);
	--sombra: 0 2px 4px rgba(36, 31, 22, 0.05), 0 12px 32px rgba(36, 31, 22, 0.08);
}

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

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

@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;
	}
}

body {
	margin: 0;
	background: var(--fundo);
	color: var(--texto);
	font-family: var(--fonte-corpo);
	font-size: var(--t-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* 14/11: no celular o "hidden" do body esconde o que vaza, mas ainda deixa ARRASTAR a página
 * para o lado (aparecia uma faixa preta). O "clip" corta de verdade, não cria barra de rolagem
 * e não quebra o position: sticky. Também cobre o menu do celular, escondido à direita.
 * Navegador antigo sem "clip" ignora e fica com o "hidden" de cima. */
html,
body {
	overflow-x: clip;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--e-4);
	font-family: var(--fonte-display);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: var(--t-3xl);
}

h2 {
	font-size: var(--t-2xl);
}

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

h4 {
	font-size: var(--t-lg);
}

p,
ul,
ol {
	margin: 0 0 var(--e-4);
}

p {
	text-wrap: pretty;
}

a {
	color: var(--madeira);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--transicao);
}

a:hover {
	color: var(--cobre);
}

:focus-visible {
	outline: 2px solid var(--cobre);
	outline-offset: 3px;
}

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

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

table {
	border-collapse: collapse;
	width: 100%;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--e-4);
	z-index: 999;
	padding: var(--e-3) var(--e-4);
	background: var(--verde-folha);
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	top: var(--e-3);
	color: #fff;
}

/* Rótulo em versal espaçada — o "olho" que abre cada seção. */
.rotulo {
	display: inline-block;
	font-family: var(--fonte-corpo);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: var(--track-rotulo);
	text-transform: uppercase;
	color: var(--sage);
}
