/*
Theme Name: Portal Espectro — Identidade Oficial
Theme URI: https://portalespectro.com/
Author: Portal Espectro
Author URI: https://portalespectro.com/
Description: Tema editorial responsivo do Portal Espectro, com identidade oficial, destaques, categorias, páginas de matéria e recursos para um portal de cultura pop.
Version: 2.0.3
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-espectro
*/

:root {
	--color-bg: #070810;
	--color-bg-soft: #0a0c16;
	--color-surface: #101321;
	--color-surface-raised: #15192a;
	--color-surface-bright: #1a2034;
	--color-text: #f7f8ff;
	--color-text-soft: #d7daea;
	--color-muted: #9ca3bc;
	--color-border: rgba(255, 255, 255, 0.11);
	--color-border-strong: rgba(255, 255, 255, 0.2);
	--color-violet: #9b73ff;
	--color-cyan: #29d6e7;
	--color-pink: #ff4d9d;
	--color-gold: #ffc857;
	--gradient-spectrum: linear-gradient(90deg, #7447ff 0%, #d846ef 34%, #ff4d7d 58%, #ffb84d 78%, #32d9dc 100%);
	--gradient-wordmark: linear-gradient(100deg, #a889ff 0%, #f45cbb 45%, #ffbf58 70%, #42e0e2 100%);
	--shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
	--shadow-card: 0 22px 44px rgba(0, 0, 0, 0.35);
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--site-width: 1280px;
	--content-width: 790px;
	--font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-display: "Arial Black", Inter, ui-sans-serif, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 86% -10%, rgba(116, 71, 255, 0.14), transparent 28rem),
		radial-gradient(circle at 4% 28rem, rgba(41, 214, 231, 0.07), transparent 24rem),
		var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.menu-is-open,
body.search-is-open {
	overflow: hidden;
}

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

img {
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--color-cyan);
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
[type="button"],
[type="submit"] {
	cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--color-cyan);
	outline-offset: 3px;
}

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

.site-shell {
	width: min(calc(100% - 40px), var(--site-width));
	margin-inline: auto;
}

.site-main {
	min-height: 55vh;
}

.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;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 9999;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 18px;
	margin: 0;
	clip: auto;
	background: #fff;
	color: #080a12;
	font-weight: 800;
	white-space: normal;
}

.spectrum-line {
	height: 4px;
	background: var(--gradient-spectrum);
}

/* Header */
.announcement {
	background: #0c0e18;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-soft);
	font-size: 0.875rem;
}

.announcement__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
}

.announcement__label {
	flex: 0 0 auto;
	padding: 3px 8px;
	border: 1px solid rgba(255, 77, 157, 0.5);
	border-radius: 999px;
	color: #ff8ac1;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.announcement a {
	font-weight: 700;
	text-decoration: none;
}

.site-header {
	position: relative;
	z-index: 50;
	background: rgba(7, 8, 16, 0.96);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.site-header__main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 124px;
	padding-block: 22px;
}

.site-branding {
	grid-column: 2;
	text-align: center;
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo {
	width: auto;
	max-width: min(420px, 55vw);
	max-height: 76px;
}

.wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	text-transform: uppercase;
}

.wordmark:hover {
	color: inherit;
}

.wordmark__portal {
	margin-bottom: -4px;
	color: var(--color-text-soft);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.52em;
	transform: translateX(0.26em);
}

.wordmark__espectro {
	background: var(--gradient-wordmark);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3.15rem);
	font-weight: 950;
	letter-spacing: -0.065em;
	line-height: 0.98;
}

