/*
Theme Name:  CoinAndStocks
Theme URI:   https://coinandstocks.com
Author:      CoinAndStocks Team
Description: Custom newspaper-style finance & crypto publication theme for CoinAndStocks.
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: coinandstocks
*/

/* ── Design Tokens ────────────────────────────────── */
:root {
  --paper:   #f5f0e8;
  --ink:     #0e0d0b;
  --ink-2:   #2c2a26;
  --ink-3:   #5c5650;
  --rule:    #d4cec4;
  --green:   #15803d;
  --green-l: #dcfce7;
  --gold:    #b45309;
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-50: rgba(255,255,255,0.5);
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────── */
.font-serif  { font-family: 'Playfair Display', Georgia, serif; }
.font-sans   { font-family: 'DM Sans', system-ui, sans-serif; }

.label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label-green {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.55s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ── Border helpers ───────────────────────────────── */
.border-double-b { border-bottom: 4px double var(--ink); }
.border-double-t { border-top: 4px double var(--ink); }
.border-double-y { border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); }

/* ── Layout container ─────────────────────────────── */
.cs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.cs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

/* Ticker tape */
.cs-ticker {
  background: var(--ink);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.cs-ticker-scroll { width: 100%; overflow: hidden; }
.cs-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.cs-ticker-track.running {
  animation: cs-tick-scroll 55s linear infinite;
}
.cs-ticker-track.running:hover { animation-play-state: paused; }
.cs-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  font-size: 0.7rem;
  line-height: 1;
}
.cs-tick-nm {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.625rem;
  font-style: normal;
}
.cs-tick-px { color: #fff; font-weight: 600; }
.cs-tick-chg { font-style: normal; font-weight: 600; }
.cs-tick-chg.up { color: #4ade80; }
.cs-tick-chg.dn { color: #f87171; }
.cs-tick-dot { color: rgba(255,255,255,0.2); padding: 0 6px; font-size: 0.8rem; }
.cs-tick-placeholder { color: rgba(255,255,255,0.3); font-size: 0.7rem; padding: 0 16px; }
@keyframes cs-tick-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Top bar */
.cs-topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 1rem;
}

.cs-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-topbar-links { display: none; gap: 1rem; align-items: center; }
.cs-topbar-links a { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cs-topbar-links a:hover { color: var(--green); }

/* Wordmark bar */
.cs-wordmark-bar {
  background: var(--paper);
  border-bottom: 4px double var(--ink);
  padding: 0.75rem 1rem;
}

.cs-wordmark-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cs-badge {
  border: 1.5px solid var(--ink);
  padding: 0.5rem 0.625rem;
  text-align: center;
  line-height: 1.2;
  display: none;
}

.cs-badge p { font-size: 0.5rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.cs-badge hr { border-color: var(--ink); margin: 0.25rem 0; }
.cs-badge .cs-badge-sub { font-size: 0.45rem; letter-spacing: 0.2em; }

.cs-wordmark {
  flex: 1;
  text-align: center;
}

.cs-wordmark a {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  display: block;
  transition: opacity 0.2s;
}

.cs-wordmark a:hover { opacity: 0.8; }

.cs-wordmark-tagline {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.375rem;
}

.cs-wordmark-tagline .line { height: 1px; background: var(--ink); flex: 1; }
.cs-wordmark-tagline span { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.cs-quicklinks { display: none; align-items: center; justify-content: flex-end; gap: 0.75rem; }

.cs-quicklinks a {
  border: 1px solid var(--rule);
  padding: 0.375rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,0.5);
  transition: background 0.15s, color 0.15s;
}

.cs-quicklinks a:hover { background: var(--ink); color: white; }

/* Mobile menu button */
.cs-mobile-menu-btn {
  background: none;
  border: 1px solid var(--rule);
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Category bar */
.cs-catbar {
  background: var(--ink);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cs-catbar::-webkit-scrollbar { display: none; }

.cs-catbar-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cs-catbar-list {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.cs-catbar-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  transition: background 0.15s;
}

.cs-catbar-list a:hover { background: var(--gold); }

.cs-catbar-list a .cat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.cs-catbar-list a:hover .cat-label { color: white; }

.cs-catbar-list a .cat-count {
  font-size: 0.65rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}

.cs-catbar-list a:hover .cat-count { color: rgba(255,255,255,0.7); }

/* Mobile drawer */
.cs-mobile-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--paper);
  z-index: 50;
  border-left: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cs-mobile-drawer.open { transform: translateX(0); }
.cs-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 49;
}

.cs-mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 1.5rem;
  display: block;
}

.cs-mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.cs-mobile-nav a:hover { color: var(--green); }

/* ═══════════════════════════════════════════════════
   HOMEPAGE
═══════════════════════════════════════════════════ */
.cs-home { padding: 1.25rem 0; }

/* Breaking banner */
.cs-breaking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  background: rgba(255,255,255,0.6);
  padding: 0.625rem 1rem;
  margin-bottom: 1.25rem;
}

.cs-breaking .badge {
  background: var(--ink);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  flex-shrink: 0;
}

.cs-breaking p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cs-breaking a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
}

.cs-breaking a:hover { text-decoration: underline; }

/* Hero grid */
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.cs-hero-article { background: rgba(255,255,255,0.4); }

.cs-hero-img { width: 100%; height: 220px; overflow: hidden; }
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.cs-hero-body { padding: 1.25rem; }

.cs-hero-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  transition: color 0.15s;
}

.cs-hero-body h2:hover { color: var(--gold); }

.cs-hero-divider { width: 4rem; height: 3px; background: var(--ink); margin-bottom: 1rem; }

.cs-hero-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.cs-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-hero-meta-left { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--ink-3); }
.cs-hero-meta-left .author { font-weight: 600; }

