/* 빅블록 블로그 - 흰 배경, 모바일 우선, 한글 가독성 중심 */
:root {
    --accent: #2563eb;
    --ink: #1f2328;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f6f8fa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 18px 64px;
}

/* ---- 헤더/푸터 ---- */
.site-head { padding: 28px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.site-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.site-desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.site-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
             color: var(--muted); font-size: 13px; text-align: center; }
.topnav { margin-bottom: 20px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--accent); }

/* ---- 목록 ---- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { border-bottom: 1px solid var(--line); }
.post-card-link { display: block; padding: 22px 4px; text-decoration: none; color: inherit; transition: background .15s; }
.post-card-link:hover { background: var(--soft); }
.post-card-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.post-card-excerpt { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.post-card-meta .date { color: var(--muted); }

/* ---- 태그 ---- */
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 2px 9px; background: var(--soft); border-radius: 999px;
       font-size: 12px; color: var(--accent); }
.post-tags { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
             display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 글 본문 ---- */
.post-head { margin-bottom: 8px; }
.post-title { font-size: 28px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 10px; }
.post-date { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

.post-body { font-size: 16.5px; }
.post-body h1 { font-size: 25px; margin: 40px 0 16px; }
.post-body h2 { font-size: 22px; margin: 38px 0 14px; padding-bottom: 6px; }
.post-body h3 { font-size: 19px; margin: 30px 0 12px; }
.post-body p { margin: 16px 0; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--accent); }

.post-body blockquote {
    margin: 22px 0; padding: 14px 18px; border-left: 4px solid var(--accent);
    background: var(--soft); border-radius: 0 8px 8px 0; color: #374151;
}
.post-body blockquote p { margin: 4px 0; }

.post-body pre { background: var(--soft); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.post-body code { background: var(--soft); padding: 2px 6px; border-radius: 5px; font-size: 0.92em; }
.post-body pre code { background: none; padding: 0; }

/* 표 */
.post-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-body thead th { background: var(--soft); font-weight: 700; }

.post-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* 이미지 삽입 위치 플레이스홀더 */
.img-placeholder {
    margin: 24px 0; padding: 40px 16px; text-align: center;
    background: var(--soft); border: 2px dashed var(--line); border-radius: 10px;
    color: var(--muted); font-size: 14px;
}

/* ---- 빈 상태 ---- */
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty code { background: var(--soft); padding: 2px 6px; border-radius: 5px; }
