/* Bitcoin for Charity — News section
   Palette echoes the main site: deep charcoal, Bitcoin orange, clean white.
   Adjust the four custom properties below to match your live stylesheet exactly. */

:root {
  --ink: #0f1115;
  --ink-2: #181b21;
  --paper: #f5f6f8;
  --orange: #f7931a;
  --grey: #969ca5;
  --line: rgba(255,255,255,.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.65 "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Nav */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 22px 5vw; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.nav nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav nav a { color: var(--grey); font-size: .92rem; transition: color .2s; }
.nav nav a:hover, .nav nav a.active { color: var(--paper); }
.nav nav a.active { border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.donate {
  margin-left: auto; background: var(--orange); color: var(--ink);
  font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  padding: 11px 22px; border-radius: 4px; transition: filter .2s;
}
.donate:hover { filter: brightness(1.1); }
.donate.big { display: inline-block; margin: 18px 0 0; font-size: .95rem; padding: 15px 34px; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 56px 5vw 80px; }
.eyebrow {
  color: var(--orange); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow a { color: var(--orange); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; font-weight: 750; }
h1 em { font-style: italic; color: var(--orange); }
.lede { color: var(--grey); max-width: 560px; margin-top: 14px; font-size: 1.05rem; }
.empty { margin-top: 48px; color: var(--grey); }

/* Article grid */
.grid {
  margin-top: 48px;
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247,147,26,.45); }
.card img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 26px; }
.card .date { color: var(--orange); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.card h2 { font-size: 1.12rem; line-height: 1.35; margin: 10px 0 8px; }
.card p { color: var(--grey); font-size: .92rem; }
.card.feature { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card.feature { flex-direction: row; }
  .card.feature img { width: 55%; align-self: center; border-radius: 6px; }
  .card.feature .card-body { padding: 34px 38px; align-self: center; }
  .card.feature h2 { font-size: 1.6rem; }
}

/* Pager */
.pager { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 52px; color: var(--grey); }
.pager a { color: var(--orange); font-weight: 600; }

/* Article page */
.article h1 { max-width: 820px; }
.article .meta { color: var(--grey); margin-top: 14px; font-size: .95rem; }
.article .hero { border-radius: 10px; margin: 34px 0; border: 1px solid var(--line); }
.article .body { max-width: 720px; font-size: 1.06rem; }
.article .body p { margin-bottom: 1.2em; }
.article .body h2 { margin: 1.6em 0 .6em; font-size: 1.35rem; }
.article .body ul { margin: 0 0 1.2em 1.3em; }
.article .body li { margin-bottom: .4em; }
.article .body strong { color: #fff; }

.sources { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 720px; }
.sources h2 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.sources ul { list-style: none; }
.sources li { margin-bottom: 8px; font-size: .92rem; }
.sources a { color: var(--grey); }
.sources a:hover { color: var(--orange); }

.cta {
  margin-top: 64px; padding: 44px 42px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  border-left: 4px solid var(--orange);
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta h2 em { font-style: italic; color: var(--orange); }
.cta p { color: var(--grey); margin-top: 10px; max-width: 520px; }

.foot { text-align: center; color: var(--grey); font-size: .85rem; padding: 34px 5vw 44px; border-top: 1px solid var(--line); }
