:root {
  color-scheme: dark;
  --bg: #07061a;
  --bg-2: #120a2e;
  --bg-3: #1c0f3a;
  --surface-strong: rgba(16, 10, 38, 0.82);
  --line: rgba(230, 192, 104, 0.22);
  --line-strong: rgba(230, 192, 104, 0.5);
  --text: #f4ecdc;
  --muted: rgba(244, 236, 220, 0.82);
  --soft: rgba(244, 236, 220, 0.55);
  --gold: #e6c068;
  --gold-bright: #f6d98a;
  --gold-deep: #b8923f;
  --green: #9ad9a0;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", "Gowun Batang", serif;
  --serif-ko: "Gowun Batang", "Cormorant Garamond", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 650px at 15% -8%, rgba(120, 80, 220, 0.32), transparent 60%),
    radial-gradient(900px 560px at 100% 0%, rgba(230, 192, 104, 0.12), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(60, 30, 140, 0.38), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 55%, #050414);
  color: var(--text);
  font-family: Pretendard, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.85;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255, 244, 214, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 88% 76%, rgba(255, 240, 200, 0.75), transparent),
    radial-gradient(1.3px 1.3px at 36% 88%, rgba(255, 255, 255, 0.65), transparent);
  opacity: 0.45;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.3; } to { opacity: 0.55; } }

.wrap {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0 72px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(7, 6, 26, 0.85), rgba(7, 6, 26, 0.2));
  backdrop-filter: blur(16px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.home-link::before { content: "←"; font-size: 1rem; }

.crumb {
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

article { position: relative; z-index: 1; }

/* 카드 선택 유도 CTA (메인 선택 패널과 동일 톤) */
.cta-panel {
  width: 100%;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 22px;
  border: 1px solid rgba(230, 192, 104, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 26, 80, 0.5), rgba(16, 10, 38, 0.7));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  text-align: center;
}
.cta-eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cta-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.cta-desc {
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: keep-all;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(246, 217, 138, 0.7);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 217, 138, 0.22), rgba(230, 192, 104, 0.1));
  color: var(--gold-bright);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(230, 192, 104, 0.3);
}

/* 넓은 화면: 본문 옆 빈 여백에 고정(스티키) — 광고/본문과 겹치지 않음 */
@media (min-width: 1440px) {
  .cta-panel {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 280px;
    max-width: 280px;
    margin: 0;
    z-index: 40;
  }
}

.post-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(230, 192, 104, 0.12);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.post-title {
  margin: 0 0 18px;
  font-family: var(--serif-ko);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  word-break: keep-all;
  background: linear-gradient(180deg, #fff7e6 10%, var(--gold-bright) 75%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-lead {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(230, 192, 104, 0.06);
  color: var(--muted);
  font-size: 1.05rem;
  word-break: keep-all;
}

.post-section { margin: 0 0 28px; }

.post-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--serif-ko);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fdf6e6;
  word-break: keep-all;
}

.post-section h2 .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.post-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  word-break: keep-all;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin: 30px auto;
  border: 1px dashed rgba(230, 192, 104, 0.28);
  border-radius: 14px;
  background: rgba(230, 192, 104, 0.04);
  color: var(--soft);
  text-align: center;
}
.ad-slot span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}
.ad-slot p { margin: 0; font-size: 0.86rem; }

/* 실제 애드센스(반응형) 영역 */
.ad-unit {
  width: 100%;
  margin: 30px auto;
  text-align: center;
}
.ad-unit .adsbygoogle { display: block; width: 100%; }

.checklist {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 26, 80, 0.4), rgba(16, 10, 38, 0.6));
  box-shadow: var(--shadow);
}

.checklist h3 {
  margin: 0 0 16px;
  font-family: var(--serif-ko);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.checklist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
  word-break: keep-all;
}

.checklist li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(154, 217, 160, 0.16);
  color: var(--green);
  font-weight: 800;
  font-size: 0.8rem;
}

.post-closing {
  margin: 0 0 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(230, 192, 104, 0.05);
  font-family: var(--serif-ko);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fdf6e6;
  word-break: keep-all;
}
.post-closing::before {
  content: "✦";
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.9rem;
}

.related h3 {
  margin: 0 0 14px;
  font-family: var(--serif-ko);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(230, 192, 104, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  word-break: keep-all;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.related-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(230, 192, 104, 0.1);
}

.disclaimer {
  margin-top: 32px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .related-list { grid-template-columns: 1fr; }
  .post-lead { font-size: 1rem; }
}
}
  .post-lead { font-size: 1rem; }
}
