/* ═══════════════════════════════════════════════════
   insights.css — 블로그 인덱스 + 포스트
   shared by /insights/ + /insights/posts/*.html
   ─────────────────────────────────────────────────── */

@import url('../build/tokens.css');

/* ── 인덱스 ─────────────────────────────────────── */
.insights-hero {
  background: #0f1218;
  color: #fafaf7;
  padding: 96px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.insights-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.insights-hero__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c5a572; margin: 0 0 16px;
}
.insights-hero__title {
  font-size: clamp(36px, 5.5vw, 64px); line-height: 1.15; font-weight: 700;
  margin: 0 0 24px; letter-spacing: -0.02em;
}
.insights-hero__title em { font-style: normal; color: #c5a572; }
.insights-hero__lede {
  font-size: 17px; line-height: 1.75; color: rgba(255,255,255,0.72);
  max-width: 720px; margin: 0;
}

.insights-grid {
  background: #0f1218; color: #fafaf7;
  padding: 64px 0 96px;
}
.insights-grid__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.insights-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px; list-style: none; padding: 0; margin: 0;
}
.insights-card {
  background: #1a1f2a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.insights-card:hover {
  transform: translateY(-3px); border-color: rgba(197,165,114,0.4);
}
.insights-card__category {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c5a572; margin: 0 0 14px;
}
.insights-card__title {
  font-size: 22px; line-height: 1.4; font-weight: 700;
  color: #fafaf7; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.insights-card__title a {
  color: inherit; text-decoration: none;
}
.insights-card__title a:hover { color: #c5a572; }
.insights-card__excerpt {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.72); margin: 0 0 18px;
}
.insights-card__meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: rgba(255,255,255,0.60);
  display: flex; gap: 12px;
}

/* ── 포스트 ─────────────────────────────────────── */
.post-hero {
  background: #0f1218; color: #fafaf7;
  padding: 96px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.post-hero__inner {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
}
.post-hero__category {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c5a572; margin: 0 0 18px;
}
.post-hero__title {
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.2; font-weight: 700;
  margin: 0 0 24px; letter-spacing: -0.02em;
}
.post-hero__lede {
  font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.72);
  margin: 0 0 28px;
}
.post-hero__meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: rgba(255,255,255,0.60);
  display: flex; gap: 16px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-body {
  background: #0f1218; color: #fafaf7;
  padding: 64px 0 96px;
}
.post-body__inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
  font-size: 17px; line-height: 1.85;
  color: rgba(255,255,255,0.85);
}
.post-body__inner h2 {
  font-size: 28px; line-height: 1.3; font-weight: 700;
  margin: 56px 0 20px; color: #fafaf7;
  letter-spacing: -0.01em;
}
.post-body__inner h2:first-child { margin-top: 0; }
.post-body__inner h3 {
  font-size: 20px; line-height: 1.4; font-weight: 600;
  margin: 36px 0 14px; color: #c5a572;
}
.post-body__inner p { margin: 0 0 22px; }
.post-body__inner strong { color: #fafaf7; font-weight: 600; }
.post-body__inner em { font-style: normal; color: #c5a572; }
.post-body__inner ul, .post-body__inner ol {
  padding-left: 24px; margin: 0 0 24px;
}
.post-body__inner li { margin: 0 0 10px; }
.post-body__inner blockquote {
  border-left: 3px solid #c5a572;
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic; color: rgba(255,255,255,0.72);
}
.post-body__inner code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; background: rgba(255,255,255,0.06);
  padding: 2px 6px; border-radius: 4px;
  color: #c5a572;
}

.post-footer {
  background: #1a1f2a; padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.post-footer__inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
}
.post-footer__cta {
  font-size: 22px; line-height: 1.45; font-weight: 600;
  color: #fafaf7; margin: 0 0 18px;
}
.post-footer__cta em { font-style: normal; color: #c5a572; }
.post-footer__cta-group {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.post-footer__cta-group .btn-primary,
.post-footer__cta-group .btn-ghost {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all 0.2s;
}
.post-footer__cta-group .btn-primary {
  background: #006241; color: #fafaf7;
}
.post-footer__cta-group .btn-primary:hover { background: #00744d; }
.post-footer__cta-group .btn-ghost {
  background: transparent; color: #fafaf7;
  border: 1px solid rgba(255,255,255,0.24);
}
.post-footer__cta-group .btn-ghost:hover { border-color: #c5a572; color: #c5a572; }
.post-footer__cta-group svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── 모바일 ─────────────────────────────────────── */
@media (max-width: 768px) {
  .insights-hero { padding: 64px 0 48px; }
  .insights-grid { padding: 48px 0 64px; }
  .post-hero { padding: 56px 0 40px; }
  .post-body { padding: 48px 0 72px; }
  .post-body__inner { font-size: 16px; }
  .post-body__inner h2 { font-size: 24px; }
  .post-body__inner h3 { font-size: 18px; }
}

/* SVG safety net (전역) */
svg:not([width]):not([height]) { width: 16px; height: 16px; }
