:root {
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --body: #333d4b;
  --line: #e5e8eb;
  --bg: #ffffff;
  --bg-2: #f2f4f6;
  --brand: #ff4500;
  --w-text: 720px;
  --w-media: 960px;
  --w-wide: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { overflow-x: clip; font-family: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.01em; color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 헤더 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.top-in { max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; }
.brand img { width: 96px; height: auto; }
.brand span { font-weight: 700; font-size: 17px; padding-left: 12px; border-left: 1.5px solid var(--ink); line-height: 1; }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
/* 카테고리: 로고 아래 한 줄. 마우스를 올리면 뒤에 회색 블록이 켜짐 */
.top-nav { max-width: var(--w-wide); margin: 0 auto; padding: 14px 24px 14px 8px; display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { color: #333; padding: 8px 16px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.top-nav a:hover { background: var(--bg-2); color: var(--ink); }
.top-nav a.on { background: var(--bg-2); color: var(--brand); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); }
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(.94); }
.btn-dark { background: #000; }
.btn-dark:hover { background: #333; filter: none; }
.btn-soft { background: var(--bg-2); color: var(--ink); font-size: 16px; padding: 13px 48px; }

/* 홈 — 썸네일 머리줄(라벨 ─── 날짜)을 공통 모티프로 쓴다 */
.list { max-width: var(--w-wide); margin: 0 auto; padding: 32px 24px 96px; }
.list > .section:first-child { margin-top: 24px; }
.headline { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font-size: 14px; font-weight: 500; }
.headline-label { color: var(--brand); font-weight: 700; letter-spacing: .02em; }
.headline-date { color: var(--ink); }

.feature-wrap { --w: min(1152px, 100vw - 48px); position: relative; }
.feature-wrap:not([data-count="1"]) { --w: min(1080px, 100vw - 220px); width: 100vw; margin-left: calc(50% - 50vw); }
.feature-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.feature-wrap:not([data-count="1"]) .feature-track { padding: 0 calc((100vw - var(--w)) / 2); }
.feature-track::-webkit-scrollbar { display: none; }
.feature { flex: 0 0 var(--w); scroll-snap-align: center; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: stretch; padding: 24px; border-radius: 24px; background: var(--bg-2); transition: opacity .35s, transform .35s; }
.feature-wrap:not([data-count="1"]) .feature:not(.on) { opacity: .4; transform: scale(.94); cursor: pointer; }
.feature:not(.on) * { pointer-events: none; }
.arrow { all: unset; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background .2s, color .2s, opacity .2s; }
.arrow.prev { left: calc((100vw - var(--w)) / 2 - 24px); }
.arrow.next { right: calc((100vw - var(--w)) / 2 - 24px); }
.arrow:hover { background: var(--ink); color: #fff; }
.arrow:disabled { opacity: 0; pointer-events: none; }
.arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.count { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); font-weight: 600; }
.feature-img { border-radius: 16px; overflow: hidden; min-height: 300px; background: #fff; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-img:hover img { transform: scale(1.02); }
.feature-body { padding: 16px 32px 16px 0; align-self: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); }
.feature h1 { margin-top: 12px; font-size: 34px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.feature h1:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.feature-excerpt { margin-top: 18px; font-size: 17px; line-height: 1.8; color: var(--ink-2); max-height: 9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.feature .btn { margin-top: 8px; }

.section { margin-top: 64px; }
.section-title { margin-top: 20px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }


.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.card { display: flex; flex-direction: column; }
.card[hidden], .tl-item[hidden], .tl-month[hidden] { display: none; }
.card-img { aspect-ratio: 1200 / 630; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img, .card-body { padding-top: 14px; }
.kicker { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.kicker b { color: var(--brand); font-weight: 600; }
.card h3 { margin-top: 12px; font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.chip { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); }

/* 타임라인 (인블로그 시절 목록 형식을 이어받음) */
.timeline { margin-top: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1.5px; background: var(--line); }
.tl-month { position: relative; padding: 36px 0 8px 32px; font-size: 14px; font-weight: 700; color: var(--brand); }
.tl-month::before { content: ""; position: absolute; left: 1px; top: 39px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #fff; }
.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr 152px; gap: 32px; align-items: start; padding: 24px 0 24px 32px; border-bottom: 1px solid var(--line); }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 33px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #fff; }
.tl-date { font-size: 15px; font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; }
/* 마우스를 올리면: 세로선이 그 글까지 주황으로 차오르고, 점이 커지며 한 번 퍼진다 */
.tl-progress { position: absolute; left: 7px; top: 0; width: 1.5px; height: 0; background: var(--brand); z-index: 1; transition: height .45s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.tl-month, .tl-item { z-index: 2; }
.tl-item::before { transition: background .25s, transform .25s; }
.tl-item::after { content: ""; position: absolute; left: 4px; top: 33px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; pointer-events: none; }
.tl-date { transition: color .25s; }
@media (hover: hover) {
  .tl-item:hover::before, .tl-item:focus-visible::before { background: var(--brand); transform: scale(1.6); }
  .tl-item:hover::after, .tl-item:focus-visible::after { animation: tlPulse .9s ease-out; }
  .tl-item:hover .tl-date, .tl-item:focus-visible .tl-date { color: var(--brand); }
}
@keyframes tlPulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(4); } }
.tl-item:focus-visible { outline: none; }
.tl-body .kicker { border: 0; padding: 0; justify-content: flex-start; }
.tl-body h3 { margin-top: 6px; font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.tl-item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.tl-body p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }

/* 글 */
.post { padding: 72px 24px 48px; }
.post-head { max-width: 860px; margin: 0 auto; text-align: center; }
.post-head h1 { font-size: 44px; font-weight: 700; line-height: 1.36; letter-spacing: -0.03em; }
.meta { margin-top: 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--ink-3); }
.meta i { width: 1px; height: 12px; background: var(--line); }
.meta a:hover { color: var(--ink); }
.link-btn { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; font-weight: 500; }
.link-btn::after { content: " ↗"; }
.post-hero { max-width: var(--w-media); margin: 48px auto 0; }
.post-hero img { width: 100%; border-radius: 20px; }

/* 본문 */
.prose { max-width: var(--w-text); margin: 64px auto 0; font-size: 17px; line-height: 2; color: var(--body); }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { margin-top: 3.2em; font-size: 26px; line-height: 1.45; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { margin-top: 2.6em; font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.prose h4 { margin-top: 2em; font-size: 18px; font-weight: 600; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .9em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li > p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3.5em 0; }
.prose mark { padding: 2px 1px; }
.prose figure { margin-top: 2.6em; margin-bottom: 2.6em; max-width: 100%; }
.prose figure img { border-radius: 14px; margin: 0 auto; }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.prose > p > img { border-radius: 14px; margin: 1.6em auto; }
.prose blockquote { background: var(--bg-2); border-radius: 14px; padding: 22px 26px; color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.prose blockquote > * + * { margin-top: .6em; }
.prose blockquote strong { color: var(--ink); }
.prose call-out { display: flex !important; align-items: flex-start !important; gap: 12px; background: var(--bg-2); border-radius: 14px; padding: 22px 24px; font-size: 16px; line-height: 1.85; }
.prose call-out > p[data-type="emoji"] { margin: 0 !important; font-size: 20px; line-height: 1.5; }
.prose call-out .content { flex: 1; min-width: 0; }
.prose call-out .content > * + * { margin-top: .6em; }
.prose call-out ol, .prose call-out ul { padding-left: 1.2em; }
.prose p[data-type="emoji"] { display: inline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.65; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; min-width: 90px; }
.prose th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose th p, .prose td p { margin: 0; }

.cta { max-width: var(--w-text); margin: 80px auto 0; text-align: center; padding: 40px 24px; border-radius: 20px; background: var(--bg-2); }
.cta p { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; }
.cta .btn { font-size: 16px; padding: 13px 26px; }
.post-end { max-width: var(--w-text); margin: 48px auto 0; text-align: center; }

.related { max-width: var(--w-wide); margin: 48px auto 0; padding: 64px 24px 96px; border-top: 1px solid var(--line); }
.related > h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.related .grid { margin-top: 28px; }

.notfound { max-width: var(--w-text); margin: 0 auto; padding: 120px 20px; text-align: center; }
.notfound h1 { font-size: 28px; }
.notfound p { margin: 12px 0 28px; color: var(--ink-2); }

/* 푸터 */
.foot { background: #f9fafb; color: var(--ink-3); font-size: 13.5px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--w-wide); margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-in img { filter: grayscale(1) brightness(.4); opacity: .7; }
.foot-info { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1; }
.foot-copy { width: 100%; font-size: 12.5px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .arrow { display: none; }
  .feature-body { padding: 0 8px 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .tl-item { grid-template-columns: 52px 1fr 128px; gap: 20px; }
  .post-head h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .top-in { padding: 0 16px; height: 56px; }
  .brand img { width: 84px; }
  .brand span { font-size: 15px; padding-left: 10px; }
  .btn { font-size: 14px; padding: 8px 14px; }
  .list { padding: 12px 16px 72px; }
  .section { margin-top: 72px; }
  .feature-wrap { --w: calc(100vw - 32px); }
  .feature-wrap:not([data-count="1"]) { --w: calc(100vw - 80px); }
  .feature-track { gap: 10px; }
  .feature { border-radius: 18px; padding: 12px; }
  .feature h1 { font-size: 24px; }
  .feature-excerpt { font-size: 15px; }
  .section-title { font-size: 24px; }
  .tl-item { grid-template-columns: 1fr 84px; gap: 14px; padding: 20px 0 20px 28px; }
  .tl-date { display: none; }
  .tl-body h3 { font-size: 17px; }
  .tl-body p { display: none; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .post { padding: 44px 16px 32px; }
  .post-head { text-align: left; }
  .post-head h1 { font-size: 28px; }
  .meta { justify-content: flex-start; font-size: 14px; }
  .post-hero { margin-top: 32px; }
  .post-hero img { border-radius: 14px; }
  .prose { margin-top: 40px; font-size: 16.5px; line-height: 1.9; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 19px; }
  .prose figure { width: 100% !important; }
  .prose blockquote, .prose call-out { padding: 18px; }
  .cta { margin-top: 56px; padding: 32px 20px; }
  .related { padding: 48px 16px 72px; }
  .related > h2 { font-size: 23px; }
}

.list-tools { display: flex; align-items: center; gap: 20px; }
.timeline { margin-top: 0; }
@media (max-width: 960px) {
  .feature-img { min-height: 0; aspect-ratio: 3 / 2; }
  .feature-body { padding: 0 8px 8px; }
}
@media (max-width: 600px) {
  .top-nav { padding: 6px 16px 10px 4px; gap: 4px; font-size: 14px; }
  .top-nav a { padding: 7px 12px; }
}

/* 보기 전환: 타임라인 / 액자형 */
.view-toggle { display: flex; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 9px; }
.view-toggle button { all: unset; cursor: pointer; width: 30px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-3); transition: background .2s, color .2s; }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.view-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.views[data-view="timeline"] > .grid, .views[data-view="grid"] > .timeline { display: none; }

/* 헤더 검색 */
button.icon-btn { all: unset; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); cursor: pointer; }
button.icon-btn:hover, button.icon-btn[aria-expanded="true"] { background: var(--bg-2); }
button.icon-btn:focus-visible { outline: 2px solid var(--brand); }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.search-in { max-width: 760px; margin: 0 auto; padding: 20px 24px 24px; }
.search-in input { width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); outline: 0; font: inherit; font-size: 20px; padding: 8px 0 12px; background: none; color: var(--ink); }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: 14px 12px; border-radius: 10px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--bg-2); outline: 0; }
.search-results b { display: block; font-size: 16px; font-weight: 600; }
.search-results span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .none { padding: 14px 12px; color: var(--ink-3); }
.search-in input::-webkit-search-cancel-button { -webkit-appearance: none; }

html { scrollbar-gutter: stable; }
html.inquiry-open { overflow: hidden; background-color: #4d4d4d; }
#inquiry-dialog {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: transparent; overflow: hidden;
}
#inquiry-dialog::backdrop { background: transparent; }
#inquiry-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.inquiry-loading {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: rgb(0 0 0 / 70%);
}
.inquiry-loading[hidden] { display: none; }
.inquiry-loading > div { background: #fff; border-radius: 14px; padding: 24px; }
.inquiry-loading a, .inquiry-loading button { margin-right: 12px; text-decoration: underline; }
