/* ============================================================
   ASTRAL.BG – Main Stylesheet
   Mobile-first, CSS custom properties, no jQuery dependency
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:           #0D0B2A;
  --bg-2:         #110F32;
  --bg-card:      #16143A;
  --bg-card-hover:#1C1A45;
  --gold:         #C9A84C;
  --gold-light:   #E8C870;
  --gold-dark:    #A8862A;
  --gold-glow:    rgba(201,168,76,0.18);
  --white:        #FFFFFF;
  --text:         #DDD9F2;
  --text-muted:   #8A86AA;
  --border:       rgba(201,168,76,0.20);
  --border-subtle:rgba(255,255,255,0.06);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:   1200px;
  --pad:     1rem;
  --radius:  10px;
  --radius-lg:18px;
  --trans:   0.28s ease;
  --shadow:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 28px rgba(201,168,76,0.22);
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.65;
  overflow-x:hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color:var(--gold); text-decoration:none; transition:color var(--trans); }
a:hover { color:var(--gold-light); }
ul,ol { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,textarea,select { font-family:inherit; }
table { border-collapse:collapse; width:100%; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-family:var(--font-heading);
  color:var(--white);
  line-height:1.2;
  font-weight:700;
}
h1 { font-size:clamp(2rem,6vw,3.5rem); }
h2 { font-size:clamp(1.6rem,4vw,2.6rem); }
h3 { font-size:clamp(1.2rem,3vw,1.8rem); }
h4 { font-size:1.2rem; }
p  { margin-bottom:1rem; }
p:last-child { margin-bottom:0; }

.text-gold   { color:var(--gold); }
.text-muted  { color:var(--text-muted); }
.text-center { text-align:center; }

/* ---- Container ---- */
.container {
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 var(--pad);
}
@media(min-width:640px)  { :root { --pad:1.5rem; } }
@media(min-width:1024px) { :root { --pad:2rem; } }

/* ---- Section ---- */
.section { padding:4rem 0; }
.section--sm { padding:2.5rem 0; }
@media(min-width:768px) { .section { padding:6rem 0; } }

.section-label {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.75rem;
}
.section-label::before {
  content:'';
  display:block;
  width:24px;
  height:2px;
  background:var(--gold);
  border-radius:2px;
}
.section-title {
  margin-bottom:1rem;
}
.section-subtitle {
  color:var(--text-muted);
  font-size:1.05rem;
  max-width:600px;
  margin-bottom:2.5rem;
}

/* ---- Buttons ---- */
.btn {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.7rem 1.6rem;
  border-radius:50px;
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.03em;
  transition:all var(--trans);
  white-space:nowrap;
}
.btn-primary {
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  color:var(--bg);
  box-shadow:0 4px 18px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:var(--bg);
  transform:translateY(-2px);
  box-shadow:0 6px 24px rgba(201,168,76,0.5);
}
.btn-outline {
  border:1.5px solid var(--gold);
  color:var(--gold);
  background:transparent;
}
.btn-outline:hover {
  background:var(--gold-glow);
  color:var(--gold-light);
  transform:translateY(-2px);
}
.btn-ghost {
  color:var(--text-muted);
  font-size:.85rem;
  padding:.5rem .8rem;
}
.btn-ghost:hover { color:var(--gold); }

/* ---- Cards ---- */
.card {
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:all var(--trans);
}
.card:hover {
  border-color:var(--border);
  box-shadow:var(--shadow-gold);
  transform:translateY(-4px);
}
.card-img {
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.card-img-placeholder {
  width:100%;
  aspect-ratio:16/9;
  background:linear-gradient(135deg,var(--bg-2),var(--bg-card));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.5rem;
}
.card-body { padding:1.25rem; }
.card-category {
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.5rem;
  display:block;
}
.card-title {
  font-size:1.1rem;
  margin-bottom:.6rem;
  color:var(--white);
  transition:color var(--trans);
}
.card:hover .card-title { color:var(--gold-light); }
.card-excerpt {
  color:var(--text-muted);
  font-size:.88rem;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta {
  display:flex;
  align-items:center;
  gap:1rem;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--border-subtle);
  font-size:.8rem;
  color:var(--text-muted);
}
.card-meta svg { width:14px; height:14px; flex-shrink:0; }

/* ---- Post Grid ---- */
.posts-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:1.5rem;
}
@media(min-width:600px) { .posts-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:900px) { .posts-grid { grid-template-columns:repeat(3,1fr); } }

