:root {
  --bg: #f6f4ee;
  --card: #fffdf7;
  --text: #1f2a22;
  --muted: #4f5c53;
  --accent: #2e7a4f;
  --line: #dcd8cc;
  --todo-bg: #fff1c2;
  --todo-text: #6b4e00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121613;
    --card: #1c221e;
    --text: #e8efe9;
    --muted: #b3c0b7;
    --accent: #8ad1a6;
    --line: #2f3a33;
    --todo-bg: #4a3b10;
    --todo-text: #ffe7a3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header.site { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
header.site img { width: 56px; height: 56px; border-radius: 13px; }
header.site a { color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; }
nav.lang { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
nav.lang a, a.button {
  display: inline-block; min-height: 44px; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--accent);
  font-weight: 600; text-decoration: none;
}
h1 { font-size: 30px; line-height: 1.3; margin: 8px 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
section.lang-block { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 20px 20px; margin-bottom: 28px; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-top: 1px solid var(--line); }
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 6px; border-radius: 6px; font-weight: 600; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
footer { margin-top: 40px; color: var(--muted); font-size: 15px; }
