/* ==========================================================================
   Maksoud: estilos do tema
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--surface-2: #f3f1ec;
	--border: #e6e2d9;
	--border-strong: #d3cec2;
	--text: #18181b;
	--text-2: #3f3f48;
	--muted: #6a6a74;
	--accent: #c2413a;
	--accent-strong: #a3332d;
	--accent-soft: #fbeae7;
	--on-accent: #ffffff;
	--code-bg: #18181d;
	--code-border: #26262d;
	--code-text: #e9e7e3;
	--inline-code-bg: #f1ede6;
	--header-bg: rgba(251, 250, 247, 0.82);
	--shadow-sm: 0 1px 2px rgba(24, 24, 32, 0.05);
	--shadow: 0 1px 2px rgba(24, 24, 32, 0.04), 0 12px 32px -16px rgba(24, 24, 32, 0.18);
	--glow: rgba(194, 65, 58, 0.14);

	--font-sans: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

	--radius: 16px;
	--radius-sm: 10px;
	--container: 1160px;
	--narrow: 760px;
	--measure: 720px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 68px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #111114;
	--surface: #18181c;
	--surface-2: #1e1e23;
	--border: #2a2a31;
	--border-strong: #3a3a43;
	--text: #ececef;
	--text-2: #c6c6ce;
	--muted: #9b9ba6;
	--accent: #f2776c;
	--accent-strong: #ff9087;
	--accent-soft: rgba(242, 119, 108, 0.12);
	--on-accent: #1b0c0b;
	--code-bg: #0c0c0f;
	--code-border: #24242b;
	--inline-code-bg: #24242a;
	--header-bg: rgba(17, 17, 20, 0.78);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
	--glow: rgba(242, 119, 108, 0.12);
	color-scheme: dark;
}

/* Sem JS: segue o sistema. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #111114;
		--surface: #18181c;
		--surface-2: #1e1e23;
		--border: #2a2a31;
		--border-strong: #3a3a43;
		--text: #ececef;
		--text-2: #c6c6ce;
		--muted: #9b9ba6;
		--accent: #f2776c;
		--accent-strong: #ff9087;
		--accent-soft: rgba(242, 119, 108, 0.12);
		--on-accent: #1b0c0b;
		--code-bg: #0c0c0f;
		--code-border: #24242b;
		--inline-code-bg: #24242a;
		--header-bg: rgba(17, 17, 20, 0.78);
		--glow: rgba(242, 119, 108, 0.12);
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: balance;
}

p {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
}

ul,
ol {
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

.icon {
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.sr-only,
.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 {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--on-accent);
	border-radius: var(--radius-sm);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform 0.2s var(--ease);
}

.skip-link:focus {
	transform: none;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.site-main {
	min-height: 60vh;
	outline: none;
}

kbd {
	font-family: var(--font-mono);
	font-size: 0.8em;
	padding: 2px 6px;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--surface);
}

/* ---------- Botões ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn--primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 8px 20px -10px var(--accent);
}

.btn--primary:hover {
	background: var(--accent-strong);
	transform: translateY(-1px);
}

.btn--ghost {
	border-color: var(--border-strong);
	background: var(--surface);
}

.btn--ghost:hover {
	border-color: var(--text);
}

.btn .icon-arrow-right {
	transition: transform 0.2s var(--ease);
}

.btn:hover .icon-arrow-right {
	transform: translateX(3px);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
	background: var(--surface-2);
	color: var(--text);
}

/* ---------- Cabeçalho ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--border);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.brand__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border-strong);
	transition: box-shadow 0.2s;
}

.brand:hover .brand__avatar {
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent);
}

.brand__name {
	font-size: 1.05rem;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
	display: inline-block;
}

.nav-toggle .icon-close,
.site-header.is-open .nav-toggle .icon-menu {
	display: none;
}

.site-header.is-open .nav-toggle .icon-close {
	display: inline-block;
}

/* Menu — desktop */
.primary-nav {
	margin-left: auto;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	list-style: none;
}

.primary-nav li {
	position: relative;
}