.posts-grid--2col {
  grid-template-columns:1fr;
}
@media(min-width:768px) { .posts-grid--2col { grid-template-columns:repeat(2,1fr); } }

/* ---- Featured Card (large) ---- */
.card--featured {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr;
}
@media(min-width:768px) {
  .card--featured {
    grid-template-columns:1.2fr 1fr;
  }
  .card--featured .card-img { aspect-ratio:auto; height:100%; }
}
.card--featured .card-body {
  padding:2rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.card--featured .card-title { font-size:1.5rem; }
.card--featured .card-excerpt { -webkit-line-clamp:4; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  padding:.9rem 0;
  transition:background var(--trans), backdrop-filter var(--trans), box-shadow var(--trans);
}
.site-header.scrolled {
  background:rgba(13,11,42,0.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 2px 30px rgba(0,0,0,0.5);
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

/* Logo */
.site-logo {
  display:flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;
  flex-shrink:0;
}
.site-logo img {
  height:42px;
  width:auto;
}
.site-logo-text {
  display:flex;
  flex-direction:column;
  line-height:1;
}
.site-logo-name {
  font-family:var(--font-heading);
  font-size:1.25rem;
  font-weight:700;
  color:var(--white);
  letter-spacing:.03em;
}
.site-logo-tagline {
  font-size:.6rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--gold);
  margin-top:.1rem;
}

/* Nav */
.nav-primary { display:none; }
@media(min-width:900px) {
  .nav-primary {
    display:flex;
    align-items:center;
    gap:.25rem;
  }
}
.nav-primary a {
  padding:.5rem .9rem;
  font-size:.88rem;
  font-weight:500;
  color:var(--text);
  border-radius:6px;
  transition:all var(--trans);
  position:relative;
}
.nav-primary a::after {
  content:'';
  position:absolute;
  bottom:0; left:50%;
  transform:translateX(-50%) scaleX(0);
  width:60%; height:2px;
  background:var(--gold);
  border-radius:2px;
  transition:transform var(--trans);
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a {
  color:var(--gold);
  background:var(--gold-glow);
}
.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after {
  transform:translateX(-50%) scaleX(1);
}

.nav-cta {
  display:none;
}
@media(min-width:900px) {
  .nav-cta {
    display:inline-flex;
    margin-left:.5rem;
  }
}

/* Hamburger */
.menu-toggle {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:8px;
  border-radius:8px;
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  transition:border-color var(--trans);
}
.menu-toggle:hover { border-color:var(--border); }
.menu-toggle span {
  display:block;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:all var(--trans);
  transform-origin:center;
}
.menu-toggle.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity:0; transform:scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
@media(min-width:900px) { .menu-toggle { display:none; } }

/* Mobile nav drawer */
.mobile-nav {
  display:none;
  position:fixed;
  inset:0;
  z-index:999;
  background:rgba(13,11,42,0.97);
  backdrop-filter:blur(20px);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:2rem;
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  font-family:var(--font-heading);
  font-size:1.6rem;
  color:var(--text);
  padding:.6rem 1.5rem;
  border-radius:8px;
  width:100%;
  text-align:center;
  max-width:320px;
  transition:all var(--trans);
}
.mobile-nav a:hover { color:var(--gold); background:var(--gold-glow); }
.mobile-nav-close {
  position:absolute;
  top:1.5rem; right:1.5rem;
  color:var(--text-muted);
  font-size:1.5rem;
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
}
.mobile-nav-close:hover { color:var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:7rem 0 4rem;
}
.hero-bg {
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(67,49,163,0.25) 0%, transparent 60%),
    var(--bg);
  z-index:0;
}
/* Star field */
.hero-stars {
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
}
.star {
  position:absolute;
  border-radius:50%;
  background:var(--white);
  animation:twinkle var(--dur,3s) ease-in-out infinite;
  animation-delay:var(--delay,0s);
}
@keyframes twinkle {
  0%,100% { opacity:var(--op-low,.2); transform:scale(1); }
  50% { opacity:var(--op-high,.9); transform:scale(1.3); }
}
.hero-content {
  position:relative;
  z-index:2;
  text-align:center;
  max-width:760px;
  padding:0 1rem;
}
.hero-eyebrow {
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1.25rem;
  padding:.4rem 1rem;
  border:1px solid var(--border);
  border-radius:50px;
  background:rgba(201,168,76,0.06);
}
.hero-title {
  font-size:clamp(2.4rem,7vw,4.5rem);
  line-height:1.08;
  margin-bottom:1.5rem;
  background:linear-gradient(135deg,var(--white) 40%,var(--gold-light));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-subtitle {
  font-size:clamp(1rem,2.5vw,1.2rem);
  color:var(--text-muted);
  max-width:520px;
  margin:0 auto 2.5rem;
  line-height:1.7;
}
.hero-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
}
.hero-scroll {
  position:absolute;
  bottom:2rem;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.4rem;
  color:var(--text-muted);
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  animation:bounceY 2s ease-in-out infinite;
}
@keyframes bounceY {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50%     { transform:translateX(-50%) translateY(6px); }
}
.hero-scroll svg { width:20px; height:20px; }

/* ---- Zodiac strip ---- */
.zodiac-strip {
  padding:1.2rem 0;
  background:var(--bg-2);
  border-top:1px solid var(--border-subtle);
  border-bottom:1px solid var(--border-subtle);
  overflow:hidden;
}
.zodiac-track {
  display:flex;
  gap:2rem;
  animation:scrollTrack 28s linear infinite;
  width:max-content;
}
.zodiac-track:hover { animation-play-state:paused; }
@keyframes scrollTrack {
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
.zodiac-item {
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.8rem;
  color:var(--text-muted);
  white-space:nowrap;
  transition:color var(--trans);
}
.zodiac-item:hover { color:var(--gold); }
.zodiac-icon { font-size:1.1rem; }

/* ============================================================
   LATEST POSTS SECTION
   ============================================================ */
.posts-section { background:var(--bg); }
.section-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:2.5rem;
  flex-wrap:wrap;
}
.section-header-left { flex:1; }

/* ============================================================
   FEATURED TOPICS SECTION
   ============================================================ */
.topics-section { background:var(--bg-2); }
.topics-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
@media(min-width:600px) { .topics-grid { grid-template-columns:repeat(3,1fr); } }
@media(min-width:900px) { .topics-grid { grid-template-columns:repeat(6,1fr); } }

.topic-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.75rem;
  padding:1.4rem 1rem;
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  text-align:center;
  transition:all var(--trans);
  color:var(--text-muted);
}
.topic-card:hover {
  border-color:var(--border);
  background:var(--bg-card-hover);
  color:var(--gold);
  transform:translateY(-4px);
  box-shadow:var(--shadow-gold);
}
.topic-icon { font-size:2rem; line-height:1; }
.topic-name { font-size:.82rem; font-weight:600; }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  padding:4rem 0;
  background:linear-gradient(135deg,var(--bg-2) 0%,rgba(67,49,163,0.12) 50%,var(--bg-2) 100%);
  border-top:1px solid var(--border-subtle);
  border-bottom:1px solid var(--border-subtle);
}
.about-strip-inner {
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
  align-items:center;
}
@media(min-width:768px) {
  .about-strip-inner { grid-template-columns:1fr 1fr; }
}
.about-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem;
}
.stat-item { text-align:center; }
.stat-number {
  font-family:var(--font-heading);
  font-size:2.4rem;
  font-weight:700;
  color:var(--gold);
  line-height:1;
  display:block;
}
.stat-label { font-size:.8rem; color:var(--text-muted); margin-top:.3rem; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background:var(--bg);
  text-align:center;
}
.newsletter-box {
  background:linear-gradient(135deg,var(--bg-card),var(--bg-card-hover));
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:3rem 2rem;
  max-width:600px;
  margin:0 auto;
}
.newsletter-form {
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:1.5rem;
}
.newsletter-input {
  flex:1;
  min-width:220px;
  padding:.75rem 1.2rem;
  background:var(--bg);
  border:1.5px solid var(--border);
  border-radius:50px;
  color:var(--text);
  font-size:.9rem;
  outline:none;
  transition:border-color var(--trans);
}
.newsletter-input:focus { border-color:var(--gold); }
.newsletter-input::placeholder { color:var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background:var(--bg-2);
  border-top:1px solid var(--border-subtle);
  padding:4rem 0 1.5rem;
}
.footer-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:2.5rem;
  margin-bottom:3rem;
}
@media(min-width:600px) { .footer-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:900px) { .footer-grid { grid-template-columns:1.8fr 1fr 1fr 1fr; } }

