:root {
  color-scheme: light dark;
  --background: #fffaf6;
  --surface: #ffffff;
  --text: #241b16;
  --muted: #695b52;
  --accent: #c84400;
  --border: #dfd2c8;
  --focus: #005fcc;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171412;
    --surface: #211d1a;
    --text: #fff8f2;
    --muted: #d6c7bc;
    --accent: #ff8a3d;
    --border: #51453d;
    --focus: #80b9ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.72; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 1rem; }
header, main, footer { width: min(100% - 2rem, 820px); margin-inline: auto; }
header { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.brand { margin: 0 0 .4rem; color: var(--accent); font-size: .85rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.2; }
.summary { max-width: 65ch; color: var(--muted); font-size: 1.05rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; list-style: none; }
main { padding: 1.5rem 0 3rem; }
section { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
h2 { margin-top: 0; font-size: 1.35rem; line-height: 1.35; }
h3 { font-size: 1.05rem; }
li + li { margin-top: .45rem; }
.notice, .contact { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
.contact dt { margin-top: .65rem; color: var(--muted); font-weight: 700; }
.contact dd { margin-left: 0; overflow-wrap: anywhere; }
footer { padding: 1.5rem 0 3rem; color: var(--muted); font-size: .9rem; }
code { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
caption { padding: .75rem 1rem 0; text-align: left; font-weight: 700; }
th, td { padding: .6rem .75rem; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
ol li + li { margin-top: .45rem; }

@media print {
  :root { color-scheme: light; --background: white; --surface: white; --text: black; --muted: #333; --accent: #9b3500; --border: #bbb; }
  .skip-link, nav { display: none; }
  header, main, footer { width: 100%; }
  section { break-inside: avoid; }
}
