/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:            #06060e;
  --bg-card:       #0a0a16;
  --bg-card-hover: #0e0e1e;
  --text:          #c4c4dc;
  --text-muted:    #52567a;
  --blue:          #1e6fe0;
  --blue-bright:   #3d9eff;
  --blue-glow:     rgba(30, 111, 224, 0.45);
  --blue-dim:      #0d2255;
  --blue-border:   #132044;
  --border:        #131322;
  --max-w:         1100px;
  --content-w:     740px;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ── Axes Background ───────────────────────────────────────────────── */
#axes-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.09;
  animation: axes-breathe 12s ease-in-out infinite;
}

#axes-bg svg {
  width: clamp(340px, 52vmin, 600px);
  height: clamp(340px, 52vmin, 600px);
}

@keyframes axes-breathe {
  0%, 100% { opacity: 0.07; }
  50%       { opacity: 0.14; }
}

/* ── Rune Field ────────────────────────────────────────────────────── */
#rune-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rune {
  position: absolute;
  user-select: none;
  pointer-events: none;
  transition: color 2.4s ease, text-shadow 2.4s ease, opacity 1.8s ease;
  line-height: 1;
}

/* Carved state — deep embossed stone */
.rune.carved {
  color: #141830;
  text-shadow:
    1px  1px 0 #000,
    -1px -1px 0 #0b0d1e,
    0 0 6px rgba(20, 40, 100, 0.2);
  opacity: 0.45;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Digital state — glowing blue circuit */
.rune.digital {
  color: #00b4ff;
  text-shadow:
    0 0  5px #00b4ff,
    0 0 12px rgba(0, 150, 255, 0.8),
    0 0 24px rgba(0, 100, 255, 0.4),
    0 0 40px rgba(0,  80, 200, 0.2);
  opacity: 0.6;
  font-weight: 300;
  font-family: 'Courier New', monospace;
}

/* ── Site Body ─────────────────────────────────────────────────────── */
.site-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 62px);
}

/* ── Sidebar ───────────────────────────────────────────────────────── */
.site-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #07070d;
  border-right: 1px solid #0d1228;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  scrollbar-width: none;
}
.site-sidebar::-webkit-scrollbar { display: none; }

.sidebar-inner {
  padding: 2rem 0;
}

.sidebar-label {
  font-family: 'Orbitron', monospace;
  font-size: .5rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #252845;
  padding: 0 1.5rem .9rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid #0d1228;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}

.sidebar-links li + li {
  border-top: 1px solid #0a0c1a;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.5rem;
  font-family: 'Orbitron', monospace;
  font-size: .63rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7888c0;
  text-shadow: 0 0 10px rgba(100, 140, 230, 0.35);
  border-left: 3px solid transparent;
  transition: color .2s, border-left-color .2s, background .2s, text-shadow .2s;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--blue-bright);
  border-left-color: var(--blue-bright);
  background: rgba(30, 111, 224, 0.07);
  text-shadow: 0 0 14px rgba(61, 158, 255, 0.7), 0 0 28px rgba(30, 111, 224, 0.35);
}

.sidebar-link-rune {
  font-size: .75rem;
  color: #3d5090;
  text-shadow: 0 0 8px rgba(60, 100, 200, 0.5);
  transition: color .2s, text-shadow .2s;
  flex-shrink: 0;
}

.sidebar-link:hover .sidebar-link-rune {
  color: var(--blue-bright);
  text-shadow: 0 0 12px var(--blue-glow), 0 0 22px rgba(0, 100, 255, 0.4);
}

/* ── Site Main Area ────────────────────────────────────────────────── */
.site-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#main { flex: 1; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.logo-runes {
  font-size: 1.05rem;
  color: var(--blue-bright);
  text-shadow: 0 0 12px var(--blue-bright);
  letter-spacing: .08em;
  transition: text-shadow .3s;
}
.site-title:hover .logo-runes {
  text-shadow: 0 0 18px var(--blue-bright), 0 0 32px var(--blue-glow);
}
.site-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #fff 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav ul { display: flex; gap: 2rem; list-style: none; }
.main-nav a {
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.main-nav a:hover,
.main-nav .nav-current a { color: var(--blue-bright); }

/* ── Feed Header ───────────────────────────────────────────────────── */
.feed-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 1.5rem;
}
.feed-tagline {
  font-family: 'Orbitron', monospace;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Post Feed Grid ────────────────────────────────────────────────── */
.post-feed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

/* ── Post Card ─────────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue-dim);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-top-color .35s, transform .25s, box-shadow .35s;
}
.post-card:hover {
  border-top-color: var(--blue-bright);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 90, 220, 0.18);
}

.post-card-image-link { display: block; overflow: hidden; }
.post-card-image {
  width: 100%;
  height: 195px;
  object-fit: cover;
  transition: transform .45s;
}
.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content {
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.post-card-tag {
  font-family: 'Orbitron', monospace;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--blue-border);
  padding: .15rem .5rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.post-card-tag:hover {
  background: var(--blue-dim);
  color: #fff;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .65rem;
}
.post-card-title a { color: #e8e8f8; }
.post-card-title a:hover { color: var(--blue-bright); }

.post-card-excerpt {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.62;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.post-card-date,
.post-card-read {
  font-family: 'Orbitron', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ── Belief Section ────────────────────────────────────────────────── */
.belief-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #07070e 0%, #06060c 100%);
  padding: 4rem 2rem;
}

.belief-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.belief-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.belief-header-rune {
  font-size: 1.3rem;
  color: var(--blue-dim);
  text-shadow: 0 0 12px rgba(30, 111, 224, 0.4);
  opacity: 0.7;
}

