/*
Theme Name: Community Pulse
Theme URI: https://blog2.testpang.com/
Author: testpang
Description: 여러 커뮤니티의 공통 화제를 읽기 쉽게 보여주는 반응형 테마
Version: 1.0.0
Text Domain: community-pulse
*/

:root {
  --ink: #171824;
  --muted: #686b7b;
  --paper: #ffffff;
  --surface: #f4f3fb;
  --purple: #6d4aff;
  --mint: #14cdb4;
  --pink: #ff5687;
  --line: #e4e2ee;
  --shadow: 0 16px 44px rgba(31, 25, 67, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.82;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(228,226,238,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--purple),var(--pink)); box-shadow: 0 8px 22px rgba(109,74,255,.26); font-size: 14px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 700; color: #494b59; }
.site-nav a:hover { color: var(--purple); }
.hero { padding: 92px 0 54px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: 10px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle,rgba(109,74,255,.16),transparent 68%); pointer-events: none; }
.eyebrow { margin: 0 0 12px; color: var(--purple); font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(42px,6.2vw,72px); line-height: 1.12; letter-spacing: -.065em; }
.hero-copy { max-width: 650px; margin: 24px 0 0; color: var(--muted); }
.pulse-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 750; }
.pulse-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(20,205,180,.13); }
.post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 12px 0 84px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: 0 8px 28px rgba(31,25,67,.055); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.post-card-body { padding: 26px 28px 30px; }
.post-meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.post-card h2 { margin: 10px 0 14px; font-size: 26px; line-height: 1.34; letter-spacing: -.04em; }
.post-card p { margin: 0; color: #555867; font-size: 16px; line-height: 1.72; }
.read-more { display: inline-block; margin-top: 20px; color: var(--purple); font-size: 15px; font-weight: 850; }
.single-wrap { width: min(860px,calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.single-kicker { display: inline-block; margin-bottom: 18px; padding: 6px 11px; border-radius: 999px; color: var(--purple); background: #ebe7ff; font-size: 13px; font-weight: 850; }
.single-title { margin: 0; font-size: clamp(38px,5.6vw,64px); line-height: 1.15; letter-spacing: -.06em; }
.single-meta { margin: 22px 0 34px; color: var(--muted); font-size: 14px; font-weight: 650; }
.featured-image { overflow: hidden; margin: 0 0 26px; border-radius: 24px; box-shadow: var(--shadow); }
.entry-content { padding: clamp(30px,6vw,68px); border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.entry-content p { margin: 0 0 1.55em; }
.entry-content .article-lead { font-size: 20px; color: #3f4150; }
.entry-content h2 { margin: 2.25em 0 .7em; font-size: 30px; line-height: 1.35; letter-spacing: -.04em; }
.entry-content h3 { margin: 1.8em 0 .55em; font-size: 23px; line-height: 1.4; }
.entry-content strong { color: #3f2dc7; font-weight: 850; background: linear-gradient(transparent 68%,rgba(109,74,255,.15) 0); }
.entry-content ul { margin: 0; padding-left: 1.25em; }
.entry-content li { margin: .55em 0; }
.key-summary, .community-reaction, .source-panel { margin: 32px 0; padding: 26px 28px; border-radius: 20px; }
.key-summary { border: 1px solid #dcd6ff; background: #f5f2ff; }
.key-summary h2, .source-panel h2 { margin-top: 0; font-size: 23px; }
.community-reaction { border-left: 5px solid var(--pink); background: #fff1f5; font-size: 20px; font-weight: 800; }
.source-panel { border: 1px solid #cdeee9; background: #f0fffc; }
.source-panel a { color: #0b786b; text-decoration: underline; text-underline-offset: 3px; }
.source-note { margin: 18px 0 0 !important; color: var(--muted); font-size: 13px; }
.site-footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.pagination { grid-column: 1/-1; margin-top: 24px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 3px; border-radius: 12px; background: #fff; }
.pagination .current { color: #fff; background: var(--purple); }

@media (max-width: 760px) {
  body { font-size: 17px; line-height: 1.85; }
  .site-shell { width: min(100% - 28px,1120px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; font-size: 12px; }
  .site-nav { gap: 13px; font-size: 13px; }
  .hero { padding: 58px 0 34px; }
  .hero h1 { font-size: 42px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 58px; }
  .post-card-body { padding: 22px; }
  .post-card h2 { font-size: 23px; }
  .single-wrap { width: min(100% - 28px,860px); padding: 46px 0 70px; }
  .single-title { font-size: 36px; }
  .entry-content { padding: 28px 22px; border-radius: 22px; }
  .entry-content .article-lead { font-size: 18px; }
  .entry-content h2 { font-size: 25px; }
  .key-summary, .community-reaction, .source-panel { padding: 22px 20px; margin: 26px 0; }
}

