/* 공통 머리줄 — 서가(index.html .library-header)와 같은 치수·색 · 모든 하위 지면(제작 노트·BGM·스타일·전자책·약관)이 이 한 벌을 쓴다.
   2026-10-07 지록 「메뉴마다 상단 넓이나 배경 색상이 달라, 모두 메인 페이지 기준으로 바꿔줘」(사진 넷).
   값은 library.css 의 .library-header / .wordmark / .header-actions / #language-switch 에서 그대로 옮겼다(1280: 높이 97 = 26+44+26+1 · 로고 x 5.5%).
   서가 자체는 library.css 의 원래 규칙을 쓴다(이 파일은 하위 지면만). 바꿀 때는 두 곳을 같이 — 아니면 또 어긋난다. */
html, body { background: #15171a; }
/* 2026-10-13 지록 「글로이드 사이트가 스크롤 때문에 가로 폭 변형되는 걸 막아줘」 — 하위 지면도 서가와 같은 겹쳐 그리는 스크롤바(/scrollbar.css · /scrollbar.js)를 쓴다.
   스크롤바가 생겼다 사라져도, 서가와 하위 지면을 오가도 폭이 같다. */
header.site-header {
  --font-ui: 'Noto Sans KR', system-ui, sans-serif;
  position: relative; margin: 0; width: auto; max-width: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 26px 5.5%; border-bottom: 1px solid #ddd2b011; background: transparent;
}
.site-header .wordmark { display: flex; align-items: center; justify-self: start; grid-column: 1; }
.site-header .wordmark img { display: block; height: 28px; width: auto; }
.site-header .wordmark img.logo-en { display: none; }
html[lang="en"] .site-header .wordmark img.logo-ko { display: none; }
html[lang="en"] .site-header .wordmark img.logo-en { display: block; }
/* 지면마다 다른 바탕 CSS(notes.css · legal.css)가 header 자식을 세로로 세우거나 칸을 바꿔 놓는 것을 막는다 */
header.site-header > .wordmark { grid-area: 1 / 1; }
header.site-header > .header-actions { grid-area: 1 / 3; flex-direction: row; flex-wrap: nowrap; width: auto; }
header.site-header .header-actions a { width: auto; margin: 0; border: 0; background: none; }
.site-header .header-actions { display: flex; align-items: center; justify-self: end; grid-column: 3; gap: 24px; white-space: nowrap; font: 14px var(--font-ui); }
.site-header .header-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #b6aa95; text-decoration: none; font: inherit; }
.site-header .header-actions a:hover, .site-header .header-actions a[aria-current="page"] { color: #eed7aa; }
.site-header .header-actions a:focus-visible { outline: 2px solid #eed7aa; outline-offset: 5px; }
.site-header .header-actions #language-switch { position: static; transform: none; font: inherit; padding: 0 12px; }
@media (max-width: 760px) {
  /* 10-12 서가(library.css .wordmark .logo)처럼 폰에서는 로고 24px — 28px 그대로면 360 폭에서 지면이 4px 넘치고 메뉴와 붙었다(차오름 실측) */
  .site-header .wordmark img { height: 24px; }
  header.site-header { grid-template-columns: 1fr auto; padding: 22px 7%; gap: 10px; }
  header.site-header > .header-actions { grid-area: 1 / 2; gap: 14px; font-size: 12px; }
}
@media (max-width: 389px) { .site-header .header-actions { gap: 12px; } }
@media (max-width: 359px) { header.site-header > .header-actions { grid-area: 2 / 1 / 3 / -1; justify-self: end; } }

/* 공통 바닥 — 서가(index.html .library-footer)와 같은 치수·색. 2026-10-07 지록 「다른페이지 푸터도 메인페이지 푸터처럼 바꿔줘」.
   값은 library.css .library-footer / .legal-links / .copyright 의 1280 실측(높이 66 · 22px 5.5% · 13px · #77796f · 윗선 #ddd2b011)과 760 이하(19px 7% · 12px). */
footer.site-footer {
  --font-ui: 'Noto Sans KR', system-ui, sans-serif;
  position: relative; margin: 0; width: auto; max-width: none; border-radius: 0; background: transparent;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 5.5%; font: 13px/1.6 var(--font-ui); letter-spacing: 0.08em; color: #77796f; border-top: 1px solid #ddd2b011;
}
footer.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 12px 22px; width: auto; margin: 0; font-size: 12px; }
footer.site-footer .legal-links a { color: inherit; text-decoration: none; text-underline-offset: 4px; font: inherit; }
footer.site-footer .legal-links a:hover { color: #b8ac91; }
footer.site-footer .legal-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
footer.site-footer .copyright { margin-left: auto; white-space: nowrap; font: inherit; color: inherit; }
footer.site-footer .copyright a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
footer.site-footer .copyright a:hover { color: #b8ac91; text-decoration: underline; }
@media (max-width: 760px) { footer.site-footer { padding: 19px 7%; font-size: 12px; } footer.site-footer .legal-links { gap: 14px; } }

/* 인스타·스레드 아이콘 (2026-11-16 지록 「각 사이트 푸터에 인스타, 스레드 아이콘」) — 누르는 자리 40px · 글자색 따름 */
.sns{display:inline-flex;align-items:center;margin-block:-10px}
.sns__a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:inherit;text-decoration:none;border-radius:8px;transition:transform .14s cubic-bezier(.2,.8,.2,1),color .2s}
.sns__a svg{display:block;width:20px;height:20px}
.sns__a:active{transform:scale(.97)}
.sns__a:hover{color:#b8ac91}
.sns__a:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
@media (prefers-reduced-motion:reduce){.sns__a{transition:none}}
