/* 몽연 개발실 전용 화면.
   /css/base.css·layout.css는 고치지 않고, 개발실 페이지에서만 색 변수와 머리말·바닥말 색을 덮어쓴다.
   글꼴: 사이트 보안 설정(CSP)이 외부 글꼴 주소를 막으므로 Pretendard(SIL OFL 1.1, fonts/LICENSE.txt)를
   이 폴더에 넣어 쓴다. 상용 한글 2,350자 부분 글꼴이라 없는 글자는 Noto Sans KR로 그려진다. */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
body.devlog {
  --bg: #ffffff;
  --bg-deep: #f9fafb;
  --panel: #ffffff;
  --soft: #f2f4f6;
  --line: #e5e8eb;
  --title: #191f28;
  --text: #333d4b;
  --muted: #6b7684;
  --accent: #3182f6;
  --accent-soft: #e8f3ff;
  --lavender: var(--accent);
  --neon: var(--accent);
  --font-sans: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.devlog h1, .devlog h2, .devlog h3 { color: var(--title); }

/* 기본 머리말·바닥말의 어두운 화면용 색을 이 페이지에서만 바꾼다 */
.devlog .site-header { position: relative; padding-block: 18px; border-bottom: 1px solid var(--line); background: #fff; }
.devlog .brand-mark { color: var(--title); }
.devlog .site-nav a { color: var(--muted); }
.devlog .site-nav a:hover, .devlog .site-nav a[aria-current] { color: var(--title); border-color: var(--title); }
@media (max-width: 800px) {
  .devlog .site-nav { top: 72px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
}
.devlog .site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.devlog .footer-nav a:hover { color: var(--title); }
.devlog .hand { color: var(--muted); }
.devlog .copyright, .devlog .footer-biz { color: var(--muted); }
.devlog .footer-biz mark { background: #fff3bf; color: var(--title); }

/* 공통 꼬리표 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.chip.gray { background: var(--soft); color: var(--muted); font-weight: 500; }
.meta { font-size: 14px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; background: var(--accent); color: #fff; }
.btn:hover { background: #1b64da; }
.btn.light { background: var(--accent-soft); color: var(--accent); }
.btn.light:hover { background: #d6e8ff; }

/* ── 목록 화면 ── */
.dl-main { padding-top: 56px; padding-bottom: 96px; }

/* 대표 글 */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero .eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); }
.hero h1 { margin: 12px 0 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.35; }
.hero p.sum { font-size: 17px; line-height: 1.7; color: var(--muted); }
.hero .meta { margin-top: 18px; }
.media { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--soft); }
.media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; right: 14px; top: 14px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(25, 31, 40, 0.72); color: #fff; }

/* 숫자 세 개 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stats div { padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.stats b { display: block; font-size: 26px; line-height: 1.2; color: var(--title); }
.stats span { font-size: 14px; color: var(--muted); }

/* 왼쪽 목차 + 글 목록 */
.dl-body { display: grid; grid-template-columns: 230px 1fr; gap: 64px; margin-top: 88px; align-items: start; }
.side { position: sticky; top: 24px; }
.side-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.prog-tree > li + li { margin-top: 4px; }
.prog-tree > li > a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--title); }
.prog-tree > li > a:hover { background: var(--soft); }
.prog-tree > li > a small { font-size: 12px; font-weight: 500; color: var(--muted); }
/* 아직 글이 없는 프로그램: 링크 없이 흐리게 */
.prog-later { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 15px; font-weight: 600; color: #b0b8c1; }
.prog-later small { font-size: 12px; font-weight: 500; }
.stages { list-style: none; margin: 4px 0 10px 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.stages a { position: relative; display: block; padding: 5px 0 5px 4px; font-size: 14px; color: var(--muted); }
.stages a:hover { color: var(--title); }
.stages a.now { color: var(--title); font-weight: 600; }
.stages a.now::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.stages .later { padding: 5px 0 5px 4px; font-size: 14px; color: #b0b8c1; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.dot.dev { background: var(--accent); }
.dot.soon { background: #f59f00; }
.dot.live { background: #20c997; }
.dot.draft { background: #b0b8c1; }

.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list-head h2 { font-size: 26px; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { padding: 6px 12px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; color: var(--muted); background: none; cursor: pointer; }
.tabs button:hover { background: var(--soft); }
.tabs button[aria-pressed="true"] { background: var(--title); color: #fff; font-weight: 600; }
.row[hidden] { display: none; }

.row { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.45; font-weight: 700; }
.row:hover h3 { color: var(--accent); }
.row p.sum { font-size: 15px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .meta { margin-top: 10px; font-size: 13px; }
.thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--soft); }
/* 썸네일은 영상 비율(16:9) 그대로 둬야 영상 속 글자가 잘리지 않는다 */
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb .play { right: 8px; top: 8px; font-size: 12px; padding: 2px 9px; }
/* 화면 재료가 없는 글: 연한 단색 칸에 한 줄 */
.thumb.text { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 14px; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--accent); background: var(--accent-soft); }
.thumb.text s { color: var(--muted); font-weight: 500; }
.thumb.text.gray { color: var(--muted); background: var(--soft); font-weight: 500; }

.notify { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 56px; padding: 26px 28px; border-radius: 20px; background: var(--soft); }
.notify strong { font-size: 17px; color: var(--title); }
.notify p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.notify .soon { padding: 10px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); background: #fff; }

/* ── 글 화면 ── */
.art { padding-top: 48px; padding-bottom: 96px; }
.col { max-width: 680px; margin-inline: auto; }
.wide { max-width: 920px; margin: 40px auto 0; }
.back { font-size: 15px; color: var(--muted); }
.back:hover { color: var(--title); }
.art-head { margin-top: 28px; }
.art-head h1 { margin: 14px 0 12px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.35; }
.lede { margin-top: 28px; font-size: 21px; line-height: 1.65; color: var(--title); }

/* 본문보다 넓은 둥근 회색 틀 */
.frame { padding: 18px; border-radius: 24px; background: var(--soft); }
.frame video, .frame img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.frame.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frame.pair figure { margin: 0; }
.frame.pair figcaption { margin-top: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); }
.wide > figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
/* 화면 재료가 없는 글의 순서 그림 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; }
.steps li { padding: 22px 16px; border-radius: 14px; background: #fff; text-align: center; font-size: 16px; font-weight: 700; color: var(--title); }
.steps li b { display: block; margin-bottom: 6px; font-size: 13px; color: var(--accent); }
.steps li.on { box-shadow: inset 0 0 0 2px var(--accent); }
.swap { display: grid; gap: 10px; padding: 28px 20px; border-radius: 12px; background: #fff; text-align: center; font-size: 19px; font-weight: 700; color: var(--accent); }
.swap s { color: var(--muted); font-weight: 500; }

.body h2 { margin: 56px 0 16px; font-size: 24px; font-weight: 700; }
.body p { font-size: 17px; line-height: 1.85; }
.body p + p { margin-top: 14px; }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.7; }
.points li:last-child { border-bottom: 0; }
.points strong { display: block; color: var(--title); }
.points span { color: var(--muted); font-size: 15px; }
.body .stats { margin-top: 0; }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.todo li { display: flex; gap: 10px; padding: 10px 0; font-size: 17px; }
.todo li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; border: 2px solid #c9d0d8; border-radius: 5px; }

.product { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 24px; border-radius: 20px; background: var(--soft); }
.product strong { font-size: 17px; color: var(--title); }
.product p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.post-nav a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--title); }
.post-nav a span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.post-nav a:last-child { text-align: right; }
.post-nav a:hover { background: var(--soft); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero .media { order: -1; }
  .dl-body { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .dl-main, .art { padding-top: 32px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .row .thumb { order: -1; }
  .stats b { font-size: 22px; }
  .stats div { padding: 12px; }
  .frame { padding: 10px; border-radius: 16px; }
  .frame.pair { gap: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .lede { font-size: 19px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
}
