/* ============================================================
   Single post (single.php) â€” breadcrumb, meta row, cover image,
   article body typography, tags/share, related posts
   ============================================================ */

.narrow {
	max-width: 1150px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Breadcrumb */
.crumb {
	padding: 28px 0 0;
}
.crumb .narrow {
	display: flex;
	gap: 8px;
	align-items: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #8A8E95;
}
.crumb a:hover {
	color: var(--teal);
}

/* Post header */
.post-head {
	padding: 24px 0 36px;
}
.post-head h1 {
	font-size: clamp(30px, 4.2vw, 44px);
	line-height: 1.12;
	margin: 16px 0 22px;
}
.meta-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.author {
	display: flex;
	align-items: center;
	gap: 10px;
}
.author img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
}
.author-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.author-date {
	font-size: 12.5px;
	color: #7A7E85;
	font-family: 'IBM Plex Mono', monospace;
}
.meta-sep {
	width: 1px;
	height: 28px;
	background: var(--line);
}
.read-time {
	font-size: 13px;
	color: #7A7E85;
}

/* Cover image */
.cover {
	padding-bottom: 48px;
}
.cover img {
	width: 100%;
	aspect-ratio: 16/8;
	object-fit: cover;
	object-position: center top;
	border: 1px solid var(--line);
}
.cover figcaption {
	font-size: 12.5px;
	color: #8A8E95;
	margin-top: 10px;
	font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 640px) {
	.cover img {
		aspect-ratio: auto;
		object-fit: contain;
		background: var(--paper);
		max-height: 150px;
	}
}

/* Article body typography */
.post-body {
	padding-bottom: 64px;
}
.post-body p {
	font-size: 17px;
	color: #33363D;
	margin-bottom: 22px;
	line-height: 1.7;
}
.post-body p.lede,
.post-body > p:first-of-type {
	font-size: 19px;
	color: var(--ink);
	font-weight: 500;
}
.post-body h2 {
	font-size: 24px;
	margin: 44px 0 16px;
}
.post-body h3 {
	font-size: 20px;
	margin: 32px 0 14px;
}
.post-body blockquote {
	border-left: 3px solid var(--gold);
	padding: 4px 0 4px 24px;
	margin: 36px 0;
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-size: 21px;
	color: var(--ink);
	line-height: 1.5;
}
.post-body ul,
.post-body ol {
	margin: 0 0 22px 20px;
}
.post-body li {
	font-size: 16px;
	color: #33363D;
	margin-bottom: 8px;
	line-height: 1.6;
}
.post-body img {
	width: 100%;
	margin: 24px 0;
	border: 1px solid var(--line);
}
.post-body a {
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tags / share footer */
.post-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 28px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-bottom: 64px;
}
.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tag-chip {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--teal);
	border: 1px solid var(--line);
	padding: 6px 12px;
}
.share {
	display: flex;
	gap: 10px;
	align-items: center;
}
.share span {
	font-size: 13px;
	color: #7A7E85;
}
.share a {
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: border-color 0.15s ease;
}
.share a:hover {
	border-color: var(--teal);
}
.share svg {
	width: 15px;
	height: 15px;
	fill: var(--ink);
}

/* Related posts */
.related {
	background: var(--paper);
	border-top: 1px solid var(--line);
	padding: 80px 0 96px;
}
.related .wrap > h2 {
	font-size: 26px;
	margin-bottom: 36px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.related-grid .card {
	background: var(--cream);
	border: 1px solid var(--line);
	display: block;
}
.related-grid .card img {
	aspect-ratio: 16/10;
	object-fit: cover;
	width: 100%;
}
.related-grid .card-body {
	padding: 20px;
}
.related-grid .card .date {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	color: var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 8px;
}
.related-grid .card h3 {
	font-size: 16.5px;
	line-height: 1.3;
	color: var(--ink);
}

@media (max-width: 860px) {
	.narrow {
		padding: 0 20px;
	}
	.related-grid {
		grid-template-columns: 1fr;
	}
}