/* ==========================================================
   Yeo Baek(여백) — 블로그 전용 스타일 (base.css 위에 얹는다)
   ========================================================== */

/* 블로그에서는 머리말을 처음부터 보여 준다 */
.site-header.is-static { transform: none; box-shadow: 0 1px 0 var(--line); }
.site-header.is-static .logo { opacity: 1; }

.blog-main {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px));
  padding-bottom: var(--section-gap);
}

/* ---------- 목록 페이지 ---------- */
.blog-head h1 {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.blog-head p {
  margin-top: 16px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.post-list {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ink);
}
.post-list li { border-bottom: 1px solid #dcdcdc; }
.post-card {
  display: grid;
  gap: 8px;
  padding: 28px 0;
}
.post-card:hover h2 { color: var(--accent); }
.post-tag {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card h2 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  transition: color .2s;
}
.post-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.post-card time {
  font-size: 13px;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .post-card {
    grid-template-columns: 140px 1fr 120px;
    align-items: baseline;
    gap: 24px;
    padding: 40px 0;
  }
  .post-card .post-body { display: grid; gap: 10px; }
  .post-card time { text-align: right; }
}

/* ---------- 글 페이지 ---------- */
.post {
  max-width: 720px;
  margin: 0 auto;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.post h1 {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
/* 핵심 요약: 글 맨 앞에서 질문에 바로 답한다 */
.post-summary {
  margin-top: 36px;
  padding: 22px 24px;
  background: #f5f4f1;
  border-left: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.75;
}
.post-summary strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--accent); }
.post-body-text { margin-top: 40px; }
.post-body-text h2 {
  margin-top: 56px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.post-body-text h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 600;
}
.post-body-text p,
.post-body-text li {
  font-size: 16px;
  line-height: 1.85;
}
.post-body-text p { margin-top: 16px; }
.post-body-text ul,
.post-body-text ol { margin-top: 16px; padding-left: 1.3em; }
.post-body-text ul { list-style: disc; }
.post-body-text ol { list-style: decimal; }
.post-body-text li + li { margin-top: 6px; }
.post-body-text strong { font-weight: 700; }
.post-body-text table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.post-body-text th,
.post-body-text td {
  padding: 12px 10px;
  border-bottom: 1px solid #dcdcdc;
  text-align: left;
  vertical-align: top;
}
.post-body-text th { border-bottom-color: var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* 글 끝 문의 상자 */
.post-cta {
  margin-top: 64px;
  padding: 32px 28px;
  background: #1b1a19;
  color: #f3f1ec;
}
.post-cta h2 { margin: 0; font-size: 20px; font-weight: 700; }
.post-cta p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: #c9c4bb; }
.post-cta-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.post-cta-links a {
  padding: 12px 18px;
  border: 1px solid #f3f1ec;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}
.post-cta-links a:hover { background: #f3f1ec; color: #1b1a19; }

.post-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 블로그 꼬리말 */
.blog-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.post-body-text a { text-decoration: underline; text-underline-offset: 3px; }
.post-body-text a:hover { color: var(--accent); }
.post-body-text .post-source {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 숫자 표: 한 칸의 숫자가 두 줄로 끊어지지 않게 */
.size-table td, .size-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .size-table { font-size: 12px; letter-spacing: -0.02em; }
  .size-table th, .size-table td { padding: 10px 2px; }
  .size-table th { white-space: normal; } /* 머리글(인물형 등)은 줄바꿈 허용해 표 폭을 줄인다 */
}

/* 글쓴이 프로필 사진 */
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* 계산식 한 줄 */
.formula { padding: 14px 18px; background: #f5f5f5; text-align: center; }

/* 글 설명이 긴 표는 줄바꿈 허용 */
.size-table.is-text td:last-child { white-space: normal; }