.footer-brand .site-logo { margin-bottom:1rem; }
.footer-brand p {
  font-size:.88rem;
  color:var(--text-muted);
  line-height:1.6;
  max-width:280px;
}
.footer-heading {
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1rem;
}
.footer-links { display:flex; flex-direction:column; gap:.5rem; }
.footer-links a {
  font-size:.88rem;
  color:var(--text-muted);
  transition:color var(--trans);
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.footer-links a::before {
  content:'›';
  color:var(--gold);
  font-size:1rem;
}
.footer-links a:hover { color:var(--gold); }

.footer-social { display:flex; gap:.75rem; margin-top:1rem; }
.social-btn {
  width:38px; height:38px;
  border-radius:8px;
  border:1px solid var(--border-subtle);
  background:var(--bg-card);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  transition:all var(--trans);
  font-size:.9rem;
}
.social-btn:hover {
  border-color:var(--border);
  background:var(--gold-glow);
  color:var(--gold);
  transform:translateY(-2px);
}

.footer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  padding-top:1.5rem;
  border-top:1px solid var(--border-subtle);
  font-size:.8rem;
  color:var(--text-muted);
}
.footer-bottom a { color:var(--text-muted); }
.footer-bottom a:hover { color:var(--gold); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap:wrap;
  font-size:.8rem;
  color:var(--text-muted);
  padding:.75rem 0;
}
.breadcrumbs a { color:var(--text-muted); }
.breadcrumbs a:hover { color:var(--gold); }
.breadcrumbs .sep { color:var(--border); }
.breadcrumbs .current { color:var(--text); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
  padding:8rem 0 3rem;
  background:linear-gradient(180deg,var(--bg-2) 0%,var(--bg) 100%);
  border-bottom:1px solid var(--border-subtle);
}
.post-header-inner { max-width:800px; margin:0 auto; }
.post-category-badge {
  display:inline-block;
  padding:.3rem .9rem;
  border-radius:50px;
  background:rgba(201,168,76,0.12);
  border:1px solid var(--border);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1rem;
}
.post-title {
  font-size:clamp(1.8rem,5vw,3rem);
  margin-bottom:1.25rem;
  line-height:1.15;
}
.post-meta {
  display:flex;
  align-items:center;
  gap:1.25rem;
  flex-wrap:wrap;
  font-size:.85rem;
  color:var(--text-muted);
}
.post-meta-item {
  display:flex;
  align-items:center;
  gap:.35rem;
}
.post-meta svg { width:15px; height:15px; }
.post-meta .sep { width:4px; height:4px; border-radius:50%; background:var(--border); }
.post-author-avatar {
  width:36px; height:36px;
  border-radius:50%;
  border:2px solid var(--border);
  object-fit:cover;
}

