/* 두구두구 쪽지 — 읽기용 페이지 공통 스타일
   index.html의 디자인 언어(색·폰트)를 그대로 쓰되, 무대 연출은 절제하고 가독성을 우선한다. */
:root {
  --night:      #150d26;
  --stage:      #2d1d52;
  --gold:       #f0b942;
  --gold-deep:  #c98f22;
  --ribbon:     #e04a5f;
  --ribbon-dk:  #b8354a;
  --curtain:    #8e1d33;
  --paper:      #fdf5e6;
  --paper-ink:  #2b2118;
  --dim:        #a898cf;
  --line:       rgba(240, 185, 66, 0.22);
  --display: 'Jua', system-ui, sans-serif;
  --hand: 'Gaegu', system-ui, cursive;
  --ui: system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--night);
  color: #ece3f7;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
/* 은은한 무대 조명만 남긴다 (커튼·스포트라이트 없음) */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(240,185,66,.10), transparent 70%),
    radial-gradient(ellipse 110% 60% at 50% -8%, var(--stage), transparent 62%);
}

.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 20px 60px; }

/* ── 상단 홈 링크 ───────────── */
.topbar {
  position: relative; z-index: 3;
  max-width: 720px; margin: 0 auto; padding: 16px 20px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.home {
  font-family: var(--display); font-size: 17px; color: var(--gold);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.home:hover { color: #ffd577; }
.topbar nav { display: flex; gap: 14px; font-size: 13.5px; }
.topbar nav a { color: var(--dim); text-decoration: none; }
.topbar nav a:hover { color: var(--gold); }

/* ── 헤더 ───────────── */
header.page {
  padding: 26px 0 12px; border-bottom: 1px solid rgba(240,185,66,.14); margin-bottom: 30px;
}
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 7.4vw, 40px); line-height: 1.3;
  margin: 0 0 12px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold); }
.lede { color: var(--dim); font-size: 15.5px; line-height: 1.8; margin: 0; text-wrap: pretty; }

h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 5.6vw, 27px); line-height: 1.35;
  margin: 44px 0 10px; color: var(--gold); text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 400; font-size: 18.5px; margin: 26px 0 8px; color: #ffd577; }
p { margin: 0 0 14px; }
a { color: var(--gold); }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 7px; }
strong { color: #ffd577; font-weight: 600; }
.muted { color: var(--dim); }

/* ── 카드 / 팁 박스 ───────────── */
.card {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 18px 6px; margin-bottom: 18px;
}
.tip {
  border-left: 3px solid var(--gold); background: rgba(240,185,66,.06);
  border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 0 0 20px;
  font-size: 14.8px; color: #ded3ef;
}
.tip p:last-child { margin-bottom: 0; }

/* ── 푸터 ───────────── */
footer.site {
  position: relative; z-index: 1;
  max-width: 720px; margin: 46px auto 0; padding: 24px 20px 44px;
  border-top: 1px solid rgba(240,185,66,.14);
  text-align: center; font-size: 13px; color: rgba(168,152,207,.72); line-height: 1.9;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-bottom: 10px; }
footer.site a { color: var(--dim); text-decoration: none; border-bottom: 1px solid rgba(240,185,66,.2); }
footer.site a:hover { color: var(--gold); border-color: var(--gold); }
footer.site .copy { color: rgba(168,152,207,.45); font-size: 12px; }

/* ── 버튼 ───────────── */
.btn {
  display: inline-block; font-family: var(--display); font-size: 18px; padding: 14px 22px;
  border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: linear-gradient(var(--gold), var(--gold-deep)); color: #221704;
  box-shadow: 0 10px 26px rgba(240,185,66,.24);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(240,185,66,.36); }
.btn:active { transform: translateY(1px); }
.btn.block { display: block; width: 100%; }
.btn.ghost {
  background: transparent; color: var(--gold); border: 1px solid var(--line);
  box-shadow: none; font-size: 16px;
}
.btn.ghost:hover { background: rgba(240,185,66,.09); transform: none; box-shadow: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── 광고 자리 ───────────── */
.adslot { display: none; 
  margin: 30px 0; border: 1px dashed rgba(168,152,207,.2); border-radius: 12px;
  padding: 14px; text-align: center; font-size: 11.5px; color: rgba(168,152,207,.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
