/* =========================================================
   AI 크리블로그 — 공통 스타일
   톤: 딥 슬레이트(#0F172A) + 에메랄드(#10B981/#0D9488) + 화이트
   구조: 어두운 머리말 · 밝은 본문 · 카드형 매거진 레이아웃
   ========================================================= */

:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #EEF2F6;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-mint: #ECFDF5;
  --brand: #0D9488;
  --brand-strong: #0F766E;
  --brand-bright: #10B981;
  --brand-soft: #CCFBF1;
  --danger: #B91C1C;
  --radius: 18px;
  --wrap: 1120px;
  --reading: 740px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.78;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

a { color: var(--brand-strong); text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-bright);
  color: #052E2B;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 읽기 진행 막대 */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.read-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #10B981, #2DD4BF);
  transition: width .08s linear;
}

/* ---------------- 머리말 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0F172A;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  color: #F8FAFC;
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .55), transparent);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 16px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: #fff; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, #10B981, #0D9488 55%, #0F766E);
  color: #052E2B;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(16, 185, 129, .3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand-rule {
  margin-top: .28rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: #5EEAD4;
}

.header-note {
  margin: 0;
  font-size: .875rem;
  color: #94A3B8;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-bottom: 11px;
}
.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 .78rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav a:hover { background: rgba(148, 163, 184, .14); color: #fff; }
.nav a[aria-current="page"] {
  background: rgba(16, 185, 129, .16);
  border-color: rgba(16, 185, 129, .45);
  color: #5EEAD4;
}
.nav .nav-rss {
  margin-left: auto;
  color: #94A3B8;
  font-size: .8125rem;
  letter-spacing: .12em;
  border-color: rgba(148, 163, 184, .35);
}
.nav .nav-rss:hover { color: #5EEAD4; border-color: rgba(16, 185, 129, .5); }

/* ---------------- 히어로 ---------------- */
main { display: block; padding-bottom: 64px; }

.hero {
  position: relative;
  overflow: hidden;
  background: #0F172A;
  color: #F8FAFC;
  padding: 58px 0 54px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(16, 185, 129, .28), transparent 68%);
}
.hero::after {
  width: 380px; height: 380px;
  left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(45, 212, 191, .16), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 .7rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--brand);
}
.hero .eyebrow { color: #5EEAD4; margin-bottom: .9rem; }

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.22;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 20em;
}
.hero-accent {
  background: linear-gradient(100deg, #5EEAD4, #10B981 45%, #34D399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  max-width: 40em;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #CBD5E1;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 2.1rem 0 0;
  padding: 1.3rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, .22);
}
.hero-stats li { display: flex; align-items: baseline; gap: .5rem; }
.hero-stats strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: #5EEAD4;
  letter-spacing: -0.03em;
}
.hero-stats span { font-size: .875rem; color: #94A3B8; }

.hero-cat { padding: 40px 0 42px; }
.hero-cat h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: .8rem; }
.hero-cat .breadcrumb { padding: 0 0 18px; color: #94A3B8; }
.hero-cat .breadcrumb a { color: #CBD5E1; }
.hero-cat .breadcrumb a:hover { color: #5EEAD4; }

/* ---------------- 대표 글 ---------------- */
.feature { margin: -34px 0 0; position: relative; z-index: 2; }

.feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-link:hover { transform: translateY(-3px); color: inherit; }

.feature-main { padding: 32px 34px 30px; }
.feature-label {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .22rem .72rem;
  border-radius: 999px;
  background: var(--bg-mint);
  color: var(--brand-strong);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.feature-main h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.42;
  letter-spacing: -0.035em;
}
.feature-main p {
  margin: 0 0 1.1rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-more {
  font-weight: 800;
  font-size: .9375rem;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
}
.feature-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 26px;
  background:
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, .35), transparent 60%),
    #0F172A;
  color: #E2E8F0;
}
.feature-issue {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #94A3B8;
  line-height: 1.6;
}
.feature-issue strong {
  display: block;
  margin-top: .3rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #5EEAD4;
}
.feature-meta {
  font-size: .8125rem;
  line-height: 1.7;
  color: #94A3B8;
}

/* ---------------- 섹션 공통 ---------------- */
.section { padding-top: 54px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  flex: 1 1 auto;
}
.section-head .eyebrow { margin: 0; width: 100%; }

.section-lead {
  margin: -4px 0 18px;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 46em;
}

.more-link { font-weight: 700; font-size: .9375rem; white-space: nowrap; }

.empty { color: var(--ink-3); }

/* 카테고리 칩 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: .9688rem;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-strong); background: #fff; }
.chip em {
  font-style: normal;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink-4);
}
.chip:hover em { color: var(--brand); }
.chip .count {
  color: var(--ink-3);
  font-weight: 600;
  font-size: .8125rem;
}

/* ---------------- 카드 ---------------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #2DD4BF);
  opacity: 0;
  transition: opacity .16s ease;
}
.card:hover {
  border-color: rgba(13, 148, 136, .45);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}
.card:hover::before { opacity: 1; }

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 22px;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { color: inherit; }

.card-cat {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  margin-bottom: .75rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--brand-strong);
}
.card-cat em {
  font-style: normal;
  font-size: .625rem;
  letter-spacing: .13em;
  color: var(--ink-4);
}

.card-title {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  line-height: 1.52;
  letter-spacing: -0.028em;
  font-weight: 800;
}
.card-large .card-title { font-size: 1.35rem; }

.card-summary {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: .8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .45rem;
  align-items: baseline;
}
.card-foot .dot { color: var(--ink-4); }

/* ---------------- 시작 코스 ---------------- */
.course {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 900px) {
  .course { grid-template-columns: 1fr 1fr; }
}
.course-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.course-item:hover { border-color: var(--brand); background: #fff; color: var(--ink); }
.course-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, .35);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: .9375rem;
  letter-spacing: -0.02em;
}
.course-body { display: flex; flex-direction: column; min-width: 0; }
.course-cat {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--ink-4);
  margin-bottom: .15rem;
}
.course-title { font-weight: 700; font-size: .9688rem; line-height: 1.5; }
.course-arrow { margin-left: auto; color: var(--brand); font-weight: 800; }

