/* N-XI 이야기(insights) 공통: 홈페이지와 같은 상단 메뉴·푸터·목록. 글 본문 스타일은 각 글의 .ix 안에 있다. */
:root {
  --s-bg: #fafafa; --s-ink: #0b0c0e; --s-body: #46484d; --s-muted: #74767b; --s-line: #e3e3e5;
  --s-primary: #2d8cff; --s-secondary: #1456d6; --s-grad: linear-gradient(135deg, #2d8cff, #1456d6);
  --s-wrap: 1160px; --s-header-h: 68px;
  --s-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px rgba(16, 24, 40, .08);
  --s-shadow-hover: 0 2px 6px rgba(16, 24, 40, .08), 0 14px 32px rgba(16, 24, 40, .12);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--s-bg); color: var(--s-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--s-primary); outline-offset: 3px; border-radius: 6px; }
.site-wrap { width: min(var(--s-wrap), calc(100% - 40px)); margin: 0 auto; }

/* header (홈페이지와 동일) */
header.site {
  position: sticky; top: 0; z-index: 50; height: var(--s-header-h); box-sizing: border-box;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--s-line);
  font-size: 17px; line-height: 1.7;
}
header.site .site-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
header.site .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
header.site .brand img.mark { height: 22px; width: auto; }
header.site .brand .wordmark { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--s-ink); }
header.site .brand .eq { font-size: 13px; color: var(--s-muted); letter-spacing: .04em; margin-left: 3px; }
header.site .brand img.nxi { height: 20px; width: auto; }
header.site nav.main ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
header.site nav.main a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--s-body); padding: 8px 12px; border-radius: 999px; }
header.site nav.main a:hover { background: rgba(23, 25, 28, .05); color: var(--s-ink); }
header.site nav.main a[aria-current] { color: var(--s-secondary); background: rgba(45, 140, 255, .10); font-weight: 700; }
header.site .btn-primary {
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; background: var(--s-grad); color: #fff; box-shadow: var(--s-shadow); transition: transform .15s ease, box-shadow .2s;
}
header.site .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--s-shadow-hover); }
header.site .menu-btn { display: none; background: #fff; border: 1px solid var(--s-line); color: var(--s-ink); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; font-size: 20px; }

/* 글 위 빵부스러기 · 글 아래 이동 */
.ix .ix-crumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 28px auto 0; padding: 0; max-width: 760px; font-size: 14px; color: var(--s-muted); }
.ix .ix-crumb a { color: var(--s-muted); text-decoration: none; }
.ix .ix-crumb a:hover { color: var(--s-secondary); }
.ix .ix-crumb li { margin: 0; }
.ix .ix-crumb li + li::before { content: "/"; margin-right: 6px; color: var(--s-line); }
.ix .ix-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto 64px; font-size: 15px; font-weight: 700; }
.ix .ix-more a { color: var(--s-secondary); text-decoration: none; }

/* 목록 페이지 */
.list-hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--s-line); padding: 56px 0 48px; }
.list-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 420px at 85% 0%, rgba(45, 140, 255, .12), transparent 60%); }
.list-hero .site-wrap { position: relative; }
.list-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--s-secondary); margin: 0 0 14px; }
.list-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.list-hero p.lead { color: var(--s-body); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.7; max-width: 760px; margin: 18px 0 0; }
.crumb { display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--s-muted); }
.crumb a { color: var(--s-muted); text-decoration: none; }
.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--s-line); }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 56px 0 88px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--s-line); border-radius: 10px; overflow: hidden; box-shadow: var(--s-shadow); transition: box-shadow .2s ease, transform .2s ease; }
.post:hover { box-shadow: var(--s-shadow-hover); transform: translateY(-2px); }
.post img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post .body { padding: 22px 26px 26px; }
.post .no { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--s-secondary); }
.post h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.02em; margin: 8px 0 10px; }
.post p { margin: 0; color: var(--s-muted); font-size: 15px; line-height: 1.7; }
.post .go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--s-secondary); }

/* footer (홈페이지와 동일) */
footer.site { border-top: 1px solid var(--s-line); padding: 44px 0 56px; color: var(--s-muted); font-size: 14px; line-height: 1.7; background: #f1f1f2; }
footer.site .site-wrap { display: grid; gap: 8px; }
footer.site strong { color: var(--s-ink); font-size: 16px; }
footer.site a { color: var(--s-muted); }

@media (max-width: 980px) {
  header.site .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  header.site nav.main { position: absolute; top: var(--s-header-h); left: -20px; right: -20px; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--s-line); display: none; padding: 12px 20px 20px; }
  header.site nav.main.open { display: block; }
  header.site nav.main ul { flex-direction: column; }
  header.site .btn-primary { display: none; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; padding: 32px 0 64px; }
  .list-hero { padding: 36px 0 32px; }
}

/* 페이지 전환 (홈페이지·튜토리얼과 같음) */
header.site { view-transition-name: site-header; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .36s cubic-bezier(.2, .7, .2, 1) both vt-in; }
  ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
