/* ==========================================================================
 * 글꼴 · 배치 다듬기 (2026-11-27 사용자 승인 — 시안 v2 '괜찮네 이대로 반영')
 * 색은 style.css 토큰(무채색 바탕, 녹색은 --accent 에만), 글꼴은 Pretendard(--font-body, 레이아웃 head 에서 로드).
 * 이 파일은 그 위에서 제목 크기 · 굵기 · 간격만 다듬는다. 히어로 · 버튼 · 공유 버튼 · 움직임은 건드리지 않는다.
 * 레이아웃 맨 끝에서 불러오고, 모든 규칙 앞에 html 을 붙여 기존 규칙(홈 media CSS 포함)보다 한 단계 강하게 덮는다.
 * ========================================================================== */

/* ---------- 2. 글꼴 ---------- */
html body { letter-spacing: -0.005em; text-rendering: optimizeLegibility; }
html .logo { font-family: var(--font-body); font-weight: 700; letter-spacing: .2em; }
html .desktop-nav a { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }

/* 숫자(날짜 · 조회수)는 폭을 맞춰 줄이 흔들리지 않게 */
html .card-meta, html .featured-meta, html .post-date, html .home-news-date,
html .related-card-meta, html .post-nav-label { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- 3. 홈 배치 ---------- */
@media (min-width: 601px) {
  /* 섹션 제목: 크게, 굵게, 자간 좁게 */
  html .home-page .home-section-heading { margin-bottom: 32px; }
  html .home-page .home-section-heading h2,
  html .home-page .home-news-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
  html .home-page .home-section-heading > span { font-size: 11px; letter-spacing: .18em; font-weight: 500; }
  html .featured-tab { font-weight: 700; letter-spacing: -0.035em; }

  /* 카테고리 줄: 이름은 진하게, 부제는 한 단계 작게 */
  html .home-page .hero-cats-bar .hero-cat-name { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
  html .home-page .hero-cats-bar .hero-cat-sub { font-size: 10px; letter-spacing: .14em; }
  html .home-page .featured { margin-top: 88px; margin-bottom: 96px; }

  /* 최신 글 슬라이드: 제목 위계 */
  html .home-page .featured-body { padding: 48px 48px 48px 52px; }
  html .home-page .featured-title { font-size: clamp(24px, 2.3vw, 32px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.42; margin-bottom: 18px; }
  html .home-page .featured-excerpt { font-size: 15px; line-height: 1.8; }
  html .home-page .featured-cta { font-size: 13px; font-weight: 600; }

  /* 카드: 간격 넓히고 제목을 한 단계 진하게 */
  html .home-page .card-grid { gap: 56px 32px; }
  html .home-page .card-body { padding: 22px 2px 0; }
  html .home-page .card-meta { font-size: 12.5px; margin-bottom: 10px; }
  html .home-page .card-title { font-size: 18.5px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.5; margin-bottom: 10px; }
  html .home-page .card-excerpt { font-size: 14px; line-height: 1.75; }
  html .home-page .pagination { padding-top: 56px; }

  /* 뉴스 */
  html .home-page .home-news { margin-top: 32px; margin-bottom: 96px; }
  html .home-page .home-news-head { padding-bottom: 22px; margin-bottom: 28px; }
  html .home-page .home-news-title { font-weight: 600; letter-spacing: -0.025em; }
}
@media (max-width: 600px) {
  html .home-page .home-section-heading h2,
  html .home-page .home-news-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
  html .home-page .featured-title { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
  html .home-page .card-title { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.6; }
  html .home-page .home-news-title { font-weight: 600; }
}

/* 꼬리말: 회색 바탕 대신 바탕색 + 위 선 */
html .site-footer,
html .home-page .site-footer,
html .subpage .site-footer { background: var(--bg); border-top: 1px solid var(--border); }
html .footer-logo { font-weight: 700; letter-spacing: .2em; }

/* ---------- 4. 글 페이지 배치 · 본문 리듬 ---------- */
html .post-header { padding: 72px 40px 44px; margin-bottom: 48px; }
html .post-header h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.36; letter-spacing: -0.04em; }
html .post-meta { gap: 10px; margin-bottom: 20px; }
html .post-tag { font-weight: 600; }
html .post-content p,
html .post-content ul,
html .post-content ol { line-height: 1.85; letter-spacing: -0.01em; }
html .post-content p { margin-bottom: 26px; }
html .post-content h2 { font-size: 1.5rem; letter-spacing: -0.035em; line-height: 1.4; margin: 64px 0 18px; }
html .post-content h3 { font-size: 1.25rem; letter-spacing: -0.03em; margin: 44px 0 14px; }
html .post-content strong { font-weight: 650; }
html .post-content blockquote { background: var(--surface); }
html .related-posts h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.035em; }
html .related-card-title { font-weight: 600; letter-spacing: -0.025em; }
html .comments-heading h2 { font-weight: 700; letter-spacing: -0.04em; }
html .comment-submit { background: var(--accent); }
html .comment-submit:hover:enabled { background: color-mix(in srgb, var(--accent) 85%, #000); }
[data-theme="dark"] .comment-submit { color: var(--bg); }

/* ---------- 5. 목록 페이지 제목 ---------- */
html .cat-title, html .subpage .cat-title, html .subpage .all-cats-header h1,
html .subpage .tags-header h1, html .subpage .map-header h1, html .subpage .contact-header h1,
html .tags-header h1,
html .tag-page-header h1,
html .all-cats-header h1 { font-weight: 700; letter-spacing: -0.04em; }

/* 카테고리 머리 아래 선과 첫 카드가 붙지 않게 */
html .subpage .cat-header { margin-bottom: 32px; }

@media (max-width: 600px) {
  html .subpage .cat-header { margin-bottom: 20px; }
  html .post-header { padding: 48px 20px 32px; margin-bottom: 36px; }
  html .post-header h1 { font-size: 1.6rem; }
  html .post-content h2 { font-size: 1.3rem; margin-top: 52px; }
  html .post-content h3 { font-size: 1.125rem; }
}

/* 이전/다음 글: 머리 메뉴용 nav · nav a 규칙(가운데 정렬 · 한 줄)이 섞여 들어와 휴대폰에서 카드가 화면 밖으로 넘치던 문제 */
html .post-nav { align-items: stretch; }
html .post-nav a { white-space: normal; letter-spacing: normal; }