.cs-read-btn {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: white;
  padding: 0.5rem 1rem;
  transition: background 0.15s;
}

.cs-read-btn:hover { background: var(--gold); color: white; }

/* Right stack */
.cs-hero-stack { display: flex; flex-direction: column; }

.cs-stack-item {
  border-top: 1px solid var(--rule);
  transition: background 0.15s;
}

.cs-stack-item:hover { background: rgba(255,255,255,0.6); }

.cs-stack-img { width: 100%; height: 120px; overflow: hidden; }
.cs-stack-img img { width: 100%; height: 100%; object-fit: cover; }

.cs-stack-body { padding: 1rem 1.25rem; }

.cs-stack-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.cs-stack-body h3:hover { color: var(--gold); }

.cs-stack-excerpt {
  font-size: 0.75rem;
  color: var(--ink-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.75rem;
}

.cs-stack-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); }
.cs-stack-meta .read-time { font-weight: 500; }

/* Section divider */
.cs-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cs-section-divider .heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cs-section-divider .rule { height: 1px; background: var(--rule); flex: 1; }

.cs-section-divider .view-all {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.cs-section-divider .view-all:hover { color: var(--green); }

/* 3-col editorial */
.cs-editorial {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.cs-editorial-col1 { border-bottom: 1px solid var(--rule); transition: background 0.15s; }
.cs-editorial-col1:hover { background: rgba(255,255,255,0.5); }

.cs-editorial-col1 .col-img { width: 100%; height: 150px; overflow: hidden; }
.cs-editorial-col1 .col-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-editorial-col1 .col-img-placeholder {
  width: 100%; height: 150px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 2rem;
}

.cs-editorial-col1 .col-body { padding: 1.25rem; }

.cs-editorial-col1 .col-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.cs-editorial-col1 .col-body h3:hover { color: var(--gold); }

.cs-editorial-col1 .col-excerpt {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0.75rem;
}

.cs-editorial-col1 .read-more {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s;
}

.cs-editorial-col1 .read-more:hover { color: var(--gold); }

/* Promo box */
.cs-promo-box {
  border: 2px solid var(--ink);
  padding: 1rem;
  position: relative;
  background: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.cs-promo-box .badge {
  position: absolute;
  top: -0.75rem;
  right: 0.75rem;
  background: var(--green);
  color: white;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 0.125rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cs-promo-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
}

.cs-promo-box h3 span { color: var(--green); }
.cs-promo-box hr { border-color: var(--rule); margin: 0.75rem 0; }

/* Mini list */
.cs-mini-list { }
.cs-mini-list .mini-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.cs-mini-list .mini-item:last-child { border-bottom: none; }

.cs-mini-list .mini-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.15s;
}

.cs-mini-list .mini-item h4:hover { color: var(--gold); }

/* Newsletter box (light) */
.cs-newsletter {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: rgba(255,255,255,0.4);
}

.cs-newsletter h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.cs-newsletter p {
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.cs-newsletter input[type="email"] {
  width: 100%;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.625rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  background: white;
  color: var(--ink);
  outline: none;
  margin-bottom: 0.5rem;
}

.cs-newsletter input[type="email"]:focus { border-color: var(--ink); }

.cs-newsletter button {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  padding: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.cs-newsletter button:hover { background: var(--gold); }
.cs-newsletter .privacy { font-size: 0.6rem; color: var(--ink-3); margin-top: 0.375rem; }

/* Articles grid */
.cs-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule);
}

.cs-article-card {
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
  overflow: hidden;
}

.cs-article-card:hover { background: rgba(255,255,255,0.7); }

.cs-article-card .card-img { width: 100%; height: 140px; overflow: hidden; }
.cs-article-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cs-article-card:hover .card-img img { transform: scale(1.05); }

.cs-article-card .card-body { padding: 1.25rem; }

.cs-article-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.cs-article-card:hover h3 { color: var(--gold); }

.cs-article-card .card-excerpt {
  font-size: 0.75rem;
  color: var(--ink-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.cs-article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.cs-article-card .card-meta .rt { font-weight: 500; }

.cs-view-all {
  border: 1px solid var(--rule);
  border-top: none;
  padding: 1rem;
  text-align: center;
}

.cs-view-all a {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s;
}

.cs-view-all a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════ */
.cs-single { padding: 1.5rem 0 2rem; }

.cs-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Breadcrumbs */
.cs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cs-breadcrumbs a:hover { color: var(--green); }

/* Article header */
.cs-article-header {}

.cs-article-header .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.cs-title-divider {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.cs-title-divider .thick { height: 3px; width: 5rem; background: var(--ink); }
.cs-title-divider .thin { height: 1px; flex: 1; background: var(--rule); }

.cs-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-3);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.cs-post-meta .author { font-weight: 600; color: var(--ink-2); }
.cs-post-meta .dot { color: var(--rule); }

.cs-cover-img { width: 100%; max-height: 320px; object-fit: cover; margin-bottom: 1.5rem; }

/* Ad placeholder */
.cs-ad-placeholder {
  border: 1px dashed #c8c2b6;
  background: rgba(255,255,255,0.5);
  padding: 1rem;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

/* Pull quote */
.pull-quote {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.25rem 0;
  margin: 2.25rem auto;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
  max-width: 90%;
}

/* Article body prose */
.article-body {
  text-align: justify;
  text-justify: inter-word;
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.25rem 0 0.85rem;
  line-height: 1.25;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
}

.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 1.75rem 0 0.6rem;
}

.article-body p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.85;
  float: left;
  margin: 0.15rem 0.25rem 0 0;
  color: var(--ink);
}

.article-body ul, .article-body ol {
  color: var(--ink-2);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body li  { margin-bottom: 0.5rem; line-height: 1.75; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a   { color: var(--green); text-decoration: underline; font-weight: 500; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.article-body th {
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body td {
  padding: 0.65rem 0.5rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}

.article-body tr:last-child td { border-bottom: none; }

.cs-back-link {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.cs-back-link a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
}

.cs-back-link a:hover { color: var(--green); }

/* ── Sidebar ─────────────────────────────────────── */
.cs-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.cs-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cs-sidebar-section-title span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cs-sidebar-section-title .rule { height: 1px; background: var(--rule); flex: 1; }

/* Related posts in sidebar */
.cs-related-list { }
.cs-related-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
}

.cs-related-item:first-child { padding-top: 0; }
.cs-related-item:last-child { border-bottom: none; }

.cs-related-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}

.cs-related-item h4:hover { color: var(--gold); }
.cs-related-item .date { font-size: 0.7rem; color: var(--ink-3); margin-top: 0.25rem; }

/* Sections list in sidebar */
.cs-sections-list { }
.cs-sections-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}

.cs-sections-list a:hover { color: var(--green); }
.cs-sections-list a:last-child { border-bottom: none; }
.cs-sections-list a .arrow { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; }

/* ═══════════════════════════════════════════════════
   ARCHIVE / BLOG LIST
═══════════════════════════════════════════════════ */
.cs-archive { padding: 1.5rem 0 2rem; }

.cs-archive-header { margin-bottom: 1.5rem; }
.cs-archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.cs-archive-subtitle { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 1rem; }

.cs-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

/* Pagination */
.cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cs-pagination a, .cs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}

.cs-pagination a:hover { background: var(--ink); color: white; }
.cs-pagination .current { background: var(--ink); color: white; }
.cs-pagination .prev,
.cs-pagination .next {
  width: auto;
  min-width: 2rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   STATIC PAGES
═══════════════════════════════════════════════════ */
.cs-page { padding: 2rem 0; max-width: 800px; margin: 0 auto; }

.cs-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cs-page-content { }
.cs-page-content p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.25rem; }
.cs-page-content h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 0.75rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.25rem; }
.cs-page-content h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--ink-2); margin: 1.5rem 0 0.5rem; }
.cs-page-content ul, .cs-page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--ink-2); }
.cs-page-content li { margin-bottom: 0.5rem; line-height: 1.75; }
.cs-page-content a { color: var(--green); text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.cs-footer { background: var(--ink); color: #7a7060; margin-top: 4rem; }
.cs-footer-inner { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1rem; }

.cs-footer-top {
  border-bottom: 1px solid #1e1c18;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cs-footer-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: #f5f0e8;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.cs-footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4438;
}

.cs-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.cs-footer-col h4 {
  color: #f5f0e8;
  font-weight: 900;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cs-footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.cs-footer-col ul a { color: #7a7060; transition: color 0.15s; }
.cs-footer-col ul a:hover { color: var(--gold); }

/* Footer newsletter */
.cs-footer-newsletter {}
.cs-footer-newsletter input[type="email"] {
  width: 100%;
  background: #1e1c18;
  border: 1px solid #2c2a26;
  color: #f5f0e8;
  padding: 0.5rem 0.625rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  outline: none;
  margin-bottom: 0.5rem;
}

.cs-footer-newsletter input:focus { border-color: #4a4438; }

.cs-footer-newsletter button {
  width: 100%;
  background: #f5f0e8;
  color: var(--ink);
  border: none;
  padding: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cs-footer-newsletter button:hover { background: var(--gold); color: white; }

.cs-footer-bottom {
  border-top: 1px solid #1e1c18;
  padding-top: 1.5rem;
  text-align: center;
}

.cs-footer-bottom p { font-size: 0.75rem; margin-bottom: 0.25rem; }
.cs-footer-bottom .copyright { color: #5c5650; }
.cs-footer-bottom .disclaimer { color: #3a3628; font-size: 0.7rem; }

/* ═══════════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════════ */
.cs-404 { padding: 5rem 1rem; text-align: center; }
.cs-404 h1 { font-family: 'Playfair Display', serif; font-size: 6rem; font-weight: 900; color: var(--ink); line-height: 1; }
.cs-404 h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--ink-2); margin: 1rem 0; }
.cs-404 p { color: var(--ink-3); margin-bottom: 1.5rem; }
.cs-404 a { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; background: var(--ink); color: white; padding: 0.625rem 1.25rem; display: inline-block; transition: background 0.15s; }
.cs-404 a:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .cs-topbar-links { display: flex; }
  .cs-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-archive-grid .cs-article-card { border-right: 1px solid var(--rule); }
  .cs-archive-grid .cs-article-card:nth-child(2n) { border-right: none; }
  .cs-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-articles-grid .cs-article-card { border-right: 1px solid var(--rule); }
  .cs-articles-grid .cs-article-card:nth-child(2n) { border-right: none; }
}

@media (min-width: 768px) {
  .cs-wordmark-bar { padding: 0.75rem 1rem 1rem; }
  .cs-badge { display: block; }
  .cs-wordmark-tagline { display: flex; }
  .cs-quicklinks { display: flex; }
  .cs-mobile-menu-btn { display: none; }
  .cs-catbar-list { width: 100%; }
  .cs-editorial { grid-template-columns: repeat(3, 1fr); }
  .cs-editorial-col1 { border-bottom: none; border-right: 1px solid var(--rule); }
  .cs-editorial-col1:last-child { border-right: none; }
  .cs-footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .cs-hero-grid { grid-template-columns: 1.7fr 1fr; }
  .cs-hero-article { border-right: 1px solid var(--rule); }
  .cs-hero-stack .cs-stack-item { border-top: 1px solid var(--rule); }
  .cs-hero-stack .cs-stack-item:first-child { border-top: none; }
  .cs-single-grid { grid-template-columns: 1fr 280px; gap: 2.5rem; }
  .cs-archive-grid { grid-template-columns: repeat(3, 1fr); }
  .cs-archive-grid .cs-article-card:nth-child(2n) { border-right: 1px solid var(--rule); }
  .cs-archive-grid .cs-article-card:nth-child(3n) { border-right: none; }
  .cs-articles-grid { grid-template-columns: repeat(3, 1fr); }
  .cs-articles-grid .cs-article-card:nth-child(2n) { border-right: 1px solid var(--rule); }
  .cs-articles-grid .cs-article-card:nth-child(3n) { border-right: none; }
}