/* ==========================================================================
   Cafe Zocalo — single.css
   Single blog post (Journal article) layout. Enqueued on is_singular('post').
   No wireframe/docx spec exists for the post detail view — styled to match the
   Journal index and the site design system.
   ========================================================================== */

/* ── Post header ───────────────────────────────────────────────────────── */
.cz-post__header {
	background: var(--surface-warm);
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.cz-post__header-inner {
	max-width: 760px;
	padding-top: 64px;
	padding-bottom: 48px;
}

/* Back to the Journal — above the title. */
.cz-post__back {
	margin-bottom: 18px;
}

.cz-post__back a {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--terracotta-deep);
}

.cz-post__back a:hover {
	color: var(--terracotta);
}

.cz-post__back i {
	margin-right: 6px;
}

/* Category — plain text in the meta line (not linked). */
.cz-post__cat {
	color: var(--terracotta-deep);
	font-weight: 700;
}

.cz-post__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 50px);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.8px;
	line-height: 1.1;
	margin-bottom: 16px;
}

.cz-post__meta {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.5px;
	color: var(--ink-soft);
}

/* ── Featured image ────────────────────────────────────────────────────── */
/* Featured image — full viewport width, edge to edge. */
.cz-post__media {
	margin: 0;
}

.cz-post__media img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	display: block;
}

/* ── Article body (prose) ──────────────────────────────────────────────── */
.cz-post__body {
	padding: 56px 0 72px;
	background: var(--bg-primary);
}

.cz-post__content {
	max-width: 1100px;
	margin: 0 auto;
}

.cz-post__content > * {
	margin-bottom: 1.4em;
}

.cz-post__content > *:last-child {
	margin-bottom: 0;
}

.cz-post__content p {
	font-size: 17px;
	line-height: 1.85;
	color: var(--ink-mid);
}

.cz-post__content h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 3.5vw, 30px);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.4px;
	margin-top: 1.8em;
}

.cz-post__content h3 {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 22px;
	font-weight: 500;
	color: var(--terracotta-deep);
	margin-top: 1.6em;
}

.cz-post__content a {
	color: var(--terracotta-deep);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cz-post__content a:hover {
	color: var(--terracotta);
}

.cz-post__content ul,
.cz-post__content ol {
	padding-left: 24px;
	color: var(--ink-mid);
	font-size: 17px;
	line-height: 1.85;
}

.cz-post__content ul {
	list-style: disc;
}

.cz-post__content ol {
	list-style: decimal;
}

.cz-post__content li {
	margin-bottom: 0.5em;
}

.cz-post__content blockquote {
	margin: 1.6em 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--terracotta);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 21px;
	line-height: 1.5;
	color: var(--ink);
}

.cz-post__content img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.cz-post__content figcaption {
	font-size: 13px;
	color: var(--ink-soft);
	text-align: center;
	margin-top: 8px;
}

/* ── Tags ──────────────────────────────────────────────────────────────── */
.cz-post__tags {
	max-width: 1100px;
	margin: 36px auto 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.5px;
	color: var(--ink-soft);
}

.cz-post__tags a {
	color: var(--terracotta-deep);
}

/* ── Prev / next navigation ────────────────────────────────────────────── */
.cz-post__nav {
	max-width: 1100px;
	margin: 44px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.cz-post__nav a {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--terracotta-deep);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cz-post__nav a:hover {
	color: var(--terracotta);
}

.cz-post__nav .cz-post__nav--next {
	text-align: right;
	margin-left: auto;
}

/* ── Closing CTA ───────────────────────────────────────────────────────── */
.cz-post-cta {
	padding: 72px 0;
	background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
	color: var(--pure-white);
}

.cz-post-cta__inner {
	text-align: center;
}

.cz-post-cta__headline {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 600;
	color: var(--pure-white);
	letter-spacing: -0.6px;
	margin-bottom: 14px;
}

.cz-post-cta__body {
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
	max-width: 50ch;
	margin: 0 auto 26px;
}

.cz-post-cta__actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.cz-post__header-inner {
		padding-top: 48px;
		padding-bottom: 36px;
	}

	.cz-post__body {
		padding: 40px 0 56px;
	}

	.cz-post-cta {
		padding: 56px 0;
	}

	.cz-post__nav a {
		max-width: 100%;
	}
}
