:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #10141b;
  --text: #f4f0e8;
  --muted: #a9b0bb;
  --line: rgba(244, 240, 232, .16);
  --accent: #d8b66a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 Pretendard, "Noto Sans KR", system-ui, sans-serif;
}
a { color: #f3d999; text-underline-offset: 3px; }
a:hover { color: #fff0c6; }
.wrap { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 750; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--text); }
main { padding: 56px 0 76px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 750; }
h1, h2, p { margin-top: 0; }
h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; }
.intro { max-width: 740px; color: var(--muted); }
.updated { color: var(--muted); font-size: .85rem; margin-bottom: 36px; }
section { padding: 28px 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.22rem; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 1rem; margin: 22px 0 8px; }
p, li { color: #d5d8dd; }
ul, ol { padding-left: 1.45rem; }
li + li { margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .94rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { color: var(--text); background: var(--surface); }
td { color: #d5d8dd; }
.notice { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 650; }
.button.primary { border-color: var(--accent); color: #f3d999; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--text); }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), 860px); }
  .site-header .wrap { align-items: flex-start; flex-direction: column; padding-block: 14px; }
  main { padding-top: 36px; }
}
