/* ============================================
   CIRCLE & TRIANGLE — SHARED STYLESHEET
   site.css — link this from every page
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-light: #f7f5f2;
  --text: #1a1816;
  --text-mid: #4a4540;
  --text-dim: #8a8480;
  --rule: #c8c0b4;
  --rule-dark: #2a2520;
  --accent: #c8000a;
  --amber: #b8860b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Source Serif 4', serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

/* ============================================
   TICKER
   ============================================ */
.ticker-bar { background: var(--text); overflow: hidden; height: 26px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.ticker-label { background: var(--accent); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 0 12px; height: 100%; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner { display: flex; animation: ticker 45s linear infinite; white-space: nowrap; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #c8c0b4; padding: 0 28px; letter-spacing: 0.04em; }
.ticker-item .hi { color: #e8d090; }
.ticker-item .up { color: #6abf6a; }
.ticker-item .sep { color: #555; margin: 0 6px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar { border-bottom: 1px solid var(--rule); padding: 5px 20px; display: flex; align-items: center; justify-content: space-between; }
.top-bar-left { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.top-bar-left a { color: var(--text-dim); }
.top-bar-left a:hover { color: var(--accent); }
.ccs-pill { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-mid); letter-spacing: 0.05em; padding: 2px 8px; border: 1px solid var(--rule); background: var(--bg-light); }
.ccs-pill .score { color: var(--amber); font-weight: 600; }
.ccs-pill .up { color: #3a7a3a; }

/* ============================================
   MASTHEAD
   ============================================ */
.masthead { border-bottom: 3px solid var(--rule-dark); padding: 0 20px; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; gap: 16px; }
.logo-img { width: 100px; height: 100px; object-fit: contain; flex-shrink: 0; }
.masthead-center { text-align: center; flex: 1; }
.masthead-title { font-family: 'Playfair Display', serif; font-size: clamp(34px, 5.5vw, 66px); font-weight: 900; color: var(--text); letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
.masthead-title .amp { color: var(--accent); font-style: italic; font-weight: 700; }
.masthead-rule { width: 100%; height: 1px; background: var(--rule); margin: 5px 0; }
.masthead-tagline { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 14px; color: var(--text-dim); letter-spacing: 0.04em; }
.masthead-right { text-align: right; flex-shrink: 0; min-width: 110px; }
.edition-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; display: block; }
.edition-date { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-mid); letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-top: 2px; line-height: 1.25; }

/* ============================================
   NAV
   ============================================ */
.primary-nav { border-top: 1px solid var(--rule); display: flex; justify-content: center; flex-wrap: wrap; }
.nav-item { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-mid); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border-right: 1px solid var(--rule); cursor: pointer; transition: color 0.12s, background 0.12s; }
.nav-item:first-child { border-left: 1px solid var(--rule); }
.nav-item:hover { color: var(--accent); background: var(--bg-light); }
.nav-item.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }

/* ============================================
   BREAKING BAR
   ============================================ */
.breaking-bar { background: var(--accent); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 20px; display: flex; align-items: center; gap: 14px; }
.breaking-kicker { background: #fff; color: var(--accent); font-size: 9px; padding: 1px 5px; font-weight: 800; letter-spacing: 0.1em; flex-shrink: 0; }

/* ============================================
   CONTENT WRAP
   ============================================ */
.content-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   TAGS
   ============================================ */
.tag { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 6px; display: inline-block; margin-bottom: 6px; }
.tag-fiction { background: #1a1816; color: #fff; }
.tag-real { background: #e8f0e8; color: #2d5a2d; border: 1px solid #b0d0b0; }
.tag-classified { background: #f0e8f0; color: #5a2d7a; border: 1px solid #c0a0d0; }
.tag-ccs { background: #e8eef8; color: #1a3a6a; border: 1px solid #a0b8d8; }
.tag-god { background: #fef0e0; color: #7a4000; border: 1px solid #d4a060; }
.tag-bill { background: #e8f4e8; color: #2d4a1a; border: 1px solid #90b870; }

/* ============================================
   HOMEPAGE — HEADLINES / TYPE STYLES
   ============================================ */
.hl-lead { font-family: 'Playfair Display', serif; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; line-height: 1.12; color: var(--text); margin-bottom: 8px; }
.hl-sub { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 6px; }
.hl-small { font-family: 'Playfair Display', serif; font-size: 14.5px; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 5px; }
.dek { font-size: 13.5px; color: var(--text-mid); line-height: 1.55; margin-bottom: 10px; }
.byline { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; border-top: 1px solid var(--rule); padding-top: 8px; margin-top: auto; }

/* ============================================
   HOMEPAGE — SLIDESHOW
   ============================================ */
.lead-slideshow { position: relative; overflow: hidden; width: 420px; flex-shrink: 0; }
.slide-track { display: flex; transition: transform 0.4s ease; }
.slide-item { flex-shrink: 0; width: 420px; position: relative; }
.slide-item .lead-top-img { width: 100%; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.04em; padding: 6px 10px; line-height: 1.4; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 24px; padding: 6px 10px; cursor: pointer; z-index: 2; line-height: 1; }
.slide-btn:hover { background: var(--accent); }
.slide-prev { left: 6px; }
.slide-next { right: 6px; }
.slide-counter { position: absolute; bottom: 8px; right: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #fff; background: rgba(0,0,0,0.5); padding: 2px 6px; letter-spacing: 0.06em; }

/* ============================================
   HOMEPAGE — LEAD GRID
   ============================================ */
.lead-grid { display: grid; grid-template-columns: 1fr 300px; gap: 0; border-bottom: 1px solid var(--rule); margin-top: 20px; }
.lead-main { padding-right: 24px; border-right: 1px solid var(--rule); padding-bottom: 20px; }
.lead-top { display: grid; grid-template-columns: 420px 1fr; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.lead-top-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bg-light); border: 1px dashed var(--rule); }
.lead-top-text { display: flex; flex-direction: column; justify-content: flex-start; }
.lead-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lead-sec-story { padding-right: 20px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.lead-sec-story:last-child { padding-right: 0; padding-left: 20px; border-right: none; }
.sec-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 8px; background: var(--bg-light); border: 1px dashed var(--rule); }
.lead-sidebar { padding-left: 20px; display: flex; flex-direction: column; gap: 0; padding-bottom: 20px; }

/* ============================================
   HOMEPAGE — SECTION HEADERS & GRIDS
   ============================================ */
.section-header { display: flex; align-items: center; gap: 12px; padding: 10px 0 8px; border-top: 2px solid var(--rule-dark); border-bottom: 1px solid var(--rule); margin-top: 24px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.section-line { flex: 1; height: 1px; background: var(--rule); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--rule-dark); border-bottom: 1px solid var(--rule); }
.three-col.no-top { border-top: none; }
.col-story { border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.col-story:first-child { padding: 20px 20px 20px 0; }
.col-story:nth-child(2) { padding: 20px; }
.col-story:last-child { padding: 20px 0 20px 20px; border-right: none; }
.story-img-square { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 10px; background: #e8e4dc; }
.story-img-thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; margin-bottom: 8px; background: #e8e4dc; }

/* ============================================
   PULL QUOTE — used on both homepage and articles
   ============================================ */
.pull-quote { border-left: 3px solid var(--accent); padding: 8px 14px; margin: 10px 0; margin-left: 20%; font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; color: var(--text-mid); line-height: 1.4; background: var(--bg-light); }

/* ============================================
   ARTICLE PAGES — LAYOUT
   ============================================ */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 0; margin-top: 32px; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
.article-body { padding-right: 40px; border-right: 1px solid var(--rule); min-width: 0; }
.article-header { border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 24px; }
.article-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 46px); font-weight: 900; line-height: 1.08; color: var(--text); margin-bottom: 14px; }
.article-dek { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 18px; color: var(--text-mid); line-height: 1.5; margin-bottom: 16px; }
.article-byline { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 10px; background: var(--bg-light); }
.article-hero-caption { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.04em; margin-bottom: 24px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.article-text p { font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.article-text h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text); margin: 32px 0 12px; border-top: 1px solid var(--rule); padding-top: 20px; }

/* ============================================
   ARTICLE PAGES — INLINE BANNER AD
   ============================================ */
.inline-banner { display: block; text-decoration: none; margin: 28px 0; }
.inline-banner-inner { background: #1a1816; border: 1px solid #2a2520; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.inline-banner-inner::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: #c8000a; }
.inline-banner-text { flex: 1; min-width: 0; }
.inline-banner-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #c8000a; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.inline-banner-headline { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #ffffff; line-height: 1.1; margin-bottom: 6px; }
.inline-banner-headline em { color: #c8000a; }
.inline-banner-sub { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 13px; color: #8a8480; line-height: 1.5; }
.inline-banner-cta { flex-shrink: 0; text-align: center; }
.inline-banner-btn { display: inline-block; background: #c8000a; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px; white-space: nowrap; }
.inline-banner-note { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #444; margin-top: 6px; letter-spacing: 0.06em; }

/* ============================================
   SIDEBAR — shared by homepage and articles
   ============================================ */
.article-sidebar { padding-left: 24px; }
.sidebar-sticky { position: sticky; top: 36px; }
.sidebar-ad { border: 2px solid var(--rule-dark); background: var(--text); color: #fff; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; min-height: 260px; justify-content: center; margin-bottom: 16px; }
.sidebar-ad::before { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 2px; background: rgba(200,0,10,0.5); animation: scanline 4s linear infinite; }
@keyframes scanline { 0% { top: -2px; } 100% { top: 100%; } }
.ad-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.ad-logo { width: 54px; height: 54px; object-fit: contain; filter: invert(1); margin-bottom: 12px; animation: pulse-logo 3s ease-in-out infinite; }
@keyframes pulse-logo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.96); } }
.ad-headline { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; margin-bottom: 8px; }
.ad-sub { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 12px; color: #aaa; line-height: 1.45; margin-bottom: 16px; }
.ad-btn { display: inline-block; background: var(--accent); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 18px; border: none; cursor: pointer; transition: background 0.15s, transform 0.1s; text-decoration: none; }
.ad-btn:hover { background: #a00008; transform: translateY(-1px); }
.ad-small { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #555; margin-top: 10px; letter-spacing: 0.06em; }
.ad-ccs { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #444; letter-spacing: 0.08em; margin-top: 14px; border-top: 1px solid #333; padding-top: 8px; width: 100%; text-align: left; }
.ad-ccs .score { color: var(--amber); }

/* ============================================
   BLAKE EPIGRAPH BOX
   ============================================ */
.blake-box { border: 1px solid #c8d8e8; background: #f0f5fa; padding: 16px 18px; margin-bottom: 16px; }
.blake-box-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #3a6a9a; margin-bottom: 10px; display: block; }
.blake-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; line-height: 1.5; color: var(--text); margin-bottom: 8px; }
.blake-quote::before { content: '\201C'; color: #3a6a9a; font-size: 22px; line-height: 0; vertical-align: -4px; margin-right: 2px; }
.blake-quote::after { content: '\201D'; color: #3a6a9a; font-size: 22px; line-height: 0; vertical-align: -4px; margin-left: 2px; }
.blake-attr { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #3a6a9a; letter-spacing: 0.06em; }
.blake-cta { display: inline-block; margin-top: 10px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #3a6a9a; border-bottom: 1px solid #3a6a9a; padding-bottom: 1px; }
.blake-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================
   RELATED STORIES
   ============================================ */
.related-header { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); border-top: 2px solid var(--rule-dark); border-bottom: 1px solid var(--rule); padding: 8px 0; margin-bottom: 16px; }
.related-story { border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 14px; }
.related-story:last-child { border-bottom: none; }
.related-story h4 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 4px; }
.related-story h4:hover { color: var(--accent); }
.related-story .meta { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: var(--text); color: #aaa; padding: 20px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #fff; text-transform: uppercase; }
.footer-logo .amp { color: var(--accent); font-style: italic; }
.footer-info { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #666; letter-spacing: 0.06em; text-align: right; line-height: 1.6; }

/* ============================================
   MOBILE — all breakpoints in one place
   ============================================ */
@media (max-width: 960px) {
  /* Homepage */
  .lead-grid { grid-template-columns: 1fr; }
  .lead-main { padding-right: 0; border-right: none; border-bottom: 1px solid var(--rule); }
  .lead-sidebar { padding-left: 0; padding-top: 16px; }
  .lead-top { grid-template-columns: 1fr; }
  .lead-secondary { grid-template-columns: 1fr; }
  .lead-sec-story { padding-right: 0; padding-left: 0; border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 16px; }
  .lead-slideshow { width: 100%; }
  .slide-item { width: 100vw; }
  .three-col { grid-template-columns: 1fr; }
  .col-story { border-right: none; border-bottom: 1px solid var(--rule); }
  .ccs-pill { display: none; }

  /* Articles */
  .article-wrap { grid-template-columns: 1fr; }
  .article-body { padding-right: 0; border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 32px; margin-bottom: 32px; }
  .article-sidebar { padding-left: 0; }
  .sidebar-sticky { position: static; }
  .inline-banner-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .inline-banner-headline { font-size: 18px; }
  .inline-banner-cta { width: 100%; }
  .inline-banner-btn { display: block; text-align: center; }

  /* Shared */
  .masthead-title { font-size: clamp(28px, 8vw, 48px); }
  .breaking-bar { font-size: 11px; }
  .top-bar-left { font-size: 9px; }
}