.primary-nav .menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--text-2);
	font-size: 0.94rem;
	font-weight: 500;
	transition: background-color 0.2s, color 0.2s;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:hover > a,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a,
.primary-nav .menu > li.current-menu-parent > a {
	color: var(--text);
	background: var(--surface-2);
}

.primary-nav .menu-item-has-children > a {
	padding-right: 4px;
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: -2px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	vertical-align: middle;
}

.submenu-toggle .icon {
	transition: transform 0.2s var(--ease);
}

.primary-nav li.is-open > .submenu-toggle .icon {
	transform: rotate(180deg);
}

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}

.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--text-2);
	font-size: 0.92rem;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: var(--surface-2);
	color: var(--text);
}

.nav-toggle {
	display: none;
}

/* Menu — mobile */
@media (max-width: 1023px) {
	.nav-toggle {
		display: inline-grid;
	}

	.primary-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		z-index: 49;
		margin: 0;
		padding: 16px var(--gutter) 40px;
		overflow-y: auto;
		background: var(--bg);
		border-top: 1px solid var(--border);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
	}

	.admin-bar .primary-nav {
		top: calc(var(--header-h) + 46px);
	}

	.site-header.is-open .primary-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-nav .menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--border);
	}

	.primary-nav .menu > li > a {
		flex: 1;
		padding: 16px 4px;
		border-radius: 0;
		font-size: 1.1rem;
		background: none !important;
	}

	.submenu-toggle {
		width: 44px;
		height: 44px;
	}

	.primary-nav .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		margin: 0 0 12px;
		padding: 4px 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--border);
		border-radius: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav li.is-open > .sub-menu {
		display: block;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.brand__name {
		font-size: 0.98rem;
	}
}

/* ---------- Busca ---------- */
.search-dialog {
	width: min(640px, calc(100vw - 32px));
	max-width: none;
	margin: 12vh auto auto;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}

.search-dialog::backdrop {
	background: rgba(10, 10, 14, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.search-dialog[open] {
	animation: pop 0.2s var(--ease);
}

@keyframes pop {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}
}

.search-dialog__panel {
	padding: 16px;
}

.search-dialog__hint {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.82rem;
	text-align: right;
}

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
}

