/* ==========================================================================
   info.oonona.com — 오누나 인포
   정적 매거진형 정보 블로그 스타일시트
   ========================================================================== */

/* ---------- 1. 토큰 ---------- */
:root {
  --paper: #fbfaf6;
  --paper-2: #f4f1ea;
  --surface: #ffffff;
  --ink: #191a1c;
  --ink-2: #3d4046;
  --muted: #6b6f76;
  --line: #e5e0d6;
  --line-strong: #d3ccbe;
  --accent: #0f6b58;
  --accent-ink: #0a4d40;
  --accent-soft: #e7f1ed;
  --amber: #a86412;
  --amber-soft: #fbf1de;
  --danger: #9a3b2f;
  --danger-soft: #fbebe7;
  --shadow-sm: 0 1px 2px rgba(25, 26, 28, .05), 0 1px 1px rgba(25, 26, 28, .03);
  --shadow-md: 0 10px 30px -12px rgba(25, 26, 28, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1120px;
  --read: 720px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "D2Coding", Menlo, monospace;
}

[data-theme="dark"] {
  --paper: #12130f;
  --paper-2: #191a16;
  --surface: #1b1c18;
  --ink: #f2efe7;
  --ink-2: #d8d4c9;
  --muted: #a09c91;
  --line: #32332c;
  --line-strong: #45463d;
  --accent: #74c9ad;
  --accent-ink: #a5e0cb;
  --accent-soft: #1e3029;
  --amber: #e0b165;
  --amber-soft: #33291a;
  --danger: #e79c8c;
  --danger-soft: #3a2420;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12130f;
    --paper-2: #191a16;
    --surface: #1b1c18;
    --ink: #f2efe7;
    --ink-2: #d8d4c9;
    --muted: #a09c91;
    --line: #32332c;
    --line-strong: #45463d;
    --accent: #74c9ad;
    --accent-ink: #a5e0cb;
    --accent-soft: #1e3029;
    --amber: #e0b165;
    --amber-soft: #33291a;
    --danger: #e79c8c;
    --danger-soft: #3a2420;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
.nw { white-space: nowrap; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.wrap-article { width: min(100% - 40px, 1040px); margin-inline: auto; }
.wrap-read { width: min(100% - 40px, var(--read)); margin-inline: auto; }

/* ---------- 3. 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand b { font-weight: 700; }
.brand span { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.theme-toggle {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); width: 36px; height: 36px; border-radius: 999px;
  cursor: pointer; display: grid; place-items: center; font-size: 15px; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.theme-toggle:hover { background: var(--paper-2); color: var(--ink); }

.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #d8a24a));
  z-index: 60; transition: width .1s linear;
}

/* ---------- 4. 홈 ---------- */
.hero { padding: 62px 0 34px; border-bottom: 1px solid var(--line); }
.hero .kicker {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.28; margin: 0 0 20px;
  max-width: 17em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede {
  font-size: 17.5px; color: var(--ink-2); max-width: 42em; margin: 0 0 28px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); font-family: var(--sans); }

.section { padding: 54px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-family: var(--serif); font-size: 22px; margin: 0; letter-spacing: -0.02em;
}
.section-head span { font-size: 13px; color: var(--muted); }

.cards { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chip {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 5px;
}
.card h3 { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; letter-spacing: -0.02em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature .card-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.feature-body { padding: 36px 38px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-body h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.42;
  letter-spacing: -0.03em; margin: 0;
}
.feature-body h2 a { color: var(--ink); text-decoration: none; }
.feature-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.feature-body .meta { color: var(--muted); font-size: 12.5px; }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; }
.checklist > div {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.checklist .num {
  font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--accent);
  flex: 0 0 auto; padding-top: 3px; letter-spacing: .04em;
}
.checklist > div > div { min-width: 0; }
.checklist b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.checklist span { font-size: 14px; color: var(--muted); line-height: 1.7; }

.about-strip {
  margin: 64px 0 0; padding: 34px 38px; background: var(--paper-2);
  border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.about-strip h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.about-strip p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46em; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); color: #fff; }

/* ---------- 5. 글 페이지 ---------- */
.article-head { padding: 40px 0 0; }
.breadcrumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: .5; }

.post-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(27px, 3.6vw, 42px); line-height: 1.36; letter-spacing: -0.035em;
  margin: 12px 0 18px; width: min(100% - 40px, 900px);
}
.post-lede {
  font-size: 18px; line-height: 1.8; color: var(--ink-2);
  margin: 0 0 24px; width: min(100% - 40px, 820px);
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13px; color: var(--muted); padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-meta b { color: var(--ink-2); font-weight: 600; }

.hero-figure { width: min(100% - 40px, 1040px); margin: 30px auto 8px; }
.hero-figure img { width: 100%; border-radius: var(--radius); }
figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.post-layout > div { min-width: 0; }

.post-layout {
  display: grid; grid-template-columns: minmax(0, var(--read)) 250px;
  gap: 64px; padding: 34px 0 70px; align-items: start;
  width: min(100% - 40px, 1040px); margin-inline: auto;
}

/* 목차 */
.toc { position: sticky; top: 92px; font-size: 13.5px; }
.toc h2 {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc li.toc-h3 { padding-left: 14px; }
.toc a {
  display: block; padding: 6px 0 6px 12px; color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; line-height: 1.5; font-size: 13px;
}
.toc li.toc-h3 a { padding-left: 24px; text-indent: -10px; }
.toc li.toc-h3 a::before { content: "–"; display: inline-block; width: 10px; color: var(--line-strong); }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc .toc-extra { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.toc-mobile { display: none; margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.toc-mobile summary {
  cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "▾"; color: var(--muted); }
.toc-mobile[open] summary::after { content: "▴"; }
.toc-mobile ol { margin: 0; padding: 4px 18px 16px; list-style: none; display: grid; gap: 2px; font-size: 14.5px; }
.toc-mobile ol a {
  display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none;
  line-height: 1.5; border-bottom: 1px solid var(--line);
}
.toc-mobile ol li:last-child a { border-bottom: 0; }
.toc-mobile li.toc-h3 { padding-left: 14px; }
.toc-mobile li.toc-h3 a { color: var(--muted); font-size: 13.5px; }
.toc-mobile li.toc-h3 a::before { content: "– "; }

/* 본문 */
.prose { font-size: 17.5px; line-height: 1.92; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose h2 {
  font-family: var(--serif); color: var(--ink); font-size: 25px; line-height: 1.45;
  letter-spacing: -0.025em; margin: 2.2em 0 0.7em; padding-top: .2em;
}
.prose h2::before {
  content: ""; display: block; width: 34px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-bottom: 16px;
}
.prose h3 {
  font-family: var(--serif); color: var(--ink); font-size: 19.5px; line-height: 1.5;
  letter-spacing: -0.02em; margin: 1.9em 0 .5em;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line-strong);
  color: var(--ink-2); font-size: 16px;
}
.prose blockquote p + p { margin-top: .7em; }

/* 요약 박스 */
.summary-box {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 24px 26px; margin: 1.6em 0; box-shadow: var(--shadow-sm);
}
.summary-box .label {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 12px;
}
.summary-box ul { margin: 0; padding-left: 1.1em; font-size: 16px; line-height: 1.8; }
.summary-box li::marker { color: var(--accent); }
.summary-box li + li { margin-top: .5em; }
.summary-box p { font-size: 16px; }

/* 콜아웃 */
.callout {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius-sm); margin: 1.6em 0;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 16px; line-height: 1.8;
}
.callout .ico { font-size: 17px; line-height: 1.4; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.callout strong { color: var(--accent-ink); }
.callout.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.callout.warn strong { color: var(--amber); }
.callout.stop { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.stop strong { color: var(--danger); }

/* 표 */
.table-wrap { margin: 1.7em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.65; }
caption {
  caption-side: top; text-align: left; font-size: 12.5px; color: var(--muted);
  padding: 12px 14px 0; font-weight: 500;
}
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--paper-2); font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; white-space: nowrap; border-bottom: 1px solid var(--line-strong);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
td strong { color: var(--ink); }
.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 비교 카드 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.7em 0; }
.compare > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; font-size: 15.5px;
}
.compare h4 {
  margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.compare p { margin: 0 0 8px; }
.compare ul { margin: .4em 0 0; padding-left: 1.1em; font-size: 15px; }

/* 단계 목록 */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.7em 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 2px 0 2px 46px; font-size: 16.5px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.steps b { display: block; color: var(--ink); }

/* FAQ */
.faq { margin: 1.8em 0; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-size: 16.5px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 20px; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 0 18px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.faq .answer p { margin: 0; }
.faq .answer p + p { margin-top: .7em; }

/* 출처 */
.sources { margin: 2.2em 0 0; padding: 20px 24px; background: var(--paper-2); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.sources h2, .sources h3 {
  font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; padding: 0;
}
.sources h2::before, .sources h3::before { display: none; }
.sources ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; line-height: 1.7; }
.sources a { color: var(--ink-2); }

.disclaimer {
  margin: 2em 0 0; font-size: 13.5px; line-height: 1.8; color: var(--muted);
  padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
}

/* 글 하단 */
.post-footer { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-list .tag {
  font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface);
}

.author {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.author .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 17px;
}
.author b { display: block; font-size: 15px; color: var(--ink); }
.author p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.related { margin-top: 20px; }
.related h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 15px 2px; text-decoration: none; color: var(--ink); font-size: 15.5px;
}
.related a:hover { color: var(--accent); }
.related a span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 6. 정적 페이지 ---------- */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -0.03em; }
.page-head p { margin: 0; color: var(--muted); font-size: 16px; }
.page-body { padding: 40px 0 80px; font-size: 16.5px; color: var(--ink-2); line-height: 1.9; }
.read-col { max-width: 720px; }
.page-body h2 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 2em 0 .7em; letter-spacing: -0.02em; }
.page-body h3 { font-size: 17.5px; color: var(--ink); margin: 1.6em 0 .4em; }
.page-body p { margin: 0 0 1em; }
.page-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.page-body li { margin-bottom: .4em; }

/* ---------- 7. 푸터 ---------- */
.site-footer {
  margin-top: 56px; border-top: 1px solid var(--line);
  background: var(--paper-2); padding: 48px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { font-size: 17px; }
.footer-grid p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 12px 0 0; max-width: 32em; }
.footer-col h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}

/* ---------- 8. 반응형 ---------- */
@media (max-width: 980px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .card-media { min-height: 240px; aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .wrap, .wrap-read { width: min(100% - 32px, var(--max)); }
  .site-header .bar { height: 60px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13.5px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 40px 0 26px; }
  .hero .lede { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head span { font-size: 12.5px; }
  .feature-body { padding: 24px 22px 28px; }
  .checklist { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; padding: 26px 22px; }
  .post-layout { width: min(100% - 32px, var(--read)); padding: 26px 0 56px; }
  .wrap-article, .hero-figure { width: min(100% - 32px, var(--read)); }
  .post-title, .post-lede { width: 100%; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 18px; }
  .compare { grid-template-columns: 1fr; }
  .summary-box { padding: 20px 18px; }
  .callout { grid-template-columns: 22px 1fr; padding: 16px 16px; gap: 10px; font-size: 15.5px; }
  th, td { padding: 10px 12px; }
  table { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 36px 0 32px; }
  .author { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .toc, .toc-mobile, .related, .tag-list, .read-progress, .share { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .post-layout { display: block; width: 100%; padding: 0; }
  .prose a { color: #000; text-decoration: none; }
  .hero-figure img { max-height: 220pt; object-fit: cover; }
}
