/* Notikit 사이트 공용 — 색 토큰·헤더·바닥글·코드. index.html 과 docs/ 가 같이 쓴다. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --border: #e4e6ef;
  --text: #14161f;
  --muted: #5b6072;
  --accent: #4f46e5;
  --accent-2: #0ea5b7;
  --accent-soft: #eef0ff;
  --glow-1: rgba(79, 70, 229, 0.22);
  --glow-2: rgba(14, 165, 183, 0.18);
  --code-bg: #0f1220;
  --code-text: #e6e8f2;
  --code-muted: #8b93b0;
  --ok: #0f8a5f;
  --ok-soft: #e6f6ef;
  --shadow: 0 1px 2px rgba(20, 22, 31, 0.04), 0 8px 24px rgba(20, 22, 31, 0.06);
  --shadow-lift: 0 2px 4px rgba(20, 22, 31, 0.05), 0 18px 40px rgba(79, 70, 229, 0.14);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d15;
    --bg-soft: #11141f;
    --surface: #151927;
    --surface-2: #1b2031;
    --border: #262b3d;
    --text: #eceef6;
    --muted: #9aa0b6;
    --accent: #8b85ff;
    --accent-2: #3fd0de;
    --accent-soft: #1f2140;
    --glow-1: rgba(139, 133, 255, 0.20);
    --glow-2: rgba(63, 208, 222, 0.12);
    --code-bg: #090b12;
    --ok: #4cd4a0;
    --ok-soft: #10281f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(139, 133, 255, 0.16);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
p code, li code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

/* ── 헤더 ───────────────────────────────────────── */
header.top { border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
nav.links { display: flex; gap: 20px; font-size: 15px; }
nav.links a { color: var(--muted); transition: color 0.2s; }
nav.links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { nav.links .hide-sm { display: none; } }

pre {
  margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px;
  padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65;
}
.c { color: var(--code-muted); }
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