.search-form__icon {
	position: absolute;
	top: 50%;
	left: 16px;
	color: var(--muted);
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px 0 48px;
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 1.05rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-form__submit {
	height: 52px;
	border-radius: 14px;
}

@media (max-width: 480px) {
	.search-form__submit {
		display: none;
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(640px 380px at 80% 30%, var(--glow), transparent 70%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
	opacity: 0.55;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding: 6px 14px 6px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.86rem;
	font-weight: 500;
	box-shadow: var(--shadow-sm);
}

.hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22a06b;
	box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.18);
}

.hero__title {
	font-size: clamp(2.6rem, 7vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.hero__tagline {
	margin-top: 18px;
	color: var(--accent);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.hero__text {
	max-width: 56ch;
	margin-top: 18px;
	color: var(--text-2);
	font-size: clamp(1.02rem, 1.5vw, 1.12rem);
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.social a:hover {
	color: var(--accent);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.social--hero {
	margin-top: 28px;
}

.social--small a {
	width: 34px;
	height: 34px;
}

.social--small .icon {
	width: 16px;
	height: 16px;
}

.hero__media {
	display: flex;
	justify-content: center;
}

.hero__portrait {
	position: relative;
	width: min(100%, 340px);
	aspect-ratio: 1;
}

.hero__portrait::before {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
	background: conic-gradient(from 210deg, var(--accent), #e8a23a, var(--accent));
	opacity: 0.9;
	animation: morph 14s ease-in-out infinite alternate;
}

.hero__portrait::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 44% 56% 52% 48% / 50% 44% 56% 50%;
	background: var(--bg);
	animation: morph 14s ease-in-out infinite alternate;
}

.hero__avatar {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 44% 56% 52% 48% / 50% 44% 56% 50%;
	animation: morph 14s ease-in-out infinite alternate;
}

@keyframes morph {
	50% {
		border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%;
	}
	100% {
		border-radius: 48% 52% 58% 42% / 56% 48% 52% 44%;
	}
}

@media (max-width: 860px) {
	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__media {
		order: -1;
		justify-content: flex-start;
	}

	.hero__portrait {
		width: 132px;
	}

	.hero__portrait::before {
		inset: -8px;
	}

	.hero__portrait::after {
		inset: -4px;
	}
}

/* ---------- Tópicos / chips ---------- */
.topics {
	padding-bottom: clamp(24px, 4vw, 40px);
}

.section-label {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px 7px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.9rem;
	font-weight: 500;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.chip:only-child,
.chip:not(:has(.chip__count)) {
	padding-right: 14px;
}

.chip:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.chip__count {
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 0.76rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.chips--small {
	margin-top: 20px;
}

/* ---------- Seções ---------- */
.posts {
	padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 96px);
	scroll-margin-top: var(--header-h);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.section-title {
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
	letter-spacing: -0.03em;
}

.empty {
	padding: 48px 0;
	color: var(--muted);
}

.empty .chips {
	margin-top: 16px;
}

/* ---------- Cartões ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 20px;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.card:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 18px;
}

.card__meta,
.row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 0.8rem;
}

.card__cat {
	position: relative;
	z-index: 2;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color 0.2s, color 0.2s;
}

a.card__cat:hover {
	background: var(--accent);
	color: var(--on-accent);
}

.card__time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--muted);
}

.card__title {
	font-size: 1.16rem;
	line-height: 1.35;
	letter-spacing: -0.015em;
	font-weight: 650;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text-2);
	font-size: 0.94rem;
	line-height: 1.6;
}

.card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--border);
	color: var(--muted);
	font-size: 0.84rem;
}

.card__arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--text-2);
	transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.card:hover .card__arrow {
	background: var(--accent);
	color: var(--on-accent);
	transform: translateX(2px);
}

/* Destaque */
.card--featured {
	grid-column: 1 / -1;
	background:
		radial-gradient(500px 260px at 100% 0%, var(--glow), transparent 70%),
		var(--surface);
}

.card--featured .card__body {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	grid-template-areas:
		"meta meta"
		"title excerpt"
		"footer footer";
	gap: 16px 48px;
	padding: clamp(24px, 4vw, 40px);
}

.card--featured .card__meta {
	grid-area: meta;
}

.card__badge {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-weight: 600;
}

.card--featured .card__title {
	grid-area: title;
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 750;
}

.card--featured .card__excerpt {
	grid-area: excerpt;
	-webkit-line-clamp: 5;
	align-self: end;
	font-size: 1.02rem;
}

.card--featured .card__footer {
	grid-area: footer;
	margin-top: 8px;
}

@media (max-width: 760px) {
	.card--featured .card__body {
		grid-template-columns: 1fr;
		grid-template-areas:
			"meta"
			"title"
			"excerpt"
			"footer";
	}
}

/* ---------- Cabeçalho de página / arquivos ---------- */
.page-head {
	padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
	background:
		radial-gradient(600px 240px at 50% 0%, var(--glow), transparent 70%);
}

.page-head__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-head__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.035em;
	font-weight: 800;
}

.page-head__title mark {
	background: none;
	color: var(--accent);
}

.page-head__desc {
	max-width: 60ch;
	margin-top: 14px;
	color: var(--text-2);
	font-size: 1.08rem;
}

.page-head__count {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.92rem;
}

.page-head__search {
	margin-top: 24px;
}

/* ---------- Lista (arquivos e busca) ---------- */
.row-list {
	display: flex;
	flex-direction: column;
	margin-bottom: 48px;
}

.row {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 20px;
	padding: 24px 16px;
	margin-inline: -16px;
	border-radius: var(--radius);
	transition: background-color 0.2s;
}

.row + .row::before {
	content: "";
	position: absolute;
	top: 0;
	left: 16px;
	right: 16px;
	border-top: 1px solid var(--border);
}

.row:hover {
	background: var(--surface);
}

.row:hover::before,
.row:hover + .row::before {
	opacity: 0;
}

.row__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 72px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	text-align: center;
}

.row__day {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.row__month {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.row__title {
	font-size: 1.2rem;
	line-height: 1.35;
	letter-spacing: -0.015em;
	font-weight: 650;
}

.row__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.row:hover .row__title {
	color: var(--accent);
}

.row__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 6px 0 12px;
	color: var(--text-2);
	font-size: 0.95rem;
}

@media (max-width: 560px) {
	.row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.row__date {
		flex-direction: row;
		justify-content: flex-start;
		gap: 6px;
		height: auto;
		border: 0;
		background: none;
	}

	.row__day {
		font-size: 0.82rem;
		font-weight: 600;
		color: var(--muted);
		letter-spacing: 0;
	}

	.row__month {
		margin: 0;
		font-size: 0.82rem;
	}
}

/* ---------- Paginação ---------- */
.pagination {
	margin-top: 48px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text-2);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: border-color 0.2s, color 0.2s;
}

.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .current {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.pagination .dots {
	border: 0;
	background: none;
}

/* ---------- Artigo ---------- */
.progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: 3px;
	pointer-events: none;
}

.admin-bar .progress {
	top: 32px;
}

.progress__bar {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #e8a23a);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.article__header {
	padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
	background: radial-gradient(700px 260px at 50% 0%, var(--glow), transparent 70%);
}

.article--page .article__header {
	padding-bottom: 8px;
}

.article__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	list-style: none;
}

.article__cats a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}

.article__cats a:hover {
	background: var(--accent);
	color: var(--on-accent);
}

.article__title {
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
	font-weight: 800;
}

.article__byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
}

.article__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.article__author {
	display: block;
	font-weight: 600;
}

.article__info {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	color: var(--muted);
	font-size: 0.9rem;
}

.article__cover {
	margin: 0 auto 40px;
}

.article__cover img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, var(--measure));
	justify-content: center;
	padding-top: 8px;
	padding-bottom: clamp(48px, 7vw, 80px);
}

@media (min-width: 1180px) {
	/* Com índice: o título acompanha a coluna do texto. */
	.article.has-toc .article__header .container {
		max-width: calc(var(--measure) + 64px + 260px + var(--gutter) * 2);
	}

	.article.has-toc .article__header .container > * {
		max-width: var(--measure);
	}

	.article__layout.has-toc {
		grid-template-columns: minmax(0, var(--measure)) 260px;
		gap: 64px;
	}

	.article__layout.has-toc .article__aside {
		grid-column: 2;
		grid-row: 1;
	}

	.article__layout.has-toc .article__main {
		grid-column: 1;
		grid-row: 1;
	}

	.article__aside .toc {
		position: sticky;
		top: calc(var(--header-h) + 32px);
		max-height: calc(100vh - var(--header-h) - 64px);
		overflow-y: auto;
	}
}

/* Índice */
.toc {
	margin-bottom: 32px;
	font-size: 0.9rem;
}

.toc__details {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.toc__title::-webkit-details-marker {
	display: none;
}

.toc__title::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	margin-top: -4px;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.toc__details[open] .toc__title::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.toc__list {
	margin: 0;
	padding: 0 8px 12px;
	list-style: none;
	counter-reset: toc;
}

.toc__item a {
	display: block;
	padding: 6px 10px;
	border-left: 2px solid var(--border);
	color: var(--muted);
	line-height: 1.4;
	transition: color 0.15s, border-color 0.15s;
}

.toc__item--h3 a {
	padding-left: 24px;
	font-size: 0.86rem;
}

.toc__item a:hover {
	color: var(--text);
}

.toc__item a.is-active {
	border-left-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
}

@media (min-width: 1180px) {
	.toc__details {
		border: 0;
		background: none;
	}

	.toc__title {
		padding: 0 0 12px;
		cursor: default;
		pointer-events: none;
	}

	.toc__title::after {
		display: none;
	}

	.toc__list {
		padding: 0;
	}
}

/* ---------- Conteúdo (blocos) ---------- */
.entry-content {
	color: var(--text-2);
	font-size: 1.0625rem;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.4em;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: var(--text);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry-content h2 {
	margin-top: 2.2em;
	margin-bottom: 0.7em;
	font-size: clamp(1.45rem, 2.6vw, 1.75rem);
	letter-spacing: -0.025em;
}

.entry-content h3 {
	margin-top: 1.8em;
	margin-bottom: 0.6em;
	font-size: 1.3rem;
}

.entry-content h4 {
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	font-size: 1.1rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content a:not(.wp-block-button__link) {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
	transition: text-decoration-color 0.2s;
}

.entry-content a:not(.wp-block-button__link):hover {
	text-decoration-color: currentColor;
}

.entry-content strong {
	color: var(--text);
	font-weight: 650;
}

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

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content li::marker {
	color: var(--accent);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 1.4em;
	border-left: 3px solid var(--accent);
	color: var(--text);
	font-size: 1.12em;
	font-style: italic;
}

.entry-content blockquote p + p {
	margin-top: 0.8em;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 0.8em;
	color: var(--muted);
	font-size: 0.85em;
	font-style: normal;
}

.entry-content .wp-block-pullquote {
	padding: 1.5em 0;
	border-block: 2px solid var(--border);
	text-align: center;
}

.entry-content hr,
.entry-content .wp-block-separator {
	margin: 2.5em auto;
	border: 0;
	border-top: 1px solid var(--border);
	opacity: 1;
}

.entry-content .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 100%;
}

.entry-content .wp-block-spacer {
	margin: 0;
}

/* Imagens */
.entry-content figure {
	margin-inline: 0;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content .wp-block-image img {
	display: block;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.5;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3em 1.6em 1em 0;
}

.entry-content .alignright {
	float: right;
	max-width: 50%;
	margin: 0.3em 0 1em 1.6em;
}

.entry-content .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.entry-content .aligncenter img {
	margin-inline: auto;
}

@media (min-width: 1000px) {
	.entry-content .alignwide {
		margin-inline: -80px;
		max-width: none;
	}
}

@media (max-width: 560px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1.4em;
	}
}

/* Código */
.entry-content code,
.entry-content kbd,
.entry-content samp {
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.entry-content :not(pre) > code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--inline-code-bg);
	color: var(--text);
	overflow-wrap: anywhere;
}

.code-block {
	position: relative;
	margin-bottom: 1.4em;
}

.code-block > pre {
	margin: 0 !important;
}

.entry-content pre,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
	position: relative;
	overflow-x: auto;
	padding: 20px 22px;
	border: 1px solid var(--code-border);
	border-radius: 14px;
	background: var(--code-bg);
	color: var(--code-text);
	font-family: var(--font-mono);
	font-size: 0.875rem;
	line-height: 1.7;
	tab-size: 4;
	white-space: pre;
	-webkit-overflow-scrolling: touch;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	white-space: inherit;
	overflow-wrap: normal;
}

.entry-content pre::-webkit-scrollbar {
	height: 8px;
}

.entry-content pre::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
}

