@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700&display=swap");

:root {
  --paper: #ffffff;
  --ink: #141414;
  --sub: #5f5f5f;
  --faint: #8d8d8d;
  --line: #e6e6e6;
  --tint: #f3f2ef;
  --accent: #c8371d;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* masthead */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; font-size: 12.5px; color: var(--faint); }
.mast .wrap { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 26px; padding-bottom: 18px; }
.logo { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.logo span { color: var(--accent); }
.mast p { font-size: 13px; color: var(--sub); }
.nav { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 50px; font-size: 15px; font-weight: 600; overflow-x: auto; white-space: nowrap; }
.nav a.on { color: var(--accent); }
.nav .search { margin-left: auto; font-weight: 400; color: var(--faint); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.nav .search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* shared */
.cat { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.meta { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.h-serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.sec-head a { font-size: 13px; color: var(--sub); }
a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* home lead */
.lead { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; padding: 34px 0 44px; }
.lead-main .pic { margin-bottom: 18px; border: 1px solid var(--line); }
.lead-main h1 { font-size: 34px; line-height: 1.3; margin: 8px 0 12px; }
.lead-main p.sum { font-size: 16.5px; color: var(--sub); line-height: 1.7; }
.latest h2 { font-size: 15px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 4px; }
.latest li { list-style: none; border-bottom: 1px solid var(--line); padding: 14px 0; }
.latest li .t { font-size: 16px; font-weight: 600; line-height: 1.45; display: block; margin: 3px 0 4px; }

/* topic blocks */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 50px; }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(2, 1fr); } }
.topic .first .pic { border: 1px solid var(--line); margin-bottom: 12px; }
.topic .first .t { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.4; display: block; margin-bottom: 6px; }
.topic .first p { font-size: 14px; color: var(--sub); line-height: 1.65; }
.topic ul { list-style: none; margin-top: 14px; }
.topic li { border-top: 1px solid var(--line); padding: 11px 0; }
.topic li .t { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* compare strip */
.compare { background: var(--tint); padding: 40px 36px 44px; margin-bottom: 50px; }
.compare .grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.compare h2 { font-family: var(--serif); font-size: 26px; line-height: 1.35; margin: 8px 0 12px; }
.compare p { color: var(--sub); font-size: 15px; line-height: 1.7; }
.compare ol { list-style: none; counter-reset: c; }
.compare li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 6px; border-top: 1px solid #d9d7d2; padding: 14px 0; }
.compare li::before { content: counter(c); font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--accent); }
.compare li .t { font-size: 16px; font-weight: 600; }

/* list page */
.page-head { padding: 34px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head h1 { font-family: var(--serif); font-size: 32px; }
.page-head p { color: var(--sub); margin-top: 8px; max-width: 640px; }
.subnav { display: flex; gap: 18px; margin-top: 18px; font-size: 14px; color: var(--sub); }
.subnav a.on { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.rows { list-style: none; }
.rows li a { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows .pic { border: 1px solid var(--line); }
.rows .t { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.4; display: block; margin: 4px 0 8px; }
.rows p { font-size: 15px; color: var(--sub); line-height: 1.65; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 34px 0 60px; font-size: 14px; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* article */
.post-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.ph-in { max-width: 1120px; margin: 0 auto; padding: 56px 32px 44px; text-align: center; }
.crumb { font-size: 13px; color: var(--faint); display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.crumb a:last-child { color: var(--accent); font-weight: 700; }
.post-head h1 { font-family: var(--serif); font-size: 46px; line-height: 1.26; letter-spacing: -.025em; max-width: 960px; margin: 0 auto; }
.post-head .dek { font-size: 19px; color: var(--sub); line-height: 1.75; margin: 20px auto 0; max-width: 880px; }
.byline { display: flex; justify-content: center; gap: 18px; margin-top: 28px; font-size: 13px; color: var(--faint); }
.byline b { color: var(--ink); font-weight: 600; }
.post-grid { max-width: 1120px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; }
.toc { position: sticky; top: 24px; align-self: start; padding-top: 48px; }
.toc p { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .04em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.toc ol { list-style: none; counter-reset: t; }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 22px 1fr; padding: 10px 0; font-size: 13.5px; line-height: 1.45; color: var(--sub); }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); font-size: 12px; color: var(--accent); padding-top: 1px; }
.toc a:hover { color: var(--ink); }
.article { padding: 48px 0 30px; min-width: 0; }
.figure { margin: 0 0 36px; }
.figure img { border: 1px solid var(--line); }
.figure figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; }
.body { font-size: 17.5px; line-height: 1.95; }
.body p { margin: 0 0 24px; }
.body > p:first-child { font-size: 19px; line-height: 1.85; }
.body h2 { font-family: var(--serif); font-size: 28px; line-height: 1.38; letter-spacing: -.015em; margin: 64px 0 18px; padding-top: 22px; border-top: 2px solid var(--ink); scroll-margin-top: 20px; }
.body h3 { font-size: 19px; line-height: 1.5; margin: 36px 0 12px; }
.body ul { list-style: none; margin: 0 0 26px; border-top: 1px solid var(--line); }
.body ul li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.8; }
.body ul li .lb { display: block; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.body ul li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 7px; height: 7px; background: var(--accent); }
.body figure.brand { margin: 56px 0 16px; }
.body figure.brand img { border: 1px solid var(--line); }
.body figure.brand figcaption { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.body figure.brand + h3 { margin-top: 18px; font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.body .key { background: var(--tint); border-top: 3px solid var(--ink); padding: 26px 28px 24px; margin: 8px 0 36px; font-size: 16.5px; line-height: 1.9; }
.body .key b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.body table { width: 100%; border-collapse: collapse; margin: 14px 0 12px; font-size: 14.5px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.body thead th { text-align: left; background: var(--ink); color: #fff; padding: 12px 12px; font-size: 13px; font-weight: 600; vertical-align: bottom; }
.body td { border-bottom: 1px solid var(--line); padding: 14px 12px; vertical-align: top; }
.body td:first-child { font-weight: 700; color: var(--ink); }
.body tbody tr:hover td { background: #fbfaf8; }
.body table + p { font-size: 14px; color: var(--sub); }
.body #faq ~ h3 { position: relative; padding-left: 34px; font-family: var(--serif); font-size: 19px; }
.body #faq ~ h3::before { content: "Q"; position: absolute; left: 0; top: -1px; font-size: 22px; color: var(--accent); }
.body #faq ~ p { padding-left: 34px; }
.related { max-width: 1120px; margin: 40px auto 80px; padding: 0 32px; }
.related ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.related li a { display: block; border-top: 1px solid var(--line); padding-top: 14px; }
.related li .t { display: block; font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.45; margin-top: 6px; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: 26px 0 40px; font-size: 13px; color: var(--sub); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; }
.foot .logo { font-size: 22px; color: var(--ink); }
.foot nav { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { display: none; }
  .mast .wrap { padding-top: 18px; padding-bottom: 12px; }
  .logo { font-size: 27px; }
  .mast p { display: none; }
  .nav .wrap { gap: 20px; height: 46px; font-size: 14.5px; }
  .nav .search { display: none; }
  .lead { grid-template-columns: 1fr; gap: 28px; padding: 22px 0 34px; }
  .lead-main h1 { font-size: 26px; }
  .topics { grid-template-columns: 1fr; gap: 34px; }
  .compare { padding: 28px 18px 30px; } .compare .grid { grid-template-columns: 1fr; gap: 20px; }
  .compare h2 { font-size: 22px; }
  .page-head h1 { font-size: 26px; }
  .rows li a { grid-template-columns: 112px 1fr; gap: 14px; padding: 18px 0; }
  .rows .t { font-size: 16.5px; margin: 2px 0 0; }
  .rows p { display: none; }
  .ph-in { padding: 32px 16px 28px; }
  .post-head h1 { font-size: 29px; }
  .post-head .dek { font-size: 16.5px; }
  .post-head .dek br { display: none; }
  .post-grid { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .toc { display: none; }
  .article { padding: 28px 0 20px; }
  .body h2 { font-size: 23px; margin-top: 48px; }
  .body .key { padding: 20px 18px; }
  .body table { display: block; overflow-x: auto; white-space: normal; }
  .body table th, .body table td { min-width: 120px; }
  .related ul { grid-template-columns: 1fr; gap: 18px; }
  .body { font-size: 16.5px; line-height: 1.9; }
  .body h2 { font-size: 21px; }
  .related { padding: 0 16px; margin-top: 20px; }
  .foot .wrap { flex-direction: column; }
}
