/* ============================================================
   PRISM MAGAZINE — style.css
   Shared styles for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Barlow+Condensed:wght@300;400;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --ink:              #05070d;
  --deep:             #080b14;
  --panel:            #0c1020;
  --card:             #0f1428;
  --card-hover:       #131829;
  --border:           #1a2240;
  --border-gold:      rgba(201,168,76,0.25);

  --gold:             #d4aa50;
  --gold-bright:      #f0cc70;
  --gold-dim:         #8a6e30;
  --gold-pale:        #f7e8b8;
  --gold-glow:        rgba(212,170,80,0.18);
  --gold-glow-strong: rgba(212,170,80,0.35);

  --blue-deep:        #0a1535;
  --blue-accent:      #112050;
  --blue-bright:      #2050b0;
  --blue-electric:    #3070d8;

  --crimson:          #8a1e1e;
  --crimson-bright:   #c03838;

  --text-primary:     #ede6d4;
  --text-secondary:   #8a90a8;
  --text-muted:       #3a4060;

  --tag-politics:     #8a1e1e;
  --tag-history:      #1a3a7a;
  --tag-culture:      #1a6a50;
  --tag-misc:         #5a1a7a;
  --tag-news:         #7a3a10;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text-primary);
  font-family: 'Libre Baskerville', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.8;
}

/* ===== AMBIENT BACKGROUND ===== */
body::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80vw 50vh at 20% 10%, rgba(20,50,120,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60vw 40vh at 80% 80%, rgba(100,40,10,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright), var(--blue-electric));
  z-index: 10000;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--gold-glow-strong);
}

/* ===== TOPBAR ===== */
.topbar {
  background: linear-gradient(90deg, var(--deep) 0%, #0a0f1e 50%, var(--deep) 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  z-index: 100;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-right { display: flex; gap: 20px; }
.topbar a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.topbar a:hover { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow-strong); }

.live-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #e05050;
  margin-right: 6px;
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(224,80,80,0.6);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(224,80,80,0.6); }
  50%       { opacity: 0.4; box-shadow: 0 0 2px rgba(224,80,80,0.2); }
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(180deg, var(--deep) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 0 40px;
  position: relative; z-index: 100;
}
header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 20%, var(--gold) 50%, var(--gold-dim) 80%, transparent 100%);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-rows: auto auto;
}
.header-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(26,34,64,0.8);
}
.masthead { text-align: center; flex: 1; }
.header-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-muted);
}
.header-search { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.search-box {
  display: flex; align-items: center;
  background: rgba(15,20,40,0.8); border: 1px solid var(--border);
  padding: 8px 14px; gap: 8px; width: 200px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 16px var(--gold-glow), inset 0 0 8px rgba(212,170,80,0.05);
}
.search-box input {
  background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; letter-spacing: 0.5px; width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); font-size: 14px; }

/* ===== NAV ===== */
.main-nav { display: flex; gap: 0; padding: 0; justify-content: center; }
.main-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-secondary);
  text-decoration: none; padding: 16px 22px;
  position: relative; transition: color 0.3s, text-shadow 0.3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 70%; }
.main-nav a.active { color: var(--gold); }
.nav-separator { width: 1px; background: linear-gradient(180deg, transparent, var(--border), transparent); margin: 12px 0; }

