:root {
  color-scheme: light dark;
  --background: #f7f5ff;
  --surface: #ffffff;
  --text: #23202b;
  --muted: #615d6b;
  --accent: #6f59b5;
  --border: #ded9eb;
  --notice: #fff7db;
  --notice-border: #db9f18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17151d;
    --surface: #211e29;
    --text: #f4f0fb;
    --muted: #c4bdcf;
    --accent: #c4b0ff;
    --border: #40394d;
    --notice: #3b3015;
    --notice-border: #e3b64c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.72;
}

main {
  width: min(100% - 32px, 820px);
  margin: 40px auto;
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

h1, h2, h3 { line-height: 1.35; }
h1 { margin-top: 0; font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-top: 2.6rem; padding-top: 0.4rem; border-top: 1px solid var(--border); }
a { color: var(--accent); overflow-wrap: anywhere; }
.meta, .muted { color: var(--muted); }
.summary { font-size: 1.08rem; }
.notice {
  padding: 14px 18px;
  background: var(--notice);
  border-left: 4px solid var(--notice-border);
  border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--background); }
code { overflow-wrap: anywhere; }
footer { margin-top: 3rem; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 520px) {
  main { width: 100%; margin: 0; border: 0; border-radius: 0; }
}
