/* ============================================================
   Skeptical Sanity — News/Magazine Stylesheet
   ============================================================ */

:root {
  --masthead: #1a1a2e;
  --accent: #c41e3a;
  --nav-bg: #111827;
  --text: #1a1a1a;
  --muted: #666;
  --border: #ddd;
  --light-bg: #f7f7f5;
  --white: #fff;
  --pull-bg: #f0f0ec;
  --section-tag: #003580;
  --caption: #555;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; }

/* ---- MASTHEAD ---- */
.masthead {
  background: var(--masthead);
  color: white;
  padding: 18px 0 14px;
  border-bottom: 4px solid var(--accent);
}
.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-title { text-decoration: none; }
.site-name {
  font-size: 46px;
  font-weight: bold;
  letter-spacing: -1px;
  color: white;
  line-height: 1;
  font-family: Georgia, serif;
}
.site-tagline {
  font-size: 13px;
  color: #9ab;
  font-style: italic;
  margin-top: 4px;
  font-family: Georgia, serif;
}
.masthead-meta {
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #889;
}
.masthead-meta .edition {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: bold;
}

/* ---- NAV ---- */
.nav {
  background: var(--nav-bg);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: #bbb;
  text-decoration: none;
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid #222;
}
.nav a:first-child { border-left: 1px solid #222; }
.nav a:hover, .nav a.active { color: white; background: var(--accent); }

/* ---- BREAKING BANNER ---- */
.breaking-banner {
  background: var(--accent);
  color: white;
  padding: 7px 24px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
}
.breaking-banner span {
  background: white;
  color: var(--accent);
  padding: 1px 7px;
  margin-right: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  background: var(--section-tag);
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 10px;
}
.section-label.analysis { background: #5a2d82; }
.section-label.crisis { background: #8b0000; }

/* ---- DIVIDER ---- */
.section-divider {
  border: none;
  border-top: 3px solid var(--accent);
  margin: 28px 0 24px;
}
.section-divider.light {
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ============================================================
   FRONT PAGE LAYOUT
   ============================================================ */

.front-page { padding: 28px 0 48px; }

/* Top section: lead + sidebar */
.front-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

/* Lead story */
.lead-story {}
.lead-story .kicker {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.lead-story .headline {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.lead-story .headline a { text-decoration: none; color: inherit; }
.lead-story .headline a:hover { color: var(--accent); }
.lead-story .deck {
  font-size: 18px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.lead-story .byline {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.lead-story .body-excerpt p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; }
.lead-story .hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 8px;
  display: block;
}
.lead-story .img-caption {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--caption);
  margin-bottom: 16px;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 8px;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.read-more:hover { color: #a0122e; border-color: #a0122e; }

/* Sidebar */
.front-sidebar { border-left: 1px solid var(--border); padding-left: 28px; }
.sidebar-story {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.sidebar-story:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.sidebar-story .kicker {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 5px;
}
.sidebar-story .headline {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 7px;
}
.sidebar-story .headline a { text-decoration: none; color: inherit; }
.sidebar-story .headline a:hover { color: var(--accent); }
.sidebar-story .deck { font-size: 14px; color: #555; line-height: 1.55; }
.sidebar-story .thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 10px;
  display: block;
}

/* Second row: 3 columns */
.front-mid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.mid-story .kicker {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 6px;
}
.mid-story .headline {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 8px;
}
.mid-story .headline a { text-decoration: none; color: inherit; }
.mid-story .headline a:hover { color: var(--accent); }
.mid-story .deck { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.mid-story .thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
  display: block;
}

/* Analysis row */
.front-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--light-bg);
  padding: 24px;
  border: 1px solid var(--border);
}
.analysis-label {
  grid-column: 1 / -1;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.analysis-story .kicker {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5a2d82;
  margin-bottom: 5px;
}
.analysis-story .headline {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 7px;
}
.analysis-story .headline a { text-decoration: none; color: inherit; }
.analysis-story .headline a:hover { color: #5a2d82; }
.analysis-story .deck { font-size: 14px; color: #555; line-height: 1.55; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-wrap { padding: 32px 0 60px; }

/* Article header */
.article-header {
  max-width: 900px;
  margin: 0 auto 28px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--accent);
}
.article-header .kicker {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-header .headline {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.article-header .deck {
  font-size: 22px;
  color: #444;
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 18px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}
.article-header .meta {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-header .meta .draft-note {
  background: #fff3cd;
  color: #7b4f00;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Article body */
.article-body p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.85;
}
.article-body p:first-child::first-letter {
  font-size: 72px;
  font-weight: bold;
  float: left;
  line-height: 0.75;
  margin: 8px 10px 0 0;
  color: var(--accent);
  font-family: Georgia, serif;
}
.article-body h2 {
  font-size: 26px;
  font-weight: bold;
  margin: 40px 0 14px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
}
.article-body h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 28px 0 10px;
  color: #333;
}

/* Pull quote */
.pull-quote {
  background: var(--pull-bg);
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-size: 80px;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: Georgia, serif;
  line-height: 1;
}
.pull-quote p {
  font-size: 22px !important;
  font-style: italic;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
  color: #222;
  position: relative;
  z-index: 1;
}
.pull-quote p::first-letter { all: unset; }
.pull-quote cite {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* Article images */
.article-img-wrap { margin: 32px 0; }
.article-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.article-img-wrap figcaption {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--caption);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

/* Warning box */
.warning-box {
  background: #fff8e1;
  border-left: 5px solid #e8a400;
  padding: 16px 20px;
  margin: 28px 0;
}
.warning-box .warn-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7b4f00;
  margin-bottom: 6px;
}
.warning-box p {
  font-size: 15px !important;
  color: #5a3a00 !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}
.warning-box p::first-letter { all: unset; }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.data-table th {
  background: var(--masthead);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.data-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--light-bg); }
.data-table tr:hover td { background: #eef2ff; }

/* Source notes */
.source-notes {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  margin-top: 40px;
}
.source-notes h4 {
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.source-notes p {
  font-family: Arial, sans-serif;
  font-size: 12px !important;
  color: #666;
  line-height: 1.6 !important;
  margin-bottom: 6px !important;
}
.source-notes p::first-letter { all: unset; }

/* Article sidebar */
.article-sidebar {}
.sidebar-box {
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 24px;
  background: var(--white);
}
.sidebar-box h3 {
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
  font-weight: bold;
}
.sidebar-box p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}
.sidebar-box p:last-child { margin-bottom: 0; }
.sidebar-box .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.sidebar-box .stat-row:last-child { border-bottom: none; }
.sidebar-box .stat-row .stat-label { color: var(--muted); font-size: 12px; }
.sidebar-box .stat-row .stat-value { font-weight: bold; color: var(--accent); font-size: 15px; }

.related-links { list-style: none; }
.related-links li { border-bottom: 1px solid var(--border); padding: 8px 0; }
.related-links li:last-child { border-bottom: none; }
.related-links a {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: var(--masthead);
  line-height: 1.4;
}
.related-links a:hover { color: var(--accent); }

/* ---- FOOTER ---- */
footer {
  background: var(--masthead);
  color: #778;
  padding: 36px 0 24px;
  margin-top: 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #334;
  margin-bottom: 20px;
}
.footer-brand .footer-name {
  font-size: 24px;
  font-weight: bold;
  color: white;
  font-family: Georgia, serif;
  margin-bottom: 6px;
}
.footer-brand .footer-tagline { color: #889; font-style: italic; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; line-height: 1.65; }
footer h4 { color: white; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
footer a { color: #99a; text-decoration: none; }
footer a:hover { color: white; }
footer ul { list-style: none; }
footer ul li { padding: 4px 0; font-size: 13px; }
.footer-base { font-size: 12px; color: #667; text-align: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .front-top { grid-template-columns: 1fr; }
  .front-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .front-mid { grid-template-columns: 1fr 1fr; }
  .front-analysis { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .article-header .headline { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .site-name { font-size: 32px; }
  .front-mid { grid-template-columns: 1fr; }
  .front-analysis { grid-template-columns: 1fr; }
  .lead-story .headline { font-size: 28px; }
  .article-header .headline { font-size: 26px; }
  .article-header .deck { font-size: 17px; }
  .pull-quote p { font-size: 18px !important; }
}
