/* ═══ VITHA GHOST THEME ═══ */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111110;
  --fg: #E8E4DF;
  --fg-dim: #6B6560;
  --fg-ghost: #2A2724;
  --fg-faint: #1A1917;
  --accent: #C4A46C;
  --accent-dim: rgba(196, 164, 108, 0.15);
  --error: #a04040;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --content-width: 720px;
  --wide-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: var(--bg); }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-ghost) transparent;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Diagonal line background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 59px,
      var(--fg-faint) 59px,
      var(--fg-faint) 60px
    );
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }

/* ═══ NAV ═══ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--accent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.nav-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.nav-diamond {
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ═══ MAIN CONTENT ═══ */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 80px;
}

/* ═══ HOME / POST LIST ═══ */
.post-feed {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 64px 32px;
}

.feed-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--fg-faint);
}
.feed-header-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.feed-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.feed-title span { color: var(--accent); }
.feed-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--fg-dim);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 540px;
}

/* Post cards */
.post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--fg-faint);
  transition: border-color 0.3s ease;
}
.post-card:first-child {
  border-top: 1px solid var(--fg-faint);
}
.post-card:hover {
  border-bottom-color: var(--accent);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-card-tag .dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.post-card-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-ghost);
  text-transform: uppercase;
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.post-card-title a { color: var(--fg); }
.post-card-title a:hover { color: var(--accent); opacity: 1; }

.post-card-excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 600px;
}

.post-card-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s ease;
  margin-top: 4px;
}
.post-card-read:hover { color: var(--accent); opacity: 1; }
.post-card-arrow {
  transition: transform 0.2s ease;
}
.post-card-read:hover .post-card-arrow {
  transform: translateX(3px);
}

.post-card-image {
  width: 180px;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--fg-faint);
  position: relative;
  flex-shrink: 0;
}
.post-card-image::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  z-index: 1;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

/* Featured post */
.post-card.featured {
  grid-template-columns: 1fr;
  padding: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--fg-faint);
  position: relative;
}
.post-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.post-card.featured::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.post-card.featured .post-card-title {
  font-size: clamp(22px, 2.5vw, 32px);
}

/* ═══ SINGLE POST ═══ */
.post-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 32px 0;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.post-meta-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-dim);
}

.post-meta-divider {
  width: 24px;
  height: 1px;
  background: var(--fg-ghost);
}

.post-header-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-ghost);
  text-transform: uppercase;
}

.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.post-title span { color: var(--accent); }

.post-excerpt-header {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 56px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 0;
  margin-top: 0;
}
.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--fg-ghost);
  overflow: hidden;
}
.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.post-author-name a { color: var(--fg); }
.post-reading-time {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-ghost);
  text-transform: uppercase;
  margin-left: auto;
}

/* Feature image */
.post-feature-image {
  max-width: var(--wide-width);
  margin: 40px auto 0;
  padding: 0 32px;
}
.post-feature-image img {
  width: 100%;
  border: 1px solid var(--fg-faint);
}

/* ═══ SEED DIVIDER ═══ */
.seed-divider {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}
.seed-divider svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.seed-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--fg-ghost), transparent);
}

/* ═══ POST CONTENT (Ghost editor output) ═══ */
.gh-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 32px 80px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 300;
}

.gh-content > * + * {
  margin-top: 28px;
}

.gh-content p {
  color: var(--fg);
  opacity: 0.9;
  line-height: 1.85;
  margin-top: 0;
  margin-bottom: 28px;
}
.gh-content p + p {
  margin-top: 0;
}

.gh-content p:last-child {
  margin-bottom: 0;
}

.gh-content strong { font-weight: 500; color: var(--fg); }
.gh-content em { color: var(--accent); font-style: italic; }

.gh-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--fg-faint);
}

.gh-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-top: 2em;
}

.gh-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
}

.gh-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s ease;
}
.gh-content a:hover {
  border-bottom-color: var(--accent);
  opacity: 1;
}

