/* === BLOG INDEX === */
.blog-hero { background: var(--bg-surface); }

.blog-list-section {
  background: var(--bg-surface);
  padding-bottom: 140px;
}
@media (max-width: 720px) {
  .blog-list-section { padding-bottom: 88px; }
}

.blog-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.karya-item:hover .blog-date { color: #fff; }

.blog-empty {
  padding: 88px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === POST ARTICLE === */
.post-article { background: var(--bg-base); }

.post-header { background: var(--bg-surface); padding-bottom: 64px; }

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

.post-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  transition: opacity 0.2s ease;
}
.post-back:hover { opacity: 0.7; }

.post-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 48px;
  max-width: 1000px;
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.post-author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.post-author-loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-top: 4px;
}

.post-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

/* === COVER IMAGE === */
.post-cover {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.post-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === POST BODY === */
.post-body { background: var(--bg-base); }

.post-content {
  max-width: 720px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.75;
  color: var(--ink);
  font-weight: 300;
}

.post-content h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  margin: 64px 0 24px;
  color: var(--ink);
}

.post-content h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 48px 0 20px;
  color: var(--ink);
}

.post-content p { margin-bottom: 28px; }

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content strong { font-weight: 600; color: var(--ink); }

.post-content em { font-style: italic; color: var(--ink-mid); }

.post-content ul,
.post-content ol {
  margin: 0 0 28px 24px;
  line-height: 1.75;
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 28px;
  margin: 40px 0;
  color: var(--ink-mid);
  font-style: italic;
}

.post-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 4px;
}

/* === RELATED === */
.post-related {
  background: var(--bg-surface);
  border-top: 1px solid var(--rule);
}

/* === COMMENTS === */
.post-comments {
  background: var(--bg-base);
  border-top: 1px solid var(--rule);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.comment-item {
  display: flex;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.comment-body-wrap { flex: 1; }

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.comment-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.comment-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

.comment-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
}
.comment-text p { margin-bottom: 12px; }
.comment-text p:last-child { margin-bottom: 0; }

/* === COMMENT FORM === */
.comment-form-wrap { max-width: 640px; }

.comment-form { display: flex; flex-direction: column; gap: 24px; }

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .comment-form-row { grid-template-columns: 1fr; }
}

.comment-field { display: flex; flex-direction: column; gap: 10px; }

.comment-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.comment-input {
  background: var(--bg-surface);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 14px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.comment-input:focus { border-color: var(--red); }
.comment-input::placeholder { color: var(--ink-faint); }
.comment-textarea { resize: vertical; min-height: 120px; }

.comment-submit {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.comment-submit:hover { opacity: 0.85; }

.comment-errors {
  background: var(--red-glow);
  border: 1px solid var(--red);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}