/* ===== TICKER ===== */
.ticker-bar {
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-accent) 50%, var(--blue-deep) 100%);
  border-bottom: 1px solid rgba(32,80,176,0.4);
  display: flex; align-items: center; overflow: hidden; height: 36px;
  position: relative;
}
.ticker-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue-deep) 0%, transparent 8%, transparent 92%, var(--blue-deep) 100%);
  z-index: 2; pointer-events: none;
}
.ticker-label {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  color: var(--ink); font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 0 18px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0; z-index: 3; position: relative;
  box-shadow: 4px 0 16px rgba(212,170,80,0.3);
}
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-content {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: 0.5px;
  color: rgba(232,230,220,0.85);
  padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; height: 36px;
}
.ticker-bullet { color: var(--gold); margin-right: 8px; font-size: 7px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 4px 12px; margin-bottom: 14px;
}
.tag-politics { background: var(--tag-politics); color: #ffb0b0; border-left: 2px solid var(--crimson-bright); }
.tag-history  { background: var(--tag-history);  color: #a0c0ff; border-left: 2px solid var(--blue-bright); }
.tag-culture  { background: var(--tag-culture);  color: #a0ffd8; border-left: 2px solid #20a070; }
.tag-misc     { background: var(--tag-misc);     color: #d0a0ff; border-left: 2px solid #7030a0; }
.tag-news     { background: var(--tag-news);     color: #ffc090; border-left: 2px solid #c05020; }

/* ===== MAIN ===== */
main { max-width: 1400px; margin: 0 auto; padding: 40px; position: relative; z-index: 1; }

.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-dim);
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-gold), transparent); }

/* ===== HERO GRID ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 2px; margin-bottom: 2px;
  background: var(--border-gold);
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 60px rgba(12,16,32,0.8), 0 0 120px rgba(212,170,80,0.06);
}

.hero-main {
  grid-row: 1 / 3;
  background: var(--card);
  position: relative; overflow: hidden;
  cursor: pointer; min-height: 480px;
  text-decoration: none; display: block;
  transition: all 0.4s;
}
.hero-main::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 15%, rgba(5,7,13,0.3) 45%, rgba(5,7,13,0.97) 100%);
  z-index: 1;
}
.hero-main::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,170,80,0.08) 0%, transparent 60%);
  z-index: 1; opacity: 0; transition: opacity 0.6s;
}
.hero-main:hover::after { opacity: 1; }

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(17,32,80,0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(80,25,15,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(212,170,80,0.06) 0%, transparent 40%),
    linear-gradient(160deg, #080e22 0%, #160808 55%, #050c14 100%);
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.hero-main:hover .hero-bg { transform: scale(1.04); }

.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, var(--gold) 0px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, var(--gold) 0px, transparent 1px, transparent 48px);
  z-index: 0;
}

.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px; z-index: 2;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700; line-height: 1.22;
  color: var(--text-primary); margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.6);
  transition: color 0.3s;
}
.hero-main:hover .hero-title { color: var(--gold-pale); }
.hero-excerpt {
  font-size: 14px; line-height: 1.7;
  color: rgba(237,230,212,0.7); margin-bottom: 18px; max-width: 560px;
}

/* ===== SIDE CARDS ===== */
.hero-side-top, .hero-side-bottom {
  background: var(--card); position: relative; overflow: hidden;
  cursor: pointer; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 235px; transition: background 0.4s;
  text-decoration: none;
}
.hero-side-top:hover, .hero-side-bottom:hover { background: var(--card-hover); }
.hero-side-top::before, .hero-side-bottom::before {
  content: ''; position: absolute; inset: 0; z-index: 1; transition: opacity 0.4s;
}
.hero-side-top::before { background: linear-gradient(150deg, rgba(17,32,80,0.75) 0%, rgba(5,7,13,0.95) 100%); }
.hero-side-bottom::before { background: linear-gradient(150deg, rgba(80,20,10,0.6) 0%, rgba(5,7,13,0.95) 100%); }
.hero-side-top::after, .hero-side-bottom::after {
  content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at 100% 0%, rgba(212,170,80,0.12) 0%, transparent 70%);
  z-index: 2; opacity: 0; transition: opacity 0.4s;
}
.hero-side-top:hover::after, .hero-side-bottom:hover::after { opacity: 1; }
.side-content { position: relative; z-index: 3; }
.side-title {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  line-height: 1.35; color: var(--text-primary); margin-bottom: 10px; transition: color 0.3s;
}
.hero-side-top:hover .side-title, .hero-side-bottom:hover .side-title { color: var(--gold); }
.side-excerpt { font-size: 12px; line-height: 1.6; color: rgba(237,230,212,0.55); margin-bottom: 12px; }

/* ===== META ===== */
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-dim); }

/* ===== READSPECTRUM MASTHEAD ===== */
.rs-masthead-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f7e8b8 0%, #d4aa50 50%, #8a6e30 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(212,170,80,0.25));
  line-height: 1.1;
}
.rs-masthead-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.rs-masthead-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  margin-top: 6px;
  width: 200px;
}

