:root {
  --ink: #0a0a0f; --cream: #f5f0e8; --gold: #c9a84c;
  --gold-light: #e8c97a; --teal: #1a6b6b; --teal-light: #2a9090;
  --border: rgba(201,168,76,0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--ink); color: var(--cream); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; background: rgba(10,10,15,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family:  sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gold); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--cream); opacity: 0.75; font-size: 0.9rem; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: 0.55rem 1.4rem; border-radius: 2px; font-weight: 500; opacity: 1 !important; }

/* READING PROGRESS BAR */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal-light)); width: 0%; z-index: 200; transition: width 0.1s linear; }

/* HERO */
.post-hero {
  padding: 9rem 4rem 5rem; max-width: 860px; margin: auto;
  text-align: center; position: relative;
}
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(245,240,232,0.4); margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(245,240,232,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(245,240,232,0.2); }
.post-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; padding: 0.35rem 1rem; border-radius: 2px; background: rgba(42,144,144,0.2); color: var(--teal-light); display: inline-block; margin-bottom: 1.5rem; }
.post-title { font-family:  sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--cream); line-height: 1.2; margin-bottom: 1.5rem; }
.post-excerpt { font-size: 1.15rem; color: rgba(245,240,232,0.6); line-height: 1.8; margin-bottom: 2.5rem; font-family: 'Lora', serif; font-style: italic; }

.post-byline {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  padding: 1.5rem 2rem; background: rgba(245,240,232,0.03);
  border: 1px solid var(--border); border-radius: 6px; flex-wrap: wrap;
}
.byline-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal-light)); display: flex; align-items: center; justify-content: center; font-family:  sans-serif; font-size: 0.85rem; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.byline-info { text-align: left; }
.byline-name { font-weight: 600; color: var(--cream); font-size: 0.95rem; }
.byline-meta { font-size: 0.8rem; color: rgba(245,240,232,0.45); margin-top: 0.15rem; }
.byline-sep { width: 1px; height: 36px; background: var(--border); }
.byline-stat { text-align: center; }
.byline-stat-num { font-family:  sans-serif; font-weight: 700; color: var(--gold); font-size: 1rem; }
.byline-stat-label { font-size: 0.72rem; color: rgba(245,240,232,0.4); text-transform: uppercase; letter-spacing: 0.08em; }

/* COVER IMAGE */
.post-cover {
  max-width: 1000px; margin: 0 auto 0; padding: 0 4rem;
  height: 420px; 
  /* border-radius: 10px;  */
  overflow: hidden;
  /* background: linear-gradient(135deg, #0d2233 0%, #1a3a50 60%, #0f2a1a 100%); */
  display: flex; align-items: center; justify-content: center;
  /* border: 1px solid var(--border); */
}

/* CONTENT LAYOUT */
.post-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 4rem; padding: 5rem 4rem;
  align-items: start;
}

/* ARTICLE BODY */
.post-content { min-width: 0; }
.post-content h2 {
  font-family:  sans-serif; font-size: 1.65rem; font-weight: 800;
  color: var(--cream); margin: 3rem 0 1.25rem; line-height: 1.3;
}
.post-content h3 {
  font-family:  sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--gold-light); margin: 2rem 0 0.75rem;
}
.post-content p {
  font-family: 'Lora', serif; font-size: 1.05rem; color: rgba(245,240,232,0.82);
  line-height: 1.95; margin-bottom: 1.5rem;
}
.post-content p strong { color: var(--cream); font-family: 'DM Sans', sans-serif; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem; margin-bottom: 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.post-content li { font-family: 'Lora', serif; font-size: 1.02rem; color: rgba(245,240,232,0.78); line-height: 1.75; }
.post-content li::marker { color: var(--gold); }
.post-content a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(201,168,76,0.4); transition: text-decoration-color 0.2s; }
.post-content a:hover { text-decoration-color: var(--gold); }

/* BLOCKQUOTE */
.post-content blockquote {
  margin: 2.5rem 0; padding: 1.75rem 2rem;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.06); border-radius: 0 6px 6px 0;
}
.post-content blockquote p {
  font-size: 1.15rem; color: rgba(245,240,232,0.88); margin: 0;
  font-style: italic;
}

