/* 콘텐츠 페이지(카드 뜻·사용법) 공통 모양. 랜딩(index.html)과 같은 색·글꼴이에요. */
:root {
  --bg: #F5F1E8; --surface: #FBF8F2; --sunken: #EDE8DD; --text: #1F1D1B; --muted: #6B6660;
  --line: #1F1D1B; --soft-line: #D8D2C6; --moon: #F1D27A; --moon-soft: #F8E7B5; --seal: #B8391F;
  --serif: "Hahmlet", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171614; --surface: #22201D; --sunken: #2C2925; --text: #EDE6D8; --muted: #A9A49C;
    --line: #CFC7B8; --soft-line: #3B3732; --moon-soft: #3D3420; --seal: #EF7F68; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.75; word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(980px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 24px 0 8px; }
h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 4px; }
.lead, .muted { color: var(--muted); }
.lead { font-size: 18px; margin-top: 0; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--soft-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; text-decoration: none; }
.brand img { width: 32px; }
.top nav { display: flex; gap: 16px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 20px; }
.crumbs a { text-decoration: none; }
.eyebrow { color: var(--seal); font-weight: 600; font-size: 14px; margin: 0; }
.card-hero { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin-top: 12px; }
.card-img { position: relative; margin: 0; }
.card-img img { border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.card-img .num { position: absolute; top: 4.5%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 13px; color: #1F1D1B; }
h2.small { font-size: 15px; margin: 18px 0 4px; color: var(--muted); font-family: var(--sans); }
.story { font-size: 18px; margin: 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.side { background: var(--surface); border: 1.5px solid var(--soft-line); border-radius: 18px; padding: 8px 24px 20px; }
.side h2 { margin-top: 16px; }
.side .line { font-family: var(--serif); font-size: 19px; margin: 0 0 12px; }
.kw { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw li { background: var(--moon-soft); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.more { margin: 16px 0 0; display: grid; gap: 10px; }
.more div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.more dt { font-weight: 700; color: var(--seal); font-size: 15px; }
.more dd { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 36px 0 0; font-size: 15px; flex-wrap: wrap; }
.pager a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--soft-line); border-radius: 999px; }
.pager a:hover { border-color: var(--line); }
.cta { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--sunken); border-radius: 22px; padding: 24px 28px; margin: 56px 0 16px; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0 0 14px; color: var(--muted); }
.btn { display: inline-block; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.note { font-size: 14px; color: var(--muted); }
.group h2 { margin-bottom: 0; }
.deck { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.deck a { text-decoration: none; display: grid; gap: 6px; text-align: center; font-size: 14px; }
.deck img { border-radius: 8px; transition: transform .2s; }
.deck a:hover img { transform: translateY(-4px) rotate(-2deg); }
.steps { padding-left: 1.2em; }
.steps h3 { margin-bottom: 0; }
.steps p { margin: 2px 0 0; color: var(--muted); }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.fit section { background: var(--surface); border: 1.5px solid var(--soft-line); border-radius: 18px; padding: 4px 22px 12px; }
.fit h2 { font-size: 20px; margin-top: 18px; }
.fit .good h2::before { content: "○ "; color: var(--seal); }
.fit .bad h2::before { content: "△ "; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--soft-line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--soft-line); margin-top: 48px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
footer a { text-decoration: none; }
@media (max-width: 720px) {
  .card-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .card-img { width: 180px; }
  .sides, .fit { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta img { width: 96px; }
  .top nav { gap: 12px; font-size: 14px; }
}

/* 일주·꿈해몽 페이지 */
.topic-page { max-width: 720px; }
.topic-page .side { margin-top: 18px; }
.big-hanja { font-family: var(--serif); font-size: 64px; line-height: 1; margin: 8px 0 4px; color: var(--seal); letter-spacing: .08em; }
.find { background: var(--sunken); border-radius: 18px; padding: 20px 24px; margin-top: 24px; }
.find h2 { margin-top: 0; font-size: 20px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.chips a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1.5px solid var(--soft-line); border-radius: 14px; background: var(--surface); text-decoration: none; text-align: center; }
.chips a:hover { border-color: var(--text); }
.chips b { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.chips span { font-size: 14px; }
