/*
Theme Name:  The IT Garbageman
Description: Lightweight custom theme for The IT Garbageman
Version:     1.0
Author:      Colin Cecil
*/

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Base ---- */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	background: #fff;
}

a { color: #2a6496; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.site-wrapper {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
	border-bottom: 1px solid #e5e5e5;
	padding: 12px 0;
}

.site-header .site-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-logo img { height: 55px; width: auto; }

/* ---- Navigation ---- */
.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
}

.main-nav a {
	font-size: 15px;
	color: #555;
	font-weight: 500;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: #2a6496; text-decoration: none; }

/* ---- Main content area ---- */
.main-content {
	padding: 36px 0 48px;
}

/* ---- Front page intro ---- */
.front-page-intro {
	margin-bottom: 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid #eee;
	font-size: 16px;
	line-height: 1.8;
	color: #444;
}

.front-page-intro p { margin-bottom: 1em; }
.front-page-intro p:last-child { margin-bottom: 0; }

/* ---- Post card grid ---- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 36px;
}

.post-card {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.post-card .card-image { flex-shrink: 0; }
.post-card .card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.post-card .card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-card .post-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.35;
}

.post-card .post-title a { color: #222; }
.post-card .post-title a:hover { color: #2a6496; text-decoration: none; }

.post-card .post-meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 10px;
}

.post-card .post-meta a { color: #888; }
.post-card .post-meta .sep { margin: 0 3px; }

.post-card .post-excerpt {
	font-size: 14px;
	color: #555;
	flex: 1;
}

/* ---- Blog archive (home.php) - single column list ---- */
.post-list { list-style: none; }

.post-list-item {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #eee;
}

.post-list-item:last-child { border-bottom: none; }

.post-list-item .post-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.3;
}

.post-list-item .post-title a { color: #222; }
.post-list-item .post-title a:hover { color: #2a6496; text-decoration: none; }

.post-list-item .post-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 10px;
}

.post-list-item .post-excerpt { font-size: 15px; color: #555; }

/* ---- Pagination ---- */
.pagination { margin-top: 8px; }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	color: #555;
}
.pagination .page-numbers.current {
	background: #2a6496;
	color: #fff;
	border-color: #2a6496;
}
.pagination .page-numbers:hover { text-decoration: none; border-color: #2a6496; color: #2a6496; }

/* ---- Single post / page ---- */
.entry-header { margin-bottom: 28px; }

.entry-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 10px;
	color: #222;
}

.entry-meta {
	font-size: 13px;
	color: #888;
}

.entry-meta a { color: #888; }
.entry-meta .sep { margin: 0 4px; }

.entry-featured-image {
	margin-bottom: 28px;
}

/* ---- Post content ---- */
.entry-content {
	font-size: 16px;
	line-height: 1.8;
	max-width: 860px;
}

.entry-content p { margin-bottom: 1.2em; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.6em 0 0.5em;
	line-height: 1.3;
	color: #1a1a1a;
}

.entry-content h1 { font-size: 1.7rem; }
.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 1.6em 0 0.5em;
	padding-bottom: 4px;
	border-bottom: 1px solid #e0e0e0;
}
.entry-content h4 { font-size: 1rem; }

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em 1.6em;
}

.entry-content li { margin-bottom: 0.3em; }

/* Nested lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

.entry-content strong { font-weight: 700; }

.entry-content a { color: #2a6496; }

.entry-content figure.post-image {
	margin: 1.8em 0;
	text-align: center;
}

.entry-content figure.post-image img {
	margin: 0 auto;
	max-width: 75%;
	border-radius: 3px;
}

/* ---- Page content ---- */
.page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 24px;
	color: #222;
}

.page-content {
	font-size: 16px;
	line-height: 1.8;
}

.page-content p { margin-bottom: 1.2em; }
.page-content h2 { font-size: 1.4rem; margin: 1.5em 0 0.5em; }
.page-content h3 { font-size: 1.15rem; margin: 1.3em 0 0.4em; }
.page-content ul, .page-content ol { margin: 0 0 1.2em 1.6em; }
.page-content li { margin-bottom: 0.3em; }
.page-content ul ul, .page-content ol ol { margin-top: 0.3em; margin-bottom: 0.3em; }
.page-content strong { font-weight: 700; }
.page-content a { color: #2a6496; }

.page-content figure.post-image {
	margin: 1.8em 0;
	text-align: center;
}

.page-content figure.post-image img {
	margin: 0 auto;
	max-width: 75%;
	border-radius: 3px;
}

/* ---- Footer ---- */
.site-footer {
	border-top: 1px solid #e5e5e5;
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: #aaa;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; }
	.entry-title { font-size: 1.5rem; }
	.main-nav ul { gap: 14px; }
	.main-nav a { font-size: 13px; }
}