.site-description {
	margin: 8px 0 0;
	color: var(--color-muted);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.header-actions {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.social-links {
	display: flex;
	align-items: center;
	gap: 7px;
}

.social-link,
.icon-button,
.share-rail a,
.share-rail button {
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: transparent;
	color: var(--color-text-soft);
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-link:hover,
.icon-button:hover,
.share-rail a:hover,
.share-rail button:hover {
	border-color: rgba(41, 214, 231, 0.55);
	background: rgba(41, 214, 231, 0.08);
	color: var(--color-cyan);
	transform: translateY(-2px);
}

.social-link svg,
.icon-button svg,
.share-rail svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.social-link .icon-fill,
.share-rail .icon-fill {
	fill: currentColor;
	stroke: none;
}

.menu-toggle {
	grid-column: 1;
	display: none;
	justify-self: start;
}

.menu-toggle .close-icon {
	display: none;
}

.menu-is-open .menu-toggle .menu-icon {
	display: none;
}

.menu-is-open .menu-toggle .close-icon {
	display: block;
}

.site-header__nav-wrap {
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	background: rgba(12, 14, 24, 0.95);
}

.primary-menu,
.primary-menu ul,
.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(17px, 3vw, 38px);
	min-height: 54px;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: flex;
	align-items: center;
	min-height: 54px;
	color: var(--color-text-soft);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-menu > li > a::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--gradient-spectrum);
	content: "";
	opacity: 0;
	transform: scaleX(0.35);
	transition: opacity 180ms ease, transform 180ms ease;
}

.primary-menu > li:hover > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
	color: #fff;
}

.primary-menu > li:hover > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after {
	opacity: 1;
	transform: scaleX(1);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 1px);
	left: -18px;
	z-index: 20;
	min-width: 210px;
	padding: 10px;
	border: 1px solid var(--color-border);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	min-height: auto;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.78rem;
}

.primary-menu .sub-menu a:hover {
	background: var(--color-surface-bright);
}

.header-search {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(5, 6, 12, 0.92);
	backdrop-filter: blur(14px);
}

.header-search__inner {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding-top: min(24vh, 220px);
}

.header-search .search-form {
	flex: 1;
}

.header-search .search-field {
	height: 72px;
	font-size: clamp(1.1rem, 3vw, 1.7rem);
}

.header-search .search-submit {
	min-height: 72px;
}

/* Search and buttons */
.search-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.search-form__label {
	flex: 1;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.widget input:not([type="submit"]),
.widget select {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
}

.search-field::placeholder,
.comment-form textarea::placeholder {
	color: var(--color-muted);
}

.search-submit,
.button,
.comment-form .submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--gradient-spectrum);
	box-shadow: 0 10px 30px rgba(155, 115, 255, 0.2);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter 180ms ease, transform 180ms ease;
}

.search-submit:hover,
.button:hover,
.comment-form .submit:hover,
.wp-block-button__link:hover {
	color: #fff;
	filter: brightness(1.12);
	transform: translateY(-2px);
}

.search-submit svg,
.section-link svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.button--secondary {
	border: 1px solid var(--color-border-strong);
	background: var(--color-surface-raised);
	box-shadow: none;
}

/* Front page */
.home-main {
	padding: 34px 0 100px;
}

.lead-section {
	margin-bottom: 28px;
}

.section-heading--visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.lead-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.9fr);
	gap: 14px;
	min-height: 620px;
}

.lead-story,
.post-card {
	position: relative;
	margin: 0;
}

.lead-story {
	min-height: 620px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
}

.lead-story__media,
.lead-story__media img,
.lead-story__media .media-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lead-story__media img {
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lead-story:hover .lead-story__media img {
	transform: scale(1.035);
}

.lead-story__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(6, 7, 13, 0.06) 15%, rgba(6, 7, 13, 0.3) 50%, rgba(6, 7, 13, 0.98) 100%),
		linear-gradient(90deg, rgba(6, 7, 13, 0.4), transparent 58%);
	pointer-events: none;
}

.lead-story__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: clamp(26px, 5vw, 54px);
}

.lead-story h2 {
	max-width: 900px;
	margin: 15px 0 15px;
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.5vw, 4.2rem);
	font-weight: 950;
	letter-spacing: -0.055em;
	line-height: 1.01;
}

.lead-story h2 a {
	text-decoration: none;
}

.lead-story h2 a:hover {
	color: #fff;
}

.lead-secondary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
}

