/* Madras Bulletin - Newspaper Style */
:root {
  --black: #111111;
  --ink: #222222;
  --gray: #555555;
  --light-gray: #888888;
  --border: #dddddd;
  --bg: #fafafa;
  --white: #ffffff;
  --accent: #8B0000; /* dark red - classic newspaper */
  --accent-light: #c0392b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Weather ticker */
.weather-ticker {
  background: #1a3a6e;
  color: #d0e4ff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 5px 0;
  text-align: center;
  letter-spacing: 0.2px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header-top {
  background: var(--black);
  color: #aaa;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }

.header-main {
  background: var(--white);
  border-bottom: 3px solid var(--black);
  padding: 20px 0 16px;
  text-align: center;
}
.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -1px;
  display: block;
}
.site-title:hover { color: var(--accent); }

/* Nav */
.site-nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.site-nav a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}
.site-nav a:hover { background: var(--accent); }

/* Main layout */
.site-main { padding: 30px 0 60px; }

/* Homepage Grid */
.homepage-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.main-content-area {}
.sidebar {}

/* Featured article */
.featured-article {
  border-bottom: 2px solid var(--black);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.featured-article .article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 16px;
}
.featured-article .article-category {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.featured-article h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.featured-article h1 a { color: var(--black); text-decoration: none; }
.featured-article h1 a:hover { color: var(--accent); }
.featured-article .article-excerpt { font-size: 17px; color: var(--gray); line-height: 1.6; }
.featured-article .article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--light-gray);
  margin-top: 10px;
}

/* Article grid */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }

.article-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.article-card .article-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}
.article-card .article-category {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}
.article-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.article-card h2 a { color: var(--black); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-card .article-excerpt { font-size: 14px; color: var(--gray); }
.article-card .article-meta { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--light-gray); margin-top: 6px; }

/* List articles (below fold) */
.article-list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item .thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-list-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.article-list-item h3 a { color: var(--black); text-decoration: none; }
.article-list-item h3 a:hover { color: var(--accent); }
.article-list-item .article-meta { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--light-gray); }

/* Sidebar */
.sidebar-widget { margin-bottom: 30px; }
.sidebar-widget h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sidebar-list a { color: var(--black); text-decoration: none; font-family: 'Playfair Display', serif; font-size: 14px; line-height: 1.3; }
.sidebar-list a:hover { color: var(--accent); }
.sidebar-list .meta { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--light-gray); margin-top: 3px; }

/* Article page */
.article-full { max-width: 760px; }
.article-full .article-category {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-full h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-full .article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--light-gray);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-full .article-excerpt {
  font-size: 19px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}
.article-full img.featured {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 24px;
}
.article-body { font-size: 17px; line-height: 1.75; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 32px 0 12px; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 24px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 20px 28px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 12px 20px;
  font-style: italic;
  font-size: 18px;
  color: var(--gray);
  background: #f5f5f5;
}
.article-body a { color: var(--accent); }

/* Category page */
.category-header {
  border-bottom: 3px solid var(--black);
  padding-bottom: 16px;
  margin-bottom: 30px;
}
.category-header .label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-gray);
}
.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
}

/* Pagination */
.pagination { display: flex; gap: 8px; margin-top: 30px; font-family: 'Inter', sans-serif; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}
.pagination a:hover { background: var(--black); color: #fff; }
.pagination .current { background: var(--black); color: #fff; }

/* Breaking news bar */
.breaking-bar {
  background: var(--accent);
  color: #fff;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.breaking-bar .container { display: flex; gap: 16px; align-items: center; }
.breaking-label {
  background: #fff;
  color: var(--accent);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #ccc;
  padding: 40px 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.site-footer h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; margin-bottom: 10px; }
.site-footer h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-advertise {
  border-top: 1px solid #333;
  padding: 20px 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-advertise h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  margin: 0;
}
.footer-advertise p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}
.footer-advertise a { color: #e88; }
.footer-advertise a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid #333; padding-top: 16px; text-align: center; color: #666; font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .homepage-layout { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .header-top .header-tagline { display: none; }
}
