:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #22252a;
  --muted: #5f6670;
  --line: #e3e1da;
  --accent: #0f6b5c;
  --accent-soft: #e6f2ef;
  --warn-bg: #fff4d6;
  --warn-text: #5c4300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1d2126;
    --text: #e8e9eb;
    --muted: #a3aab3;
    --line: #333941;
    --accent: #6fd0bd;
    --accent-soft: #1f3531;
    --warn-bg: #3d3214;
    --warn-text: #f5e2ab;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); }
.wrap { max-width: 740px; margin: 0 auto; padding: 0 16px; }
.draft-banner { background: var(--warn-bg); color: var(--warn-text); padding: 8px 16px; text-align: center; font-size: 14px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-right: 14px; font-size: 15px; }
nav a:last-child { margin-right: 0; }
nav a:hover { color: var(--accent); }
main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
h2 { font-size: 23px; line-height: 1.4; margin: 44px 0 12px; }
h3 { font-size: 19px; line-height: 1.45; margin: 30px 0 8px; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
blockquote { margin: 0 0 18px; padding: 14px 18px; background: var(--accent-soft); border-radius: 8px; }
blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
article img { display: block; max-width: 100%; height: auto; margin: 24px auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
th { background: var(--accent-soft); white-space: nowrap; }
.intro { color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.meta span { margin-right: 12px; display: inline-block; }
.section-title { font-size: 20px; margin: 0 0 14px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin: 0 0 12px; }
.post-list a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.post-list a:hover { border-color: var(--accent); }
.post-list strong { display: block; font-size: 18px; line-height: 1.45; }
.post-list .desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 4px; }
.post-list .date { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.box { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.box h2 { font-size: 18px; margin: 0 0 10px; }
.box ul { font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 8px 0 0; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
}