.belief-heading {
  font-family: 'Orbitron', monospace;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.belief-intro {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #d0d0e8;
  line-height: 1.7;
  max-width: 560px;
}

.belief-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: 860px;
}

.belief-block {
  padding: 2rem 2rem 2rem;
}

.belief-block-rune {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.belief-block--threat .belief-block-rune {
  color: #2a1520;
  text-shadow: 0 0 16px rgba(100, 20, 20, 0.6), 0 0 32px rgba(80, 0, 0, 0.3);
}

.belief-block--path .belief-block-rune {
  color: var(--blue-dim);
  text-shadow: 0 0 16px var(--blue-glow), 0 0 32px rgba(0, 80, 200, 0.3);
}

.belief-block-title {
  font-family: 'Orbitron', monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.belief-block--threat .belief-block-title {
  color: #7a3040;
}

.belief-block--path .belief-block-title {
  color: var(--blue-bright);
}

.belief-block-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.belief-block--path .belief-block-text {
  color: #8090b8;
}

/* vertical divider with "or" */
.belief-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem .75rem 0;
  gap: .75rem;
}

.belief-divider-line {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, transparent, #131840, transparent);
}

.belief-divider-word {
  font-family: 'Orbitron', monospace;
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #252845;
  white-space: nowrap;
}

/* closing verdict */
.belief-verdict {
  text-align: center;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 500;
  color: #c0c0dc;
  line-height: 1.8;
  max-width: 600px;
  padding: 1.75rem 2rem;
  border: 1px solid var(--blue-border);
  border-left: 3px solid var(--blue);
  background: rgba(10, 20, 60, 0.25);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .belief-grid {
    grid-template-columns: 1fr;
  }
  .belief-divider {
    flex-direction: row;
    padding: 0 1rem;
  }
  .belief-divider-line {
    min-height: 1px;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, #131840, transparent);
  }
  .belief-block { padding: 1.5rem 0; }
  .belief-intro { font-size: 1.05rem; }
  .belief-verdict { font-size: .95rem; }
}

/* ── Single Post ───────────────────────────────────────────────────── */
.post-full {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-full-header { margin-bottom: 2.5rem; }

.post-full-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.post-tag {
  font-family: 'Orbitron', monospace;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--blue-border);
  padding: .2rem .6rem;
  border-radius: 2px;
  transition: background .2s;
}
.post-tag:hover { background: var(--blue-dim); color: #fff; }

.post-full-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f0f0ff;
  margin-bottom: 1rem;
}

.post-full-meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  font-family: 'Orbitron', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.post-full-meta .sep { opacity: .4; }

.post-full-image {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.post-full-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* ── Post Content Typography ───────────────────────────────────────── */
.gh-content > * + * { margin-top: 1.5rem; }

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: #f0f0ff;
  line-height: 1.3;
  margin-top: 2.5rem;
}
.gh-content h2 {
  font-size: 1.55rem;
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
}
.gh-content h3 {
  font-size: 1.2rem;
  color: var(--blue-bright);
}
.gh-content h4 { font-size: 1rem; }

.gh-content a {
  color: var(--blue-bright);
  border-bottom: 1px solid var(--blue-border);
  transition: border-color .2s;
}
.gh-content a:hover { border-color: var(--blue-bright); }

.gh-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-muted);
  font-style: italic;
  border-radius: 0 3px 3px 0;
}

.gh-content ul,
.gh-content ol { padding-left: 1.5rem; }
.gh-content li + li { margin-top: .35rem; }

.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.gh-content code {
  font-family: 'Courier New', monospace;
  font-size: .875em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .1em .35em;
  border-radius: 2px;
  color: var(--blue-bright);
}
.gh-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  padding: 1.5rem;
  border-radius: 3px;
  overflow-x: auto;
}
.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: .875rem;
}

.gh-content figure.kg-image-card,
.gh-content figure.kg-gallery-card {
  margin: 2rem 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gh-content figcaption {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  padding: .5rem;
  background: var(--bg-card);
}

/* ── Pagination ────────────────────────────────────────────────────── */
.pagination {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.pagination a {
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--blue-bright);
  border: 1px solid var(--blue-border);
  padding: .55rem 1.4rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.pagination a:hover { background: var(--blue-dim); color: #fff; }
.pagination .page-number {
  font-family: 'Orbitron', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 14, 0.92);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-runes {
  font-size: 1.15rem;
  letter-spacing: .55em;
  color: var(--blue-border);
  text-shadow: 0 0 10px rgba(0, 90, 200, 0.35);
}
.footer-copy {
  font-family: 'Orbitron', monospace;
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--text-muted);
}

/* ── Archive Header ────────────────────────────────────────────────── */
.archive-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.archive-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}
.archive-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f0f0ff;
  margin-bottom: .5rem;
}
.archive-description { color: var(--text-muted); max-width: 600px; }

/* ── Error Page ────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 8rem 2rem;
}
.error-rune {
  font-size: 5rem;
  color: var(--blue-dim);
  text-shadow: 0 0 20px rgba(0, 80, 200, 0.5);
  margin-bottom: 1rem;
}
.error-code {
  font-family: 'Orbitron', monospace;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--blue-dim);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-message {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.btn-home {
  font-family: 'Orbitron', monospace;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--blue-border);
  padding: .65rem 2rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-home:hover { background: var(--blue-dim); color: #fff; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .main-nav { display: none; }
  .site-sidebar { display: none; }
  .post-feed { grid-template-columns: 1fr; padding: 1rem 1rem 3rem; }
  .post-full { padding: 2rem 1rem 4rem; }
  .post-full-title { font-size: 1.65rem; }
  .feed-header { padding: 2rem 1rem 1rem; }
}
