/* Fontes hospedadas aqui (DM Sans e Work Sans, licença OFL): sem ida ao Google antes de pintar */
@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/dm-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/dm-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 600 800;
	font-display: swap;
	src: url("../fonts/work-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 600 800;
	font-display: swap;
	src: url("../fonts/work-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Espiral: tema
   ========================================================================== */

:root {
	--pink: #f06292;
	--pink-strong: #e44a7f;
	--violet: #a855f7;
	--accent-gradient: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);

	--ink: #0a0a0a;
	--ink-2: #161618;

	--bg: #fafaf9;
	--surface: #ffffff;
	--surface-2: #f4f4f3;
	--text: #18181b;
	--text-soft: #3f3f46;
	--muted: #71717a;
	--border: #e7e5e4;
	--shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .18);
	--shadow-lg: 0 2px 4px rgb(0 0 0 / .05), 0 24px 48px -20px rgb(0 0 0 / .35);
	--link: #c2185b;

	--font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Work Sans", var(--font-sans);

	--radius: 12px;
	--radius-sm: 8px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0c0c0d;
	--surface: #151517;
	--surface-2: #1c1c1f;
	--text: #f4f4f5;
	--text-soft: #d4d4d8;
	--muted: #a1a1aa;
	--border: #27272a;
	--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
	--shadow-lg: 0 24px 48px -20px rgb(0 0 0 / .8);
	--link: #f48fb1;

	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.6 var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--pink); color: #fff; }

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

[hidden] { display: none !important; }

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

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--pink);
	color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

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

.container--narrow { max-width: 860px; }

/* ==========================================================================
   Componentes pequenos
   ========================================================================== */

.chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .01em;
	transition: background .2s var(--ease);
}
.chip:hover { background: var(--pink-strong); }

/* No escuro, o chip fora das imagens precisa se destacar do fundo */
:root[data-theme="dark"] .chip:not(.chip--glass):not(.card__chip) { background: var(--surface-2); border: 1px solid var(--border); }
:root[data-theme="dark"] .chip:not(.chip--glass):not(.card__chip):hover { background: var(--pink-strong); border-color: transparent; }

.chip--glass {
	background: rgb(10 10 10 / .55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgb(255 255 255 / .12);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { background: var(--pink-strong); }
.btn:active { transform: scale(.98); }
:root[data-theme="dark"] .btn { background: var(--pink-strong); }
:root[data-theme="dark"] .btn:hover { background: var(--pink); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: rgb(255 255 255 / .1); }
.icon-btn .icon { width: 20px; height: 20px; }

.icon-btn--outline {
	border: 1px solid var(--border);
	color: var(--text);
}
.icon-btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn--outline:disabled { opacity: .35; pointer-events: none; }

.link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--link);
	font-weight: 600;
	font-size: .9rem;
}
.link-btn:hover { text-decoration: underline; }

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .95rem;
}
.read-more .icon { transition: transform .25s var(--ease); width: 1em; height: 1em; }
.read-more:hover { color: var(--link); }
.read-more:hover .icon { transform: translateX(4px); }

.badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--accent-gradient);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: 2px;
}

.avatar {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--accent-gradient);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .9rem;
	flex: none;
}
.avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* Título de seção com as "bolinhas" rosa e roxa da identidade */
.section-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -.01em;
}
.section-title::before {
	content: "";
	width: 14px; height: 22px;
	flex: none;
	border-radius: 999px;
	background:
		radial-gradient(circle at 50% 30%, var(--pink) 0 6px, transparent 6.5px),
		radial-gradient(circle at 50% 70%, var(--violet) 0 6px, transparent 6.5px);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	color: var(--muted);
	font-size: .85rem;
}
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta li + li::before {
	content: "";
	width: 3px; height: 3px;
	margin-inline: 10px;
	border-radius: 50%;
	background: currentColor;
	opacity: .55;
}
.meta .icon { width: 14px; height: 14px; opacity: .8; }
.meta a:hover { color: var(--link); }