/* CALLOUT */
.callout {
  margin: 2.5rem 0; padding: 1.5rem 2rem;
  background: rgba(26,107,107,0.12); border: 1px solid rgba(42,144,144,0.3);
  border-radius: 6px;
}
.callout-title { font-family:  sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--teal-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.callout p { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: rgba(245,240,232,0.75); margin: 0; line-height: 1.75; }

/* STAT HIGHLIGHT */
.stat-highlight {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-box { background: rgba(245,240,232,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; text-align: center; }
.stat-box-num { font-family:  sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.stat-box-label { font-size: 0.82rem; color: rgba(245,240,232,0.5); margin-top: 0.25rem; line-height: 1.4; }

/* CODE BLOCK */
.post-content pre {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 6px; padding: 1.5rem; overflow-x: auto;
  margin: 2rem 0; font-family: 'Courier New', monospace; font-size: 0.88rem;
  color: rgba(245,240,232,0.8); line-height: 1.65;
}
.post-content code { font-family: 'Courier New', monospace; font-size: 0.9em; background: rgba(201,168,76,0.12); color: var(--gold-light); padding: 0.15em 0.45em; border-radius: 3px; }
.post-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* DIVIDER */
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* TAGS */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 3rem 0 2rem; }
.post-tag { font-size: 0.8rem; color: rgba(245,240,232,0.6); background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.12); padding: 0.35rem 0.9rem; border-radius: 20px; }

/* AUTHOR BOX */
.author-box {
  background: rgba(245,240,232,0.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem; margin-top: 3rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.author-box-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal-light)); display: flex; align-items: center; justify-content: center; font-family:  sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.author-box-name { font-family:  sans-serif; font-weight: 700; color: var(--cream); margin-bottom: 0.25rem; }
.author-box-role { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.75rem; }
.author-box-bio { font-size: 0.9rem; color: rgba(245,240,232,0.65); line-height: 1.7; }

/* SIDEBAR */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 7rem; }

.toc-card { background: rgba(245,240,232,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; }
.toc-title { font-family:  sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.toc-list a { font-size: 0.88rem; color: rgba(245,240,232,0.6); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: 3px; display: block; transition: all 0.2s; line-height: 1.4; }
.toc-list a:hover, .toc-list a.active { color: var(--gold); background: rgba(201,168,76,0.07); }
.toc-list .toc-sub { padding-left: 1rem; font-size: 0.82rem; }

.share-card { background: rgba(245,240,232,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; }
.share-title { font-family:  sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.share-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.share-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; border-radius: 4px; background: rgba(245,240,232,0.04); border: 1px solid rgba(245,240,232,0.08); font-size: 0.85rem; color: rgba(245,240,232,0.7); cursor: pointer; text-decoration: none; transition: all 0.2s; }
.share-btn:hover { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.3); color: var(--cream); }
.share-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

.related-card { background: rgba(245,240,232,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; }
.related-title { font-family:  sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-item { text-decoration: none; color: inherit; display: block; }
.related-item:hover .related-item-title { color: var(--gold); }
.related-item-cat { font-size: 0.7rem; color: var(--teal-light); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.3rem; }
.related-item-title { font-size: 0.88rem; color: rgba(245,240,232,0.8); line-height: 1.45; transition: color 0.2s; }
.related-item + .related-item { padding-top: 1rem; border-top: 1px solid rgba(245,240,232,0.06); }

/* PREV / NEXT */
.post-nav { max-width: 1100px; margin: 0 auto; padding: 0 4rem 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-nav-item { background: rgba(245,240,232,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem 2rem; text-decoration: none; color: inherit; transition: all 0.25s; display: flex; flex-direction: column; }
.post-nav-item:hover { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }
.post-nav-dir { font-size: 0.72rem; color: rgba(245,240,232,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.post-nav-title { font-family:  sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--cream); line-height: 1.4; }
.post-nav-item.next { text-align: right; }

/* ── COMMENTS ── */
#comments { max-width: 1100px; margin: 0 auto; padding: 0 4rem 5rem; }
.comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.comments-title { font-family:  sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--cream); }
.comments-count { font-size: 0.85rem; color: rgba(245,240,232,0.45); background: rgba(245,240,232,0.06); border: 1px solid var(--border); padding: 0.35rem 1rem; border-radius: 20px; }

/* Comment list */
.comment-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 3.5rem; }
.comment {
  padding: 2rem 0; border-bottom: 1px solid rgba(245,240,232,0.07);
  display: grid; grid-template-columns: 48px 1fr; gap: 1.25rem;
  transition: background 0.2s;
}
.comment:first-child { padding-top: 0; }
.comment-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family:  sans-serif; font-size: 0.95rem; font-weight: 800;
  color: var(--ink); background: linear-gradient(135deg, var(--gold), var(--teal-light));
}
.comment-avatar.alt { background: linear-gradient(135deg, #6b3fa0, #2a5090); color: var(--cream); }
.comment-avatar.alt2 { background: linear-gradient(135deg, #1a6b3a, #2a9060); color: var(--cream); }
.comment-avatar.alt3 { background: linear-gradient(135deg, #8b3a1e, #c06030); color: var(--cream); }
.comment-body {}
.comment-meta { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.65rem; flex-wrap: wrap; }
.comment-name { font-family:  sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--cream); }
.comment-role { font-size: 0.75rem; color: var(--teal-light); background: rgba(42,144,144,0.12); padding: 0.2rem 0.65rem; border-radius: 20px; font-weight: 500; }
.comment-date { font-size: 0.78rem; color: rgba(245,240,232,0.35); }
.comment-text { font-size: 0.95rem; color: rgba(245,240,232,0.75); line-height: 1.8; margin-bottom: 0.9rem; }
.comment-actions { display: flex; gap: 1.25rem; align-items: center; }
.comment-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 0.82rem; color: rgba(245,240,232,0.4); font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s;
}
.comment-btn:hover { color: var(--gold); }
.comment-btn.liked { color: var(--gold); }
.comment-btn svg { width: 14px; height: 14px; }

/* Replies */
.comment-replies { margin-top: 1.25rem; padding-left: 1.5rem; border-left: 2px solid rgba(201,168,76,0.2); display: flex; flex-direction: column; gap: 0; }
.reply { padding: 1.25rem 0; border-bottom: 1px solid rgba(245,240,232,0.05); display: grid; grid-template-columns: 38px 1fr; gap: 1rem; }
.reply:last-child { border-bottom: none; }
.reply .comment-avatar { width: 38px; height: 38px; font-size: 0.8rem; }
.reply-form-inline { margin-top: 1rem; padding-left: 1.5rem; border-left: 2px solid rgba(201,168,76,0.1); display: none; }
.reply-form-inline.open { display: block; }

/* Leave a comment form */
.comment-form-section { background: rgba(245,240,232,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 2.5rem; }
.form-section-title { font-family:  sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--cream); margin-bottom: 0.4rem; }
.form-section-sub { font-size: 0.88rem; color: rgba(245,240,232,0.5); margin-bottom: 2rem; line-height: 1.6; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.cf-group { display: flex; flex-direction: column; gap: 0.45rem; }
.cf-label { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cf-input {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(201,168,76,0.2);
  padding: 0.85rem 1.1rem; border-radius: 4px; color: var(--cream);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s; outline: none; width: 100%;
}
.cf-input:focus { border-color: rgba(201,168,76,0.55); background: rgba(245,240,232,0.07); }
.cf-input::placeholder { color: rgba(245,240,232,0.28); }
textarea.cf-input { resize: vertical; min-height: 130px; margin-bottom: 1.25rem; }
.cf-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.cf-policy { font-size: 0.8rem; color: rgba(245,240,232,0.4); line-height: 1.6; max-width: 380px; }
.cf-policy a { color: var(--gold); text-decoration: none; }
.cf-submit {
  background: var(--gold); color: var(--ink); border: none; cursor: pointer;
  padding: 0.9rem 2.2rem; border-radius: 4px; font-family:  sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
.cf-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Sort bar */
.comments-sort { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.sort-label { font-size: 0.8rem; color: rgba(245,240,232,0.4); }
.sort-btn { background: none; border: 1px solid var(--border); border-radius: 3px; padding: 0.35rem 0.85rem; font-size: 0.8rem; color: rgba(245,240,232,0.55); font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.sort-btn.active, .sort-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Inline reply textarea */
.reply-textarea { width: 100%; background: rgba(245,240,232,0.04); border: 1px solid rgba(201,168,76,0.2); padding: 0.75rem 1rem; border-radius: 4px; color: var(--cream); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; resize: none; outline: none; margin-top: 0.75rem; min-height: 80px; transition: border-color 0.2s; }
.reply-textarea:focus { border-color: rgba(201,168,76,0.5); }
.reply-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; justify-content: flex-end; }
.reply-cancel { background: none; border: 1px solid var(--border); color: rgba(245,240,232,0.55); padding: 0.5rem 1.1rem; border-radius: 3px; font-size: 0.85rem; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.reply-cancel:hover { border-color: rgba(245,240,232,0.3); color: var(--cream); }
.reply-submit { background: var(--gold); color: var(--ink); border: none; padding: 0.5rem 1.25rem; border-radius: 3px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family:  sans-serif; transition: background 0.2s; }
.reply-submit:hover { background: var(--gold-light); }

footer { background: rgba(245,240,232,0.03); border-top: 1px solid var(--border); padding: 3rem 4rem; }
.footer-inner { max-width: 1100px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family:  sans-serif; font-weight: 800; color: var(--gold); font-size: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(245,240,232,0.5); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(245,240,232,0.35); font-size: 0.85rem; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; } .nav-links { display: none; }
  .post-hero { padding: 8rem 1.5rem 3rem; }
  .post-cover { padding: 0 1.5rem; height: 260px; }
  .post-layout { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2.5rem; }
  .post-sidebar { position: static; }
  .stat-highlight { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  #comments { padding: 0 1.5rem 3rem; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-footer { flex-direction: column; align-items: flex-start; }
  .cf-submit { width: 100%; text-align: center; }
}