/* ===== SOCIAL SHARE BAR ===== */
.share-section {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border-gold);
}
.share-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  border-radius: 2px;
}
.share-btn svg { flex-shrink: 0; }
.share-btn:hover { background: var(--card-hover); color: var(--text-primary); border-color: var(--border-light); }
.share-btn.x-btn:hover     { border-color: #fff;    color: #fff; }
.share-btn.fb-btn:hover    { border-color: #1877f2; color: #1877f2; box-shadow: 0 0 12px rgba(24,119,242,0.2); }
.share-btn.wa-btn:hover    { border-color: #25d366; color: #25d366; box-shadow: 0 0 12px rgba(37,211,102,0.2); }
.share-btn.copy-btn:hover  { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 12px var(--gold-glow-strong); }
.share-btn.copy-btn.copied { border-color: var(--gold); color: var(--gold); background: rgba(212,170,80,0.08); }

/* Mobile sticky bottom bar */
.share-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--deep);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  z-index: 999;
  padding: 10px 16px;
}
.share-sticky .share-buttons {
  justify-content: space-around;
  gap: 6px;
}
.share-sticky .share-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 8px;
  font-size: 10px;
  letter-spacing: 1px;
}
.share-sticky .share-btn span.btn-label { display: none; }

@media (max-width: 768px) {
  .share-section { display: none; }
  .share-sticky  { display: block; }
  .share-sticky .share-btn span.btn-label { display: inline; }
  /* Add bottom padding to article wrapper so sticky bar doesn't cover content */
  .article-wrapper { padding-bottom: 100px; }
}
.filterable {
  transition: opacity 0.4s ease;
}
.main-nav a.active {
  color: var(--gold) !important;
  text-shadow: 0 0 20px var(--gold-glow-strong);
}
.main-nav a.active::after { width: 70% !important; }

/* ===== HIT COUNTER ===== */
.hit-counter-wrap {
  text-align: center;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.read-full-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  padding: 12px 26px;
  box-shadow: 0 0 20px var(--gold-glow-strong);
  transition: all 0.3s;
}
.hero-main:hover .read-full-btn {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: 0 0 30px var(--gold-glow-strong);
}

/* ===== LATEST ARTICLES GRID ===== */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border-gold);
  border: 1px solid var(--border-gold);
}

.latest-card {
  background: var(--card);
  text-decoration: none;
  display: block;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.latest-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.latest-card:hover { background: var(--card-hover); }
.latest-card:hover::before { transform: scaleX(1); }

.latest-card-inner { padding: 30px; }

.latest-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 12px;
  transition: color 0.3s;
}
.latest-card:hover .latest-title { color: var(--gold); }

.latest-excerpt {
  font-size: 14px; line-height: 1.7;
  color: var(--text-secondary); margin-bottom: 16px;
}

.latest-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  color: var(--text-muted); text-transform: uppercase;
}

/* ===== ARCHIVE ===== */
.archive-section {
  margin-top: 50px; border-top: 1px solid var(--border-gold); padding-top: 40px;
}
.archive-list { margin-top: 24px; }
.archive-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--card); margin-bottom: 2px;
  cursor: pointer; text-decoration: none;
  transition: background 0.3s, padding-left 0.3s;
  border-left: 2px solid transparent;
}
.archive-item:hover { background: var(--card-hover); padding-left: 28px; border-left-color: var(--gold); }
.archive-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.archive-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 8px; white-space: nowrap; flex-shrink: 0;
}
.archive-title {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  color: var(--text-primary); line-height: 1.4; transition: color 0.3s;
}
.archive-item:hover .archive-title { color: var(--gold); }
.archive-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; flex-shrink: 0; margin-left: 20px;
}
.archive-date { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-muted); }
.archive-read { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1px; color: var(--gold-dim); text-transform: uppercase; }

/* Mobile: latest grid stack */
@media (max-width: 768px) {
  .latest-grid { grid-template-columns: 1fr; }
  .latest-card-inner { padding: 20px; }
  .latest-title { font-size: 18px; }
  .archive-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .archive-right { flex-direction: row; gap: 12px; margin-left: 0; }
  .archive-title { font-size: 14px; }
  .read-full-btn { font-size: 11px; padding: 10px 18px; }
}
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); text-decoration: none; cursor: pointer;
  transition: gap 0.3s, color 0.3s, text-shadow 0.3s;
}
.read-more:hover { gap: 12px; color: var(--gold); text-shadow: 0 0 12px var(--gold-glow-strong); }
.read-more-arrow { font-size: 14px; }

