/* =========================================================
   Cutuka — base compartilhada (reset, página, topo, idioma)
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	background: #ECECEA;
	color: var(--fg);
	font-family: var(--font-body);
	min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img { max-width: 100%; }

/* Sobrescritas do sistema aplicadas ao site (paleta e tipos em uso). */
:root {
	--pr-rule: rgba(31, 26, 24, 0.11);
	--pr-hair: rgba(31, 26, 24, 0.10);
	--mustard: #E8B81C;
	--hotred: #E8481C;
	--bordo: #7A1E2C;
	--hot: #ED5B3B;
	--pr-wash: color-mix(in srgb, var(--hotred) 20%, transparent);
	--ease-dry: cubic-bezier(0.2, 0, 0, 1);
	--font-display: "Switzer", system-ui, sans-serif;
	--font-body: "Switzer", system-ui, sans-serif;
	--font-curatorial: "Minion Variable", Georgia, serif;
}

.cutuka-page {
	--accent: var(--cutuka-accent, #6B2EE6);
	--c-wine: #4C1520;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
}

/* ============================ TOPO ============================= */

.siteheader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 3vw, 40px);
	padding: clamp(22px, 3.4vw, 38px) 0 0;
}

.brand { display: inline-flex; flex: none; }

.brand__mark {
	display: block;
	height: clamp(24px, 3vw, 40px);
	width: auto;
}

.sitenav { display: flex; flex-wrap: wrap; gap: 8px; }

.tab {
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	padding: 9px 14px;
	border: 1px solid var(--pr-rule);
	border-radius: var(--r-pill);
	color: var(--fg);
	transition: background var(--dur-fast) var(--ease-dry),
		color var(--dur-fast) var(--ease-dry),
		border-color var(--dur-fast) var(--ease-dry);
}

.tab:hover { background: rgba(31, 26, 24, 0.05); }

.tab--active {
	background: var(--accent);
	color: var(--ink-on-dark);
	border-color: var(--accent);
}

.tab--active:hover { color: var(--ink-on-dark); }

/* ============================ IDIOMA =========================== */

.langswitch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 8px;
	padding-left: 12px;
	border-left: 1px solid var(--pr-rule);
}

.langswitch--bare { margin-left: 0; padding-left: 0; border-left: 0; }

.langswitch__opt {
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.04em;
	line-height: 1;
	background: none;
	border: 0;
	padding: 4px 2px;
	cursor: pointer;
	color: var(--ink);
	opacity: 0.42;
	transition: opacity 160ms var(--ease-editorial);
}

.langswitch__opt:hover { opacity: 0.72; }

.langswitch__opt.is-active {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1.5px;
	text-decoration-color: var(--accent);
}

.langswitch__sep { font-size: 12px; color: var(--ink); opacity: 0.28; }

/* ====================== ACESSIBILIDADE ========================= */

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

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	border-radius: var(--r-sm);
	font-family: var(--font-display);
	font-size: 13px;
}

@media (max-width: 880px) {
	.siteheader { flex-wrap: wrap; gap: 14px; }
	.sitenav {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}
	.sitenav::-webkit-scrollbar { display: none; }
}

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