/* NEXA Blog — list, archive and single-post templates. Matches the site's
   industrial design: Sora type, paper/ink palette, terracotta accent,
   hairline borders, 1440px container, paper full-bleed. */

/* ---- Shared shell (list & archive) ---- */
.nexa-blog {
	--nx-ink: #0d1315;
	--nx-paper: #f0f3f1;
	--nx-muted: #5d6869;
	--nx-accent: #a8613e;
	--nx-line: rgba(13, 19, 21, 0.16);
	box-sizing: border-box;
	width: 100%;
	padding-inline: 32px;
	background: var(--nx-paper);
	color: var(--nx-ink);
}
.nexa-blog,
.nexa-blog * {
	box-sizing: border-box;
}
.nexa-blog > * {
	max-width: 1440px;
	margin-inline: auto;
}
.nexa-blog__inner {
	padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
}
.nexa-blog h1,
.nexa-blog h2,
.nexa-blog h3 {
	margin: 0;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
}
.nexa-blog__index {
	margin: 0 0 18px;
	color: var(--nx-muted);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nexa-blog__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 5vw, 52px);
}
.nexa-blog__lede {
	max-width: 620px;
	margin: 0;
	color: var(--nx-muted);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Grid ---- */
.nexa-blog__grid {
	margin-top: clamp(32px, 4vw, 48px);
}
.nexa-blog__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.nexa-blog__list > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.nexa-blog__list > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(13, 19, 21, 0.12);
	border-color: rgba(13, 19, 21, 0.28);
}
.nexa-blog__thumb {
	display: block;
	width: 100%;
	margin: 0;
}
.nexa-blog__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #dfe6e4;
	margin: 0;
	transition: transform 240ms ease;
}
.nexa-blog__list > li:hover .nexa-blog__thumb img {
	transform: scale(1.03);
}
.nexa-blog__card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 24px;
}
.nexa-blog__card-title {
	margin: 0 0 12px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
}
.nexa-blog__card-title a {
	color: var(--nx-ink);
	text-decoration: none;
}
.nexa-blog__card-title a:hover {
	color: var(--nx-accent);
}
.nexa-blog__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 0 0 12px;
}
.nexa-blog__date {
	margin: 0;
	color: var(--nx-muted);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nexa-blog__cats {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}
.nexa-blog__cats .wp-block-post-terms__separator {
	display: none;
}
.nexa-blog__cats a {
	color: var(--nx-accent);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.nexa-blog__cats a:hover {
	text-decoration: underline;
}
.nexa-blog__excerpt {
	margin: 0;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}
.nexa-blog__excerpt a {
	color: var(--nx-accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.nexa-blog__excerpt a:hover {
	text-decoration: underline;
}

/* ---- Pagination ---- */
.nexa-blog__pagination {
	margin-top: clamp(36px, 5vw, 52px);
}
.nexa-blog__pagination .wp-block-query-pagination {
	gap: 12px;
}
.nexa-blog__pagination a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid var(--nx-line);
	border-radius: 6px;
	background: #ffffff;
	color: var(--nx-ink);
	font: 600 14px/1.2 "Sora", sans-serif;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}
.nexa-blog__pagination a:hover {
	background: var(--nx-ink);
	color: #ffffff;
}
.nexa-blog__pagination .wp-block-query-pagination-numbers a.current {
	background: var(--nx-accent);
	color: #ffffff;
	border-color: var(--nx-accent);
}

/* ---- Empty state ---- */
.nexa-blog__empty {
	max-width: 640px;
	margin: 0;
	padding: 40px;
	border: 1px dashed var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

/* ============================================================
   Single post
   ============================================================ */
.nexa-post {
	--nx-ink: #0d1315;
	--nx-paper: #f0f3f1;
	--nx-muted: #5d6869;
	--nx-accent: #a8613e;
	--nx-line: rgba(13, 19, 21, 0.16);
	box-sizing: border-box;
	width: 100%;
	padding-inline: 32px;
	background: var(--nx-paper);
	color: var(--nx-ink);
}
.nexa-post,
.nexa-post * {
	box-sizing: border-box;
}
.nexa-post > * {
	max-width: 1440px;
	margin-inline: auto;
}
.nexa-post__inner {
	padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
}
.nexa-post h1,
.nexa-post h2,
.nexa-post h3 {
	font-weight: 500;
	letter-spacing: -0.01em;
}
.nexa-post__back {
	margin: 0 0 28px;
}
.nexa-post__back a {
	color: var(--nx-accent);
	font: 700 12px/1.2 "Sora", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.nexa-post__back a:hover {
	text-decoration: underline;
}
.nexa-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 0 0 16px;
}
.nexa-post__date {
	margin: 0;
	color: var(--nx-muted);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nexa-post__cats {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}
.nexa-post__cats .wp-block-post-terms__separator {
	display: none;
}
.nexa-post__cats a {
	color: var(--nx-accent);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.nexa-post__cats a:hover {
	text-decoration: underline;
}
.nexa-post__title {
	margin: 0 0 30px;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.08;
}
.nexa-post__thumb {
	display: block;
	width: 100%;
	margin: 0 0 44px;
	max-width: 1000px;
}
.nexa-post__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	background: #dfe6e4;
	margin: 0;
}

/* ---- Article typography ---- */
.nexa-post__content {
	max-width: 760px;
	margin-inline: auto;
}
.nexa-post__content > * {
	margin-block-start: 0;
}
.nexa-post__content p {
	margin: 0 0 1.5em;
	color: var(--nx-ink);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
}
.nexa-post__content h1,
.nexa-post__content h2,
.nexa-post__content h3,
.nexa-post__content h4 {
	margin: 1.8em 0 0.7em;
	color: var(--nx-ink);
	line-height: 1.2;
}
.nexa-post__content h2 {
	font-size: 28px;
}
.nexa-post__content h3 {
	font-size: 22px;
}
.nexa-post__content a {
	color: var(--nx-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.nexa-post__content ul,
.nexa-post__content ol {
	margin: 0 0 1.5em;
	padding-left: 1.4em;
	color: var(--nx-ink);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
}
.nexa-post__content li {
	margin: 0 0 0.4em;
}
.nexa-post__content blockquote {
	margin: 0 0 1.5em;
	padding: 4px 0 4px 1.3em;
	border-left: 3px solid var(--nx-accent);
	color: var(--nx-muted);
	font-size: 19px;
	font-style: italic;
	line-height: 1.6;
}
.nexa-post__content blockquote p {
	color: inherit;
	font-size: inherit;
	font-style: inherit;
}
.nexa-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.nexa-post__content figure {
	margin: 0 0 1.5em;
}
.nexa-post__content figcaption {
	margin-top: 8px;
	color: var(--nx-muted);
	font-size: 13px;
	font-weight: 300;
	text-align: center;
}
.nexa-post__content table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 15px;
	font-weight: 300;
}
.nexa-post__content th,
.nexa-post__content td {
	padding: 11px 14px;
	border: 1px solid var(--nx-line);
	text-align: left;
}
.nexa-post__content th {
	background: #ffffff;
	color: var(--nx-ink);
	font-weight: 600;
}
.nexa-post__content hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--nx-line);
}
.nexa-post__content code {
	padding: 2px 6px;
	border-radius: 4px;
	background: #dfe6e4;
	font-size: 0.9em;
}

/* ---- Post CTA ---- */
.nexa-post__cta {
	max-width: 1000px;
	margin: clamp(44px, 6vw, 72px) auto 0;
	padding: clamp(32px, 4vw, 48px);
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: #ffffff;
	text-align: center;
}
.nexa-post__cta-title {
	margin: 0;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 500;
}
.nexa-post__cta-text {
	max-width: 560px;
	margin: 14px auto 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}
.nexa-post__cta-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 26px;
}
.nexa-post__cta-btn .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}
.nexa-post__cta-btn .wp-block-button__link:hover {
	background: #8d5230;
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
	.nexa-blog__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 820px) {
	.nexa-blog,
	.nexa-post {
		padding-inline: 18px;
	}
	.nexa-blog__list {
		grid-template-columns: 1fr;
	}
	.nexa-post__content {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexa-blog__list > li,
	.nexa-blog__thumb img,
	.nexa-post__content a,
	.nexa-post__cta-btn .wp-block-button__link,
	.nexa-blog__pagination a {
		transition: none;
	}
	.nexa-blog__list > li:hover,
	.nexa-blog__list > li:hover .nexa-blog__thumb img {
		transform: none;
	}
}
