/* Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  min-height: calc(100% - 80px);
}

/* Article column */
.post-main {
  padding: 0;
  border-right: 1px solid #1a001a;
  position: relative;
}
.post-main::after {
  content:''; position:absolute; top:0;right:0;bottom:0; width:1px;
  background:linear-gradient(180deg,transparent,#440088 10%,#440088 90%,transparent);
}

/* Post header band */
.post-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid #1a001a;
  position: relative;
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,0,50,.4) 0%, transparent 100%);
  pointer-events: none;
}
.post-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.post-cat-tag {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 13px;
  background: #8844cc;
  color: #000;
  padding: 2px 8px;
  letter-spacing: 1px;
}
.post-date-top {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #444;
  letter-spacing: 1px;
}
.post-read-time {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #333;
}
.post-h1 {
  font-family: 'Pirata One', cursive;
  font-size: 38px;
  color: #e8e8e8;
  line-height: 1.1;
  margin: 0 0 12px;
  text-shadow: 0 0 24px rgba(150,80,255,.25), 0 2px 4px rgba(0,0,0,.8);
}
.post-deck {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 16px;
  border-left: 3px solid #440077;
  padding-left: 12px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #1a001a;
}
.byline-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2a002a 0%, #5500aa 100%);
  border: 2px solid #440077;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.byline-info { display: flex; flex-direction: column; gap: 2px; }
