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

:root {
  --ink: #1a1a2e;
  --ink-muted: #4a4a6a;
  --ink-light: #8888aa;
  --surface: #ffffff;
  --surface-alt: #f7f7fb;
  --border: #e2e2ef;
  --accent: #c0392b;
  --accent-dark: #96281b;
  --accent-satire: #1a6b3c;
  --accent-comedy: #2c5f9e;
  --radius: 4px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface-alt);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; width: 100%; height: auto; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── HEADER ── */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-logo__name span { color: var(--accent); }

.site-logo__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaacc;
  margin-top: 2px;
}

.header-meta {
  font-size: 0.75rem;
  color: #8888aa;
  text-align: right;
}

.site-nav {
  background: #13132a;
  border-top: 1px solid #2a2a4a;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
}

.nav-list a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccccdd;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.nav-list a[data-cat="satire"]:hover,
.nav-list a[data-cat="satire"].active { border-bottom-color: var(--accent-satire); }
.nav-list a[data-cat="comedy"]:hover,
.nav-list a[data-cat="comedy"].active { border-bottom-color: var(--accent-comedy); }

/* ── HERO BAND ── */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
  border-bottom: 1px solid #2a2a4a;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-hero p {
  margin-top: 0.5rem;
  color: #aaaacc;
  font-size: 0.95rem;
  max-width: 540px;
}

/* ── CATEGORY BADGE ── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
}

.badge--news    { background: var(--accent);        color: #fff; }
.badge--satire  { background: var(--accent-satire);  color: #fff; }
.badge--comedy  { background: var(--accent-comedy);  color: #fff; }

/* ── ARTICLE CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }

.card__img {
  aspect-ratio: 16/9;
  background: var(--surface-alt);
  overflow: hidden;
}

.card__img img { width: 100%; height: 100%; object-fit: cover; }

.card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e2e2ef 0%, #d0d0e8 100%);
  color: var(--ink-light);
  aspect-ratio: 16/9;
}

.card__body { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.card__date  { font-size: 0.72rem; color: var(--ink-light); }
.card__headline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.card__headline a:hover { color: var(--accent); }
.card__excerpt { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.55; flex: 1; }
.card__read-more { margin-top: 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.03em; }

/* ── LEAD CARD (large featured) ── */
.card--lead .card__headline { font-size: 1.4rem; }

/* ── GRID LAYOUTS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem 0 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.25rem;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.section-header__title--satire { color: var(--accent-satire); border-left: 4px solid var(--accent-satire); padding-left: 0.6rem; }
.section-header__title--comedy { color: var(--accent-comedy); border-left: 4px solid var(--accent-comedy); padding-left: 0.6rem; }

.section-header__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── COMEDY GALLERY ── */
.comedy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.comedy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.comedy-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }

.comedy-card__img {
  aspect-ratio: 4/3;
  background: #e8e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.comedy-card__img img { width: 100%; height: 100%; object-fit: cover; }

.comedy-card__caption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.comedy-card__caption strong { font-style: normal; font-weight: 600; color: var(--ink); display: block; margin-bottom: 2px; }

/* ── ARTICLE FULL PAGE ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}

.article-body { min-width: 0; }

.article-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-body .article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-body .article-img {
  aspect-ratio: 16/9;
  background: var(--surface-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.article-body .article-img img { width: 100%; height: 100%; object-fit: cover; }

.article-content p { margin-bottom: 1.1rem; font-size: 1.05rem; line-height: 1.75; color: #2a2a3e; }
.article-content p:first-child { font-size: 1.15rem; font-weight: 500; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-story {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.sidebar-story:last-child { border-bottom: none; }

.sidebar-story__img {
  flex-shrink: 0;
  width: 60px;
  height: 45px;
  background: var(--surface-alt);
  border-radius: 2px;
  overflow: hidden;
}

.sidebar-story__img img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-story__headline {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.sidebar-story__headline:hover { color: var(--accent); }

/* ── BREAKING TICKER ── */
.ticker-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.ticker-label {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  padding: 0 8px;
  margin-right: 1rem;
  border-radius: 2px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: #aaaacc;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.82rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand h2 span { color: var(--accent); }
.footer-brand p { line-height: 1.65; max-width: 300px; }

.footer-links h4 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #2a2a4a;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: #666688;
  font-style: italic;
}

/* ── MAIN LAYOUT ── */
main { padding: 0 0 3rem; }

.section-block { padding: 0.5rem 0 2rem; }

/* ── HOMEPAGE HERO STORY ── */
.hero-story {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-story__img {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  overflow: hidden;
}

.hero-story__img img { width: 100%; height: 100%; object-fit: cover; }

.hero-story__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-story__body .card__headline { font-size: 1.6rem; margin-bottom: 0.75rem; }
.hero-story__body .card__excerpt { font-size: 0.92rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-story { grid-template-columns: 1fr; }
  .hero-story__body { padding: 1rem; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .site-logo__name { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── UTILITY ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.text-muted { color: var(--ink-muted); }
.italic { font-style: italic; }

/* ───────────────────────────────────────────
   ADVERTISING SLOTS  (Google AdSense-ready)
   Each .ad-slot shows a styled placeholder until
   a real AdSense unit is pasted in. See the HTML
   comment beside each slot for activation steps.
   ─────────────────────────────────────────── */
.ad-zone { width: 100%; }
.ad-slot {
  margin: 1.75rem auto;
  text-align: center;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-slot__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 0.35rem 0 0.15rem;
}
.ad-slot__placeholder {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  background: repeating-linear-gradient(45deg,#eeeef5,#eeeef5 10px,#f7f7fb 10px,#f7f7fb 20px);
}
.adsbygoogle { display: block; }

/* Leaderboard — 728×90 (top & bottom of page) */
.ad-slot--leaderboard { max-width: 760px; }
.ad-slot--leaderboard .ad-slot__placeholder { width: 100%; max-width: 728px; height: 90px; }

/* In-article / in-feed — 336×280 large rectangle */
.ad-slot--inarticle { max-width: 360px; }
.ad-slot--inarticle .ad-slot__placeholder { width: 100%; max-width: 336px; height: 280px; }

/* Sidebar MPU — 300×250 medium rectangle */
.ad-slot--mpu { max-width: 300px; margin: 0 auto 1.75rem; }
.ad-slot--mpu .ad-slot__placeholder { width: 100%; max-width: 300px; height: 250px; }

@media (max-width: 768px) {
  .ad-slot--leaderboard .ad-slot__placeholder { height: 100px; max-width: 320px; }
}

/* ───────────────────────────────────────────
   LEFT SKYSCRAPER AD RAIL
   Fixed 160×600 unit in the left gutter, beside
   the centred content. Shown ONLY on very wide
   screens (≥1500px) where the gutter is wide
   enough; hidden on laptops, tablets and mobile
   so it never overlaps or crowds the article.
   ─────────────────────────────────────────── */
.ad-rail {
  position: absolute;       /* scrolls with the page, not pinned to the window */
  top: 200px;               /* sits just below the header, then scrolls away */
  width: 160px;
  z-index: 1;               /* sits behind content, never overlays it */
  display: none;            /* hidden by default → mobile/tablet/laptop safe */
}
.ad-rail--left { left: calc((100% - 1140px) / 2 - 176px); }
.ad-rail .ad-slot { margin: 0; }
.ad-rail .ad-slot__placeholder { width: 160px; height: 600px; }
@media (min-width: 1500px) { .ad-rail { display: block; } }
