/* ==========================================================================
   TIMBEL Blog — 공통 아티클 스타일 (css/blog-style.css)
   모든 블로그 아티클 페이지(blog/**/index.html)가 공통으로 참조합니다.
   색상·타이포그래피는 timbel.net 기존 site.css 토큰을 그대로 계승합니다.
   ========================================================================== */

/* 원본 blog.html에 페이지 단위 인라인으로 들어있던 리셋을 그대로 이전.
   site.css가 이미 리셋하고 있다면 아래는 덮어써도 안전합니다(동일 값). */
html, body { margin: 0; }
* { box-sizing: border-box; }

:root {
  --tb-ink: #0a0a0a;        /* 본문 제목 색 (site.css --ink) */
  --tb-body: #333a47;       /* 본문 텍스트 색 (site.css --steel) */
  --tb-sub: #5b6472;        /* 부제/요약 색 */
  --tb-muted: #8b93a5;      /* 메타 정보 색 (site.css --muted) */
  --tb-line: #e6e8ee;       /* 구분선 색 (site.css --hairline) */
  --tb-accent: #1456f0;     /* 브랜드 블루 (site.css 전역과 동일) */
  --tb-accent-soft: #eaf1ff;/* 브랜드 블루 10% 톤 */
  --tb-bg: #ffffff;
  --tb-bg-soft: #f7f8fa;
}

/* -------------------- 페이지 셸(breadcrumb / card / byline) -------------------- */

.article-page { background: var(--tb-bg-soft); }

.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--tb-muted);
  margin: 0 0 20px;
}
.article-breadcrumb a { color: var(--tb-accent); font-weight: 700; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 6px; color: var(--tb-line); }

.article-card {
  background: var(--tb-bg);
  border: 1px solid var(--tb-line);
  border-radius: 18px;
  overflow: hidden;
}

.article-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--tb-bg-soft);
  border-bottom: 1px solid var(--tb-line);
}

.article-tag {
  background: var(--tb-accent-soft);
  color: var(--tb-accent);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.article-byline { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--tb-muted); }
.article-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.article-byline b { display: block; color: var(--tb-ink); font-weight: 700; font-size: 13.5px; }
.article-avatar-fallback {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--tb-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}

.article-cta {
  margin: 48px 24px 24px;
  padding: 24px;
  background: var(--tb-accent-soft);
  border-radius: 10px;
  text-align: center;
}
.article-cta p { margin: 0 0 12px; color: var(--tb-body); }
.article-cta a {
  display: inline-block;
  background: var(--tb-accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: none;
}

/* -------------------------------- 본문 영역 -------------------------------- */

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  background: var(--tb-bg);
  color: var(--tb-body);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
}

.article-body h1 {
  font-size: 1.85rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--tb-ink);
  margin: 0 0 14px;
}

.article-body .article-excerpt {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tb-sub);
  margin: 0 0 8px;
}

.article-body .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--tb-muted);
  margin: 20px 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tb-line);
}

.article-body h2 {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--tb-ink);
  margin: 3rem 0 1.1rem;
  padding-left: 14px;
  border-left: 4px solid var(--tb-accent);
}

.article-body h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--tb-ink);
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}

.article-body p { margin: 0 0 1.2rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.3rem 1.3rem;
  padding: 0;
}
.article-body li { margin-bottom: 0.6rem; line-height: 1.75; }
.article-body li::marker { color: var(--tb-accent); font-weight: 700; }

.article-body strong { font-weight: 700; color: var(--tb-ink); }

.article-body a {
  color: var(--tb-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--tb-accent);
}
.article-body a:hover { opacity: 0.75; }

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 18px 22px;
  background: var(--tb-accent-soft);
  border-left: 4px solid var(--tb-accent);
  border-radius: 0 12px 12px 0;
  color: var(--tb-ink);
  font-size: 0.98rem;
  line-height: 1.8;
}
.article-body blockquote p { margin: 0 0 0.5rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
}
.article-body th,
.article-body td {
  border: 1px solid var(--tb-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article-body th { background: var(--tb-accent-soft); font-weight: 700; color: var(--tb-ink); }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1.6rem 0 0.5rem;
}
.article-body figcaption,
.article-body img + em {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 13px;
  color: var(--tb-muted);
  margin: 0 0 1.6rem;
}

.article-body pre {
  background: #0d1117;
  color: #d8d8d8;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.8rem 0;
  font-size: 0.88rem;
  line-height: 1.7;
}
.article-body code {
  font-family: "IBM Plex Mono", Consolas, Menlo, monospace;
}
.article-body p code {
  background: var(--tb-bg-soft);
  color: var(--tb-body);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--tb-line);
  margin: 2.6rem 0;
}

@media (max-width: 640px) {
  .article-container { padding: 20px 14px 56px; }
  .article-body { padding: 32px 18px 56px; font-size: 16px; }
  .article-body h1 { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.22rem; padding-left: 12px; }
  .article-body h3 { font-size: 1.06rem; }
  .article-cta { margin: 36px 16px 16px; padding: 20px; }
}
