:root {
	--bg: #F6F5F3;
	--fg: #0E0E0E;
	--muted: #6E6E6E;
	--line: #E3E1DD;
	--surface: #EDEBE7;
	--footer: #EDEAE4;
	--shell: 1120px;
	--font-display: "Lora", Georgia, serif;
	--font-body: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; filter: grayscale(1); }

a { color: inherit; text-decoration: none; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell.narrow { max-width: 680px; }
.measure { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.label {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	color: var(--muted);
	margin: 0 0 24px;
}

.section { padding: 96px 0; border-top: 0; }
.section-disclaimer { background: var(--bg); padding: 96px 0 70px; }
.section-carteira { background: var(--surface); padding: 70px 0; }
.section-posts { background: var(--bg); padding: 70px 0; }
.section-head { margin-bottom: 48px; }
.section-title { text-transform: uppercase; letter-spacing: -0.01em; font-size: 28px; }

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 240ms ease, border-color 240ms ease, color 240ms ease, backdrop-filter 240ms ease;
}
.site-header:not(.is-over-hero),
.site-header.is-scrolled,
.site-header.is-open { background: rgba(246,245,243,0.85); border-bottom-color: rgba(227,225,221,0.7); color: var(--fg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) { color: #F6F5F3; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; filter: none; transition: filter 240ms ease; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .brand-logo { filter: invert(1); }
.footer-logo { height: 64px; width: auto; filter: none; }

.nav-list, .footer-list { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-list a { font-size: 14px; }
.nav-list a:hover, .footer-list a:hover { opacity: 0.6; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 5px 0; }

.site-main { padding-top: 72px; }
body.home .site-main { padding-top: 0; }

.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; background: #0E0E0E; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,0.85), rgba(14,14,14,0.35)); }
.hero-content { position: relative; padding-bottom: 96px; padding-top: 160px; color: #F6F5F3; }
.hero-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(32px, 6vw, 64px); font-weight: 700; max-width: 16ch; }
.hero-subtitle { color: rgba(246,245,243,0.82); margin: 24px 0 40px; font-size: 16px; }

.btn-outline {
	display: inline-block;
	border: 1px solid var(--fg);
	padding: 12px 24px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-family: var(--font-display);
	transition: background 200ms ease, color 200ms ease;
}
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-light { border-color: rgba(246,245,243,0.6); color: #F6F5F3; }
.btn-light:hover { background: #F6F5F3; color: #0E0E0E; }

.prose p { margin: 0 0 24px; }
.prose .lead { font-size: 20px; line-height: 1.6; }
.prose h2, .prose h3 { margin: 48px 0 16px; text-transform: none; }
.prose blockquote { margin: 40px 0; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose img { margin: 40px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.holdings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.holding { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr 1fr; align-items: center; gap: 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.holding-header { min-height: 40px; }
.holding-header .h-cell { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 400; padding: 10px 18px; }
.h-cell { display: flex; align-items: center; padding: 18px; min-width: 0; border-left: 1px solid var(--line); }
.h-cell-id { border-left: none; padding-left: 0; gap: 12px; }
.h-cell-peso { padding-right: 0; }
.h-cell-pm, .h-cell-atual, .h-cell-var, .h-cell-peso { justify-content: flex-end; font-family: var(--font-display); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.h-cell-var.is-down { color: var(--muted); }
.holding-logo { width: 22px; height: 22px; flex: 0 0 22px; overflow: hidden; filter: grayscale(1); opacity: 0.9; }
.holding-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.holding-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 11px; color: var(--muted); }
.holding-names { display: flex; flex-direction: column; min-width: 0; }
.holding-ticker { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.holding-name { color: var(--muted); font-size: 12px; }
.bar { display: none; }
.bar-fill { display: block; height: 100%; background: var(--fg); }
.pct { font-family: var(--font-display); font-size: 18px; font-weight: 600; min-width: 58px; text-align: right; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card-media { background: var(--surface); aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 20px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.card-link:hover .card-media img { opacity: 0.85; }
.card-category { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); }
.card-title { font-size: 19px; margin: 10px 0; }
.card-date { color: var(--muted); font-size: 13px; }

.section-posts .center { margin-top: 64px; }

.evolucao { margin-top: 65px; }

.section-page-head { padding-top: 128px; padding-bottom: 48px; border-top: 0; }
.page-title { text-transform: uppercase; font-size: clamp(28px, 5vw, 48px); margin-bottom: 12px; }

.single { padding-bottom: 0; }
.single-cover { margin-top: 0; background: var(--surface); }
.single-cover img { width: 100%; max-height: 60vh; object-fit: cover; }
.single .shell.narrow { padding-top: 64px; padding-bottom: 96px; }
.single-title { font-size: clamp(28px, 4.5vw, 44px); margin: 8px 0 20px; }
.single-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 56px; }
.single-back { margin-top: 64px; }
.link-underline { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }

.pagination { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 24px; }
.pagination .page-numbers { font-family: var(--font-display); font-size: 14px; margin-right: 16px; color: var(--muted); }
.pagination .page-numbers.current { color: var(--fg); }

.section-404 { padding-top: 200px; }

.site-footer { border-top: 1px solid var(--line); background: var(--footer); padding: 0 0 20px; }
.footer-inner { padding-top: 35px; }
.footer-top { display: flex; flex-direction: column; gap: 40px; padding-top: 25px; }
.footer-brand { display: flex; }
.footer-list { flex-direction: column; gap: 12px; }
.footer-list a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); }
.footer-list a:hover { color: var(--fg); opacity: 1; }
.footer-bottom { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.footer-legal, .footer-year { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.footer-legal { max-width: 680px; }
@media (min-width: 768px) {
	.footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
	.footer-list { align-items: flex-end; }
	.footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
	.footer-year { flex-shrink: 0; }
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.section { padding: 64px 0; }
	.section-disclaimer { padding: 64px 0 48px; }
	.section-carteira { padding: 48px 0; }
	.section-posts { padding: 48px 0; }
	.evolucao { margin-top: 40px; }
	.nav-toggle { display: block; }
	.primary-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; padding: 8px 24px 24px; }
	.nav-list li { border-bottom: 1px solid var(--line); }
	.nav-list a { display: block; padding: 14px 0; color: var(--fg); }
	.cards, .cards-2 { grid-template-columns: 1fr; gap: 40px; }
	.hero-content { padding-bottom: 64px; }
	.holding { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 18px 0; gap: 0; min-height: auto; }
	.holding-header { display: none; }
	.h-cell { border-left: none; padding: 4px 0; }
	.h-cell-id { grid-column: 1 / -1; grid-row: 1; padding-bottom: 10px; }
	.h-cell-pm { grid-column: 1; grid-row: 2; justify-content: flex-start; font-size: 13px; color: var(--muted); }
	.h-cell-atual { grid-column: 2; grid-row: 2; justify-content: flex-end; font-size: 13px; }
	.h-cell-var { grid-column: 1; grid-row: 3; justify-content: flex-start; font-size: 13px; }
	.h-cell-peso { grid-column: 2; grid-row: 3; justify-content: flex-end; }
	.bar { display: none; }
	.pct { font-size: 13px; }

	.section-page-head { padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

.principios { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principio { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principio h3 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.principio p { margin: 0; color: var(--muted); }
.closing { position: relative; min-height: 60vh; display: flex; align-items: center; background: #0E0E0E; overflow: hidden; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.closing .shell { position: relative; color: #F6F5F3; padding: 96px 24px; }
.closing p { font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); text-transform: uppercase; max-width: 18ch; margin: 0; }

@media (max-width: 768px) {
	.principio { grid-template-columns: 1fr; gap: 8px; }
	.brand-logo { height: 24px; }
}

.evolucao { margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--line); }
.evo-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.evo-value { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.evo-chart { margin-top: 28px; }
.evo-svg { width: 100%; height: 320px; display: block; }
.evo-note { margin-top: 20px; max-width: 560px; font-size: 12px; line-height: 1.7; }
.evo-legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.evo-legend-item { display: flex; align-items: center; gap: 10px; }
.evo-legend-dash { width: 18px; height: 2px; display: block; }
.evo-legend-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.evo-legend-value { font-family: var(--font-display); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.holding-caixa .holding-logo { border: 1px solid var(--line); }
@media (max-width: 640px) { .evo-value { font-size: 30px; } .evo-svg { height: 240px; } .evolucao { margin-top: 88px; padding-top: 32px; } .evo-legend { gap: 16px 20px; } }


.div-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid #E3E1DD; border-bottom: 1px solid #E3E1DD; padding: 28px 0; margin-bottom: 56px; }
.div-summary-item { display: flex; flex-direction: column; gap: 8px; }
.div-summary-value { font-size: 28px; letter-spacing: -0.02em; }
.div-group { margin-bottom: 48px; }
.div-group-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #E3E1DD; padding-bottom: 10px; }
.div-group-total { font-size: 18px; }
.div-list { list-style: none; margin: 0; padding: 0; }
.div-item { display: grid; grid-template-columns: 180px 1fr auto; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid #E3E1DD; }
.div-date { color: #6E6E6E; font-size: 14px; }
.div-id { display: flex; flex-direction: column; gap: 4px; }
.div-ticker { letter-spacing: 0.04em; }
.div-desc { color: #6E6E6E; font-size: 14px; }
.div-value { font-size: 18px; white-space: nowrap; }
@media (max-width: 760px) {
	.div-summary { grid-template-columns: 1fr; gap: 20px; }
	.div-item { grid-template-columns: 1fr auto; }
	.div-date { grid-column: 1 / -1; }
}

/* Tooltip interativo da evolução patrimonial */
.evo-chart { position: relative; }
.evo-cursor { position: absolute; top: 0; bottom: 28px; width: 1px; background: var(--line); pointer-events: none; }
.evo-tip { position: absolute; top: 0; z-index: 3; min-width: 168px; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; pointer-events: none; transform: translateX(-50%); }
.evo-tip-date { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.evo-tip-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 4px; }
.evo-tip-dash { width: 14px; height: 2px; display: block; flex: none; }
.evo-tip-label { color: var(--muted); }
.evo-tip-value { margin-left: auto; font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; }