/* Featured image */
.post-featured-img {
  margin-top:2.5rem;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:16/6;
  background:var(--bg-card);
}
.post-featured-img img {
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Article content */
.article-wrap {
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
  max-width:1100px;
  margin:0 auto;
  padding:3rem var(--pad);
}
@media(min-width:1024px) {
  .article-wrap {
    grid-template-columns:1fr 280px;
    align-items:start;
  }
}

.article-content {
  min-width:0;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  margin:2rem 0 .8rem;
}
.article-content h2 { font-size:1.6rem; }
.article-content h3 { font-size:1.3rem; }
.article-content p { margin-bottom:1.2rem; color:var(--text); }
.article-content ul,
.article-content ol {
  padding-left:1.4rem;
  margin-bottom:1.2rem;
  list-style:initial;
  color:var(--text);
}
.article-content li { margin-bottom:.4rem; }
.article-content blockquote {
  border-left:3px solid var(--gold);
  padding:1rem 1.5rem;
  margin:1.5rem 0;
  background:rgba(201,168,76,0.05);
  border-radius:0 var(--radius) var(--radius) 0;
  font-style:italic;
  color:var(--text);
}
.article-content a { text-decoration:underline; text-underline-offset:3px; }
.article-content img {
  border-radius:var(--radius);
  margin:1.5rem 0;
}
.article-content strong { color:var(--white); }
.article-content code {
  background:var(--bg-card);
  padding:.15em .4em;
  border-radius:4px;
  font-size:.88em;
  color:var(--gold);
}
.article-content pre {
  background:var(--bg-card);
  padding:1.2rem;
  border-radius:var(--radius);
  overflow-x:auto;
  margin:1.5rem 0;
  border:1px solid var(--border-subtle);
}
.article-content table { margin:1.5rem 0; }
.article-content th,
.article-content td {
  padding:.6rem 1rem;
  border:1px solid var(--border-subtle);
  text-align:left;
}
.article-content th { background:var(--bg-card); color:var(--gold); font-size:.85rem; }
.article-content td { color:var(--text); }

/* Post tags */
.post-tags {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border-subtle);
}
.tag-chip {
  padding:.3rem .8rem;
  border-radius:50px;
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  font-size:.75rem;
  color:var(--text-muted);
  transition:all var(--trans);
}
.tag-chip:hover {
  border-color:var(--border);
  color:var(--gold);
  background:var(--gold-glow);
}

