/*
Theme Name: Predictions Lite
Theme URI: https://example.com/predictions-lite
Author: Your Site
Description: An ultra-lightweight, mobile-first WordPress theme built for a two-column blog layout with a "Latest Articles" sidebar. No page-builder bloat, minimal CSS, fast first paint.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: predictions-lite
*/

/* -----------------------------------------------------------
   1. RESET / BASE
----------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #fafafa;
}

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

a {
	color: #0b5fff;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.25;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.2em;
}

/* -----------------------------------------------------------
   2. SITE HEADER
----------------------------------------------------------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid #ececec;
	padding: 14px 16px;
}

.site-header .site-title {
	margin: 0;
	font-size: 1.35rem;
}

.site-header .site-title a {
	color: #1a1a1a;
	text-decoration: none;
}

/* -----------------------------------------------------------
   3. TWO-COLUMN LAYOUT (desktop-first grid, mobile stacks)
----------------------------------------------------------- */
.site-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

/* Desktop: main content + right sidebar */
@media (min-width: 782px) {
	.site-wrap {
		grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
		align-items: start;
	}
}

.main-content {
	min-width: 0; /* prevents grid blowout from long words/urls */
}

/* -----------------------------------------------------------
   4. SIDEBAR - "Latest Articles"
----------------------------------------------------------- */
.site-sidebar {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 18px;
}

.site-sidebar h3 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin-bottom: 14px;
}

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

.latest-articles-list li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.latest-articles-list li:last-child {
	border-bottom: none;
}

.latest-articles-list a {
	color: #1a1a1a;
	font-size: 0.95rem;
	font-weight: 600;
}

.latest-articles-list time {
	display: block;
	font-size: 0.8rem;
	color: #888;
	margin-top: 2px;
}

/* -----------------------------------------------------------
   5. POST CARDS (index / archive)
----------------------------------------------------------- */
.post-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 20px;
}

.post-card .post-title {
	font-size: 1.25rem;
	margin-bottom: 6px;
}

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

/* -----------------------------------------------------------
   6. SINGLE POST
----------------------------------------------------------- */
.single-post .post-title {
	font-size: 1.6rem;
}

.single-post .post-meta {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 18px;
}

.single-post .post-content {
	font-size: 1.05rem;
}

.single-post .post-content img {
	border-radius: 6px;
	margin: 1em 0;
}

/* -----------------------------------------------------------
   7. FOOTER
----------------------------------------------------------- */
.site-footer {
	text-align: center;
	padding: 24px 16px;
	font-size: 0.85rem;
	color: #999;
	border-top: 1px solid #ececec;
}

/* -----------------------------------------------------------
   8. MOBILE READABILITY TWEAKS
----------------------------------------------------------- */
@media (max-width: 480px) {
	body {
		font-size: 16px;
	}
	.single-post .post-title {
		font-size: 1.35rem;
	}
	.site-wrap {
		padding: 16px 14px 36px;
		gap: 24px;
	}
}
