
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink: #1a2b3c;
  --accent: #2563eb;
  --bg: #f0f4f9;
  --surface: #ffffff;
  --border: #cdd5e3;
  --muted: #5d6e8a;
  --max-w: 1260px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header { background: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-link { text-decoration: none; }
.logo-wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1; }
.logo-wordmark span { color: var(--accent); }
.logo-tagline { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.45); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; }
.header-nav { padding: 0.55rem 0; }
.header-nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
.header-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.15s; }
.header-nav a:hover { color: #fff; }
.header-nav .nav-cta a { background: var(--accent); color: #fff; padding: 0.4rem 0.9rem; border-radius: 2px; }
.header-nav .nav-cta a:hover { background: #1d4ed8; }

/* ── Search ── */
.header-search { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.search-input { background: none; border: none; color: #fff; padding: 0.4rem 0.75rem; font-size: 0.8rem; font-family: inherit; width: 180px; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-btn { background: var(--accent); border: none; color: #fff; padding: 0.4rem 0.65rem; cursor: pointer; display: flex; align-items: center; }
.search-btn svg { width: 14px; height: 14px; }

/* ── Category nav ── */
.cat-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.cat-nav-list { list-style: none; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav-list::-webkit-scrollbar { display: none; }
.cat-nav-link { display: block; padding: 0.65rem 1.1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.cat-nav-link:hover, .cat-nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ── Category badge ── */
.cat-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 1px; margin-bottom: 0.45rem; }

  .cat-politics { background:#eef2ff; color:#1e3a8a; }
  .cat-business { background:#ecfdf5; color:#065f46; }
  .cat-technology { background:#eff6ff; color:#1e40af; }
  .cat-science { background:#f5f3ff; color:#6d28d9; }
  .cat-world { background:#ecfeff; color:#0e7490; }
  .cat-health { background:#fef2f2; color:#b91c1c; }
  .cat-environment { background:#f0fdf4; color:#15803d; }
  .cat-entertainment { background:#fdf4ff; color:#a21caf; }
  .cat-opinion { background:#fefce8; color:#854d0e; }
  .cat-lifestyle { background:#fff1f2; color:#9f1239; }
  .cat-general { background:#f0f4f9; color:#5d6e8a; }


/* ── Search results page ── */
.search-wrap { padding: 2.5rem 0 4rem; }
.search-header { margin-bottom: 2rem; }
.search-header h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.75rem; font-weight: 700; }
.search-header p { color: var(--muted); margin-top: 0.4rem; }
.search-form-large { display: flex; gap: 0.5rem; max-width: 560px; margin-bottom: 2.5rem; }
.search-form-large input { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 2px; font-size: 1rem; font-family: inherit; outline: none; }
.search-form-large input:focus { border-color: var(--accent); }
.search-form-large button { background: var(--accent); color: #fff; border: none; padding: 0.75rem 1.5rem; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; border-radius: 2px; font-family: inherit; }
.search-no-results { color: var(--muted); padding: 2rem 0; }

/* ── Topbar ── */
.topbar { background: #070f1c; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0.45rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-date { font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }
.topbar-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ── Hero ── */
.hero-wrap { padding: 1.5rem 0 0; }
.hero-card { position: relative; height: 560px; overflow: hidden; background: #111; display: block; text-decoration: none; color: inherit; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.72; transition: opacity 0.6s ease, transform 0.6s ease; }
.hero-card:hover .hero-bg { opacity: 0.58; transform: scale(1.03); }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.1) 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.75rem 3rem; max-width: 820px; }
.hero-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.22rem 0.65rem; margin-bottom: 1rem; }
.hero-title { font-family: 'Playfair Display', Georgia, serif; font-size: 3.25rem; font-weight: 900; line-height: 1.08; color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-excerpt { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.1rem; max-width: 580px; }
.hero-meta { color: rgba(255,255,255,0.45); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Spotlight row ── */
.spotlight { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; margin: 1.25rem 0 0; }
.spotlight-main { height: 370px; }
.spotlight-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.spotlight-side { flex: 1; background: var(--surface); border: 1px solid var(--border); display: flex; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.spotlight-side:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.spotlight-side-img { width: 130px; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--border); }
.spotlight-side-body { padding: 1rem 1.15rem; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; }
.spotlight-side-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.spotlight-side-title { font-family: 'Playfair Display', Georgia, serif; font-size: 0.9rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.spotlight-side-date { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Overlay card (spotlight main) ── */
.overlay-card { position: relative; overflow: hidden; display: block; text-decoration: none; background: #111; height: 100%; }
.overlay-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.78; transition: opacity 0.5s ease, transform 0.6s ease; }
.overlay-card:hover .overlay-bg { opacity: 0.62; transform: scale(1.05); }
.overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 55%, transparent 100%); }
.overlay-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 1.75rem; }
.overlay-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.overlay-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.overlay-meta { margin-top: 0.6rem; font-size: 0.68rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Section label ── */
.section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-top: 3px solid var(--accent); padding-top: 0.55rem; margin: 2rem 0 1.25rem; }

/* ── Niche row (hub homepage) ── */
.niche-row { margin: 2.25rem 0 0; }
.niche-row-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--accent); padding-top: 0.55rem; margin-bottom: 1.25rem; gap: 1rem; }
.niche-row-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.niche-row-more { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; white-space: nowrap; }
.niche-row-more:hover { text-decoration: underline; }
.niche-row .news-grid { padding-bottom: 0; }

/* ── News grid ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-bottom: 3rem; }
.news-card { background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow 0.25s, transform 0.25s; }
.news-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }
.card-img-wrap { overflow: hidden; height: 200px; flex-shrink: 0; }
.card-img { width: 100%; height: 100%; background-size: cover; background-position: center; background-color: var(--border); transition: transform 0.55s ease; }
.news-card:hover .card-img { transform: scale(1.07); }
.card-body { padding: 1rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem; }
.card-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.55rem; }
.card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 3rem; color: var(--muted); }

/* ── Signup banner ── */
.signup-banner { background: var(--ink); padding: 3.5rem 0; text-align: center; }
.signup-banner h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: #fff; margin-bottom: 0.6rem; }
.signup-banner p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.signup-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.signup-form input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 2px; font-size: 1rem; font-family: inherit; }
.btn-accent { background: var(--accent); color: #fff; border: none; padding: 0.75rem 1.4rem; border-radius: 2px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.btn-accent:hover { background: #1d4ed8; }

/* ── Footer ── */
.site-footer { background: #070f1c; color: rgba(255,255,255,0.4); padding: 1.75rem 0; text-align: center; font-size: 0.8rem; letter-spacing: 0.04em; }

/* ── Article page ── */
.article-wrap { padding: 2.5rem 0 4rem; }
.article-inner { max-width: 760px; margin: 0 auto; }
.article-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 0.15rem; display: inline-block; margin-bottom: 1.1rem; }
.article-h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.6rem; font-weight: 700; line-height: 1.18; margin-bottom: 1.25rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.article-hero { width: 100%; margin-bottom: 2rem; overflow: hidden; }
.article-hero img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }
.article-body { font-size: 1.1rem; line-height: 1.85; color: #222; }
.article-body p { margin-bottom: 1.4rem; }
.article-body p:first-child::first-letter { font-family: 'Playfair Display', Georgia, serif; font-size: 4.2rem; font-weight: 900; float: left; line-height: 0.78; margin: 0.12rem 0.1rem 0 0; color: var(--accent); }
.article-source { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.article-source-link { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: 0.04em; }
.article-source-link:hover { text-decoration: underline; }
.article-cta { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--bg); border-left: 4px solid var(--accent); }
.article-cta p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ── Related ── */
.related-wrap { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }

/* ── Archive ── */
.archive-wrap { padding: 2.5rem 0 4rem; }
.archive-list { margin-top: 1.5rem; }
.archive-item { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.archive-item:first-child { border-top: 1px solid var(--border); }
.archive-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 600; }
.archive-title a { text-decoration: none; color: var(--ink); }
.archive-title a:hover { color: var(--accent); }
.archive-date { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-card { height: 420px; }
  .hero-title { font-size: 2.25rem; }
  .hero-content { padding: 2rem 1.5rem; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-main { height: 280px; }
  .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-card { height: 340px; }
  .hero-title { font-size: 1.7rem; }
  .hero-excerpt { display: none; }
  .spotlight-side { flex-direction: column; }
  .spotlight-side-img { width: 100%; height: 120px; }
  .news-grid, .related-grid { grid-template-columns: 1fr; }
  .logo-wordmark { font-size: 1.5rem; }
  .header-nav .nav-cta { display: none; }
  .article-h1 { font-size: 1.85rem; }
  .archive-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ── New badge ── */
.badge-new { display:inline-flex; align-items:center; gap:0.25rem; background:#16a34a; color:#fff; font-size:0.55rem; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; padding:0.1rem 0.4rem; border-radius:2px; vertical-align:middle; margin-left:0.3rem; }
.badge-new::before { content:""; width:5px; height:5px; border-radius:50%; background:#fff; box-shadow:0 0 0 0 rgba(255,255,255,0.7); animation:badgepulse 1.8s ease-out infinite; }
@keyframes badgepulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,0.7);} 70%{box-shadow:0 0 0 5px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }

/* ── Reading progress bar (article pages) ── */
.reading-progress { position:fixed; top:0; left:0; right:0; height:3px; background:transparent; z-index:9999; pointer-events:none; }
.reading-progress-fill { height:100%; width:0; background:var(--accent); opacity:0.55; transition:width 0.08s linear; }

/* ── Share buttons ── */
.article-share { display:flex; align-items:center; flex-wrap:wrap; gap:0.5rem; margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.share-label { font-size:0.75rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; margin-right:0.25rem; }
.share-btn { display:inline-flex; align-items:center; gap:0.4rem; padding:0.4rem 0.8rem; border-radius:2px; font-size:0.75rem; font-weight:600; text-decoration:none; border:1px solid var(--border); background:var(--surface); color:var(--ink); cursor:pointer; font-family:inherit; transition:transform 0.1s, box-shadow 0.15s; }
.share-btn:hover { transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.share-btn svg { flex-shrink:0; }
.share-twitter { background:#000; color:#fff; border-color:#000; }
.share-linkedin { background:#0a66c2; color:#fff; border-color:#0a66c2; }
.share-btn.copied { background:#16a34a; color:#fff; border-color:#16a34a; }

/* ── Latest today strip ── */
.latest-strip { background:var(--ink); border-bottom:1px solid rgba(255,255,255,0.08); }
.latest-inner { display:flex; align-items:stretch; gap:0; }
.latest-label { display:flex; align-items:center; gap:0.45rem; font-size:0.62rem; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); white-space:nowrap; flex-shrink:0; padding:0.7rem 1rem 0.7rem 0; border-right:1px solid rgba(255,255,255,0.1); margin-right:1rem; }
.latest-label::before { content:""; width:7px; height:7px; border-radius:50%; background:#16a34a; box-shadow:0 0 0 0 rgba(22,163,74,0.7); animation:badgepulse 1.6s ease-out infinite; flex-shrink:0; }
.latest-scroll { display:flex; gap:1.1rem; overflow-x:auto; scrollbar-width:none; flex:1; min-width:0; padding:0.55rem 0; }
.latest-scroll::-webkit-scrollbar { display:none; }
.latest-item { display:flex; align-items:center; gap:0.55rem; text-decoration:none; color:rgba(255,255,255,0.7); flex-shrink:0; max-width:280px; transition:color 0.15s; }
.latest-item:hover { color:#fff; }
.latest-thumb { width:36px; height:36px; flex-shrink:0; background-size:cover; background-position:center; background-color:rgba(255,255,255,0.05); border-radius:2px; }
.latest-text { font-size:0.78rem; font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width: 600px) {
  .latest-label { padding:0.55rem 0.7rem 0.55rem 0; margin-right:0.7rem; font-size:0.55rem; }
  .latest-item { max-width:220px; }
}

/* ── Ad slots ── */
.ad-slot { display:none; }
.ad-slot.is-active { display:block; }
