/* 밝은 테마 기본. 한국어 본문 가독성 우선. JS 없음. */
:root {
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --line: #d9dee3;
  --accent: #0b57d0;
  --accent-bg: #eef3fc;
  --code-bg: #f6f8fa;
  --max: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "D2Coding", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.8;
  word-break: keep-all; overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--fg); letter-spacing: -.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
.site-nav a { color: var(--muted); padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--fg); border-bottom-color: var(--accent); text-decoration: none; }

main { padding: 2rem 1.25rem 3rem; }

/* 목록 */
.list-header h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
.list-header p { margin: 0 0 1.5rem; color: var(--muted); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.post-card h2 { margin: .25rem 0 .35rem; font-size: 1.25rem; line-height: 1.4; }
.post-card h2 a { color: var(--fg); }
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); padding: 2rem 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; color: var(--muted); }

/* 메타 */
.post-meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.post-meta .cat { color: var(--accent); background: var(--accent-bg); padding: .05rem .5rem; border-radius: 999px; font-weight: 600; }

/* 글 */
.post-header { margin-bottom: 1.5rem; }
.post-header h1 { margin: .4rem 0 .5rem; font-size: 2rem; line-height: 1.3; letter-spacing: -.01em; }
.post-lead { margin: 0; color: var(--muted); font-size: 1.05rem; }
.post-body h2 { margin: 2.25rem 0 .75rem; font-size: 1.45rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.post-body h3 { margin: 1.75rem 0 .5rem; font-size: 1.2rem; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body table { margin: 0 0 1.1rem; }
.post-body li { margin: .25rem 0; }
.post-body img, .post-body video { max-width: 100%; height: auto; border-radius: 6px; }
.post-body blockquote { margin-left: 0; padding: .25rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .4rem .7rem; text-align: left; }
.post-body th { background: var(--code-bg); }
.post-body code { font-family: var(--mono); font-size: .875em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
.post-body pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; overflow-x: auto; line-height: 1.55; margin: 0 0 1.25rem; }
.post-body pre code { background: none; padding: 0; font-size: .85rem; }
.post-body h2 a, .post-body h3 a { color: inherit; }
.post-tags { margin: 1.5rem 0 0; font-size: .9rem; color: var(--muted); }
.tag { margin-right: .5rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { display: block; color: var(--fg); font-weight: 600; line-height: 1.4; }
.post-nav a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-bottom: .2rem; }
.post-nav .next { text-align: right; }

/* 광고 슬롯 — 높이를 예약해 레이아웃 시프트를 막는다 */
.ad-slot { min-height: 280px; margin: 1.5rem 0; }
.ad-slot ins { min-height: 280px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { padding: 1.5rem 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

.notfound { text-align: center; padding: 4rem 0; }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .post-header h1 { font-size: 1.6rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}
@media print {
  .site-header, .site-footer, .post-nav, .ad-slot { display: none; }
}

/* highlight.js github theme */
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub
  Description: Light theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-light
  Current colors taken from GitHub's CSS
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}