.byline-name { font-family: 'VT323', monospace; font-size: 16px; color: #aaa; letter-spacing: 1px; }
.byline-role { font-family: 'VT323', monospace; font-size: 13px; color: #444; }
.byline-share {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.share-btn {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #555;
  background: rgba(20,0,30,.5);
  border: 1px solid #1a001a;
  padding: 2px 8px;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { color: #aa66ff; border-color: #440077; }

/* Article body — THIS is where readability is paramount */
.post-body {
  padding: 28px 32px 32px;
}

/* The actual article prose — use Crimson Text for long-form reading */
.article-content {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  color: #c8c8c8;
  line-height: 1.75;
  max-width: 680px;
}

.article-content p {
  margin: 0 0 1.4em;
}

/* Drop cap on first paragraph */
.article-content > p:first-child::first-letter {
  font-family: 'Pirata One', cursive;
  font-size: 4.5em;
  float: left;
  line-height: 0.75;
  margin: 6px 10px 0 0;
  color: #aa66ff;
  text-shadow: 0 0 16px rgba(150,80,255,.5);
}

/* Section headings within post */
.article-content h2 {
  font-family: 'Pirata One', cursive;
  font-size: 26px;
  color: #bbb;
  margin: 2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid #1a001a;
  position: relative;
}
.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 1px;
  background: #6600aa;
}
.article-content h3 {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #888;
  letter-spacing: 2px;
  margin: 1.6em 0 0.5em;
  text-transform: uppercase;
}

/* Pull quote */
.pull-quote {
  margin: 2em 0;
  padding: 16px 20px;
  border-left: 4px solid #6600aa;
  border-right: 1px solid #2a002a;
  background: rgba(20,0,35,.6);
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-family: 'Pirata One', cursive;
  font-size: 60px;
  color: #330055;
  position: absolute;
  top: -10px;
  left: 12px;
  line-height: 1;
}
.pull-quote p {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 20px !important;
  font-style: italic;
  color: #bbb !important;
  margin: 0 !important;
  padding-left: 28px;
  line-height: 1.5 !important;
}
.pull-quote cite {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  padding-left: 28px;
  letter-spacing: 1px;
}

/* Inline image placeholder */
.post-image {
  margin: 2em 0;
  background: linear-gradient(135deg, #0d0015 0%, #05000a 100%);
  border: 1px solid #1a001a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-image-icon { font-size: 48px; margin-bottom: 10px; opacity: .4; }
.post-image-caption {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #333;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Links within article */
.article-content a {
  color: #8844cc;
  text-decoration: underline;
}
.article-content a:hover { color: #cc88ff; }

/* Article tags at bottom */
.post-tags {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1a001a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags-label {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #444;
  letter-spacing: 1px;
}
.post-tag {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #666;
  background: rgba(20,0,30,.5);
  border: 1px solid #1a001a;
  padding: 1px 8px;
  text-decoration: none;
  cursor: pointer;
}
.post-tag:hover { color: #aa66ff; border-color: #440077; }

/* Post navigation (prev/next) */
.post-nav {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.post-nav-item {
  border: 1px solid #1a001a;
  background: rgba(15,0,20,.6);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s;
}
.post-nav-item:hover { border-color: #440077; background: rgba(25,0,35,.7); }
.post-nav-label {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #444;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.post-nav-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #8844cc;
  line-height: 1.3;
}
.post-nav-item:hover .post-nav-title { color: #cc88ff; }
.post-nav-item.next { text-align: right; }

/* Comments section */
.comments-section {
  padding: 0 32px 32px;
  border-top: 1px solid #1a001a;
}
.comments-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #555;
  letter-spacing: 2px;
  padding: 18px 0 14px;
}
.comment {
  border: 1px solid #1a001a;
  background: rgba(10,0,15,.5);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #111;
}
.comment-avatar {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #1a001a 0%, #330055 100%);
  border: 1px solid #2a002a;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.comment-author { font-family: 'VT323', monospace; font-size: 15px; color: #888; }
.comment-date { font-family: 'VT323', monospace; font-size: 12px; color: #333; margin-left: auto; }
.comment-body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  color: #777;
  line-height: 1.6;
}

/* Comment form */
.comment-form {
  margin-top: 16px;
  border: 1px solid #1a001a;
  background: rgba(10,0,15,.4);
  padding: 14px;
}
.comment-form-title {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-label {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #444;
  letter-spacing: 1px;
}
.form-input {
  background: #050005;
  border: 1px solid #1a001a;
  border-top-color: #0a000a;
  color: #bbb;
  font-family: 'VT323', monospace;
  font-size: 15px;
  padding: 4px 8px;
  outline: none;
}
.form-input:focus { border-color: #440077; box-shadow: 0 0 6px rgba(100,0,150,.3); }
.form-textarea {
  background: #050005;
  border: 1px solid #1a001a;
  border-top-color: #0a000a;
  color: #bbb;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  padding: 8px;
  width: 100%;
  min-height: 90px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.form-textarea:focus { border-color: #440077; }
.submit-btn {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #c0c0c0;
  background: linear-gradient(180deg, #2a002a 0%, #1a001a 50%, #220022 100%);
  border: 2px solid #555;
  border-top-color: #888;
  border-left-color: #888;
  border-right-color: #333;
  border-bottom-color: #333;
  padding: 4px 20px;
  cursor: pointer;
  letter-spacing: 1px;
}
.submit-btn:hover { border-color: #8844cc; color: #cc88ff; box-shadow: 0 0 10px rgba(120,60,200,.3); }
.submit-btn:active { border-top-color: #333; border-left-color: #333; border-right-color: #888; border-bottom-color: #888; }
/* TOC */
.toc {
  background: rgba(10,0,15,.6);
  border: 1px solid #1a001a;
  padding: 10px 12px;
}
.toc-item {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #666;
  padding: 3px 0;
  border-bottom: 1px solid #0d000d;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: baseline;
  text-decoration: none;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { color: #aa66ff; }
.toc-num { color: #333; font-size: 12px; flex-shrink: 0; }

/* Progress bar */
.reading-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1a001a;
  z-index: 50;
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #440088 0%, #8844cc 100%);
  width: 0%;
  transition: width .1s;
  box-shadow: 0 0 6px #6600aa;
}

.marquee-bar { background:#000; border-top:2px solid #1a001a; padding:4px 0;
  font-family:'VT323',monospace; font-size:14px; color:#555; overflow:hidden; }