/* Author box */
.author-box {
  display:flex;
  gap:1.25rem;
  align-items:flex-start;
  padding:1.5rem;
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  margin-top:2rem;
}
.author-box img {
  width:64px; height:64px;
  border-radius:50%;
  border:2px solid var(--border);
  flex-shrink:0;
  object-fit:cover;
}
.author-box-name {
  font-size:1rem;
  font-weight:600;
  color:var(--white);
  margin-bottom:.2rem;
}
.author-box-role {
  font-size:.78rem;
  color:var(--gold);
  margin-bottom:.6rem;
}
.author-box-bio { font-size:.85rem; color:var(--text-muted); }

/* Sidebar */
.article-sidebar { display:flex; flex-direction:column; gap:1.5rem; }
.sidebar-widget {
  background:var(--bg-card);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:1.25rem;
}
.sidebar-widget-title {
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1rem;
  padding-bottom:.75rem;
  border-bottom:1px solid var(--border-subtle);
}
.sidebar-post-list { display:flex; flex-direction:column; gap:.9rem; }
.sidebar-post-item {
  display:flex;
  gap:.75rem;
  align-items:flex-start;
}
.sidebar-post-img {
  width:60px; height:60px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--bg-2);
}
.sidebar-post-title {
  font-size:.82rem;
  color:var(--text);
  line-height:1.35;
  font-family:var(--font-heading);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color var(--trans);
}
.sidebar-post-item:hover .sidebar-post-title { color:var(--gold); }
.sidebar-post-date { font-size:.73rem; color:var(--text-muted); margin-top:.2rem; }

/* TOC – Table of Contents */
.toc-widget { position:sticky; top:90px; }
.toc-list { display:flex; flex-direction:column; gap:.4rem; }
.toc-list a {
  font-size:.82rem;
  color:var(--text-muted);
  padding:.3rem .6rem;
  border-left:2px solid transparent;
  display:block;
  transition:all var(--trans);
}
.toc-list a:hover,
.toc-list a.active {
  color:var(--gold);
  border-left-color:var(--gold);
  background:var(--gold-glow);
  border-radius:0 4px 4px 0;
}

/* Related posts */
.related-section {
  background:var(--bg-2);
  padding:3.5rem 0;
  border-top:1px solid var(--border-subtle);
}

/* ============================================================
   ARCHIVE / BLOG
   ============================================================ */
.archive-header {
  padding:7rem 0 3rem;
  background:linear-gradient(180deg,var(--bg-2) 0%,var(--bg) 100%);
  border-bottom:1px solid var(--border-subtle);
}
.archive-title { margin-bottom:.5rem; }
.archive-description { color:var(--text-muted); font-size:1rem; }