/* ===== ARCHIVE ===== */
.archive-section {
  margin-top: 50px; border-top: 1px solid var(--border-gold); padding-top: 40px;
}
.archive-list { margin-top: 24px; }
.archive-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--card); margin-bottom: 2px;
  cursor: pointer; text-decoration: none;
  transition: background 0.3s, padding-left 0.3s, border-left 0.3s;
  border-left: 2px solid transparent;
}
.archive-item:hover { background: var(--card-hover); padding-left: 28px; border-left-color: var(--gold); }
.archive-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.archive-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 8px; white-space: nowrap; flex-shrink: 0;
}
.archive-title {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  color: var(--text-primary); line-height: 1.4; transition: color 0.3s;
}
.archive-item:hover .archive-title { color: var(--gold); }
.archive-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; flex-shrink: 0; margin-left: 20px;
}
.archive-date { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-muted); }
.archive-read { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1px; color: var(--gold-dim); text-transform: uppercase; }

/* ===== QUOTE DIVIDER ===== */
.quote-divider {
  text-align: center; padding: 40px 0;
  border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold);
  margin: 50px 0; position: relative;
  background: linear-gradient(90deg, transparent, rgba(212,170,80,0.03), transparent);
}
.quote-divider::before, .quote-divider::after {
  content: '◆'; position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--gold-dim); font-size: 10px;
}
.quote-divider::before { left: 40px; }
.quote-divider::after  { right: 40px; }
.quote-text {
  font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic;
  color: var(--text-secondary); max-width: 680px; margin: 0 auto; line-height: 1.65;
}
.quote-source {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted); margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 60px; border-top: 1px solid var(--border-gold);
  background: linear-gradient(180deg, var(--deep) 0%, var(--ink) 100%);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 20%, var(--gold) 50%, var(--gold-dim) 80%, transparent 100%);
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 40px 40px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-desc { font-size: 13px; line-height: 1.75; color: var(--text-muted); margin-top: 14px; max-width: 280px; }
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
  text-shadow: 0 0 12px var(--gold-glow);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.3s, padding-left 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--text-primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--text-muted);
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-hero {
  position: relative; min-height: 500px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(17,32,80,0.8) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(100,30,10,0.6) 0%, transparent 50%),
    linear-gradient(160deg, #060a18 0%, #180808 55%, #040c14 100%);
}
.article-hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, var(--gold) 0px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--gold) 0px, transparent 1px, transparent 60px);
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(5,7,13,0.98) 100%);
  z-index: 1;
}
.article-hero-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 60px 40px 50px; width: 100%; text-align: center;
}
.article-tag {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 14px; background: #1a3a7a; color: #a0c0ff;
  border-left: 2px solid #2050b0; margin-bottom: 24px;
}
.article-title {
  font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 900;
  line-height: 1.15; color: var(--text-primary); margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.9);
}
.article-subtitle {
  font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic;
  color: rgba(237,230,212,0.65); margin-bottom: 30px; line-height: 1.5;
}
.article-byline {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
}
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-dim); }

/* BACK TO HOME BUTTON */
.back-home-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  text-decoration: none; padding: 14px 30px;
  transition: all 0.3s; box-shadow: 0 0 20px var(--gold-glow-strong);
}
.back-home-btn:hover {
  gap: 16px;
  box-shadow: 0 0 30px var(--gold-glow-strong);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
}

/* ARTICLE BODY */
.article-wrapper { max-width: 780px; margin: 0 auto; padding: 60px 40px 80px; position: relative; z-index: 1; }

.toc {
  background: var(--card); border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold); padding: 28px 32px; margin-bottom: 50px;
}
.toc-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.toc ol { list-style: none; counter-reset: toc-counter; }
.toc ol li { counter-increment: toc-counter; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px; }
.toc ol li::before { content: counter(toc-counter, upper-roman); font-family: 'Space Mono', monospace; font-size: 10px; color: var(--gold-dim); min-width: 24px; }
.toc ol li a { font-family: 'Libre Baskerville', serif; font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; line-height: 1.5; }
.toc ol li a:hover { color: var(--gold); }