.notice {
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-size: .95rem;
}
.notice a { color: var(--link); font-weight: 600; margin-left: 6px; }
.notice--ok { border-color: #22c55e55; background: #22c55e14; }
.notice--warn { border-color: #eab30866; background: #eab30814; margin-bottom: 20px; }

.empty { padding: 48px 0; color: var(--muted); font-size: 1.05rem; }
.empty a { color: var(--link); font-weight: 600; }

.img-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--accent-gradient);
	color: rgb(255 255 255 / .7);
}
.img-fallback .icon { width: 40px; height: 40px; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.site-header {
	background: var(--ink);
	color: #fff;
}

.masthead {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-block: 34px;
}

.masthead__logo img {
	width: clamp(170px, 26vw, 330px);
	height: auto;
	transition: opacity .2s;
}
.masthead__logo:hover img { opacity: .85; }

.masthead__actions {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
}

.social { display: flex; flex-wrap: wrap; gap: 10px; }

.social--round a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--ink-2);
	border: 1px solid #ffffff14;
	color: #fff;
	transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.social--round a:hover { background: var(--pink-strong); border-color: transparent; transform: translateY(-2px); }
.social--round .icon { width: 18px; height: 18px; }

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

.nav-toggle { display: none; }

.main-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #111113;
	border-top: 1px solid #ffffff12;
	border-bottom: 1px solid #ffffff08;
}

.main-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	position: relative;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 8px;
}

.main-nav ul a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: #e4e4e7;
	font-size: .9rem;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	transition: color .2s;
}
.main-nav ul a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent-gradient);
	transform: scaleX(0);
	transition: transform .3s var(--ease);
}
.main-nav ul a:hover { color: #fff; }
.main-nav ul a:hover::after,
.main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav ul a[aria-current="page"] { color: var(--pink); }

.main-nav__mark {
	position: absolute;
	left: var(--gutter);
	opacity: 0;
	transform: scale(.8) rotate(-90deg);
	transition: opacity .3s, transform .5s var(--ease);
	pointer-events: none;
}
.main-nav__mark img { width: 28px; height: 28px; filter: invert(1); }
.main-nav__search { position: absolute; right: var(--gutter); color: #a1a1aa; }
.main-nav__search:hover { color: #fff; }

.main-nav.is-stuck .main-nav__mark {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Busca em tela cheia */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	align-items: start;
	padding-top: 18vh;
	background: rgb(10 10 10 / .85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: fade .25s var(--ease);
}
.search-overlay[hidden] { display: none; }

.search-overlay__form {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 760px;
	color: #fff;
	border-bottom: 2px solid #ffffff33;
	padding-bottom: 12px;
}
.search-overlay__form:focus-within { border-color: var(--pink); }
.search-overlay__form > .icon { width: 28px; height: 28px; opacity: .6; }
.search-overlay input {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	background: none;
	color: #fff;
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 4vw, 2.2rem);
	font-weight: 600;
	outline: none;
}
.search-overlay input::placeholder { color: #ffffff55; }

@keyframes fade { from { opacity: 0; } }

/* ==========================================================================
   Home: destaques
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
	margin-top: 40px;
	min-height: min(620px, 80vh);
}

.hero__lead { grid-row: span 2; }

.overlay-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	isolation: isolate;
	min-height: 280px;
}

.overlay-card__link {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.overlay-card__link img,
.overlay-card__link .img-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease);
}
.overlay-card:hover .overlay-card__link img { transform: scale(1.04); }

.overlay-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / .55) 65%, rgb(0 0 0 / .88) 100%);
}

.overlay-card__body {
	position: absolute;
	inset: auto 0 0 0;
	display: grid;
	gap: 12px;
	justify-items: start;
	padding: clamp(18px, 3vw, 32px);
	pointer-events: none;
}
.overlay-card__body a, .overlay-card__body button { pointer-events: auto; }

.overlay-card__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.overlay-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: #e4e4e7; }
.overlay-card__date .icon { width: 14px; height: 14px; }

.overlay-card__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
	line-height: 1.3;
	text-shadow: 0 1px 12px rgb(0 0 0 / .4);
}
.overlay-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.overlay-card__title a:hover { background-size: 100% 2px; }

.overlay-card--lg .overlay-card__title {
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.15;
	max-width: 22ch;
}

.overlay-card__excerpt {
	max-width: 60ch;
	color: #d4d4d8;
	font-size: 1.02rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.overlay-card .meta { color: #d4d4d8; }

/* ==========================================================================
   Layout com sidebar
   ========================================================================== */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 5vw, 64px);
	margin-block: 64px;
}

.grid { display: grid; gap: 44px 32px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Card: o card inteiro é clicável (o link do título se estica por cima) */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-2);
}
.card__media img, .card__media .img-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__chip {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 2;
}

.card__kicker {
	display: none;
	position: relative;
	z-index: 2;
	color: var(--link);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.card__body {
	display: grid;
	gap: 10px;
	padding-top: 18px;
	justify-items: start;
}

.card__title {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.012em;
	text-wrap: pretty;
}
.card__link { transition: color .2s; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { color: var(--link); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--pink); outline-offset: 6px; border-radius: var(--radius); }

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

/* Quantidade ímpar: o primeiro card ocupa a linha toda, na horizontal */
@media (min-width: 641px) {
	.grid--lead > .card:first-child {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 32px;
		align-items: center;
	}
	.grid--lead > .card:first-child .card__body { padding-top: 0; gap: 14px; }
	.grid--lead > .card:first-child .card__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; }
	.grid--lead > .card:first-child .card__excerpt { -webkit-line-clamp: 4; font-size: 1.02rem; }
}

/* Paginação */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 56px;
}
.pagination ol { display: flex; gap: 6px; }
.pagination ol a, .pagination ol span, .pagination__gap {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 8px;
	border-radius: 999px;
	font-weight: 600;
}
.pagination ol a { border: 1px solid var(--border); transition: border-color .2s, color .2s; }
.pagination ol a:hover { border-color: var(--pink); color: var(--link); }
.pagination [aria-current="page"] { background: var(--accent-gradient); color: #fff; }
.pagination__gap { color: var(--muted); min-width: 20px; }
.pagination__step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
}
.pagination__step:hover { color: var(--link); }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar { display: grid; gap: 48px; align-content: start; }

