@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --canvas: #ffffff;
  --card: #f7f8fa;
  --hero-ink: #191f28;
  --body-ink: #4e5968;
  --muted-ink: #8b95a1;
  --line: #e5e8eb;
  --accent: #3182f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17171c;
    --card: #202027;
    --hero-ink: #f2f4f6;
    --body-ink: #c9cdd2;
    --muted-ink: #8b95a1;
    --line: #33363d;
    --accent: #5b9cf8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--canvas);
  color: var(--body-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.wrap { max-width: 680px; margin: 0 auto; }

/* ── 헤더 ── */

header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.brand {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hero-ink);
  text-decoration: none;
}

h1 {
  margin: 20px 0 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
}

.meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted-ink);
}

/* ── 본문 ── */

h2 {
  margin: 44px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--hero-ink);
}

h3 {
  margin: 28px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hero-ink);
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 20px; }

li { margin-bottom: 6px; }

a { color: var(--accent); }

strong { color: var(--hero-ink); font-weight: 600; }

/* 가장 중요한 문장을 카드로 못박는다 — 전문을 끝까지 읽는 사람은 드물다. */
.card {
  margin: 0 0 8px;
  padding: 18px 20px;
  background: var(--card);
  border-radius: 14px;
  font-weight: 500;
  color: var(--hero-ink);
}

.card p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  width: 38%;
  font-weight: 600;
  color: var(--hero-ink);
  white-space: nowrap;
}

/* ── 언어 전환 ── */

.lang {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-ink);
}

.lang a { text-decoration: none; }

/* ── 푸터 ── */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted-ink);
}

footer a { color: var(--muted-ink); }

footer p { margin: 0 0 6px; }

@media (max-width: 520px) {
  header { padding: 40px 0 32px; }
  h1 { font-size: 25px; }
  th { width: auto; white-space: normal; }
  table, th, td { display: block; }
  th { padding-bottom: 0; border-bottom: none; }
}
