/* ──────────────────────────────────────────────────────────────
   article.css — 읽을거리/가이드 등 콘텐츠 페이지 공용 스타일
   원시력 테스트 브랜드(동굴/원시 테마, 따뜻한 어스톤) 기반의 읽기 전용 레이아웃
   ────────────────────────────────────────────────────────────── */

:root {
    --bg: #0f0e0c;
    --bg-soft: #17140f;
    --bg-card: #1c1813;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ece4d4;
    --text-2: #c4bba8;
    --text-muted: #8a8170;
    --accent: #e8621c;       /* 원시 불꽃 오렌지 */
    --accent-soft: #f0894a;
    --gold: #d8ab5a;         /* 동굴 황토/금 */
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(232, 98, 28, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(216, 171, 90, 0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.85;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 14, 12, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}
.header-inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08rem;
    white-space: nowrap;
}
.brand:hover { color: var(--gold); }
.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-soft); }

/* ── Main / Breadcrumb ── */
main {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}
.breadcrumb {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; opacity: 0.5; }

/* ── Article hero ── */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(232, 98, 28, 0.12);
    border: 1px solid rgba(232, 98, 28, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.28;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.lead {
    font-size: 1.08rem;
    color: var(--text-2);
    margin-bottom: 18px;
}
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.article-meta strong { color: var(--text-2); font-weight: 600; }

/* ── Prose ── */
.prose h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    margin: 44px 0 14px;
    line-height: 1.4;
}
.prose h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 10px;
}
.prose p { color: var(--text-2); margin-bottom: 16px; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { color: var(--text-2); margin-bottom: 9px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(216,171,90,0.4); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose em { color: var(--accent-soft); font-style: normal; font-weight: 600; }

/* ── Callout / Tip box ── */
.callout {
    background: linear-gradient(180deg, rgba(232,98,28,0.10), rgba(232,98,28,0.04));
    border: 1px solid rgba(232, 98, 28, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0;
}
.callout p { margin: 0; color: var(--text); }
.callout .callout-title { font-weight: 800; color: var(--accent-soft); display: block; margin-bottom: 6px; }

/* ── Figure ── */
.big-emoji {
    font-size: 3.4rem;
    text-align: center;
    margin: 8px 0 24px;
    filter: drop-shadow(0 6px 16px rgba(232,98,28,0.25));
}

/* ── Card grid (article list & tarot cards) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 26px 0;
}
.info-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
a.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 98, 28, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.info-card .ic-emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.info-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.info-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.info-card .ic-keywords { font-size: 0.82rem; color: var(--accent-soft); font-weight: 600; margin-top: 4px; }

/* ── Tarot card list (more detailed) ── */
.tarot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.tcard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.tcard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}
.tcard .tc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tcard .tc-emoji { font-size: 1.7rem; }
.tcard .tc-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.tcard .tc-kw { font-size: 0.82rem; color: var(--accent-soft); font-weight: 600; margin-bottom: 8px; }
.tcard .tc-text { font-size: 0.92rem; color: var(--text-2); margin: 0; line-height: 1.7; }

/* ── Disclaimer ── */
.disclaimer-box {
    margin-top: 48px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── CTA banner ── */
.cta-banner {
    margin: 40px 0 8px;
    padding: 26px;
    text-align: center;
    background: linear-gradient(135deg, rgba(232,98,28,0.16), rgba(216,171,90,0.08));
    border: 1px solid rgba(232, 98, 28, 0.3);
    border-radius: var(--radius);
}
.cta-banner h2 { color: #fff; font-size: 1.3rem; margin: 0 0 8px; border: 0; }
.cta-banner p { color: var(--text-2); margin: 0 0 16px; font-size: 0.95rem; }
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 8px 24px rgba(232, 98, 28, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); box-shadow: 0 12px 30px rgba(232, 98, 28, 0.42); }

/* ── Related ── */
.related { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.15rem; color: var(--text); margin-bottom: 16px; }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 36px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links { margin-bottom: 12px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ── 쿠팡 추천템 (어필리에이트) ── */
.shop-section {
    margin: 44px 0 8px;
    padding: 26px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.shop-section h2 { font-size: 1.3rem; color: var(--gold); margin: 0 0 6px; border: 0; }
.shop-intro { font-size: 0.95rem; color: var(--text-2); margin: 0 0 12px; }
.shop-disclosure {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border);
    border-radius: 8px;
    line-height: 1.6;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.shop-card:hover { transform: translateY(-3px); border-color: rgba(232,98,28,0.45); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.shop-emoji { font-size: 2.2rem; line-height: 1; }
.shop-name { font-weight: 800; color: #fff; font-size: 1rem; }
.shop-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; flex-grow: 1; }
.shop-btn {
    margin-top: 4px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    padding: 8px 14px;
    border-radius: 999px;
}
.shop-card:hover .shop-btn { background: var(--accent-soft); }

@media (max-width: 600px) {
    main { padding: 20px 18px 64px; }
    .site-nav { gap: 13px; }
    .site-nav a { font-size: 0.86rem; }
    .prose h2 { font-size: 1.25rem; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
