/* Ghost-inspired blog listing and post layout */
.blog-body {
	overflow-x: clip;
}

.blog-navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: #fff;
}

.blog-main {
	overflow: visible;
}

.blog-post,
.blog-post-hero,
.blog-post-header {
	overflow: visible;
}

/* Landing global * { transition: all } can clip animated text; disable on blog */
.blog-main *,
.blog-navbar * {
	transition: none;
}

.blog-index-hero {
	background: var(--mid-peach, #fff3ec);
	padding: 4rem 0 3rem;
	border-bottom: 3px solid var(--dark-blue, #1f212e);
}

.blog-index-hero h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	margin-bottom: 0.75rem;
}

.blog-index-hero p {
	font-size: 1.125rem;
	max-width: 42rem;
	margin: 0 auto;
	opacity: 0.85;
}

.blog-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 2rem;
	padding: 3rem 0 4rem;
}

.blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 3px solid var(--dark-blue, #1f212e);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 6px 7px 0 0 var(--dark-blue, #1f212e);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.blog-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 8px 9px 0 0 var(--dark-blue, #1f212e);
	color: inherit;
}

.blog-card-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--light-grey, #f4f4f4);
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-card-body {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.blog-tag {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--yellow, #f4c13e);
	border: 2px solid var(--dark-blue, #1f212e);
}

.blog-card-title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

.blog-card-excerpt {
	font-size: 0.95rem;
	line-height: 1.55;
	margin-bottom: 1rem;
	flex: 1;
	opacity: 0.9;
}

.blog-card-meta {
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0.75;
	margin-top: auto;
}

.blog-post-hero {
	padding: 2rem 0 3rem;
}

.blog-post-header {
	max-width: 48rem;
	margin: 0 auto 2rem;
	width: 100%;
}

.blog-post-hero .blog-tag-list {
	justify-content: center;
}

.blog-post-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	max-width: 100%;
	margin: 0 auto 1rem;
	overflow: visible;
}

.blog-post-meta {
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 0.8;
	margin-bottom: 2rem;
}

.blog-post-featured {
	max-width: 56rem;
	margin: 0 auto;
	border-radius: 16px;
	overflow: visible;
	border: 3px solid var(--dark-blue, #1f212e);
	box-shadow: 6px 7px 0 0 var(--dark-blue, #1f212e);
	background: #fff;
}

.blog-post-featured img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 13px;
	vertical-align: middle;
}

.blog-prose {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0 0 4rem;
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose h5,
.blog-prose h6 {
	line-height: 1.25;
	overflow: visible;
}

.blog-prose h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 2.5rem 0 1rem;
	line-height: 1.25;
}

.blog-prose h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 2rem 0 0.75rem;
}

.blog-prose p {
	margin-bottom: 1.25rem;
}

.blog-prose ul,
.blog-prose ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.blog-prose li {
	margin-bottom: 0.5rem;
}

.blog-prose-table-wrap {
	overflow-x: auto;
	margin: 1.5rem 0;
	-webkit-overflow-scrolling: touch;
}

.blog-prose table {
	width: 100%;
	min-width: 28rem;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95rem;
}

.blog-prose th,
.blog-prose td {
	border: 2px solid var(--dark-blue, #1f212e);
	padding: 0.65rem 0.85rem;
	text-align: left;
}

.blog-prose th {
	background: var(--light-grey, #f4f4f4);
	font-weight: 700;
}

.blog-prose pre {
	background: #1f212e;
	color: #f4f4f4;
	padding: 1.25rem;
	border-radius: 12px;
	overflow-x: auto;
	margin: 1.5rem 0;
	font-size: 0.875rem;
	line-height: 1.5;
}

.blog-prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9em;
}

.blog-prose :not(pre) > code {
	background: var(--light-grey, #f4f4f4);
	padding: 0.15em 0.35em;
	border-radius: 4px;
}

.blog-prose a {
	color: var(--dark-blue, #1f212e);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.blog-prose blockquote {
	border-left: 4px solid var(--yellow, #f4c13e);
	margin: 1.5rem 0;
	padding-left: 1rem;
	opacity: 0.95;
}

.blog-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	text-decoration: none;
	color: var(--dark-blue, #1f212e);
	white-space: nowrap;
	max-width: 100%;
}

.blog-back-link:hover {
	text-decoration: underline;
}
