/* 명경 사주 가이드 — 정적 페이지 공용 스타일 (외부 폰트 없이 시스템 폰트, 모바일 우선) */
:root {
  --primary: #5b21b6;
  --primary-bright: #7c3aed;
  --primary-container: #ede9fe;
  --bg: #f5f4fb;
  --surface: #ffffff;
  --text: #1f1b2e;
  --text-muted: #5f5a70;
  --border: #e4e1ef;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

a { color: var(--primary); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 { font-size: 1.6rem; line-height: 1.4; margin: 8px 0 12px; }
h2 { font-size: 1.2rem; margin: 0 0 8px; }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.hero { background: var(--primary-container); border-color: transparent; }
.hero p { margin: 0; color: var(--text-muted); }

.topics ul { margin: 0; padding-left: 20px; }
.topics li { margin-bottom: 6px; }
.note { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0 0; }

.cta p { color: var(--text-muted); margin: 0 0 16px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
}

.btn:hover { background: var(--primary-bright); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-switch { font-size: 0.9rem; text-decoration: none; }

.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; }

/* 허브 — 앱 카드 */
.app-head { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; margin-bottom: 8px; }
.app-head img { border-radius: 12px; flex: none; }
.app-head strong { display: block; font-size: 1.1rem; }
.app-head small { display: block; color: var(--text-muted); line-height: 1.5; }
.app-card ul { margin: 8px 0 0; padding-left: 20px; }
.app-card .more { display: inline-block; margin-top: 8px; font-size: 0.9rem; }

/* 글 목록 */
.post-list ul { margin: 0; padding-left: 20px; }
.post-list li { margin-bottom: 10px; }
.post-list li p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* 본문 */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.post section { background: none; border: 0; padding: 0; margin: 24px 0 0; }
.byline { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 16px; }
.lead { font-size: 1.05rem; font-weight: 500; }
.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; }

.preview-banner { background: #fef3c7; color: #92400e; text-align: center; padding: 8px 16px; font-size: 0.9rem; }

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 16px 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 8px; }
