/*
Theme Name: Newsroom
Theme URI: https://example.com/newsroom
Author: Custom Build
Author URI: https://example.com
Description: A fast, lightweight, SEO-first WordPress theme built for news and magazine publishers. Clean semantic HTML5, editorial grid layout, breaking-news ticker, and schema markup baked in — inspired by the readability and hierarchy of major newspaper sites.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsroom
Tags: news, magazine, blog, grid-layout, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------
   1. RESET & BASE
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: #121212;
	background: #ffffff;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: Georgia, "Times New Roman", Times, serif;
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
}

/* -------------------------------------------------
   2. LAYOUT / GRID
------------------------------------------------- */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.site-main-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	padding: 30px 0 60px;
}
@media (max-width: 880px) {
	.site-main-grid { grid-template-columns: 1fr; }
}
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
@media (max-width: 880px) {
	.article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.article-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------
   3. HEADER / MASTHEAD
------------------------------------------------- */
.site-header { border-bottom: 3px solid #121212; }
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #e2e2e2;
	color: #555;
}
.masthead {
	text-align: center;
	padding: 18px 0 10px;
}
.site-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 6vw, 56px);
	letter-spacing: -1px;
	margin: 0;
}
.site-title a { color: #121212; }
.site-description {
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #777;
	margin-top: 4px;
}
.main-navigation {
	border-top: 1px solid #e2e2e2;
	border-bottom: 1px solid #e2e2e2;
}
.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}
.main-navigation a {
	display: block;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.main-navigation a:hover { text-decoration: none; background: #f4f4f4; }

/* -------------------------------------------------
   4. BREAKING NEWS TICKER (plugin hook target)
------------------------------------------------- */
.breaking-news-ticker {
	background: #b80000;
	color: #fff;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.breaking-news-ticker .badge {
	flex: 0 0 auto;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
	padding: 8px 14px;
	background: #870000;
}
.breaking-news-ticker .ticker-track {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	position: relative;
	height: 32px;
}
.breaking-news-ticker .ticker-items {
	display: inline-flex;
	gap: 60px;
	position: absolute;
	white-space: nowrap;
	animation: ticker-scroll 30s linear infinite;
	padding-left: 100%;
}
.breaking-news-ticker .ticker-items a { color: #fff; font-size: 13px; font-weight: 600; }
@keyframes ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* -------------------------------------------------
   5. ARTICLE CARDS
------------------------------------------------- */
.article-card { margin-bottom: 10px; }
.article-card .thumb { overflow: hidden; margin-bottom: 10px; background: #eee; }
.article-card .thumb img { transition: transform .35s ease; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .kicker {
	color: #b80000;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.article-card h2, .article-card h3 { font-size: 20px; margin: 6px 0; }
.article-card .excerpt { font-size: 14px; color: #444; }
.article-card .meta { font-size: 12px; color: #888; margin-top: 6px; }

.featured-story { margin-bottom: 40px; }
.featured-story .thumb { margin-bottom: 14px; }
.featured-story h1 { font-size: clamp(28px, 4vw, 44px); }
.featured-story .excerpt { font-size: 17px; color: #333; }

/* -------------------------------------------------
   6. SINGLE ARTICLE
------------------------------------------------- */
.single-article header.entry-header { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.single-article .entry-title { font-size: clamp(28px, 4vw, 46px); }
.single-article .entry-summary { font-size: 18px; color: #444; margin-top: 10px; }
.single-article .entry-meta { font-size: 13px; color: #777; margin-top: 12px; }
.single-article .entry-content {
	max-width: 720px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.7;
}
.single-article .entry-content p { margin: 0 0 1.3em; }
.single-article .entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.single-article .entry-content img { margin: 1.5em 0; }
.single-article .entry-content figcaption { font-size: 13px; color: #777; margin-top: 6px; }
.single-article .featured-image { margin: 20px 0; }

/* -------------------------------------------------
   7. SIDEBAR / WIDGETS
------------------------------------------------- */
.widget { margin-bottom: 36px; }
.widget-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 2px solid #121212;
	padding-bottom: 8px;
	margin-bottom: 14px;
}
.trending-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.trending-list .rank { font-family: Georgia, serif; font-size: 26px; color: #ccc; font-weight: 700; }
.trending-list a { font-size: 14px; font-weight: 600; }

/* -------------------------------------------------
   8. NEWSLETTER
------------------------------------------------- */
.newsletter-box { background: #f4f4f4; padding: 24px; text-align: center; margin-bottom: 36px; }
.newsletter-box h3 { margin-bottom: 6px; }
.newsletter-box p { font-size: 13px; color: #555; margin-bottom: 14px; }
.newsletter-box form { display: flex; gap: 8px; }
.newsletter-box input[type=email] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ccc;
	font-size: 14px;
}
.newsletter-box button {
	background: #121212;
	color: #fff;
	border: none;
	padding: 10px 16px;
	font-weight: 700;
	cursor: pointer;
}
.newsletter-box button:hover { background: #b80000; }

/* -------------------------------------------------
   9. FOOTER
------------------------------------------------- */
.site-footer { background: #121212; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: #fff; font-family: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid li { font-size: 13px; margin-bottom: 8px; color: #aaa; }
.site-footer .credits { text-align: center; font-size: 12px; color: #777; margin-top: 30px; border-top: 1px solid #2a2a2a; padding-top: 16px; }

/* -------------------------------------------------
   10. UTILITIES / A11Y
------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #121212;
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus { left: 10px; }

/* Dark mode (respects OS preference for reader comfort) */
@media (prefers-color-scheme: dark) {
	body { background: #0f0f0f; color: #e4e4e4; }
	.site-title a { color: #fff; }
	.article-card .excerpt { color: #bbb; }
	.widget-title { border-color: #e4e4e4; }
	.main-navigation, .top-bar { border-color: #2a2a2a; }
	.main-navigation a:hover { background: #1c1c1c; }
	.newsletter-box { background: #1a1a1a; }
}