.category-badge {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 4px 9px;
	border: 1px solid rgba(155, 115, 255, 0.56);
	border-color: color-mix(in srgb, var(--category-color, var(--color-violet)) 60%, transparent);
	border-radius: 999px;
	background: rgba(155, 115, 255, 0.13);
	background: color-mix(in srgb, var(--category-color, var(--color-violet)) 13%, transparent);
	color: #cbbcff;
	color: color-mix(in srgb, var(--category-color, var(--color-violet)) 76%, white);
	font-size: 0.69rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.category-badge:hover {
	background: var(--category-color, var(--color-violet));
	color: #080911;
}

.category-cinema { --category-color: #ff4d8d; }
.category-series { --category-color: #9b73ff; }
.category-games,
.category-jogos { --category-color: #29d6e7; }
.category-livros,
.category-hqs { --category-color: #ffc857; }
.category-teatro { --category-color: #ff7a4d; }
.category-musica { --category-color: #68e39b; }
.category-eventos { --category-color: #5f9dff; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 14px;
	color: var(--color-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.post-meta > * + * {
	position: relative;
}

.post-meta > * + *::before {
	position: absolute;
	top: 50%;
	left: -8px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--color-violet);
	content: "";
	transform: translateY(-50%);
}

.post-meta a {
	color: var(--color-text-soft);
	font-weight: 800;
	text-decoration: none;
}

.post-card {
	min-width: 0;
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface-raised);
}

.post-card__media img,
.post-card__media .media-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 350ms ease;
}

.post-card:hover .post-card__media img {
	filter: saturate(1.08);
	transform: scale(1.045);
}

.media-fallback {
	position: relative;
	display: grid;
	overflow: hidden;
	place-items: center;
	background:
		linear-gradient(145deg, rgba(255,255,255,0.06), transparent 42%),
		conic-gradient(from 220deg at 70% 35%, #161b2e, #4e2b79, #153d54, #161b2e);
}

.media-fallback::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 32px 32px;
	content: "";
	mask-image: linear-gradient(to bottom, black, transparent);
}

.media-fallback span {
	position: relative;
	background: var(--gradient-wordmark);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--font-display);
	font-size: clamp(2rem, 7vw, 5rem);
	font-weight: 950;
	letter-spacing: -0.08em;
}

.post-card__content {
	padding-top: 14px;
}

.post-card__title {
	margin: 9px 0 9px;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--color-cyan);
}

.post-card__excerpt {
	color: var(--color-muted);
	font-size: 0.92rem;
}

.post-card__excerpt p {
	margin: 0 0 12px;
}

.post-card--compact {
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.post-card--compact .post-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
}

.post-card--compact .post-card__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6,7,13,0.06) 5%, rgba(6,7,13,0.92) 100%);
	content: "";
}

.post-card--compact .post-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 18px;
}

.post-card--compact .post-card__title {
	margin-bottom: 6px;
	font-size: clamp(0.92rem, 1.35vw, 1.15rem);
}

.post-card--compact .post-meta__reading {
	display: none;
}

.empty-home {
	position: relative;
	min-height: 480px;
	padding: clamp(42px, 8vw, 96px);
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 82% 20%, rgba(41,214,231,0.16), transparent 17rem),
		radial-gradient(circle at 16% 86%, rgba(255,77,157,0.16), transparent 20rem),
		var(--color-surface);
}

.empty-home::after {
	position: absolute;
	right: -5%;
	bottom: -28%;
	width: 440px;
	aspect-ratio: 1;
	border: 80px solid rgba(155, 115, 255, 0.08);
	border-radius: 50%;
	content: "";
}

.empty-home__eyebrow,
.section-heading__eyebrow,
.archive-header__eyebrow,
.popular-panel__heading > span {
	display: block;
	margin-bottom: 7px;
	color: var(--color-cyan);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.empty-home h1 {
	max-width: 780px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.7rem, 7vw, 6rem);
	letter-spacing: -0.065em;
	line-height: 0.96;
}

.empty-home p {
	max-width: 560px;
	margin: 22px 0 28px;
	color: var(--color-muted);
	font-size: 1.08rem;
}

.topic-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 26px;
	padding: 15px 18px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: rgba(16, 19, 33, 0.74);
}

.topic-nav__label {
	flex: 0 0 auto;
	color: var(--color-pink);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.topic-nav__links {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.topic-nav__links a {
	flex: 0 0 auto;
	padding: 5px 11px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text-soft);
	font-size: 0.78rem;
	font-weight: 750;
	text-decoration: none;
}

.topic-nav__links a:hover {
	border-color: var(--color-cyan);
	color: #fff;
}

.content-section {
	margin-top: clamp(60px, 8vw, 104px);
}

.section-heading {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 26px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--color-border);
}

