@charset "UTF-8";
/* 왼쪽 메뉴 + 한 줄 목록, 흰 바탕·검정 글자·시스템 폰트, 장식 없음. 모바일도 같은 구성(햄버거 + 가운데 제목). 색은 본문 링크에만. */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; background: #ffffff; color: #111111; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }

a:focus-visible { outline: 2px solid #0b62c4; outline-offset: 2px; }

/* ── 뼈대: [메뉴 160px | 세로선 | 본문] ── */
.wrap { max-width: 928px; margin: 0 auto; padding: 0 24px; }

.head { display: grid; grid-template-columns: 160px 1fr; padding: 34px 0 30px; }

.site-title { grid-column: 2; padding-left: 32px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.4; }

.burger { display: none; }

.body { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; }

.side { padding-top: 4px; }

.menu { list-style: none; margin: 0 0 28px; padding: 0 32px 0 0; border-right: 1px solid #e6e6e6; text-align: right; line-height: 30px; }

.menu a:hover { text-decoration: underline; text-underline-offset: 3px; }

.menu a[aria-current] { font-weight: 700; }

.main { min-width: 0; padding-left: 32px; }

.foot { margin: 80px 0 40px; padding-left: 192px; font-size: 13px; color: #b3b3b3; }

.foot p { margin: 0; }

/* ── 목록: 제목 ··· 날짜 ── */
.list { list-style: none; margin: 0; padding: 0; }

.list li { display: flex; align-items: baseline; gap: 24px; padding: 4px 0; line-height: 27px; }

.list li a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.list li time { flex: none; font-variant-numeric: tabular-nums; }

.list li.here a { font-weight: 700; }

.pager { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin: 36px 0 0; }

.pager a, .pager .off { font-size: 22px; line-height: 1; padding: 0 4px; }

.pager .off { color: #cfcfcf; }

/* ── 카테고리·태그·검색 ── */
.page-title { margin: 0 0 22px; font-size: 36px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.3; }

.count-list { list-style: none; margin: 0; padding: 0; line-height: 35px; }

.count-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.count-list.inline { display: flex; flex-wrap: wrap; column-gap: 22px; }

.group { margin-top: 48px; scroll-margin-top: 24px; }

.group h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }

.search-box { width: 100%; margin: 0 0 10px; padding: 10px 12px; font: inherit; color: #111111; border: 1px solid #cccccc; border-radius: 4px; background: #fff; }

.search-box:focus { outline: none; border-color: #111111; }

.search-note { margin: 0 0 14px; font-size: 14px; color: #767676; }

/* ── 글 ── */
.post-title { margin: 0 0 8px; font-size: 36px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.3; }

.post-meta { margin: 0 0 28px; font-size: 14px; color: #767676; }

.post-meta a:hover { color: #111111; text-decoration: underline; text-underline-offset: 3px; }

/* 목차: 번호 칸 | 제목. 줄이 넘어가도 제목 칸에 맞춰 들여쓴다. 번호는 h2 에만 자동으로 (원고엔 번호를 쓰지 않는다), h3 는 들여쓰기만 */
.toc { margin: 0 0 44px; padding: 16px 20px 14px; border: 1px solid #e3e3e3; border-radius: 4px; font-size: 15px; line-height: 1.6; }

.toc-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #767676; }

.toc ol { list-style: none; margin: 0; padding: 0; }

.toc li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 3px 0; }

.toc .n { font-family: "SFMono-Regular", Menlo, Consolas, "D2Coding", monospace; font-size: 13px; color: #767676; font-variant-numeric: tabular-nums; }

.toc li > ol { grid-column: 2; margin: 2px 0 2px; }

.toc li li { display: block; padding: 2px 0; font-size: 14px; color: #444; }

.toc a:hover { color: #0b7a62; }

.post-body > :first-child { margin-top: 0; }

/* 본문 h2 번호 — 목차 번호와 같은 순서 */
.post-body { counter-reset: sec; }

.post-body h2 { counter-increment: sec; }

.post-body h2::before { content: counter(sec) ". "; }

.post-body p, .post-body ul, .post-body ol { margin: 0 0 16px; }

.post-body li { margin-bottom: 4px; }

.post-body li > ul, .post-body li > ol { margin: 4px 0; }

.post-body h2 { margin: 56px 0 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.35; scroll-margin-top: 16px; }

.post-body h3 { margin: 36px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.4; scroll-margin-top: 16px; }

.post-body h4 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; }

.post-body a { color: #0b7a62; }

.post-body a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-body strong { font-weight: 700; }

.post-body hr { border: 0; border-top: 1px solid #e6e6e6; margin: 44px 0; }

.post-body img { max-width: 100%; height: auto; }

.post-body blockquote { margin: 20px 0; padding: 2px 0 2px 16px; border-left: 3px solid #e2e2e2; color: #4a4a4a; }

.post-body blockquote > :last-child { margin-bottom: 0; }

.post-body code { font-family: "SFMono-Regular", Menlo, Consolas, "D2Coding", monospace; font-size: 14px; background: #f1f1f1; padding: 2px 5px; border-radius: 3px; }

.post-body pre { margin: 20px 0; padding: 20px 24px; background: #f6f7f8; border: 1px solid #e5e5e5; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05); overflow-x: auto; font-size: 14px; line-height: 1.6; }

.post-body pre code { background: none; padding: 0; font-size: inherit; }

.post-body table { display: block; max-width: 100%; width: max-content; overflow-x: auto; margin: 20px 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; }

.post-body th, .post-body td { padding: 7px 12px; border: 1px solid #e0e0e0; text-align: left; vertical-align: top; }

.post-body th { background: #fafafa; font-weight: 700; white-space: nowrap; }

/* 코드 하이라이트 (rouge) — 최소한만 */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #8a8a8a; }

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt { color: #a626a4; }

.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sh { color: #2f7d32; }

.highlight .m, .highlight .mi, .highlight .mf { color: #b25d00; }

.highlight .nf, .highlight .na, .highlight .nt { color: #0b62c4; }

.highlight .o, .highlight .p { color: #444; }

.post-tags { margin: 44px 0 0; font-size: 14px; }

.post-tags a { margin-right: 12px; color: #767676; }

.post-tags a:hover { color: #111111; }

.more { margin-top: 44px; padding-top: 22px; border-top: 1px solid #e6e6e6; }

.more h2 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }

.pn a { font-size: 15px; line-height: 1.5; }

.pn a span { display: block; margin-bottom: 2px; font-size: 13px; color: #767676; }

.pn a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pn .r { grid-column: 2; text-align: right; }

/* ── 모바일: 햄버거 + 가운데 제목 ── */
@media (max-width: 767px) { .wrap { padding: 0 20px; }
  .head { display: flex; justify-content: center; position: relative; padding: 26px 0 26px; }
  .site-title { padding: 0; font-size: 21px; }
  .burger { display: block; position: absolute; left: 0; top: 30px; z-index: 10; }
  .burger summary { list-style: none; cursor: pointer; width: 22px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
  .burger summary::-webkit-details-marker { display: none; }
  .burger summary span { display: block; height: 2px; background: #111111; border-radius: 1px; }
  .burger[open] { background: #fff; }
  .burger[open] > .menu { position: relative; text-align: left; margin: 16px 0 0; padding: 10px 18px; border: 1px solid #e6e6e6; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06); min-width: 180px; }
  .body { display: block; }
  .side { display: none; }
  .main { padding-left: 0; }
  .foot { padding-left: 0; }
  .list li { gap: 14px; }
  .toc { padding: 14px 16px 12px; }
  .page-title, .post-title { font-size: 28px; }
  .post-body h2 { font-size: 24px; }
  .pn { grid-template-columns: 1fr; }
  .pn .r { grid-column: auto; text-align: left; } }
