/* Silva & Neves — página de site em construção.
   Paleta, tipografia e limites de uso saem do Manual da Marca 2026.
   Contrastes sobre cedro profundo (#082A21): osso 13,3:1 · névoa 11,9:1 ·
   sálvia 5,1:1. O cobre (3,6:1) entra só como grafismo, nunca como texto. */

/* ---------- fontes ---------- */
/* Subsets variáveis (latim + acentos pt-BR). O eixo óptico já vem fixado no
   arquivo: Newsreader em opsz 30 (títulos) e Inter em opsz 14 (texto), como
   manda o manual — resta o eixo de peso. */
@font-face {
	font-family: "Newsreader SN";
	src: url("../fonts/newsreader-var.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter SN";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 300 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- tokens ---------- */
:root {
	--cedro: #0E3B2E;
	--cedro-profundo: #082A21;
	--osso: #F2EEE6;
	--cobre: #A96B43;
	--salvia: #7D9C8C;
	--nevoa: #DDE4DF;

	--serif: "Newsreader SN", Georgia, "Times New Roman", serif;
	--sans: "Inter SN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(1.5rem, 5vw, 4.5rem);
	--largura: 76rem;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	background-color: var(--cedro-profundo);
	background-image: radial-gradient(120% 92% at 78% 18%, var(--cedro) 0%, var(--cedro-profundo) 58%);
	color: var(--osso);
	font-family: var(--sans);
	font-weight: 300;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- o & como campo gráfico ---------- */
/* Símbolo isolado como marca-d'água: uso previsto no manual. Nunca é a marca
   sobre imagem, e nunca disputa leitura com o texto. */
.sn-campo {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.sn-campo::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sn-amp {
	position: absolute;
	top: 50%;
	right: -4vw;
	height: clamp(24rem, 74vh, 46rem);
	width: auto;
	translate: 0 -50%;
	opacity: .1;
}

.sn-amp path {
	stroke: var(--salvia);
	stroke-dasharray: 1.02;
	stroke-dashoffset: 1.02;
	animation: sn-tracar 2.1s cubic-bezier(.22, 1, .3, 1) forwards;
}
.sn-amp path:nth-child(2) { animation-delay: .5s; }

@keyframes sn-tracar { to { stroke-dashoffset: 0; } }

/* ---------- estrutura ---------- */
.sn-pagina {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 4.5vh, 3.25rem);
	min-height: 100vh;
	min-height: 100svh;
	max-width: var(--largura);
	margin-inline: auto;
	padding: clamp(2rem, 6vh, 3.75rem) var(--gutter);
}

.sn-corpo {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.5rem, 3.2vh, 2.25rem);
	justify-content: center;
	max-width: 48rem;
}

/* ---------- marca ---------- */
.sn-marca {
	display: inline-block;
	/* Área de proteção: metade da altura do símbolo em toda a volta. */
	padding: .9rem .9rem .9rem 0;
	margin: -.9rem 0 -.9rem 0;
	border-radius: 2px;
}
.sn-marca:focus-visible { outline: 2px solid var(--osso); outline-offset: 4px; }

.sn-marca__svg {
	display: block;
	width: clamp(12.5rem, 42vw, 20.5rem);
	height: auto;
}

/* Redução: o lockup completo até 34em levaria o descritor a menos de 6 px.
   O manual manda trocar de versão, não encolher. */
.sn-marca__svg--reduzido { display: none; }

@media (max-width: 34em) {
	.sn-marca__svg--completo { display: none; }
	.sn-marca__svg--reduzido { display: block; width: clamp(12.5rem, 58vw, 16rem); }
}

/* ---------- texto ---------- */
.sn-etiqueta {
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2vw, 1.15rem);
	margin: 0;
	font-size: clamp(.625rem, .55rem + .35vw, .72rem);
	font-weight: 400;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--salvia);
}

/* Único grafismo em cobre da página — bem abaixo dos 5% previstos. */
.sn-filete {
	display: block;
	flex: none;
	width: clamp(1.75rem, 5vw, 3.5rem);
	height: 2px;
	background: var(--cobre);
	transform-origin: left center;
	animation: sn-filete 1.1s cubic-bezier(.22, 1, .3, 1) .1s both;
}
@keyframes sn-filete { from { scale: 0 1; } to { scale: 1 1; } }

.sn-titulo {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.05rem, 1.25rem + 3.9vw, 3.9rem);
	line-height: 1.06;
	letter-spacing: -.017em;
	color: var(--nevoa);
	text-wrap: balance;
}

.sn-titulo__eco {
	font-weight: 500;
	color: var(--osso);
}

.sn-linha-fina {
	margin: 0;
	max-width: 34rem;
	font-size: clamp(1rem, .95rem + .35vw, 1.175rem);
	font-weight: 300;
	line-height: 1.62;
	color: var(--nevoa);
	text-wrap: pretty;
}

/* ---------- faixa de dados ---------- */
/* Medida estreita para a prosa, faixa larga para o que é consulta: endereço
   e telefone se leem melhor em colunas curtas que numa linha de 48rem. */
.sn-dados {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.6rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 3vh, 2.25rem);
	border-top: 1px solid rgba(242, 238, 230, .12);
}

@media (min-width: 46em) {
	.sn-dados { grid-template-columns: 1.7fr 1.15fr 1fr; }
}

.sn-bloco { min-width: 0; }

