/* Now Trending USA — shared stylesheet
   Mobile-first, clean news-site look: white background, dark text,
   red accent for headlines and links. */

:root {
  --red: #c1121f;
  --red-dark: #8f0d18;
  --ink: #1a1a1a;
  --muted: #5f6368;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --max-width: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 3px solid var(--red);
  padding: 20px 16px 14px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-title .accent { color: var(--red); }

.site-tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.site-nav {
  margin-top: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
}

.site-nav a:hover { color: var(--red); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

main { padding: 28px 0 48px; }

/* ---------- Homepage post list ---------- */
.section-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 24px;
}

.post-card {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

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

.post-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover { color: var(--red); }

.post-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.post-excerpt { margin: 0 0 12px; }

.post-card img,
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.read-more {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.read-more:hover { color: var(--red-dark); text-decoration: underline; }

/* ---------- Article page ---------- */
.article-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
}

.post-hero { margin: 20px 0 6px; }

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.article-body h2 {
  margin: 32px 0 10px;
  font-size: 24px;
  line-height: 1.35;
  color: var(--red);
}

.article-body p { margin: 0 0 18px; }

.article-body a { color: var(--red); }

.article-body a:hover { color: var(--red-dark); }

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer p { margin: 4px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .site-title { font-size: 44px; }
  .site-tagline { font-size: 16px; }
  .post-card h2 { font-size: 30px; }
  .article-title { font-size: 38px; }
  main { padding: 36px 0 64px; }
}
