/* kleam SEO blog template — 10개 도메인 공용. 레퍼런스: corpus.doctor/blog
   로고 = Paperlogy(자체 호스팅), 본문 = Pretendard(CDN). 색상은 --accent 로 도메인별 덮어쓰기 가능. */
@font-face {
  font-family: "Paperlogy";
  src: url("/assets/fonts/Paperlogy-8ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #172554;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-bar: #2563eb;
  --bg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 100vh;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-bar); outline-offset: 5px; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; background: #fff; padding: 12px; }
.skip:focus { top: 12px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 88px; }
.logo {
  font-family: "Paperlogy", "Pretendard Variable", sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
}
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }

.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: #fff !important;
  font-size: 15px; font-weight: 650;
}
.button:hover { background: var(--accent-hover); }
.text-link { color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }

/* home */
.intro { max-width: 820px; padding: 80px 0 68px; }
.kicker, .topic { color: var(--accent); margin-bottom: 15px; font-size: 14px; font-weight: 600; }
.intro h1 { color: var(--ink); font-size: clamp(36px, 5vw, 58px); font-weight: 750; letter-spacing: -2px; line-height: 1.25; }
.lead { color: #475569; margin: 24px 0; font-size: 19px; line-height: 1.85; }

.list { padding-bottom: 56px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 2px solid var(--ink); }
.list-heading h2 { color: var(--ink); font-size: 23px; font-weight: 700; }
.list-heading p { font-size: 14px; }
.list-item { display: flex; justify-content: space-between; gap: 50px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.list-item > div { max-width: 760px; }
.list-item .topic { margin-bottom: 8px; }
.list-item h3 { color: var(--ink); margin-bottom: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.5; }
.list-item h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.list-item time { color: var(--muted); flex-shrink: 0; padding-top: 6px; font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 28px; padding: 32px 0; }
.pagination a { color: var(--accent); text-decoration: underline; }

/* detail */
.detail { max-width: 820px; }
.breadcrumb { display: flex; gap: 12px; margin: 32px 0 48px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--accent); flex-shrink: 0; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-header h1 { color: var(--ink); font-size: clamp(30px, 4.3vw, 44px); font-weight: 750; letter-spacing: -1.5px; line-height: 1.4; }
.byline { margin: 24px 0 14px; font-size: 14px; }
.byline span { margin: 0 8px; }
.disclosure { color: var(--muted); max-width: 670px; font-size: 13px; }

.answer { background: var(--accent-soft); border-left: 4px solid var(--accent-bar); border-radius: 0 10px 10px 0; margin: 40px 0; padding: 26px 30px; }
.answer h2 { color: var(--accent); margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.answer p { color: var(--ink); font-size: 18px; line-height: 1.9; }

.toc { border-bottom: 1px solid var(--line); margin: 36px 0 48px; padding-bottom: 28px; }
.toc h2 { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.toc ol { padding-left: 24px; font-size: 15px; list-style: decimal; }
.toc li { margin: 8px 0; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.body section { margin: 44px 0; scroll-margin-top: 24px; }
.body h2 { color: var(--ink); margin-bottom: 20px; font-size: 26px; font-weight: 750; letter-spacing: -0.5px; line-height: 1.5; }
.body p { margin: 18px 0; font-size: 17px; line-height: 2; }
.body strong { color: var(--ink); font-weight: 700; }
.checklist { padding-left: 24px; list-style: outside disc; }
.checklist li { padding: 6px 0; font-size: 17px; }
.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq h3 { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.6; }
.body .faq p { margin: 10px 0 0; }

.conversion { background: var(--accent-soft); border-radius: 14px; margin: 52px 0; padding: 36px; }
.conversion h2 { color: var(--ink); font-size: 28px; font-weight: 750; letter-spacing: -0.8px; line-height: 1.5; }
.conversion p { margin: 18px 0 24px; font-size: 16px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.related { border-top: 1px solid var(--line); padding: 30px 0 52px; }
.related h2 { color: var(--ink); margin-bottom: 16px; font-size: 23px; font-weight: 700; }
.related a { display: block; padding: 12px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* footer */
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer .logo { font-size: 16px; }
.site-footer a { text-decoration: underline; }

@media (max-width: 640px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 12px; min-height: 74px; }
  .logo { font-size: 20px; }
  .nav nav { gap: 14px; font-size: 13px; }
  .nav .button { min-height: 40px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .nav nav a:not(.button) { display: none; }
  .logo { overflow: hidden; text-overflow: ellipsis; }
  .intro { padding: 52px 0 44px; }
  .intro h1 { letter-spacing: -1.4px; }
  .lead { font-size: 17px; }
  .desktop { display: none; }
  .list-heading { flex-direction: column; align-items: flex-start; gap: 4px; }
  .list-item { flex-direction: column; gap: 10px; padding: 26px 0; }
  .list-item h3 { font-size: 22px; }
  .list-item time { padding: 0; }
  .site-footer { flex-direction: column; gap: 8px; }
  .breadcrumb { margin: 24px 0 32px; }
  .article-header h1 { letter-spacing: -1px; }
  .answer { padding: 22px; }
  .body h2 { font-size: 24px; }
  .body p { font-size: 16px; line-height: 1.95; }
  .conversion { padding: 26px 22px; }
  .conversion h2 { font-size: 25px; }
  .actions { flex-direction: column; }
}