.sn-rotulo {
	margin: 0 0 .85rem;
	font-family: var(--sans);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--salvia);
}

.sn-lista {
	display: grid;
	/* 11rem é a medida do item mais longo com o marcador. Abaixo disso o grid
	   cai para uma coluna em vez de quebrar cada item em duas linhas. */
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: .5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: clamp(.9rem, .87rem + .16vw, 1rem);
	font-weight: 400;
	color: var(--osso);
}

.sn-lista li {
	display: flex;
	align-items: baseline;
	gap: .7rem;
}

.sn-lista li::before {
	content: "";
	flex: none;
	width: .7rem;
	height: 1px;
	translate: 0 -.28em;
	background: var(--cobre);
}

/* ---------- endereço e contatos ---------- */
.sn-endereco {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	margin: 0 0 .85rem;
	font-size: clamp(.9rem, .87rem + .16vw, 1rem);
	font-style: normal;
	font-weight: 300;
	line-height: 1.5;
	color: var(--nevoa);
}

.sn-endereco__ref {
	margin-top: .5rem;
	font-size: .82rem;
	line-height: 1.45;
	color: var(--salvia);
	text-wrap: pretty;
}

.sn-contatos {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: clamp(.9rem, .87rem + .16vw, 1rem);
	font-weight: 300;
}

.sn-link {
	color: var(--nevoa);
	text-decoration: underline;
	text-underline-offset: .26em;
	text-decoration-color: rgba(221, 228, 223, .32);
	text-decoration-thickness: 1px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.sn-link:hover { color: var(--osso); text-decoration-color: currentColor; }
.sn-link:focus-visible { outline: 2px solid var(--osso); outline-offset: 3px; border-radius: 2px; }

/* ---------- canais ---------- */
.sn-canais {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}

.sn-botao {
	display: inline-flex;
	align-items: center;
	padding: .85rem 1.6rem;
	border: 1px solid rgba(242, 238, 230, .42);
	border-radius: 3px;
	font-size: .92rem;
	font-weight: 400;
	letter-spacing: .015em;
	color: var(--osso);
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.sn-botao:hover,
.sn-botao:focus-visible {
	background: var(--osso);
	border-color: var(--osso);
	color: var(--cedro-profundo);
}
.sn-botao:focus-visible { outline: 2px solid var(--osso); outline-offset: 3px; }

.sn-botao--discreto {
	padding-inline: 0;
	border-color: transparent;
	color: var(--nevoa);
	text-decoration: underline;
	text-underline-offset: .28em;
	text-decoration-color: rgba(221, 228, 223, .45);
	text-decoration-thickness: 1px;
}
.sn-botao--discreto:hover,
.sn-botao--discreto:focus-visible {
	background: none;
	border-color: transparent;
	color: var(--osso);
	text-decoration-color: currentColor;
}

/* ---------- nota da marca ---------- */
.sn-nota {
	margin: 0;
	max-width: 30rem;
	font-size: .875rem;
	font-weight: 300;
	line-height: 1.65;
	color: var(--salvia);
	text-wrap: pretty;
}

.sn-nota__inline {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 1.15em;
	color: var(--nevoa);
}

/* ---------- rodapé ---------- */
.sn-rodape {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem 1.5rem;
	padding-top: 1.35rem;
	border-top: 1px solid rgba(242, 238, 230, .12);
	font-size: .78rem;
	color: var(--salvia);
}

.sn-rodape p { margin: 0; }

.sn-rodape__nome { letter-spacing: .01em; }

.sn-rodape__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .9rem;
}
.sn-rodape__meta span + span::before {
	content: "·";
	margin-right: .9rem;
	color: rgba(125, 156, 140, .6);
}

/* ---------- entrada ---------- */
.sn-etiqueta,
.sn-titulo,
.sn-linha-fina,
.sn-dados,
.sn-canais,
.sn-nota {
	animation: sn-sobe .95s cubic-bezier(.22, 1, .3, 1) var(--sn-d, 0s) both;
}

.sn-topo { animation: sn-sobe .95s cubic-bezier(.22, 1, .3, 1) both; }

@keyframes sn-sobe {
	from { opacity: 0; translate: 0 .9rem; }
	to   { opacity: 1; translate: 0 0; }
}

/* ---------- telas estreitas ---------- */
@media (max-width: 48em) {
	.sn-amp {
		top: 8%;
		right: -22vw;
		height: clamp(22rem, 52vh, 34rem);
		translate: 0 0;
		opacity: .085;
	}
	.sn-rodape { flex-direction: column; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	.sn-topo,
	.sn-etiqueta,
	.sn-titulo,
	.sn-linha-fina,
	.sn-dados,
	.sn-canais,
	.sn-nota,
	.sn-filete,
	.sn-amp path {
		animation: none;
	}
	.sn-amp path { stroke-dashoffset: 0; }
	.sn-botao { transition: none; }
}

/* ---------- impressão ---------- */
@media print {
	body { background: #fff; color: #16191A; }
	.sn-campo { display: none; }
	/* No arquivo, o símbolo é traço dentro de um <g> e as letras são paths
	   preenchidos, filhos diretos do <svg>. Separar evita preencher o traço. */
	.sn-marca__svg > g { stroke: #0E3B2E; }
	.sn-marca__svg > path { fill: #0E3B2E; }
	.sn-titulo, .sn-titulo__eco, .sn-linha-fina, .sn-lista { color: #16191A; }
}