/* ---------------- 글 하나 ---------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: 24px 0 0;
  font-size: .875rem;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.post { max-width: var(--reading); margin: 0 auto; }

.post-head { padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.post-cat {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 .8rem;
  font-size: .8125rem;
  font-weight: 800;
  color: var(--brand-strong);
}
.post-cat a { color: inherit; text-decoration: none; }
.post-cat em {
  font-style: normal;
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--ink-4);
}

.post-head h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  line-height: 1.38;
  letter-spacing: -0.042em;
  font-weight: 800;
}

.post-meta {
  margin: 0;
  color: var(--ink-3);
  font-size: .875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}
.post-meta .dot { color: var(--ink-4); }

.post-lead {
  margin: 1.4rem 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand-bright);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.8;
}

/* 목차 */
.toc {
  margin: 32px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.toc-label {
  margin: 0 0 .7rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--brand);
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
}
.toc li { margin: .2rem 0; }
.toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.6;
}
.toc a:hover { color: var(--brand-strong); text-decoration: underline; }

/* 본문 */
.prose { padding-top: 10px; }
.prose p { margin: 0 0 1.25em; }
.prose h2 {
  position: relative;
  margin: 2.4em 0 .8em;
  padding-left: 1.05rem;
  font-size: 1.42rem;
  line-height: 1.45;
  letter-spacing: -0.032em;
  font-weight: 800;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: .22em;
  width: 4px; height: 1.15em;
  border-radius: 2px;
  background: linear-gradient(180deg, #10B981, #0D9488);
}
.prose h3 {
  margin: 1.9em 0 .55em;
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.prose ul,
.prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose .bullets li::marker { content: "•  "; }
.prose .steps { counter-reset: step; list-style: none; padding-left: 0; }
.prose .steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: .8em;
}
.prose .steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: .18em;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brand-strong);
  border: 1px solid rgba(13, 148, 136, .35);
  border-radius: 6px;
  padding: .04rem .34rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: .9688rem;
}
.prose th,
.prose td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: #F0FDFA;
  color: var(--brand-strong);
  font-weight: 800;
  white-space: nowrap;
}
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }
.prose strong {
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--brand-soft) 62%);
  box-shadow: inset 0 -1px 0 var(--brand-soft);
}
.prose blockquote {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  border-left: 3px solid var(--ink-4);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: .9688rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose code {
  padding: .1em .38em;
  border-radius: 5px;
  background: #F1F5F9;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, "D2Coding", monospace;
  font-size: .9em;
}
.prose figure { margin: 1.8em 0; }
.prose figcaption {
  margin-top: .6rem;
  color: var(--ink-3);
  font-size: .8438rem;
  text-align: center;
  line-height: 1.6;
}
.prose .infographic img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.table-scroll { overflow-x: auto; margin-bottom: 1.6em; }
.table-scroll table { margin-bottom: 0; min-width: 520px; }

.post-note {
  margin: 2.6em 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.75;
}
.post-note h2 {
  margin: 0 0 .55rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding-left: 0;
}
.post-note h2::before { display: none; }
.post-note p { margin: 0 0 .6em; }
.post-note p:last-child { margin-bottom: 0; }
.post-note .tags { color: var(--ink-3); }

.post-nav {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .post-nav { grid-template-columns: 1fr 1fr; }
}
.post-nav a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease;
}
.post-nav a:hover { border-color: var(--brand); color: var(--ink); }
.post-nav .dir { display: block; color: var(--ink-3); font-size: .8125rem; margin-bottom: .2rem; }
.post-nav .ttl { font-weight: 700; font-size: .9688rem; line-height: 1.5; }
.post-nav .next { text-align: right; }