.section-heading::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: min(130px, 30%);
	height: 3px;
	background: var(--gradient-spectrum);
	content: "";
}

.section-heading h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3.2vw, 3rem);
	font-weight: 950;
	letter-spacing: -0.05em;
	line-height: 1;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	color: var(--color-text-soft);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.section-link:hover {
	color: var(--color-cyan);
}

.latest-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: clamp(28px, 5vw, 66px);
}

.post-grid {
	display: grid;
	gap: 34px 20px;
}

.post-grid--latest {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.popular-panel {
	align-self: start;
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: linear-gradient(145deg, rgba(26, 32, 52, 0.8), rgba(13, 16, 28, 0.92));
	box-shadow: var(--shadow-soft);
}

.popular-panel__heading {
	margin-bottom: 20px;
}

.popular-panel__heading h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 2.2rem;
	letter-spacing: -0.05em;
	line-height: 1;
}

.popular-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.popular-list li {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 12px;
	padding: 19px 0;
	border-top: 1px solid var(--color-border);
}

.popular-list__number {
	background: var(--gradient-wordmark);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--font-display);
	font-size: 1.65rem;
	font-weight: 950;
	letter-spacing: -0.08em;
	line-height: 1;
}

.popular-list h3 {
	margin: 8px 0 0;
	font-size: 0.98rem;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.popular-list h3 a {
	text-decoration: none;
}

.category-feature-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.75fr));
	grid-template-rows: repeat(2, minmax(190px, 1fr));
	gap: 16px;
}

.category-feature-grid .post-card--wide {
	grid-row: 1 / span 2;
}

.category-feature-grid .post-card--wide .post-card__media {
	aspect-ratio: 16 / 11;
}

.category-feature-grid .post-card--wide .post-card__title {
	font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.ad-slot {
	padding: 12px;
	border: 1px dashed var(--color-border-strong);
	border-radius: var(--radius-sm);
	color: var(--color-muted);
	text-align: center;
}

.ad-slot--top {
	margin-bottom: 26px;
}

.ad-slot--inline {
	margin-top: 70px;
}

.ad-slot .widget {
	margin: 0;
}

/* Archives */
.inner-main {
	padding: 34px 0 100px;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 42px;
	color: var(--color-muted);
	font-size: 0.76rem;
}

.breadcrumbs a {
	color: var(--color-text-soft);
	font-weight: 750;
	text-decoration: none;
}

.breadcrumbs span[aria-hidden="true"] {
	color: rgba(255, 255, 255, 0.26);
}

.breadcrumbs span[aria-current="page"] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.archive-header {
	max-width: 900px;
	margin-bottom: 48px;
}

.archive-header h1,
.page-header h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 6vw, 5.8rem);
	font-weight: 950;
	letter-spacing: -0.065em;
	line-height: 0.98;
}

.archive-header > p,
.archive-description {
	max-width: 720px;
	margin-top: 20px;
	color: var(--color-muted);
	font-size: 1.05rem;
}

.archive-description p {
	margin: 0;
}

.archive-header--search .search-form {
	max-width: 720px;
	margin-top: 28px;
}

.post-grid--archive {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 22px;
}

.navigation.pagination {
	margin-top: 66px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	place-items: center;
	padding-inline: 10px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text-soft);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: transparent;
	background: var(--gradient-spectrum);
	color: #fff;
}

