/* 사이트 공용 바탕 (홈·공략·소개 등 모든 글 페이지): 검은 배경, 얇은 선, 샴페인 골드 포인트 하나
   홈은 이 파일 + home.css, 글 페이지는 이 파일 + page.css */
:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --surface: #18181c;
  --surface-2: #202025;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f6;
  --muted: #bdbdc6;
  --faint: #868690;
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.12);
  --silver: #b8bcc6;
  --bronze: #b7845f;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  padding: 0 20px 48px;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Meiryo", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(201, 169, 110, 0.09), transparent 70%),
    var(--bg);
  color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
a { color: var(--text); text-decoration-color: rgba(201, 169, 110, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
::selection { background: rgba(201, 169, 110, 0.3); }

/* 상단 메뉴 */
.topnav {
  max-width: 1040px; margin: 0 auto; padding: 18px 0;
  display: flex; gap: 6px 22px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.topnav a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.topnav a:hover, .topnav a[aria-current] { color: var(--text); }
.topnav .langsw { opacity: 1 !important; font-weight: 500 !important; gap: 10px !important; color: var(--faint); }
.topnav .langsw a[aria-current] { text-decoration: none !important; color: var(--gold); }
.topnav .musicsw {
  position: relative; width: 26px; height: 26px; margin: -5px 0; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--gold); font: 600 14px/24px inherit; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.topnav .musicsw:hover { border-color: var(--gold); }
.topnav .musicsw.off { color: var(--faint); }
.topnav .musicsw.off::after { content: ''; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(-45deg); }

/* 다른 언어 안내 배너 (shared/langbar.js 가 인라인 스타일로 만듦) */
body > div[role="region"] {
  margin: 14px auto 0 !important; background: var(--surface) !important; color: var(--muted) !important;
  border: 1px solid var(--line) !important; box-shadow: none !important; font-size: 13px !important;
}
body > div[role="region"] a { color: var(--gold) !important; font-weight: 600 !important; }
body > div[role="region"] button { color: var(--faint) !important; }

footer {
  max-width: 1040px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--faint); line-height: 2;
}
footer p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 560px) {
  body { padding: 0 16px 40px; }
  .topnav { gap: 4px 16px; padding: 14px 0; }
}
