/* 몰겜캣 공용 스타일 — 글 페이지(소개·개발 일지·문의)가 같이 쓴다.
   랜딩(index.html)과 같은 팔레트. 페이지마다 CSS를 베끼면 색 하나 고칠 때 여덟 군데를
   고쳐야 해서 한 파일로 뺐다 (2026-09-06). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --paper: #faf6ef;
  --ink: #2b2622;
  --dim: #8a8177;
  --body: #55504a;
  --accent: #6fc79a;
  --card: #ffffff;
  --line: #e8e1d5;
}
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 70px; }

/* 언어 전환 — 다른 페이지와 같은 자리, 같은 모양 */
.lang {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  z-index: 3;
}
.lang button {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  background: none;
  border: 0;
  padding: 6px 13px;
  cursor: pointer;
}
.lang button.on { background: var(--ink); color: #fff; }

/* 머리: 빵부스러기 + 제목 */
.page-head { padding: 54px 0 18px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.crumb { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumb a { color: var(--dim); text-decoration: none; font-weight: 700; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span { margin: 0 6px; }
h1 { font-size: clamp(24px, 6vw, 30px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; }
.subtitle { color: var(--dim); font-size: 14px; margin-top: 8px; }
.meta { font-size: 12.5px; color: var(--dim); margin-top: 10px; }
.meta b { color: var(--accent); font-weight: 800; }

/* 본문 */
article h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 12px; }
article h3 { font-size: 15.5px; font-weight: 800; margin: 26px 0 8px; }
article p { font-size: 15px; line-height: 1.85; color: var(--body); }
article p + p { margin-top: 12px; }
article ul, article ol { padding-left: 22px; margin: 12px 0; }
article li { font-size: 15px; line-height: 1.8; color: var(--body); }
article li + li { margin-top: 6px; }
article strong { color: var(--ink); }
article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
article blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  color: var(--body);
  font-size: 14.5px;
}
article figure { margin: 18px 0; }
article figure img, article figure video {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 28px rgba(43, 38, 34, 0.1);
}
article figcaption { font-size: 12.5px; color: var(--dim); margin-top: 8px; text-align: center; }
article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
article th, article td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
article th { color: var(--dim); font-size: 12.5px; font-weight: 800; }
article td { color: var(--body); }
article code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #f1ece2; padding: 1px 6px; border-radius: 6px; }
.callout {
  margin: 18px 0;
  background: #fff8e6;
  border: 1px solid #f0e2bd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}

/* 글 목록 카드 */
.post-list { list-style: none; padding: 0; }
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.post-card + .post-card { margin-top: 12px; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43, 38, 34, 0.08); }
.post-card .date { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.post-card h2 { font-size: 16.5px; font-weight: 800; margin: 6px 0 6px; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; line-height: 1.7; color: var(--body); }
.post-card .game { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--dim); background: #f4f0e8; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 1px; }

/* 앞뒤 글 */
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.post-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.post-nav a:hover { text-decoration: underline; }
.post-nav .next { margin-left: auto; text-align: right; }

.play-btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: #0d1a13;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(111, 199, 154, 0.45);
}

/* 사이트 공통 푸터 */
.site-footer {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  padding: 40px 20px 0;
  margin-top: 50px;
  border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 8px; }
.site-footer a { color: var(--dim); text-decoration: underline; }
