/* Blog page overrides */

body.blog-page {
	overflow-y: auto;
}

body.blog-page #wrapper {
	display: none;
}

#blog-wrapper {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	padding: 3rem 1.5rem;
	box-sizing: border-box;
}

#blog-container {
	max-width: 740px;
	margin: 0 auto;
}

/* Header */

.blog-header {
	margin-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	padding-bottom: 2rem;
}

.blog-header h1 {
	font-size: 2.2rem;
	font-weight: 700;
	color: #fff;
	margin: 0.75rem 0 0.4rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.blog-header > p {
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	font-size: 0.95rem;
}

/* Back link */

.back-link {
	display: inline-block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	text-decoration: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.2s ease;
	border-bottom: none;
}

.back-link:hover {
	color: #fff;
}

/* Post list */

.post-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-card {
	margin-bottom: 0.5rem;
}

.post-card a {
	display: block;
	padding: 1.5rem 1.75rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.post-card a:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}

.post-card h2 {
	font-size: 1.15rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 0.3rem;
	text-transform: none;
	letter-spacing: 0.02em;
	border-bottom: none;
}

.post-meta {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0 0 0.6rem;
	letter-spacing: 0.04em;
}

.post-description {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	line-height: 1.6;
}

.no-posts {
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
}

/* Post content */

.post-content {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.8;
	font-size: 1rem;
}

.post-content h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	margin: 2.5rem 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding-bottom: 0.4rem;
}

.post-content h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	margin: 2rem 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.post-content p {
	margin: 0 0 1.25rem;
}

.post-content a {
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
	text-decoration: none;
}

.post-content a:hover {
	color: #fff;
	border-bottom-color: #fff;
}

.post-content ul,
.post-content ol {
	padding-left: 1.5rem;
	margin: 0 0 1.25rem;
}

.post-content li {
	margin-bottom: 0.4rem;
}

.post-content code {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
	padding: 0.15em 0.4em;
	font-size: 0.88em;
	font-family: 'Courier New', Courier, monospace;
	color: rgba(255, 255, 255, 0.9);
}

.post-content pre {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	margin: 0 0 1.5rem;
}

.post-content pre code {
	background: none;
	padding: 0;
	font-size: 0.85em;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
}

.post-content th {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 0.6rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.82rem;
}

.post-content td {
	padding: 0.55rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.8);
}

.post-content tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.03);
}

.post-content blockquote {
	border-left: 3px solid rgba(255, 255, 255, 0.3);
	margin: 0 0 1.25rem;
	padding: 0.5rem 0 0.5rem 1.25rem;
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

/* Footer */

.blog-footer {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */

@media (max-width: 600px) {
	#blog-wrapper {
		padding: 2rem 1rem;
	}

	.blog-header h1 {
		font-size: 1.7rem;
	}

	.post-card a {
		padding: 1.1rem 1.25rem;
	}
}