.code-block.has-copy > pre {
	padding-right: 64px;
}

.copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #26262c;
	box-shadow: -12px 0 12px -4px var(--code-bg);
	color: #c9c7c3;
	font-size: 0.76rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.copy-btn .copy-btn__label {
	display: none;
}

.code-block:hover .copy-btn,
.copy-btn:focus-visible,
.copy-btn.is-copied {
	opacity: 1;
}

.copy-btn:hover {
	background: #34343c;
	color: #fff;
}

.copy-btn.is-copied {
	border-color: rgba(34, 160, 107, 0.6);
	color: #5fd39f;
}

.copy-btn.is-copied .copy-btn__label {
	display: inline;
}

/* Tabelas */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	color: var(--text);
	font-weight: 650;
	border-bottom-width: 2px;
}

/* Embeds */
.entry-content .wp-block-embed iframe {
	width: 100%;
	border-radius: 12px;
}

.entry-content .wp-block-embed.is-type-wp-embed iframe {
	border: 1px solid var(--border);
	border-radius: 14px;
}

/* Botões do editor */
.entry-content .wp-block-button__link {
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
}

/* ---------- Rodapé do artigo ---------- */
.article__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	list-style: none;
}

.tags a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--text-2);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	transition: background-color 0.2s, color 0.2s;
}

