:root {
  --bg: #0d1418;
  --bg-2: #121c22;
  --panel: #16232a;
  --line: #24363f;
  --text: #dbe7ec;
  --muted: #8da3ad;
  --accent: #7fe3c6;
  --accent-ink: #062019;
  --warn: #f2c66d;
  --code-bg: #0a1013;
  --radius: 12px;
  --max: 1080px;
  --sans: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", Consolas, "D2Coding", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre, kbd { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13, 20, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 13px var(--mono); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 6px 14px; border-radius: 8px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--accent-ink); filter: brightness(1.08); }
@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .nav-hide-sm { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn small { font-weight: 400; opacity: .75; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.2; margin: 14px 0 16px; letter-spacing: -.02em; }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.shot { margin: 44px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { font: 600 11px var(--mono); color: var(--accent); letter-spacing: .1em; }
a.card { display: block; color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.article h1 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.3; margin: 8px 0 12px; letter-spacing: -.015em; }
.article h2 { font-size: 23px; margin: 40px 0 10px; }
.article h3 { font-size: 18px; margin: 28px 0 8px; }
.article .meta { color: var(--muted); font-size: 14px; }
.article p, .article li { color: #c9d8de; }
.article ul, .article ol { padding-left: 22px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; color: #d6e4e9; }
:not(pre) > code { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
kbd { background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: .85em; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-2); color: var(--text); font-weight: 600; }
td code { white-space: nowrap; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 18px 0; }
.note.warn { border-left-color: var(--warn); }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 24px 0; font-size: 15px; }
.toc ol { margin: 6px 0 0; }

/* download box */
.dl-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; }
.dl-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.dl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0; }
.dl-facts dt { color: var(--text); }
.dl-facts dd { margin: 0; overflow-wrap: anywhere; }
.dl-facts code { font-size: 12px; }

/* ads: an empty slot takes no space until an ad unit is placed in it */
.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot:empty { display: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* placeholder the operator must fill in before going live */
.todo { background: #4a3a10; color: #f2c66d; padding: 0 6px; border-radius: 4px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* on phones a table scrolls sideways inside .table-wrap instead of squeezing words into single letters */
.table-wrap table { min-width: 560px; }
