:root {
  --fg: #222; --muted: #777; --bg: #fdfdfb; --line: #e4e4e0; --accent: #2a5d8f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #ddd; --muted: #999; --bg: #1b1c1e; --line: #333; --accent: #7fb2e5; }
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--fg); background: var(--bg);
  font: 17px/1.75 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, iframe { max-width: 100%; height: auto; }
.masthead {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--line);
}
.site-title { font-weight: 700; color: var(--fg); margin-right: auto; }
.masthead nav { display: flex; gap: 1rem; }
#search { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: inherit; }
#search-results { max-width: 46rem; margin: 1rem auto; padding: 0 1.25rem; }
.layout { display: grid; gap: 2.5rem; max-width: 66rem; margin: 0 auto; padding: 1.5rem 1.25rem; }
@media (min-width: 60rem) { .layout { grid-template-columns: minmax(0, 46rem) 14rem; } }
.sidebar { font-size: .9rem; color: var(--muted); }
.sidebar h2 { font-size: .9rem; margin: 1.5rem 0 .25rem; }
.author img { border-radius: 50%; display: block; margin-bottom: .5rem; }
.links { list-style: none; padding: 0; margin: 0; }
.muted, .meta, small { color: var(--muted); }
.meta { font-size: .85rem; margin-top: -.5rem; }
h1 { font-size: 1.6rem; line-height: 1.35; }
.entry { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.entry h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.content blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.content pre { overflow-x: auto; padding: .75rem; border: 1px solid var(--line); }
.content table { border-collapse: collapse; }
.content th, .content td { border: 1px solid var(--line); padding: .25rem .6rem; }
.content .anchor { display: none; }
.tags a { margin-right: .5rem; }
.pager, .pagination { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin: 2rem 0; }
.pagination { justify-content: center; }
.post-list { padding-left: 1rem; }
.post-list time { color: var(--muted); font-size: .85rem; margin-right: .5rem; }
.footer { text-align: center; font-size: .85rem; color: var(--muted); padding: 2rem 1rem; border-top: 1px solid var(--line); }