.nothing-found {
	max-width: 720px;
	padding: clamp(36px, 6vw, 72px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.nothing-found__mark {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(155, 115, 255, 0.5);
	border-radius: 50%;
	color: var(--color-violet);
	font-family: var(--font-display);
	font-size: 1.6rem;
}

.nothing-found h2 {
	margin: 18px 0 8px;
	font-size: 2rem;
	letter-spacing: -0.04em;
}

.nothing-found p {
	margin: 0 0 22px;
	color: var(--color-muted);
}

/* Single article and pages */
.article-main {
	padding: 34px 0 0;
}

.article-shell {
	max-width: 1180px;
}

.article-header {
	max-width: 1020px;
	margin: 0 auto 34px;
	text-align: center;
}

.article-header h1 {
	margin: 16px 0 20px;
	font-family: var(--font-display);
	font-size: clamp(2.7rem, 6.3vw, 6.2rem);
	font-weight: 950;
	letter-spacing: -0.068em;
	line-height: 0.97;
}

.article-deck {
	max-width: 820px;
	margin: 0 auto 20px;
	color: var(--color-text-soft);
	font-size: clamp(1.08rem, 1.8vw, 1.3rem);
	line-height: 1.55;
}

.article-deck p {
	margin: 0;
}

.article-header .post-meta {
	justify-content: center;
}

.article-featured-image {
	max-width: 1120px;
	margin: 0 auto 46px;
}

.article-featured-image img {
	width: 100%;
	max-height: 690px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.article-featured-image figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: 10px;
	color: var(--color-muted);
	font-size: 0.76rem;
}

.article-layout {
	display: grid;
	grid-template-columns: 64px minmax(0, var(--content-width)) minmax(240px, 1fr);
	justify-content: center;
	gap: 34px;
}

.article-content-wrap {
	min-width: 0;
}

.share-rail {
	position: sticky;
	top: 24px;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.share-rail > span {
	margin-bottom: 7px;
	color: var(--color-muted);
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}

.article-sidebar {
	min-width: 0;
}

.entry-content {
	color: var(--color-text-soft);
}

.article-content {
	font-size: clamp(1.04rem, 1.35vw, 1.16rem);
	line-height: 1.82;
}

.entry-content > * {
	max-width: 100%;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 2em 0 0.62em;
	color: var(--color-text);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.16;
}

.entry-content h2 {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.entry-content h3 {
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.45em;
}

.entry-content a {
	color: #7ce8ef;
}

.entry-content strong {
	color: #fff;
}

.entry-content blockquote,
.wp-block-quote {
	position: relative;
	margin: 2em 0;
	padding: 24px 26px 24px 32px;
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-pink);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 1.08em;
}

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

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-embed {
	margin-block: 2em;
}

.entry-content figure img,
.entry-content .wp-block-image img {
	border-radius: var(--radius-md);
}

.entry-content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-size: 0.92em;
}

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

.entry-content th {
	background: var(--color-surface-raised);
	color: #fff;
}

.entry-content pre {
	max-width: 100%;
	padding: 20px;
	overflow-x: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #04050a;
}

.entry-content .alignwide {
	width: min(1040px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.article-tags {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--color-border);
}

.article-tags > span {
	color: var(--color-muted);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.article-tags a {
	display: inline-flex;
	margin: 0 6px 7px 0;
	padding: 5px 10px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none;
}

.author-box {
	display: grid;
	grid-template-columns: 78px 1fr;
	gap: 19px;
	margin-top: 48px;
	padding: 25px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.author-box img,
.author-header img {
	border-radius: 50%;
}

.author-box span {
	color: var(--color-cyan);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.author-box h2 {
	margin: 2px 0 7px;
	font-size: 1.25rem;
}

.author-box h2 a {
	text-decoration: none;
}

.author-box p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.widget {
	margin-bottom: 22px;
	padding: 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	color: var(--color-text-soft);
}

.widget-title,
.widget h2 {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.widget ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--color-border);
}

.widget a {
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.related-posts {
	margin-top: 90px;
	padding: 74px 0 86px;
	border-top: 1px solid var(--color-border);
	background: rgba(16, 19, 33, 0.55);
}

.post-grid--related {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comments-shell {
	max-width: var(--content-width);
}

.comments-area {
	padding: 72px 0 100px;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 28px;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	letter-spacing: -0.05em;
}

.comment-list {
	padding: 0;
	margin: 0 0 50px;
	list-style: none;
}

.comment-list .children {
	padding-left: 34px;
	list-style: none;
}

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

.comment-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

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

.comment-author .fn {
	font-style: normal;
	font-weight: 850;
}

.comment-metadata {
	font-size: 0.74rem;
}

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

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

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

.comment-form textarea {
	min-height: 160px;
	resize: vertical;
}

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

.page-shell {
	max-width: 980px;
}

.page-header {
	margin-bottom: 36px;
}

.page-article .entry-content {
	max-width: var(--content-width);
	margin-inline: auto;
	font-size: 1.08rem;
	line-height: 1.78;
}

.page-featured-image {
	margin: 0 0 42px;
}

.page-featured-image img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.author-header {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 28px;
	align-items: center;
	max-width: 850px;
	margin-bottom: 64px;
	padding: 30px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.author-header h1 {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3.8rem);
	letter-spacing: -0.06em;
	line-height: 1;
}

.author-header p {
	margin: 0;
	color: var(--color-muted);
}

/* 404 */
.error-main {
	display: grid;
	min-height: 68vh;
	place-items: center;
	padding: 70px 0 100px;
}

.error-layout {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: clamp(30px, 7vw, 100px);
	align-items: center;
}

.error-code {
	background: var(--gradient-wordmark);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--font-display);
	font-size: clamp(8rem, 20vw, 17rem);
	font-weight: 950;
	letter-spacing: -0.1em;
	line-height: 0.78;
}

.error-copy h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.3rem, 5vw, 4.6rem);
	letter-spacing: -0.06em;
	line-height: 0.98;
}

.error-copy p {
	max-width: 590px;
	margin: 20px 0 26px;
	color: var(--color-muted);
}

.error-copy .search-form {
	max-width: 620px;
	margin-bottom: 14px;
}

/* Footer */
.site-footer {
	background: #06070c;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
	gap: clamp(32px, 5vw, 70px);
	padding-block: 64px;
}

.wordmark--footer {
	align-items: flex-start;
}

.wordmark--footer .wordmark__espectro {
	font-size: 2.2rem;
}

.wordmark--footer .wordmark__portal {
	font-size: 0.55rem;
}

.footer-brand p,
.footer-contact p {
	max-width: 310px;
	color: var(--color-muted);
	font-size: 0.88rem;
}

.site-footer h2 {
	margin: 0 0 16px;
	color: var(--color-text);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.footer-menu li + li {
	margin-top: 9px;
}

.footer-menu a,
.footer-contact a {
	color: var(--color-text-soft);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.footer-widgets .widget {
	padding: 0;
	border: 0;
	background: transparent;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: 0.74rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	font-weight: 800;
	text-decoration: none;
}

@media (max-width: 1100px) {
	.lead-grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
		min-height: 560px;
	}

	.lead-story {
		min-height: 560px;
	}

	.lead-secondary {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, 1fr);
	}

	.lead-secondary .post-card:nth-child(n + 3) {
		display: none;
	}

	.latest-layout {
		grid-template-columns: minmax(0, 1fr) 310px;
		gap: 32px;
	}

	.category-feature-grid {
		grid-template-columns: 1.25fr 0.75fr;
		grid-template-rows: repeat(3, minmax(175px, auto));
	}

	.category-feature-grid .post-card--wide {
		grid-row: 1 / span 3;
	}

	.article-layout {
		grid-template-columns: 54px minmax(0, var(--content-width));
	}

	.article-sidebar {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: 1.25fr 0.75fr 1fr;
	}

	.footer-widgets {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.site-shell {
		width: min(calc(100% - 30px), var(--site-width));
	}

	.site-header__main {
		min-height: 90px;
		padding-block: 15px;
	}

	.menu-toggle {
		display: inline-grid;
	}

	.header-actions .social-links {
		display: none;
	}

	.site-description {
		display: none;
	}

	.wordmark__espectro {
		font-size: clamp(1.6rem, 7vw, 2.3rem);
	}

	.wordmark__portal {
		font-size: 0.52rem;
	}

	.custom-logo {
		max-width: 52vw;
		max-height: 58px;
	}

	.site-header__nav-wrap {
		position: absolute;
		inset: 100% 0 auto;
		z-index: 45;
		max-height: calc(100vh - 94px);
		overflow-y: auto;
		background: rgba(7, 8, 16, 0.99);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-10px);
		visibility: hidden;
		transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	}

	.menu-is-open .site-header__nav-wrap {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
		visibility: visible;
	}

	.primary-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 28px 0 60px;
	}

	.primary-menu a {
		min-height: 54px;
		font-size: 1rem;
	}

	.primary-menu > li > a::after {
		display: none;
	}

	.primary-menu .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 18px;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.primary-menu .sub-menu a {
		font-size: 0.86rem;
	}

	.home-main {
		padding-top: 20px;
	}

	.lead-grid {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.lead-story {
		min-height: 510px;
	}

	.lead-secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, 240px);
	}

	.lead-secondary .post-card:nth-child(n + 3) {
		display: block;
	}

	.latest-layout {
		grid-template-columns: 1fr;
	}

	.popular-panel {
		margin-top: 20px;
	}

	.category-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto repeat(2, 230px);
	}

	.category-feature-grid .post-card--wide {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.category-feature-grid .post-card--wide .post-card__media {
		aspect-ratio: 16 / 9;
	}

	.post-grid--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-layout {
		display: block;
		max-width: var(--content-width);
		margin-inline: auto;
	}

	.share-rail {
		position: static;
		flex-direction: row;
		justify-content: flex-start;
		margin-bottom: 28px;
	}

	.share-rail > span {
		margin: 0 8px 0 0;
		writing-mode: horizontal-tb;
	}

	.post-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-grid--related .post-card:last-child {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.error-layout {
		grid-template-columns: 1fr;
	}

	.error-code {
		font-size: clamp(7rem, 35vw, 12rem);
	}
}

@media (max-width: 580px) {
	.site-shell {
		width: min(calc(100% - 24px), var(--site-width));
	}

	.announcement__inner {
		align-items: flex-start;
		padding-block: 8px;
	}

	.announcement__label {
		margin-top: 2px;
	}

	.icon-button,
	.social-link,
	.share-rail a,
	.share-rail button {
		width: 38px;
		height: 38px;
	}

	.header-search__inner {
		align-items: stretch;
		flex-direction: column;
		padding-top: 16vh;
	}

	.header-search .search-close {
		position: absolute;
		top: 24px;
		right: 18px;
	}

	.search-form {
		flex-direction: column;
	}

	.header-search .search-field,
	.header-search .search-submit {
		min-height: 58px;
		height: auto;
	}

	.lead-story {
		min-height: 450px;
	}

	.lead-story__content {
		padding: 22px;
	}

	.lead-story h2 {
		font-size: clamp(1.75rem, 9vw, 2.65rem);
	}

	.lead-secondary {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, 235px);
	}

	.topic-nav {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.topic-nav__links {
		width: 100%;
	}

	.content-section {
		margin-top: 64px;
	}

	.section-heading {
		align-items: flex-start;
	}

	.section-heading h2 {
		font-size: 2rem;
	}

	.section-link {
		padding-top: 6px;
		font-size: 0;
	}

	.section-link svg {
		width: 24px;
		height: 24px;
	}

	.post-grid--latest,
	.post-grid--archive,
	.post-grid--related {
		grid-template-columns: 1fr;
	}

	.post-grid--related .post-card:last-child {
		display: block;
	}

	.category-feature-grid {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto repeat(3, 240px);
	}

	.category-feature-grid .post-card--wide {
		grid-column: auto;
	}

	.popular-panel {
		padding: 22px;
	}

	.archive-header h1,
	.page-header h1 {
		font-size: clamp(2.35rem, 13vw, 4rem);
	}

	.article-header {
		text-align: left;
	}

	.article-header h1 {
		font-size: clamp(2.35rem, 12vw, 4.2rem);
	}

	.article-header .post-meta {
		justify-content: flex-start;
	}

	.article-featured-image {
		width: calc(100% + 24px);
		margin-left: -12px;
	}

	.article-featured-image img {
		border-radius: 0;
	}

	.article-content {
		font-size: 1.03rem;
		line-height: 1.76;
	}

	.author-box {
		grid-template-columns: 58px 1fr;
		padding: 20px;
	}

	.author-box img {
		width: 58px;
		height: 58px;
	}

	.author-header {
		grid-template-columns: 72px 1fr;
		padding: 22px;
	}

	.author-header img {
		width: 72px;
		height: 72px;
	}

	.comment-list .children {
		padding-left: 14px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		padding-block: 50px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
