/* ══════════════════════════════════════════════════════════════════
   Blog layer — inherits the design tokens (:root vars) from style.css
   ══════════════════════════════════════════════════════════════════ */

.content {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
	min-height: 60vh;
}

/* ── shared section label (matches homepage) ── */
.blog-index .section-label {
	font-family: var(--mono);
	font-size: 0.82rem;
	color: var(--acc);
	margin-bottom: 0.75rem;
}
.blog-title {
	font-family: var(--mono);
	font-weight: 600;
	font-size: clamp(1.8rem, 5vw, 2.6rem);
	letter-spacing: -0.03em;
	margin-bottom: 1rem;
}
.blog-intro {
	color: var(--ink-dim);
	font-size: 1.05rem;
	max-width: 60ch;
	margin-bottom: 3rem;
}
.blog-empty { color: var(--ink-faint); font-family: var(--mono); }

/* ── post list (index) ── */
.post-list { list-style: none; }
.post-list-item { border-top: 1px solid var(--line-soft); }
.post-list-item:last-child { border-bottom: 1px solid var(--line-soft); }
.post-list-item a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.4rem 0.85rem;
	position: relative;
	transition: color 0.2s var(--ease);
}
/* left accent bar grows in place on hover — no layout shift, no bg wash */
.post-list-item a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 2px;
	background: var(--acc);
	transform: scaleY(0);
	transform-origin: center;
	transition: transform 0.25s var(--ease);
}
.post-list-item a:hover::before,
.post-list-item a:focus-visible::before { transform: scaleY(1); }
.pli-main { display: flex; flex-direction: column; gap: 0.3rem; }
.pli-title {
	font-family: var(--mono);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.post-list-item a:hover .pli-title { color: var(--acc); }
.pli-sub { color: var(--ink-dim); font-size: 0.92rem; max-width: 52ch; }
.post-list-item time {
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--ink-faint);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── single post ── */
.post-header { margin-bottom: 2.5rem; }
.post-kicker { margin-bottom: 1.25rem; }
.post-kicker a { font-family: var(--mono); font-size: 0.82rem; color: var(--acc); }
.post-kicker a:hover { text-decoration: underline; }
.post-title {
	font-family: var(--mono);
	font-weight: 700;
	font-size: clamp(1.7rem, 4.5vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin-bottom: 0.9rem;
}
.post-subtitle {
	color: var(--ink-dim);
	font-size: 1.15rem;
	line-height: 1.5;
	margin-bottom: 1.25rem;
}
.post-meta {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--ink-faint);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line-soft);
}
.post-meta .dot-sep { color: var(--line); }
.post-tags { color: var(--acc-2); }

/* ── prose ── */
.post-body { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.post-body > * + * { margin-top: 1.35rem; }
.post-body h2 {
	font-family: var(--mono);
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-top: 3rem;
	padding-top: 0.5rem;
	color: var(--ink);
}
.post-body h2::before { content: "# "; color: var(--acc); }
.post-body h3 {
	font-family: var(--mono);
	font-size: 1.12rem;
	font-weight: 600;
	margin-top: 2.25rem;
	color: var(--ink);
}
.post-body h3::before { content: "## "; color: var(--ink-faint); }
.post-body p { color: var(--ink-dim); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color 0.2s var(--ease); }
.post-body a:hover { text-decoration-color: var(--acc); }

.post-body ul, .post-body ol { padding-left: 1.4rem; color: var(--ink-dim); }
.post-body li { margin-top: 0.5rem; }
.post-body li::marker { color: var(--acc); }

.post-body blockquote {
	border-left: 2px solid var(--acc);
	padding: 0.4rem 0 0.4rem 1.2rem;
	color: var(--ink-dim);
	font-style: italic;
	background: rgba(79, 227, 161, 0.03);
}

/* inline code */
.post-body code {
	font-family: var(--mono);
	font-size: 0.86em;
	background: var(--panel-2);
	border: 1px solid var(--line-soft);
	border-radius: 4px;
	padding: 0.1em 0.4em;
	color: var(--acc);
	word-break: break-word;
}

/* code blocks */
.post-body pre {
	background: #0a0d13;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
	font-size: 0.85rem;
	line-height: 1.65;
	box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.post-body pre code {
	background: none;
	border: none;
	padding: 0;
	color: var(--ink);
	font-size: inherit;
	word-break: normal;
}
.post-body pre.highlight, .post-body figure.highlight { margin-top: 1.35rem; }
.post-body figure.highlight pre { margin: 0; }

.post-body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5rem 0; }

.post-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* post footer nav */
.post-footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-soft);
	font-family: var(--mono);
	font-size: 0.88rem;
}
.post-footer a { color: var(--acc); }
.post-footer a:hover { text-decoration: underline; }

/* site footer on blog pages */
.site-footer {
	max-width: 760px;
	margin: 0 auto;
	padding-left: clamp(1.25rem, 5vw, 2rem);
	padding-right: clamp(1.25rem, 5vw, 2rem);
}
.site-footer-links { display: flex; gap: 1rem; }
.site-footer-links a { color: var(--ink-faint); }
.site-footer-links a:hover { color: var(--acc); }
