/* ===== Post Article ===== */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  animation: card-in 600ms ease-out;
}

/* 뒤로가기 링크 */
.post-back {
  display: inline-block;
  margin-bottom: 20px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: transform 180ms ease;
}
.post-back:hover {
  transform: translateX(-3px);
}

/* 포스트 제목 */
.post-title {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

/* 메타 정보 */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #6d7280;
}

.post-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 태그 */
.post-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* 구분선 */
.post-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* ===== 본문 콘텐츠 ===== */
.post-content {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.post-content h1 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 650;
  margin: 40px 0 12px;
  border: none;
  padding: 0;
}

.post-content h2 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 650;
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.post-content h3 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 650;
  margin: 28px 0 8px;
}

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

.post-content ul,
.post-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

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

.post-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.post-content a:hover {
  color: var(--brand-soft);
}

/* 인라인 코드 */
.post-content code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 코드 블록 */
.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* 인용문 */
.post-content blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(207, 143, 46, 0.06);
  margin: 18px 0;
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  color: #4b5563;
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* 테이블 */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}

.post-content th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

/* 이미지 */
.post-content img,
.post-content video,
.post-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== 이전/다음 글 네비게이션 ===== */
.post-nav {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.post-nav-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.post-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.post-nav-placeholder {
  border: none;
}

.post-nav-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #6d7280;
  margin-bottom: 4px;
}

.post-nav-title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.post-nav-next {
  text-align: right;
}

/* ===== 글 목록 페이지 ===== */
.post-list-page {
  max-width: 720px;
  margin: 0 auto;
  animation: card-in 600ms ease-out;
}

.post-list-title {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 28px;
  border: none;
  padding: 0;
}

/* 주제 그룹 */
.post-group {
  margin-bottom: 32px;
}

.post-group-title {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  text-transform: capitalize;
}

/* 연월 소그룹 */
.post-month {
  margin-bottom: 8px;
}

.post-month-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: #6d7280;
  margin: 16px 0 0 2px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  border-bottom: 1px solid var(--line);
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 6px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
  border-radius: 6px;
}

.post-list-link:hover {
  transform: translateX(4px);
  background: rgba(0, 0, 0, 0.02);
}

.post-list-link-title {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.post-list-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #6d7280;
  white-space: nowrap;
}

.post-list-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.post-list-category {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

/* ===== 반응형 ===== */
@media screen and (max-width: 680px) {
  .post-title,
  .post-list-title {
    font-size: 26px;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav-next {
    text-align: left;
  }

  .post-list-link {
    flex-wrap: wrap;
    gap: 4px;
  }

  .post-list-date {
    order: -1;
    width: 100%;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .post-article,
  .post-list-page {
    padding: 0 2px;
  }

  .post-title,
  .post-list-title {
    font-size: 24px;
  }

  .post-content {
    font-size: 15px;
  }

  .post-content pre {
    padding: 14px;
    font-size: 12px;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
  }
}