.archive-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.25rem 0;
  border-bottom:1px solid var(--border-subtle);
  margin-bottom:2rem;
  flex-wrap:wrap;
}
.archive-count { font-size:.88rem; color:var(--text-muted); }
.category-pills {
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.cat-pill {
  padding:.35rem .9rem;
  border-radius:50px;
  border:1px solid var(--border-subtle);
  font-size:.78rem;
  font-weight:600;
  color:var(--text-muted);
  transition:all var(--trans);
}
.cat-pill:hover,
.cat-pill.active {
  border-color:var(--gold);
  color:var(--gold);
  background:var(--gold-glow);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:2.5rem 0;
  flex-wrap:wrap;
}
.pagination a,
.pagination span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border-radius:8px;
  font-size:.88rem;
  font-weight:500;
  border:1px solid var(--border-subtle);
  color:var(--text-muted);
  background:var(--bg-card);
  transition:all var(--trans);
}
.pagination a:hover {
  border-color:var(--border);
  color:var(--gold);
  background:var(--gold-glow);
}
.pagination .current {
  background:var(--gold);
  border-color:var(--gold);
  color:var(--bg);
  font-weight:700;
}
.pagination .prev,.pagination .next {
  width:auto;
  padding:0 1rem;
  gap:.4rem;
}

/* ============================================================
   PAGE (Static)
   ============================================================ */
.page-header {
  padding:8rem 0 3rem;
  background:var(--bg-2);
  border-bottom:1px solid var(--border-subtle);
}
.page-content {
  max-width:780px;
  margin:0 auto;
  padding:3rem var(--pad);
}

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6rem 1rem;
}
.error-code {
  font-family:var(--font-heading);
  font-size:8rem;
  font-weight:700;
  color:var(--gold);
  line-height:1;
  opacity:.25;
  position:absolute;
}
.error-content { position:relative; z-index:1; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-hero { padding:7rem 0 3rem; text-align:center; }
.search-form-large {
  display:flex;
  gap:.75rem;
  max-width:560px;
  margin:1.5rem auto 0;
}
.search-input-large {
  flex:1;
  padding:.85rem 1.25rem;
  background:var(--bg-card);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  color:var(--text);
  font-size:1rem;
  outline:none;
  transition:border-color var(--trans);
}
.search-input-large:focus { border-color:var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.aspect-16-9 { aspect-ratio:16/9; }
.rounded { border-radius:var(--radius); }
.rounded-lg { border-radius:var(--radius-lg); }
.overflow-hidden { overflow:hidden; }
.mt-auto { margin-top:auto; }

/* Skip link */
.skip-link {
  position:absolute;
  top:-100px;
  left:1rem;
  padding:.6rem 1rem;
  background:var(--gold);
  color:var(--bg);
  border-radius:0 0 var(--radius) var(--radius);
  font-weight:600;
  z-index:9999;
  transition:top var(--trans);
}
.skip-link:focus { top:0; color:var(--bg); }

/* Back to top */
#back-to-top {
  position:fixed;
  bottom:2rem; right:1.5rem;
  width:44px; height:44px;
  border-radius:50%;
  background:var(--gold);
  color:var(--bg);
  display:flex; align-items:center; justify-content:center;
  z-index:900;
  opacity:0;
  pointer-events:none;
  transform:translateY(12px);
  transition:all var(--trans);
  box-shadow:0 4px 16px rgba(201,168,76,0.4);
}
#back-to-top.visible {
  opacity:1;
  pointer-events:all;
  transform:translateY(0);
}
#back-to-top svg { width:20px; height:20px; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position:fixed;
  top:0; left:0;
  width:0%;
  height:3px;
  background:linear-gradient(90deg,var(--gold-dark),var(--gold-light));
  z-index:1001;
  transition:width .1s linear;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media(max-width:599px) {
  .hero-actions .btn { width:100%; justify-content:center; }
  .about-stats { grid-template-columns:1fr 1fr; }
  .footer-grid { gap:2rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .article-sidebar,
  #back-to-top, #reading-progress, .related-section { display:none !important; }
  body { background:#fff; color:#000; }
  .article-content a { text-decoration:underline; }
}
