/* Macro Editorial Theme — Newspaper / Magazine Style */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --bg:        #f5f0e8;
  --bg-card:   #fefcf8;
  --bg-dark:   #1a1207;
  --primary:   #1a1207;
  --red:       #8b1a1a;
  --text:      #1a1207;
  --text-muted:#7a6a50;
  --border:    #d4c9b0;
  --border-dark:#b5a88e;
  --cream:     #f9f5ec;
  --shadow:    0 1px 3px rgba(0,0,0,0.08);
}

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

body { background: var(--bg); color: var(--text); font-family: 'Source Sans 3', sans-serif; margin: 0; padding: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem 3rem; }

/* ── Header ── */
header {
  background: var(--bg-card);
  border-bottom: 3px double var(--border-dark);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
header::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--primary);
  margin-bottom: 1.5rem;
}
.site-title-link { text-decoration: none; color: inherit; }
.site-title-link:hover h1 { color: var(--red); }
h1 {
  font-family: 'Merriweather', serif;
  font-size: 3.2rem; font-weight: 900;
  color: var(--primary); margin: 0;
  letter-spacing: -1px; line-height: 1;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem; display: inline-block;
}
header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.6rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 300; font-family: 'Source Sans 3', sans-serif; }

/* ── Dateline ── */
.dateline { text-align: center; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; padding: 0.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; font-family: 'Source Sans 3', sans-serif; }

/* ── Layout ── */
.content-layout { display: grid; grid-template-columns: 1fr 270px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 1rem; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); padding: 1.3rem 1.4rem; margin-bottom: 1.5rem; border-top: 3px solid var(--primary); }
.widget-title {
  font-family: 'Merriweather', serif;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary);
  margin: 0 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--primary); text-decoration: none; font-size: 0.88rem; font-weight: 400; font-family: 'Merriweather', serif; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-list a:hover { color: var(--red); text-decoration: underline; }
.sidebar-date { font-size: 0.7rem; color: var(--text-muted); font-weight: 300; letter-spacing: 0.5px; text-transform: uppercase; }

/* ── Article Grid ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 2px solid var(--primary); border-left: 1px solid var(--border); }
.article-card { background: var(--bg-card); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.6rem; display: flex; flex-direction: column; }
.article-card:hover { background: var(--cream); }
.article-card h3 { font-family: 'Merriweather', serif; font-size: 1.05rem; font-weight: 700; margin: 0.3rem 0 0.7rem; line-height: 1.4; color: var(--primary); }
.article-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; flex-grow: 1; margin-bottom: 1.2rem; font-weight: 300; }
.article-card .meta { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.read-more-btn { color: var(--red); text-decoration: none; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 0; border: none; background: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.read-more-btn::after { content: ' →'; }
.read-more-btn:hover { text-decoration: underline; }

/* ── Article ── */
article { background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--primary); padding: 3rem; margin-bottom: 2rem; }
article h2 { font-family: 'Merriweather', serif; font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.75rem; color: var(--primary); }
.article-content { font-family: 'Merriweather', serif; font-size: 1rem; line-height: 1.9; font-weight: 300; }
.article-content p:first-of-type::first-letter { font-size: 3.5rem; font-weight: 900; float: left; margin: 0.05em 0.1em 0 0; line-height: 0.8; color: var(--red); }
.article-content h2 { font-size: 1.4rem; color: var(--primary); margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; font-weight: 900; }
.article-content h3 { font-size: 1.1rem; color: var(--primary); font-style: italic; }
.article-content a { color: var(--red); }
.article-content blockquote { border-left: 4px solid var(--red); margin: 1.5rem 0; padding: 1rem 1.5rem; font-style: italic; background: var(--cream); color: var(--text-muted); }
.crypto-metadata { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 2px double var(--border-dark); letter-spacing: 0.3px; font-family: 'Source Sans 3', sans-serif; }
.read-time { color: var(--red); font-weight: 600; font-style: italic; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; font-family: 'Source Sans 3', sans-serif; letter-spacing: 0.5px; }
.breadcrumb a { color: var(--red); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero Image ── */
.article-hero-image { margin: 1.5rem 0 2rem; border: 1px solid var(--border); overflow: hidden; line-height: 0; }
.article-hero-image img { width: 100%; height: 380px; object-fit: cover; display: block; filter: grayscale(10%); }
@media (max-width: 768px) { .article-hero-image img { height: 220px; } }
.image-credit { padding: 0.35rem 0.7rem; background: var(--cream); font-size: 0.68rem; color: var(--text-muted); font-family: 'Source Sans 3', sans-serif; border-top: 1px solid var(--border); text-align: right; font-style: italic; }

/* ── Tags ── */
.keyword-tags { margin: 1.5rem 0; padding: 1rem 1.2rem; background: var(--cream); border-top: 2px solid var(--primary); border-bottom: 1px solid var(--border); font-size: 0.82rem; font-family: 'Source Sans 3', sans-serif; }
.keyword-tags strong { color: var(--primary); margin-right: 0.5rem; font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; }
.tag { display: inline-block; background: transparent; color: var(--red); border: 1px solid var(--red); font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; margin: 0.15rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Related ── */
.related-articles { margin: 2rem 0 1rem; padding: 1.5rem; background: var(--cream); border-top: 2px solid var(--primary); border-bottom: 1px solid var(--border); }
.related-articles h3 { font-family: 'Merriweather', serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-dark); }
.related-list { list-style: disc; margin: 0; padding-left: 1.2rem; }
.related-list li { padding: 0.4rem 0; color: var(--text-muted); font-family: 'Merriweather', serif; }
.related-list a { color: var(--primary); font-weight: 400; font-size: 0.88rem; text-decoration: none; font-style: italic; }
.related-list a:hover { color: var(--red); text-decoration: underline; }

/* ── Ad / Footer ── */
.ad-slot { border: 1px solid var(--border); padding: 1rem; margin: 1.5rem 0; text-align: center; background: var(--cream); }
footer { margin-top: 4rem; background: var(--primary); color: #a89870; padding: 2rem; text-align: center; font-size: 0.8rem; letter-spacing: 1px; font-family: 'Source Sans 3', sans-serif; border-top: 4px double #a89870; }
@media (max-width: 768px) { h1 { font-size: 2rem; } .article-grid { grid-template-columns: 1fr; border-left: none; } article { padding: 1.5rem; } }