.tags a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.share {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.share__label {
	margin-right: 6px;
	color: var(--muted);
	font-size: 0.85rem;
}

.share .icon-btn.is-copied {
	color: #22a06b;
}

.author-box {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 20px;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.author-box__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.author-box__label {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-box__name {
	margin-top: 2px;
	font-size: 1.15rem;
	font-weight: 700;
}

.author-box__bio {
	margin: 8px 0 14px;
	color: var(--text-2);
	font-size: 0.95rem;
}

@media (max-width: 520px) {
	.author-box {
		grid-template-columns: 1fr;
	}
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.2s, background-color 0.2s;
}

.post-nav__link:hover {
	border-color: var(--accent);
	background: var(--surface);
}

.post-nav__link--next {
	grid-column: 2;
	text-align: right;
}

.post-nav__link--next .post-nav__label {
	justify-content: flex-end;
}

.post-nav__label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.post-nav__title {
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 620px) {
	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav__link--next {
		grid-column: auto;
	}
}

.page-links {
	margin-top: 32px;
	font-weight: 600;
}

/* Relacionados */
.related {
	padding: clamp(48px, 7vw, 80px) 0;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
}

.related .section-title {
	margin-bottom: 24px;
}

/* ---------- Comentários ---------- */
.comments {
	margin-top: 56px;
}

.comments__title,
.comment-reply-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 1.35rem;
}

.comment-list,
.comment-list .children {
	margin: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: clamp(16px, 4vw, 48px);
}

.comment-body {
	margin-bottom: 16px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-bottom: 10px;
	font-size: 0.88rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--muted);
}

.comment-content {
	color: var(--text-2);
}

.reply a {
	color: var(--accent);
	font-size: 0.88rem;
	font-weight: 600;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border-strong);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.88rem;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

.comment-notes,
.logged-in-as,
.comments__closed {
	color: var(--muted);
	font-size: 0.9rem;
}

/* ---------- 404 ---------- */
.not-found {
	padding: clamp(56px, 10vw, 120px) 0;
}

.not-found__code {
	font-size: clamp(5rem, 18vw, 9rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	background: linear-gradient(135deg, var(--accent), #e8a23a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.not-found__text {
	margin: 14px 0 28px;
	color: var(--text-2);
	font-size: 1.1rem;
}

.not-found .section-label {
	margin-top: 48px;
}

.simple-list {
	margin: 0 0 40px;
	list-style: none;
}

.simple-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.simple-list a {
	font-weight: 600;
}

.simple-list a:hover {
	color: var(--accent);
}

.simple-list span {
	flex-shrink: 0;
	color: var(--muted);
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
}

/* ---------- Rodapé ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}

.site-footer__tagline {
	max-width: 36ch;
	margin: 14px 0 20px;
	color: var(--text-2);
}

.site-footer__title {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__links {
	margin: 0;
	list-style: none;
}

.site-footer__links li + li {
	margin-top: 8px;
}

.site-footer__links a {
	color: var(--text-2);
	transition: color 0.2s;
}

.site-footer__links a:hover {
	color: var(--accent);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.86rem;
}

.to-top {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text-2);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.to-top:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
}

@media (max-width: 760px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

/* ---------- Animação de entrada ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Movimento reduzido ---------- */
@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;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Impressão ---------- */
@media print {
	.site-header,
	.site-footer,
	.progress,
	.article__aside,
	.share,
	.author-box,
	.post-nav,
	.related,
	.comments,
	.copy-btn {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.entry-content pre {
		white-space: pre-wrap;
		border: 1px solid #ccc;
		background: #f6f6f6;
		color: #000;
	}
}