.gh-content blockquote {
  position: relative;
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 28px;
  margin: 48px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-style: normal;
}
.gh-content blockquote::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}
.gh-content blockquote p {
  opacity: 1;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.gh-content blockquote em {
  color: var(--accent);
}

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  border: 1px solid var(--fg-faint);
  padding: 2px 6px;
  color: var(--accent);
}

.gh-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--fg-ghost);
  padding: 24px 28px;
  overflow-x: auto;
  position: relative;
}
.gh-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.gh-content pre::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  color: var(--fg);
}
.gh-content li + li { margin-top: 0.5em; }
.gh-content li::marker { color: var(--accent); }

.gh-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--fg-ghost), transparent);
  margin: 3em 0;
}

.gh-content figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-ghost);
  text-align: center;
  margin-top: 12px;
}

.gh-content img {
  border: 1px solid var(--fg-faint);
}

/* Wide and full width content */
.gh-content .kg-width-wide {
  max-width: var(--wide-width);
  margin-left: calc((var(--content-width) - var(--wide-width)) / 2);
  margin-right: calc((var(--content-width) - var(--wide-width)) / 2);
}
.gh-content .kg-width-full {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Ghost cards */
.gh-content .kg-callout-card {
  background: var(--bg-elevated);
  border: 1px solid var(--fg-faint);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
.gh-content .kg-callout-card::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.gh-content .kg-bookmark-card {
  background: var(--bg-elevated);
  border: 1px solid var(--fg-faint);
  transition: border-color 0.3s ease;
}
.gh-content .kg-bookmark-card:hover {
  border-color: var(--accent);
}
.gh-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
}
.gh-content .kg-bookmark-content {
  padding: 20px;
  flex: 1;
}
.gh-content .kg-bookmark-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}
.gh-content .kg-bookmark-description {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 8px;
  line-height: 1.5;
}
.gh-content .kg-bookmark-metadata {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-ghost);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh-content .kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
}
.gh-content .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* ═══ CUSTOM POST COMPONENTS ═══ */

/* Section markers (numbered headings) */
.section-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  margin-bottom: 24px;
}
.section-marker .marker-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-ghost);
}
.section-marker h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: -0.01em;
  color: var(--fg);
  border: none;
  padding: 0;
  margin: 0;
}
.section-marker .marker-line {
  flex: 1;
  height: 1px;
  background: var(--fg-ghost);
}

/* Pull quotes */
.pull-quote {
  position: relative;
  margin: 48px 0;
  padding: 32px 0 32px 28px;
  border-left: 2px solid var(--accent);
}
.pull-quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0 !important;
  opacity: 1;
}
.pull-quote p em {
  color: var(--accent);
}
.pull-quote::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}
.pull-quote-attr {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-ghost);
  text-transform: uppercase;
  margin-top: 12px;
}

/* Cycle visualization */
.cycle-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 56px 0;
  padding: 40px 0;
  border-top: 1px solid var(--fg-faint);
  border-bottom: 1px solid var(--fg-faint);
}
.cycle-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.cycle-label-top {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-ghost);
}
.cycle-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--fg);
}
.cycle-word em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
}
.cycle-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-ghost);
  padding: 0 6px;
  animation: arrowPulse 3s ease-in-out infinite;
}
.cycle-arrow:nth-child(4) { animation-delay: 1s; }
.cycle-arrow:nth-child(6) { animation-delay: 2s; }
@keyframes arrowPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; color: var(--accent); }
}

/* Terminal block */
.terminal-block {
  background: var(--bg-elevated);
  border: 1px solid var(--fg-ghost);
  padding: 24px 28px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.terminal-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.terminal-header {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-ghost);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-header .blink {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}
.terminal-line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
}
.terminal-line .accent { color: var(--accent); }
.terminal-line .ghost { color: var(--fg-ghost); }