.related { border-top: 1px solid var(--line-soft); margin-top: 56px; }

/* ---------------- 버튼 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.3rem;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .9688rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-strong); }
.btn-ghost:hover { background: var(--bg-mint); color: var(--brand-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------------- 안내 상자 / 광고 ---------------- */
.notice {
  margin: 56px 0 0;
  padding: 28px 28px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .12), transparent 55%),
    var(--bg-soft);
  border: 1px solid var(--line);
}
.notice h2 { margin: 0 0 .7rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.notice p { margin: 0 0 .7em; color: var(--ink-2); font-size: .9688rem; }
.notice p:last-child { margin-bottom: 0; }

.ad-slot {
  margin: 30px 0;
  padding: 8px 0;
  text-align: center;
  min-height: 100px;
}
.ad-slot .ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-4);
  font-size: .75rem;
  letter-spacing: .12em;
}

/* ---------------- 정적 페이지 ---------------- */
.page { max-width: var(--reading); margin: 0 auto; }
.page-head { padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 3.4vw, 2.1rem); letter-spacing: -0.04em; }
.page-head p { margin: 0; color: var(--ink-3); font-size: .9688rem; }
.page .prose { padding-top: 24px; }
.page .prose h2 { font-size: 1.28rem; margin-top: 2em; }
.page .prose h3 { font-size: 1.08rem; }

.contact-box {
  margin: 1.5em 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.contact-box + .contact-box { margin-top: .8em; }
.contact-box .key { display: block; color: var(--ink-3); font-size: .8125rem; margin-bottom: .15rem; }
.contact-box .val { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------------- 바닥글 ---------------- */
.site-footer {
  margin-top: 40px;
  padding: 44px 0 40px;
  background: #0B1220;
  color: #94A3B8;
  font-size: .9375rem;
  line-height: 1.75;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 34em; }
.footer-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 10px;
  background: linear-gradient(140deg, #10B981, #0F766E);
  color: #052E2B;
  font-size: .85rem;
  font-weight: 900;
}
.footer-brand strong { display: block; color: #F8FAFC; font-size: 1.05rem; letter-spacing: -0.02em; }
.footer-brand p { margin: .25rem 0 0; font-size: .875rem; color: #94A3B8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: #CBD5E1; text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: #5EEAD4; text-decoration: underline; }
.footer-legal {
  margin-top: 22px;
  color: #64748B;
  font-size: .8438rem;
}
.footer-legal p { margin: 0 0 .4em; }

/* ---------------- 404 ---------------- */
.center-box { max-width: 620px; margin: 72px auto; text-align: center; }
.center-box .eyebrow { color: var(--brand); letter-spacing: .3em; }
.center-box h1 { font-size: 1.9rem; margin: 0 0 .6rem; letter-spacing: -0.03em; }
.center-box p { color: var(--ink-2); }

/* ---------------- 모바일 ---------------- */
@media (max-width: 860px) {
  .feature-link { grid-template-columns: 1fr; }
  .feature-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
  }
  .feature-issue { font-size: .6875rem; }
  .feature-issue strong { display: inline; margin: 0 0 0 .4rem; font-size: 1.3rem; }
  .feature-meta { text-align: right; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-note { display: none; }
  .hero { padding: 40px 0 40px; }
  .hero-stats { gap: 10px 22px; }
  .feature { margin-top: -26px; }
  .feature-main { padding: 24px 22px; }
  .section { padding-top: 44px; }
  .post-head h1 { font-size: 1.65rem; }
  .prose h2 { font-size: 1.28rem; }
  .card-link { padding: 20px 20px 18px; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }
  .nav a { padding: 0 .62rem; font-size: .875rem; }
  .nav .nav-rss { display: none; }
}

@media print {
  .site-header, .site-footer, .post-nav, .ad-slot, .read-progress { display: none; }
  body { font-size: 11pt; }
}

/* 코드 블록 */
.prose pre.code {
  margin: 0 0 1.5em;
  padding: 16px 18px;
  border-radius: 12px;
  background: #0F172A;
  color: #E2E8F0;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
}
.prose pre.code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

/* 모바일에서는 머리말이 화면을 너무 많이 차지하므로 고정하지 않습니다. */
@media (max-width: 640px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
}
