:root { --fg: #1f2933; --muted: #5f6b76; --bg: #fbfaf7; --card: #fff; --line: #e1ddd3; --accent: #b4540a; --bar: #d98324; }
@media (prefers-color-scheme: dark) {
	:root { --fg: #e8e6e1; --muted: #a2a8ae; --bg: #17191c; --card: #1f2226; --line: #33383e; --accent: #f0a05a; --bar: #e0902f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.75 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; overflow-wrap: break-word; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
a { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.site-header nav a { margin-left: 14px; color: var(--fg); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
main { padding-top: 22px; padding-bottom: 40px; }
h1 { font-size: 1.7rem; line-height: 1.35; margin: 0.4em 0; }
h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; line-height: 1.4; }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.meta, .note, .date { color: var(--muted); font-size: 0.9rem; }
.lead { color: var(--muted); margin-top: 0; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--muted); gap: 4px; }
form label:first-child { grid-column: 1 / -1; }
input, select { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); min-width: 0; }
.result { margin-top: 16px; display: grid; gap: 8px; }
.result div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 700; text-align: right; }
.result div:nth-child(2) dd { color: var(--accent); font-size: 1.25rem; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
th, td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: var(--card); }
img { max-width: 100%; height: auto; }
pre { overflow-x: auto; background: var(--card); border: 1px solid var(--line); padding: 12px; border-radius: 6px; font-size: 0.9rem; }
.chart-figure { margin: 1.4em 0; }
.chart-figure figcaption { font-weight: 700; margin-bottom: 4px; }
.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--bar); }
.chart text { fill: var(--fg); font-size: 14px; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-list li a { font-weight: 700; }
.post-list p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.author-line { border-top: 1px solid var(--line); margin-top: 2em; color: var(--muted); font-size: 0.9rem; }
.site-footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.site-footer a { color: var(--muted); }
@media (max-width: 480px) { form { grid-template-columns: 1fr; } h1 { font-size: 1.45rem; } }