.article-section { margin-bottom: 60px; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-gold), transparent); }
h2.section-title {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 28px; line-height: 1.3;
  border-bottom: 1px solid var(--border-gold); padding-bottom: 16px;
}
h3.sub-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  font-style: italic; color: var(--gold-pale); margin: 36px 0 16px; line-height: 1.4;
}
p { font-size: 17px; line-height: 1.9; color: var(--text-primary); margin-bottom: 22px; }
p.lead {
  font-size: 19px; line-height: 1.8; color: rgba(237,230,212,0.9); font-style: italic;
  margin-bottom: 32px; border-left: 2px solid var(--gold); padding-left: 20px;
}
.pull-quote {
  background: linear-gradient(135deg, var(--panel), var(--card));
  border: 1px solid var(--border-gold); border-left: 3px solid var(--gold);
  padding: 30px 36px; margin: 40px 0; position: relative; overflow: hidden;
}
.pull-quote::before {
  content: '"'; position: absolute; top: -20px; right: 16px;
  font-family: 'Playfair Display', serif; font-size: 120px; color: var(--border); line-height: 1;
}
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; line-height: 1.65; color: var(--text-primary); margin-bottom: 14px; position: relative; z-index: 1; }
.pull-quote cite { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); }
.fact-box {
  background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--gold);
  padding: 26px 30px; margin: 36px 0;
}
.fact-box-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.fact-box ul { list-style: none; }
.fact-box ul li { font-size: 14px; color: var(--text-secondary); padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; line-height: 1.6; }
.fact-box ul li:last-child { border-bottom: none; }
.fact-box ul li::before { content: '◆'; color: var(--gold-dim); font-size: 8px; flex-shrink: 0; margin-top: 5px; }
.sources-section { background: var(--panel); border: 1px solid var(--border-gold); padding: 36px; margin-top: 60px; }
.sources-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-gold); }
.source-item { margin-bottom: 16px; padding-left: 20px; border-left: 1px solid var(--border); transition: border-color 0.3s; }
.source-item:hover { border-left-color: var(--gold-dim); }
.source-item p { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.6; }
.source-item .source-author { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.ornament-divider { text-align: center; margin: 40px 0; color: var(--gold-dim); font-size: 12px; letter-spacing: 8px; }

strong { color: var(--gold-pale); font-weight: 700; }
em { color: rgba(237,230,212,0.8); }

/* ===== CONTENT PROTECTION ===== */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-main { animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) forwards; }
.hero-side-top { animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) 0.12s forwards; opacity: 0; }
.hero-side-bottom { animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) 0.24s forwards; opacity: 0; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Topbar */
  .topbar { padding: 6px 16px; font-size: 10px; }
  .topbar-right { display: none; }

  /* Header */
  header { padding: 0 16px; }
  .header-top { flex-direction: column; gap: 16px; padding: 20px 0 14px; }
  .header-search { display: none; }
  .header-meta { align-items: center; }
  .masthead svg { width: 260px; height: 72px; }

  /* Nav */
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 0; }
  .main-nav a { padding: 10px 12px; font-size: 11px; letter-spacing: 1.5px; }
  .nav-separator { display: none; }

  /* Main */
  main { padding: 20px 16px; }

  /* Hero Grid — stack vertically on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-main { grid-row: 1; min-height: 320px; }
  .hero-side-top, .hero-side-bottom { min-height: 180px; }
  .hero-title { font-size: 24px; }
  .hero-content { padding: 20px; }
  .hero-excerpt { font-size: 13px; display: none; }

  /* Side cards */
  .side-title { font-size: 17px; }
  .side-excerpt { display: none; }

  /* Archive */
  .archive-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; }
  .archive-right { flex-direction: row; gap: 12px; margin-left: 0; }
  .archive-title { font-size: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 28px 16px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Quote divider */
  .quote-divider { padding: 28px 16px; }
  .quote-text { font-size: 17px; }
  .quote-divider::before, .quote-divider::after { display: none; }

  /* Article hero */
  .article-hero { min-height: 340px; }
  .article-hero-content { padding: 30px 20px 36px; }
  .article-title { font-size: 30px; }
  .article-subtitle { font-size: 15px; display: none; }
  .article-byline { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .byline-dot { display: none; }

  /* Article body */
  .article-wrapper { padding: 30px 16px 50px; }
  h2.section-title { font-size: 24px; }
  h3.sub-title { font-size: 18px; }
  p { font-size: 15px; line-height: 1.8; }
  p.lead { font-size: 16px; }
  .pull-quote p { font-size: 16px; }
  .toc { padding: 20px; }

  /* Back button */
  .back-home-btn { font-size: 11px; padding: 12px 20px; }

  /* Section header */
  .section-header { gap: 10px; }
}
