/* =====================================================
   PAGES — hero, page headers, article, timeline, per-page layout
   ===================================================== */

/* ---- Homepage hero ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--border); background: var(--bg); }


.hero-grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
.hero-copy h1 { margin-bottom: var(--space-4); }
.hero-copy h1 em, .hero-copy h1 .hero-accent { font-style: normal; color: var(--accent); }
.hero-copy .lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-5) 0 0; padding: 0; list-style: none; color: var(--ink-dim); font-size: var(--fs-sm); font-weight: 500; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: none; }
.hero-visual { display: grid; place-items: center; }
.hero-card { position: relative; width: 100%; max-width: 540px; padding: clamp(0.9rem, 2.4vw, 1.4rem); border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }

.hero-card-bar { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-3); }
.hero-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-card-bar span { margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-faint); letter-spacing: 0.04em; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* ---- Hero network graph (inline SVG) ---- */
.hero-graph { width: 100%; max-width: 520px; overflow: visible; }
.hg-ring { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 6; }
.hg-ring-outer { opacity: 0.5; }
.hg-link { stroke: var(--accent); stroke-width: 1.5; opacity: 0.5; stroke-dasharray: 5 6; }

.hg-hub { fill: var(--accent); }
.hg-hub-label { fill: #fff; font: 700 11px var(--font-sans); letter-spacing: 0.02em; }
.hg-halo { fill: var(--accent-soft); }
.hg-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.hg-label { fill: var(--ink-dim); font: 700 11px var(--font-sans); }

.banner-ad { padding-bottom: var(--space-6); text-align: center; }
.banner-ad img { border-radius: var(--radius-md); }

/* ---- Inner page header ---- */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); }

.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.page-hero .lede { margin-top: var(--space-3); }
.brand-hero { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-4); }
.brand-hero h1 { margin: var(--space-2) 0 var(--space-2); }
.brand-hero-logo { width: 88px; height: 88px; border-radius: 24px; object-fit: contain; background: var(--bg-soft); border: 1px solid var(--border); padding: 8px; }
.brand-hero-logo.avatar { object-fit: cover; padding: 0; border-radius: 50%; }
.author-bio { max-width: 62ch; color: var(--ink-dim); font-size: var(--fs-lg); }
.social-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.not-found .lede { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }

/* ---- Articles ---- */
.meta-line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--ink-faint); font-size: var(--fs-sm); margin-top: var(--space-3); }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line svg { width: 16px; height: 16px; }
.article-image { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-6); border: 1px solid var(--border); }
.article-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.source-note { padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg-soft); border: 1px solid var(--border); font-size: var(--fs-sm); }
.updated-note { margin-top: var(--space-7); color: var(--ink-faint); font-size: var(--fs-xs); }
.post-card h3 { font-size: 1.2rem; }

/* ---- Updates timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.timeline-item { display: grid; gap: var(--space-2); }
.timeline-date { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
@media (min-width: 800px) {
  .timeline { position: relative; }
  .timeline::before { content: ""; position: absolute; left: 179px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
  .timeline-item { grid-template-columns: 160px 1fr; gap: 40px; align-items: start; }
  .timeline-date { text-align: right; padding-top: 22px; position: relative; }
  .timeline-date::after { content: ""; position: absolute; right: -25px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
}
