:root {
  --lime: #cbdb2a;
  --lime-dark: #a8b81c;
  --lime-soft: #eef3c4;
  --ink: #2f2e29;
  --ink-soft: #4a4843;
  --gray: #787774;
  --border: #e9e9e7;
  --surface: #f7f6f3;
  --max: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
               "Segoe UI", "Noto Sans KR", "맑은 고딕", sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

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

/* ---------- 상단 내비게이션 ---------- */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav .brand {
  font-family: Futura, "Century Gothic", "Avenir Next", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 15px;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(135deg, #d8e85c 0%, var(--lime) 45%, #b4c81d 100%);
  padding: 76px 24px;
  text-align: center;
}
.hero .wordmark {
  font-family: Futura, "Century Gothic", "Avenir Next", -apple-system, sans-serif;
  font-size: clamp(46px, 9vw, 88px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #1e1e1a;
  line-height: 1.1;
}
.hero .tagline {
  margin-top: 10px;
  font-size: clamp(12px, 2.4vw, 15px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #3a3a30;
}
.hero .hero-sub {
  margin-top: 18px;
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 600;
  color: #2c2c22;
}

.hero--compact { padding: 44px 24px; }
.hero--compact .wordmark { font-size: clamp(30px, 6vw, 44px); }

/* ---------- 레이아웃 ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.3; margin-bottom: 24px; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(21px, 3.6vw, 25px);
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
h3 { font-size: clamp(17px, 3vw, 19px); margin: 30px 0 10px; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 9px; }

blockquote {
  border-left: 3px solid var(--lime);
  background: var(--surface);
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--ink-soft);
}

hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- 컴포넌트 ---------- */
.callout {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin-bottom: 26px;
  font-weight: 600;
}
.callout .emoji { flex-shrink: 0; }

.scope-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  padding: 16px 18px;
  margin: 22px 0;
  background: #fcfcfa;
  font-size: 15.5px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--lime-soft);
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
}
.flow .arrow { color: var(--gray); font-weight: 400; }

.table-wrap { overflow-x: auto; margin: 10px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
th, td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }

.note { font-size: 13.5px; color: var(--gray); }

.kakao-btn {
  display: inline-block;
  background: #fee500;
  color: #191919;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  text-decoration: none;
  margin: 10px 0 6px;
  transition: filter .15s;
}
.kakao-btn:hover { filter: brightness(0.95); }

.cta-band {
  background: var(--lime-soft);
  padding: 26px 24px;
  margin: 48px 0 0;
  text-align: center;
}
.cta-band h2 { border: none; margin: 0 0 8px; padding: 0; font-size: 20px; }
.cta-band p { margin-bottom: 12px; font-size: 15px; }

.tags {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 14px;
}

/* ---------- 블로그 목록 ---------- */
.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 0; }
.post-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post-card:hover {
  border-color: var(--lime-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.post-card .meta { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.post-card h2 {
  font-size: 19px;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  line-height: 1.45;
}
.post-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- 아티클 ---------- */
.breadcrumb {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; color: var(--gray); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.article-meta {
  font-size: 14px;
  color: var(--gray);
  margin: -12px 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 22px;
  margin-bottom: 34px;
  font-size: 15px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article-body a { color: #3b6ea5; }

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.post-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.post-nav a:hover { color: var(--ink); }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--gray);
  font-size: 13.5px;
}
.site-footer nav {
  margin-bottom: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .page { padding: 34px 20px 72px; }
  .site-nav ul { gap: 14px; font-size: 14px; }
}