/* Redacted / suspense text */
.redacted {
  display: inline;
  background: var(--fg-ghost);
  color: var(--fg-ghost);
  padding: 1px 6px;
  border-radius: 2px;
  transition: all 0.6s ease;
  cursor: default;
  user-select: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.redacted:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Post signal CTA */
.post-signal {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--fg-faint);
  text-align: center;
}
.signal-seed {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  position: relative;
}
.signal-seed svg { width: 100%; height: 100%; }
.signal-seed .seed-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.signal-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 8px;
}
.signal-cta span { color: var(--accent); }
.signal-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.signal-input-row {
  display: flex;
  max-width: 380px;
  margin: 0 auto;
  border-bottom: 1px solid var(--fg-ghost);
  transition: border-color 0.3s ease;
}
.signal-input-row:focus-within { border-color: var(--accent); }
.signal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg);
  padding: 12px 0;
}
.signal-input::placeholder { color: var(--fg-ghost); }
.signal-arrow {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  padding: 0 8px;
  transition: transform 0.2s ease;
}
.signal-arrow:hover { transform: translateX(3px); }

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ POST ACTIONS (Like / Resonate) ═══ */
.post-actions {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--fg-faint);
  color: var(--fg-dim);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  position: relative;
  font-family: var(--font-mono);
}

/* Corner accent marks */
.like-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.like-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.like-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.like-btn.liked {
  color: var(--accent);
  border-color: var(--accent);
}
.like-btn.liked .like-icon-outline {
  fill: var(--accent-dim);
}

.like-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.like-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  min-width: 1.5em;
  text-align: center;
}

.like-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.like-btn.like-pop {
  animation: like-pop 0.3s ease;
}

/* ═══ COMMENTS ═══ */
.post-comments {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ═══ TAG / AUTHOR PAGES ═══ */
.archive-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 64px 32px 0;
}
.archive-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.archive-label .dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.archive-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}
.archive-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--fg-dim);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 540px;
}
.archive-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-ghost);
  margin-top: 12px;
  text-transform: uppercase;
}

/* ═══ PAGINATION ═══ */
.pagination {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--fg-faint);
}
.pagination a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s ease;
}
.pagination a:hover { color: var(--accent); opacity: 1; }
.pagination .page-number {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-ghost);
}

/* ═══ FOOTER ═══ */
.site-footer {
  padding: 48px 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--accent);
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-left svg { width: 20px; height: 20px; opacity: 0.3; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-name a { color: var(--fg-dim); }
.footer-center {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-ghost);
}
.footer-right {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-ghost);
  opacity: 0.5;
}

/* ═══ ERROR PAGE ═══ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 80px 32px;
}
.error-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--fg-ghost);
  margin-bottom: 24px;
}
.error-message {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.error-message span { color: var(--accent); }
.error-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.error-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 900px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-image { width: 100%; height: 200px; }
}

@media (max-width: 640px) {
  .site-nav { padding: 18px 20px; }
  .nav-logo svg { width: 22px; height: 22px; }
  .nav-logo-text { font-size: 12px; }
  .nav-right { display: none; }

  .post-feed { padding: 40px 20px; }
  .feed-header { margin-bottom: 40px; }

  .post-card { padding: 24px 0; }
  .post-card.featured { padding: 28px 20px; }
  .post-card-image { height: 160px; }

  .post-header { padding: 40px 20px 0; }
  .post-feature-image { padding: 0 20px; }
  .seed-divider { padding: 0 20px; margin-top: 28px; }
  .gh-content { padding: 32px 20px 60px; }
  .post-actions { padding: 0 20px 36px; }
  .post-comments { padding: 0 20px 60px; }
  .cycle-visual { flex-direction: column; gap: 8px; padding: 28px 0; }
  .cycle-arrow { transform: rotate(90deg); }
  .pull-quote { padding-left: 20px; }
  .terminal-block { padding: 18px 20px; }

  .gh-content .kg-width-wide {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding: 36px 20px 28px;
  }

  .pagination { padding: 24px 20px 48px; }
  .archive-header { padding: 40px 20px 0; }
}

@media (max-width: 380px) {
  .post-title { font-size: 28px; }
  .feed-title { font-size: 24px; }
  .post-card-title { font-size: 17px; }
}
