/* 블로그(초안). site.css 의 토큰(--bg --ink --sub --hair --card --accent)만 쓴다.
   본문 폭 약 65자, 라이트/다크는 site.css 의 data-theme 토큰을 따라간다. */
.wrap-read { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.post-head { padding-top: 72px; padding-bottom: 8px; }
.post-head h1 {
  font-size: clamp(30px, 4.6vw, 44px); line-height: 1.14; letter-spacing: -0.028em;
  font-weight: 700; text-wrap: balance;
}
.post-meta { margin-top: 16px; font-size: 14px; color: var(--sub); }
.post-meta a { color: var(--accent); }
.post-meta a:hover { text-decoration: underline; }
.blog-index .lede { margin-top: 14px; font-size: 18px; color: var(--sub); line-height: 1.55; }
.rss { color: var(--accent); font-size: 14px; margin-left: 6px; }

/* 본문 */
.prose { padding-top: 28px; font-size: 18px; line-height: 1.72; letter-spacing: -0.006em; }
.prose > * { max-width: 65ch; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .tbl, .prose pre, .prose figure { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.1em; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700;
  text-wrap: balance;
}
.prose h3 { margin-top: 1.7em; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding-left: 18px; border-left: 3px solid var(--hair); color: var(--sub); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em 0; }
.prose code {
  font: 0.86em/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-alt); padding: 0.12em 0.36em; border-radius: 6px;
}
.prose pre {
  background: var(--bg-alt); border: 1px solid var(--hair); border-radius: 14px;
  padding: 16px 18px; overflow-x: auto; max-width: 100%;
}
.prose pre code { background: none; padding: 0; font-size: 14px; }
.prose img { border-radius: 14px; border: 1px solid var(--hair); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--sub); }

/* 표: 좁은 화면에서는 상자 안에서만 가로 스크롤 */
.prose .tbl { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 100%; }
.prose th, .prose td { text-align: left; padding: 9px 14px 9px 0; vertical-align: top; }
.prose thead th { font-weight: 650; color: var(--sub); font-size: 13.5px; border-bottom: 1px solid var(--hair); }
.prose tbody tr + tr td { border-top: 1px solid var(--hair); }
.prose td { font-variant-numeric: tabular-nums; }

/* 글 끝 안내 */
.post-end {
  margin: 64px 0 96px; padding: 28px; border-radius: 22px;
  background: var(--bg-alt); border: 1px solid var(--hair);
}
.post-end .lead { font-size: 17px; line-height: 1.55; }
.post-end .cta { justify-content: flex-start; margin-top: 20px; }
.post-end .cta-sub { margin-top: 12px; }
.post-rel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
.post-rel h3 { font-size: 13px; color: var(--sub); font-weight: 600; }
.post-rel ul { list-style: none; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.post-rel a { color: var(--accent); font-size: 15px; }
.post-rel a:hover { text-decoration: underline; }

/* 목록 */
.post-list { list-style: none; margin: 36px 0 110px; }
.post-list li + li { border-top: 1px solid var(--hair); }
.post-card { display: block; padding: 26px 0; transition: opacity 0.2s ease; }
.post-card:hover h2 { color: var(--accent); }
.post-card:active { opacity: 0.7; }
.post-card time { font-size: 13px; color: var(--sub); }
.post-card h2 { margin-top: 6px; font-size: 22px; line-height: 1.3; letter-spacing: -0.018em; font-weight: 700; transition: color 0.2s ease; }
.post-card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--sub); max-width: 62ch; }
.post-card .tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-card .tags span { font-size: 12px; color: var(--sub); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hair); }
.empty { margin: 40px 0 110px; color: var(--sub); }

@media (max-width: 600px) {
  .wrap-read { padding: 0 16px; }
  .post-head { padding-top: 40px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 22px; }
  .post-end { padding: 22px 18px; }
}

/* 저자·날짜, 짧은 답, 본문 그림, 관련 글(검색 최적화 2026-10-07) */
.byline { margin-top: 16px; font-size: 14px; color: var(--sub); }
.crumb { font-size: 14px; color: var(--sub); }
.crumb a { color: var(--sub); }
.crumb a:hover { color: var(--ink); }
.prose .short-answer {
  margin-top: 14px; padding: 18px 20px; border-radius: 16px;
  background: var(--bg-alt); border: 1px solid var(--hair); font-size: 17px; line-height: 1.6;
}
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { display: block; width: 100%; height: auto; background: #fff; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.post-more { margin-top: 56px; }
.post-more h2 { font-size: 13px; color: var(--sub); font-weight: 600; }
.post-more ul { list-style: none; margin-top: 10px; }
.post-more li + li { margin-top: 8px; }
.post-more a { color: var(--accent); font-size: 16px; }