.social--tiles { gap: 10px; }
.social--tiles a {
	display: grid;
	place-items: center;
	width: 62px; height: 50px;
	border-radius: var(--radius-sm);
	color: #fff;
	transition: transform .25s var(--ease), filter .25s;
}
.social--tiles a:hover { transform: translateY(-3px); filter: brightness(1.1); }
.social--tiles .icon { width: 22px; height: 22px; }
.social--facebook { background: #1877f2; }
.social--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 40%, #d6249f 65%, #285aeb 100%); }
.social--threads { background: #101010; }
:root[data-theme="dark"] .social--threads { background: #2a2a2e; }
.social--bluesky { background: #0a7aff; }

.ranked { counter-reset: rank; display: grid; gap: 4px; }
.ranked li { counter-increment: rank; }
.ranked a {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 2px 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.ranked a::before {
	content: counter(rank, decimal-leading-zero);
	grid-row: span 2;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.1;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ranked__title { font-family: var(--font-display); font-weight: 600; line-height: 1.35; transition: color .2s; }
.ranked a:hover .ranked__title { color: var(--link); }
.ranked__meta { color: var(--muted); font-size: .8rem; }

.cat-tiles { display: grid; gap: 12px; }
.cat-tiles a {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	height: 92px;
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	color: #fff;
	isolation: isolate;
	background: var(--ink);
}
.cat-tiles img, .cat-tiles .img-fallback {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}
.cat-tiles a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgb(0 0 0 / .82), rgb(0 0 0 / .45));
	transition: background .3s;
}
.cat-tiles a:hover img { transform: scale(1.08); }
.cat-tiles a:hover::after { background: linear-gradient(90deg, rgb(228 74 127 / .85), rgb(168 85 247 / .45)); }
.cat-tiles__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.cat-tiles__count { padding: 2px 9px; border-radius: 999px; background: rgb(0 0 0 / .55); font-size: .75rem; color: #fff; }

/* ==========================================================================
   Você pode ter perdido (carrossel)
   ========================================================================== */

.missed {
	padding-block: 64px 72px;
	background: var(--surface);
	border-top: 1px solid var(--border);
}
.missed__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.missed__head .section-title { margin-bottom: 24px; }
.missed__nav { display: flex; gap: 8px; margin-bottom: 24px; }

.carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 56px) / 3);
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

/* ==========================================================================
   Páginas de listagem
   ========================================================================== */

.page-head {
	padding-block: 56px 8px;
	display: grid;
	justify-items: start;
	gap: 10px;
}
.page-head__kicker {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.page-head__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.05;
}
.page-head__lead { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: .875rem;
}
.crumbs .icon { width: 12px; height: 12px; opacity: .6; }
.crumbs a:hover { color: var(--link); }

.search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 640px;
	margin-block: 12px;
	padding: 6px 6px 6px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--pink); }
.search-box > .icon { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.05rem; padding: 8px 0; }

.page-head + .container > .grid { margin-block: 40px 72px; }

.error-page {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding-block: 96px;
	text-align: center;
}
.error-page .search-box { margin-inline: auto; }
.error-page__spiral { width: 120px; animation: spin 18s linear infinite; }
:root[data-theme="dark"] .error-page__spiral { filter: invert(1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Post
   ========================================================================== */

.reading-progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: 3px;
	pointer-events: none;
}
.reading-progress span {
	display: block;
	height: 100%;
	background: var(--accent-gradient);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

.post__head {
	display: grid;
	justify-items: start;
	gap: 18px;
	padding-block: 48px 36px;
}
.post__head.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.post__title {
	font-family: var(--font-sans);
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.12;
}

.post__dek {
	color: var(--text-soft);
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	line-height: 1.55;
	max-width: 62ch;
}

.post__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	width: 100%;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.byline-author { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.byline-author__label { color: var(--muted); font-weight: 400; }
.byline-author:hover { color: var(--link); }

.post__cover { max-width: 1180px; margin-block: 0; }
.post__cover img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

/* Texto centralizado e alinhado ao título; sumário e compartilhar na coluna da esquerda */
.post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr);
	gap: 48px;
	padding-block: 56px 72px;
}
.post__aside { justify-self: end; width: 100%; max-width: 200px; }
.share-inline { display: none; }
.post__main { min-width: 0; }

.post__aside-sticky {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 32px;
}

.toc__title, .share__title {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a {
	display: block;
	margin-left: -2px;
	padding: 5px 0 5px 14px;
	border-left: 2px solid transparent;
	color: var(--muted);
	font-size: .875rem;
	line-height: 1.4;
	transition: color .2s, border-color .2s;
}
.toc__item--3 a { padding-left: 26px; font-size: .825rem; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--link); border-color: var(--pink); font-weight: 600; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__title { width: 100%; margin-bottom: 2px; }
.share__btn {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text-soft);
	transition: all .2s var(--ease);
}
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.share__btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Texto do post */
.prose {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--text-soft);
	overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4 {
	color: var(--text);
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -.015em;
	margin-top: 2em;
}
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.15rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-thickness .15s;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--pink); }
.prose img, .prose iframe, .prose video {
	border-radius: var(--radius-sm);
	margin-inline: auto;
}
.prose iframe[src*="youtube"]:not(.embed iframe), .prose iframe[src*="vimeo"]:not(.embed iframe) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: .6em; color: var(--muted); font-size: .9rem; text-align: center; }
.prose blockquote:not([class]) {
	margin-inline: 0;
	padding: .2em 0 .2em 1.3em;
	border-left: 4px solid;
	border-image: var(--accent-gradient) 1;
	color: var(--text);
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.6;
}
/* O WordPress às vezes aninha citação dentro de citação */
.prose blockquote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
.prose blockquote > * + * { margin-top: .8em; }
.prose blockquote cite { display: block; color: var(--muted); font-size: .9rem; font-style: normal; }
.prose hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5em; }
.prose code { padding: .15em .4em; border-radius: 4px; background: var(--surface-2); font-size: .9em; }
.prose pre { padding: 1.2em; border-radius: var(--radius-sm); background: var(--ink); color: #e4e4e7; overflow-x: auto; font-size: .9rem; }
.prose pre code { padding: 0; background: none; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .6em .8em; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { color: var(--text); }
/* Embeds (App\Support\Embed) */
.prose .embed { margin: 2em auto; }
.prose .embed iframe { display: block; width: 100%; border: 0; border-radius: var(--radius); background: var(--surface-2); }
.prose .embed--youtube iframe, .prose .embed--vimeo iframe, .prose .embed--twitch iframe,
.prose .embed--facebook:not(.embed--fbpost) iframe { aspect-ratio: 16 / 9; height: auto; background: #000; }
.prose .embed--vertical { max-width: 340px; }
.prose .embed--vertical iframe { aspect-ratio: 9 / 16; }
.prose .embed--fbpost { max-width: 500px; }
.prose .embed--fbpost iframe { min-height: 560px; background: #fff; }
.prose .embed--spotify iframe { border-radius: 14px; background: none; }
.prose .embed--soundcloud iframe, .prose .embed--applemusic iframe, .prose .embed--deezer iframe { background: none; }
.prose .embed--instagram, .prose .embed--twitter, .prose .embed--tiktok,
.prose .embed--threads, .prose .embed--bluesky { max-width: 540px; display: flex; justify-content: center; }
.prose .embed--instagram > *, .prose .embed--twitter > *, .prose .embed--tiktok > *,
.prose .embed--threads > *, .prose .embed--bluesky > * { margin-inline: auto !important; width: 100%; }

/* Antes do script da rede carregar (ou se for bloqueado), aparece um link arrumado */
.prose .embed > blockquote:not([data-instgrm-payload-id]) {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	font-style: normal;
	font-size: 1rem;
	color: var(--text-soft);
}
.prose .embed > blockquote a { color: var(--link); font-weight: 600; text-decoration: none; }

/* Card de link (qualquer site) */
.prose .embed-card {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: inherit;
	text-decoration: none !important;
	transition: border-color .2s, transform .2s var(--ease);
}
.prose .embed-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.prose .embed-card__image { width: 34%; max-width: 220px; min-height: 100%; object-fit: cover; border-radius: 0; margin: 0; flex: none; }
.prose .embed-card__body { display: grid; align-content: center; gap: 4px; padding: 16px 20px; min-width: 0; }
.prose .embed-card__site { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prose .embed-card__title { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.prose .embed-card__desc { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
	.prose .embed-card { flex-direction: column; }
	.prose .embed-card__image { width: 100%; max-width: none; aspect-ratio: 1.91 / 1; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: .875rem;
	font-weight: 500;
	transition: background .2s, color .2s;
}
.tags a:hover { background: var(--pink-strong); color: #fff; }

.author-box {
	display: flex;
	gap: 20px;
	margin-top: 48px;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.author-box__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.author-box__name { font-family: var(--font-display); font-size: 1.3rem; margin-block: 2px 6px; }
.author-box__name a:hover { color: var(--link); }
.author-box__bio { color: var(--text-soft); }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
}
.post-nav__item {
	display: grid;
	gap: 6px;
	padding: 20px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	transition: border-color .2s, transform .2s var(--ease);
}
.post-nav__item:hover { border-color: var(--pink); transform: translateY(-2px); }
.post-nav__item--next { text-align: right; justify-items: end; }
.post-nav__label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-nav__label .icon { width: 14px; height: 14px; }
.post-nav__title { font-family: var(--font-display); font-weight: 600; line-height: 1.35; }

.related { padding-block: 64px 80px; background: var(--surface); border-top: 1px solid var(--border); }

/* ==========================================================================
   Comentários
   ========================================================================== */

.comments { margin-top: 64px; display: grid; gap: 24px; }
.comments .section-title { margin-bottom: 0; }
.comments__empty { color: var(--muted); }

.comment-list { display: grid; gap: 24px; }
.comment-list--replies { margin-top: 20px; padding-left: 24px; border-left: 2px solid var(--border); }

.comment { scroll-margin-top: 110px; }
.comment:target > .comment__body { box-shadow: 0 0 0 2px var(--pink); }
.comment__head { display: flex; align-items: center; gap: 12px; }
.comment__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); }
.comment__name { font-weight: 700; }
.comment__date { color: var(--muted); font-size: .825rem; }
.comment__date:hover { color: var(--link); }
.comment__body {
	margin: 12px 0 0 56px;
	padding: 14px 18px;
	border-radius: 4px var(--radius) var(--radius) var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-soft);
	overflow-wrap: anywhere;
}
.comment--author > .comment__body { border-color: color-mix(in srgb, var(--pink) 40%, var(--border)); }
.comment__reply { margin: 8px 0 0 56px; }

.comment-form {
	display: grid;
	gap: 16px;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.comment-form .btn { justify-self: start; }
.comment-form__replying { font-size: .925rem; color: var(--text-soft); }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field__hint { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 20%, transparent); }
.field textarea { resize: vertical; min-height: 110px; }
.field__error { color: #dc2626; font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: #a1a1aa;
	border-top: 3px solid;
	border-image: var(--accent-gradient) 1;
}

.site-footer__inner {
	display: grid;
	justify-items: center;
	gap: 28px;
	padding-block: 64px 40px;
	text-align: center;
}
.site-footer__logo img { width: 200px; height: auto; opacity: .95; }
.site-footer__tagline { max-width: 52ch; font-size: .95rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.site-footer__nav a { font-size: .85rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.site-footer__nav a:hover { color: var(--pink); }
.site-footer__copy { font-size: .85rem; color: #a1a1aa; padding-top: 24px; border-top: 1px solid #ffffff12; width: 100%; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1100px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.post__layout { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--gutter) * 2); gap: 0; padding-block: 40px 56px; }
	.post__aside { display: none; }
	.share-inline { display: block; margin-top: 40px; padding-block: 20px; border-block: 1px solid var(--border); }
	.share-inline .share { align-items: center; }
	.share-inline .share__title { width: auto; margin: 0 8px 0 0; }
	.carousel { grid-auto-columns: calc((100% - 28px) / 2); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.masthead { padding-block: 14px; grid-template-columns: auto 1fr; }
	.masthead__social { display: none; }
	.masthead__logo img { width: 132px; }

	/* Categorias numa faixa rolável, sempre à vista */
	.main-nav__inner { min-height: 0; padding-inline: 0; }
	.main-nav ul {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		width: 100%;
		padding-inline: calc(var(--gutter) - 10px);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.main-nav ul::-webkit-scrollbar { display: none; }
	.main-nav ul a { padding: 14px 10px; font-size: .78rem; white-space: nowrap; }
	.main-nav ul a::after { left: 10px; right: 10px; bottom: 6px; }
	.main-nav__mark, .main-nav__search { display: none; }

	/* Destaques: o principal grande, os outros em linha */
	.hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; min-height: 0; margin-top: 20px; }
	.hero__lead { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 520px; margin-bottom: 8px; }
	.hero__side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 96px;
		gap: 14px;
		align-items: center;
		min-height: 0;
		padding: 16px 0;
		border-radius: 0;
		border-bottom: 1px solid var(--border);
		background: none;
		color: var(--text);
	}
	.hero__side .overlay-card__link {
		position: relative;
		inset: auto;
		z-index: auto;
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: 1;
		border-radius: var(--radius-sm);
		overflow: hidden;
	}
	.hero__side .overlay-card__shade { display: none; }
	.hero__side .overlay-card__body { position: static; grid-column: 1; grid-row: 1; padding: 0; gap: 6px; pointer-events: auto; }
	.hero__side .overlay-card__title { font-size: 1.02rem; text-shadow: none; }
	.hero__side .overlay-card__title a:hover { color: var(--link); }
	.hero__side .chip { padding: 0; background: none; border: 0; backdrop-filter: none; color: var(--link); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	.hero__side .meta { color: var(--muted); }
}

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

	/* Listas: primeiro card grande, o resto vira linha compacta */
	.grid--list { gap: 0; }
	.grid--list > .card { padding-block: 18px; border-bottom: 1px solid var(--border); }
	.grid--list > .card:first-child { padding-top: 0; }
	.grid--list > .card:not(:first-child) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 96px;
		gap: 14px;
		align-items: start;
	}
	.grid--list > .card:not(:first-child) .card__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: var(--radius-sm); }
	.grid--list > .card:not(:first-child) .card__body { grid-column: 1; grid-row: 1; padding-top: 0; gap: 6px; }
	.grid--list > .card:not(:first-child) .card__chip,
	.grid--list > .card:not(:first-child) .card__excerpt { display: none; }
	.grid--list > .card:not(:first-child) .card__kicker { display: block; }
	.grid--list > .card:not(:first-child) .card__title { font-size: 1.02rem; line-height: 1.35; }
	.grid--list .card__excerpt { -webkit-line-clamp: 2; font-size: .95rem; }
	.grid--list .meta { font-size: .8rem; }

	.sidebar .widget:first-child { display: none; }

	.post__head { padding-block: 24px 24px; gap: 14px; }
	.post__title { font-size: 1.95rem; line-height: 1.15; }
	.post__byline { gap: 10px 20px; }
	.share-inline .share { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
	.share-inline .share__title { display: none; }
	.post__cover { padding-inline: 0; }
	.post__cover img { border-radius: 0; box-shadow: none; max-height: none; aspect-ratio: 16 / 10; }
	.layout { margin-block: 40px; gap: 48px; }
	.section-title { font-size: 1.3rem; margin-bottom: 18px; }
	.carousel { grid-auto-columns: 85%; gap: 16px; }
	.missed__nav { display: none; }
	.field-row { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { text-align: left; justify-items: start; }
	.comment__body, .comment__reply { margin-left: 0; }
	.comment-list--replies { padding-left: 14px; }
	.author-box { flex-direction: column; }
	.prose { font-size: 1.075rem; }
	.overlay-card__excerpt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .post__aside, .comments, .related, .reading-progress, .post-nav { display: none !important; }
	.prose { color: #000; }
}
