/*
Theme Name:  Mischief Monkey News
Description: Lightweight custom theme for Mischief Monkey News
Version:     1.0
Author:      MMN
*/

/* ---- 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: #8b4513; 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;
}

.content-area {
	display: flex;
	gap: 40px;
	padding: 30px 0;
}

.main-content { flex: 1 1 65%; min-width: 0; }
.sidebar { flex: 0 0 280px; }

/* ---- 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: 60px; width: auto; }

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

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

.main-nav a:hover { color: #8b4513; text-decoration: none; }

/* ---- Post list (index) ---- */
.post-list { list-style: none; }

.post-card {
	margin-bottom: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid #eee;
}

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

.post-card .featured-image {
	margin-bottom: 16px;
	border-radius: 4px;
	overflow: hidden;
}

.post-card .featured-image img {
	max-width: 100%;
	height: auto;
}

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

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

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

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

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

.read-more {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #8b4513;
}

/* ---- Single post ---- */
.single-post .post-header { margin-bottom: 24px; }

.single-post .post-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 8px;
	color: #222;
}

.single-post .featured-image {
	max-width: 600px;
	margin: 0 auto 28px;
}

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

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

.post-content h1,
.post-content h2,
.post-content h3 {
	margin: 1.5em 0 0.5em;
	line-height: 1.3;
	color: #222;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.4rem; }
.post-content h3 { font-size: 1.2rem; }

.post-content ul,
.post-content ol {
	margin: 0 0 1.2em 1.5em;
}

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

.post-content figure.post-image img {
	margin: 0 auto;
	border-radius: 4px;
}

/* Indented paragraphs (Divi used padding-left: 40px for pull quotes etc) */
.post-content p[style*="padding-left"] {
	border-left: 3px solid #ddd;
	padding-left: 16px !important;
	margin-left: 0;
	color: #555;
	font-style: italic;
}

/* ---- Comments ---- */
.comments-section {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 2px solid #eee;
}

.comments-section h2 {
	font-size: 1.3rem;
	margin-bottom: 24px;
}

.comment-list { list-style: none; }

.comment {
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
}

.comment-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 6px;
}

.comment-author { font-weight: 600; color: #555; }
.comment-content { font-size: 15px; }
.comment-content p { margin-bottom: 0.5em; }

.comment-reply-link {
	font-size: 13px;
	color: #8b4513;
}

#respond { margin-top: 32px; }

#respond h3 {
	font-size: 1.1rem;
	margin-bottom: 16px;
}

.comment-form p { margin-bottom: 14px; }

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #555;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	font-family: inherit;
}

.comment-form textarea { height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
	background: #8b4513;
	color: #fff;
	border: none;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 3px;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover { background: #6b3410; }

/* ---- Sidebar ---- */
.sidebar .widget {
	margin-bottom: 36px;
}

.sidebar .widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #8b4513;
}

.sidebar .widget ul { list-style: none; }

.sidebar .widget ul li {
	padding: 5px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 14px;
}

.sidebar .widget ul li a { color: #555; }
.sidebar .widget ul li a:hover { color: #8b4513; text-decoration: none; }

/* Recent comments widget */
.sidebar .recentcomments {
	font-size: 13px;
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
}

.sidebar .recentcomments .comment-author-link { font-weight: 600; }

/* ---- Page (static) ---- */
.page-content { font-size: 16px; line-height: 1.8; }
.page-content p { margin-bottom: 1.2em; }
.page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 24px;
	color: #222;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.content-area { flex-direction: column; }
	.sidebar { flex: none; width: 100%; }
	.single-post .post-title { font-size: 1.5rem; }
}
