:root {
  --bg: #fbfaf8;
  --fg: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e7e4df;
  --accent: #2f6fd6;
  --code-bg: #f1efeb;
  --tag-bg: #eef3fc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --line: #2b2d31;
    --accent: #7aa7ff;
    --code-bg: #212328;
    --tag-bg: #1f2a3d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.75 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site, main, footer.site { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--fg); letter-spacing: -0.02em; }
footer.site { color: var(--muted); font-size: 14px; padding-top: 48px; padding-bottom: 40px; }

h1 { font-size: 30px; line-height: 1.35; letter-spacing: -0.02em; margin: 8px 0 12px; }
h1.home { font-size: 18px; color: var(--muted); font-weight: 500; margin-bottom: 24px; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 20px 0; border-top: 1px solid var(--line); }
.posts .title { font-size: 21px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.posts .desc { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.empty { color: var(--muted); }

.meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }

article .meta { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.content h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.content h3 { font-size: 20px; margin: 32px 0 8px; }
.content img { max-width: 100%; height: auto; border-radius: 8px; }
.content blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--line); color: var(--muted); }
.content code { background: var(--code-bg); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; font-family: ui-monospace, "D2Coding", Consolas, monospace; }
.content pre { background: var(--code-bg); padding: 16px; border-radius: 8px; overflow-x: auto; line-height: 1.55; }
.content pre code { background: none; padding: 0; }
.content table { border-collapse: collapse; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 12px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.back { margin-top: 48px; }
