/* ══════════════════════════════════════════════════════════════
   moonkimvision — 쌍둥이 테마
   규칙: 크림 종이 + 먹색 선 + 주황 한 점 (쌍둥이 손목 밴드 색)
   캐릭터 설정: _data/twins.yml
   ══════════════════════════════════════════════════════════════ */

:root {
  --cream: #FFF6E5;      /* 캐릭터 이미지 배경과 같은 색 */
  --cream-2: #F8EAD0;
  --paper: #FFFFFF;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6b665d;
  --gray: #b9b5ae;
  --orange: #F57C00;     /* 유일한 색 */
  --orange-soft: #FFE0B2;
  --bro-bubble: #FFE3BF; /* 동생 자막색 #FFB74D 계열 */
  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 18px;
  --display: "Black Han Sans", "Noto Sans KR", sans-serif;
  --body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1120px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ── 언어 전환 (data-lang 은 head 스크립트가 설정) ─────────── */
html[data-lang="ko"] .lang-en,
html[data-lang="ko"] .lang-en-el,
html[data-lang="en"] .lang-ko,
html[data-lang="en"] .lang-ko-el { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 229, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-faces { display: inline-flex; }
.brand-faces img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--cream);
}
.brand-faces img + img { margin-left: -10px; }
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 6px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; color: var(--ink-2);
  border: 2px solid transparent; transition: background .15s, border-color .15s;
}
.site-nav a:hover { background: var(--cream-2); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.lang-switcher { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-btn {
  padding: 4px 12px; border: 0; background: var(--paper); cursor: pointer;
  font-size: 0.8rem; font-weight: 700;
}
.lang-btn + .lang-btn { border-left: 2px solid var(--ink); }
.lang-btn.active { background: var(--orange); color: var(--ink); }

/* ── Buttons & links ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: var(--line); border-radius: 999px;
  font-weight: 900; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }

.link-more { font-weight: 900; text-decoration: none; border-bottom: 3px solid var(--orange); }
.link-quiet { font-size: 0.85rem; color: var(--muted); }
.empty-msg { color: var(--muted); }

/* ── Type helpers ────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  background: var(--orange); padding: 2px 10px; border-radius: 6px; margin-bottom: 14px;
}
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; }
.section-lead { margin-top: 10px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 36px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-kicker { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 16px; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); border-top: var(--line); border-bottom: var(--line); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink .section-lead { color: var(--gray); }
.paper { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 누나 얼굴 스탬프가 좌하단으로 흐르는 배경 (영상 시리즈의 bg_face_loop 와 같은 연출) */
.stamp-drift {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../images/twins/stamp-tile.webp") 0 0 / 240px 240px repeat;
  opacity: 0.13;
  animation: drift 30s linear infinite;
}
@keyframes drift { to { background-position: -240px 240px; } }

/* ── Home hero ───────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: var(--line); }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: end; gap: 24px; padding-top: 64px;
}
.hero-copy { padding-bottom: 88px; }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-title mark {
  background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
}
.hero-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stage { position: relative; height: 560px; }
.hero-twin {
  position: absolute; bottom: -2px; height: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; transform-origin: bottom center; transition: transform .2s;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
          mask-image: linear-gradient(#000 82%, transparent);
}
.hero-twin img { height: 100%; width: auto; }
.hero-twin:hover { transform: translateY(-6px); }
.hero-twin:active { transform: translateY(2px) scaleY(0.98); }
.hero-sister { left: 8%; height: 80%; z-index: 2; }
.hero-brother { right: 4%; height: 85%; }
.stage-hint {
  position: absolute; right: 0; bottom: 18px; z-index: 3;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px;
}

/* 말풍선 */
.bubble {
  position: absolute; z-index: 4; max-width: 230px;
  background: var(--paper); border: var(--line); border-radius: 20px;
  padding: 10px 18px; font-weight: 900; font-size: 1.15rem; line-height: 1.35;
  box-shadow: 3px 3px 0 var(--ink);
}
.bubble::after {
  content: ""; position: absolute; bottom: -13px; width: 20px; height: 20px;
  background: inherit; border-right: var(--line); border-bottom: var(--line);
}
.bubble-left { left: 2%; top: 22px; }
.bubble-left::after { right: 34px; transform: rotate(45deg) skew(10deg, 10deg); }
.bubble-right { right: 0; top: 6px; background: var(--bro-bubble); }
.bubble-right::after { left: 34px; transform: rotate(45deg) skew(10deg, 10deg); }
.bubble.pop { animation: pop .28s ease-out; }
@keyframes pop { 0% { transform: scale(.85); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* 대사 띠 */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; border-bottom: var(--line); }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-size: 1.35rem; padding: 12px 22px; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.ticker-track span::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
  margin-left: 44px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Twin cards ──────────────────────────────────────────── */
.twin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.twin-card {
  display: grid; grid-template-columns: 42% 1fr; text-decoration: none;
  background: var(--paper); border: var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  height: 340px;
}
.twin-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.twin-card-art { position: relative; background: var(--cream); border-right: var(--line); overflow: hidden; }
.twin-card-art::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); top: 14%; left: 11%;
}
.twin-card-brother .twin-card-art::before { background: var(--ink); }
.twin-card-art img {
  position: absolute; left: 50%; top: 6%; height: 175%; width: auto; max-width: none;
  transform: translateX(-50%); transition: transform .2s;
}
.twin-card-sister .twin-card-art img { transform: translateX(-50%) scaleX(-1); }
.twin-card:hover .twin-card-art img { top: 3%; }
.twin-card-body { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; }
.twin-card-badge { align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: var(--muted); border: 1.5px solid var(--gray); border-radius: 999px; padding: 0 10px; }
.twin-card-name { font-family: var(--display); font-size: 2.6rem; line-height: 1.1; }
.twin-card-role { font-weight: 900; color: var(--orange); }
.twin-card-line { color: var(--ink-2); flex: 1; }
.twin-card-more { font-weight: 900; border-bottom: 3px solid var(--orange); align-self: flex-start; }

/* ── Chat bubbles (마크다운·카드 공용) ───────────────────── */
.chat { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.chat-row { display: flex; align-items: flex-end; gap: 10px; }
.chat-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--ink); background: var(--cream);
}
.chat-bubble {
  position: relative; max-width: min(560px, 82%);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px;
  padding: 8px 16px 10px; font-weight: 400; line-height: 1.6; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.chat-name { display: block; font-size: 0.72rem; font-weight: 900; color: var(--muted); letter-spacing: 0.02em; }
.chat-brother { flex-direction: row-reverse; }
.chat-brother .chat-bubble { background: var(--bro-bubble); border-radius: 18px 18px 4px 18px; }
.chat-brother .chat-name { text-align: right; }
.chat-sm { margin: 18px 0; gap: 10px; }
.chat-sm .chat-avatar { width: 38px; height: 38px; }
.chat-sm .chat-bubble { font-size: 0.92rem; padding: 6px 14px 8px; }

/* ── Duo formula ─────────────────────────────────────────── */
.formula { list-style: none; display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: 20px; }
.formula-step {
  position: relative; border: 2.5px solid var(--cream); border-radius: var(--radius);
  padding: 28px 22px 18px;
}
.formula-step h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.formula-num {
  position: absolute; top: -18px; left: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-family: var(--display); font-size: 1.2rem;
  display: grid; place-items: center; border: 2.5px solid var(--cream);
}
.formula-silence { font-family: var(--display); font-size: 3rem; color: var(--gray); letter-spacing: 0.2em; line-height: 1.6; }
.section-ink .chat-name { color: var(--muted); }

/* ── App cards ───────────────────────────────────────────── */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.app-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 28px 26px 24px; overflow: hidden;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--app-color, var(--orange)); border-bottom: var(--line); }
.app-card-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 14px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; border: var(--line); flex-shrink: 0; }
.app-platform { font-size: 0.75rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.app-name { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.app-tagline { font-weight: 700; color: var(--ink-2); }
.app-summary { color: var(--ink-2); margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--ink); }
.app-card .chat { flex: 1; }
.app-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.app-actions .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ── Post cards ──────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.post-card-thumb {
  height: 150px; display: grid; place-items: center; border-bottom: var(--line);
  background: var(--app-color, var(--cream));
  background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2.5px);
  background-size: 16px 16px;
}
.post-card-thumb img { width: 76px; height: 76px; border-radius: 20px; border: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.post-card-thumb img.duo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border: 0; border-radius: 0; box-shadow: none; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.post-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.post-card-title { font-weight: 900; font-size: 1.08rem; line-height: 1.45; }
.post-card-excerpt { font-size: 0.88rem; color: var(--muted); flex: 1; }
.post-card-date { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 900; padding: 1px 9px;
  border-radius: 999px; background: var(--cream); border: 1.5px solid var(--ink); color: var(--ink);
}

/* ── Sub-page hero (twins / apps / blog) ─────────────────── */
.page-hero { position: relative; overflow: hidden; border-bottom: var(--line); padding: 72px 0; }
.page-hero-inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.page-hero-compact .page-hero-inner { grid-template-columns: 1.1fr 0.9fr; }
.page-hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; margin-bottom: 18px; }
.page-hero-chat { margin: 0; }
.polaroid {
  background: var(--paper); border: var(--line); padding: 14px 14px 10px; border-radius: 6px;
  box-shadow: var(--shadow-lg); transform: rotate(-3deg); max-width: 440px; justify-self: center;
}
.polaroid img { border: 2px solid var(--ink); aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { font-family: var(--display); font-size: 1.15rem; text-align: center; padding-top: 8px; }

/* ── Compare table ───────────────────────────────────────── */
.compare { overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 140px 1fr 1fr; }
.compare-head { background: var(--ink); color: var(--cream); }
.compare-head a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; text-decoration: none; font-family: var(--display); font-size: 1.4rem; }
.compare-head img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--cream); }
.compare-row { border-top: 1.5px solid var(--cream-2); }
.compare-row dt { padding: 14px 18px; font-weight: 900; background: var(--cream); }
.compare-row dd { padding: 14px 18px; }
.compare-row dd + dd { border-left: 1.5px dashed var(--gray); }
.compare-row dd.span2 { grid-column: span 2; font-weight: 700; }
.compare-row dd.span2::after { content: ""; display: inline-block; width: 26px; height: 12px; margin-left: 8px; border: 2px solid var(--ink); border-radius: 4px; background: var(--orange); vertical-align: middle; }

/* ── Episodes ────────────────────────────────────────────── */
.episode-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: ep; }
.episode {
  background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px;
}
.episode.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.episode-series { font-size: 0.78rem; font-weight: 900; color: var(--muted); }
.soon { color: var(--ink); background: var(--orange); border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.episode-title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.episode-summary { font-size: 0.92rem; color: var(--ink-2); flex: 1; }
.episode-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.episode-lines span { font-size: 0.82rem; font-weight: 900; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 12px 12px 12px 3px; background: var(--paper); }
.episode-lines span:nth-child(even) { background: var(--bro-bubble); border-radius: 12px 12px 3px 12px; }

/* ── Stamps ──────────────────────────────────────────────── */
.stamp-grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; color: var(--gray); }
.stamp img { width: 100%; max-width: 132px; height: auto; transition: transform .2s; }
.stamp:nth-child(odd) img { transform: rotate(-6deg); }
.stamp:nth-child(even) img { transform: rotate(5deg); }
.stamp:hover img { transform: rotate(0) scale(1.08); }

.world-note { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.world-note p { color: var(--ink-2); margin-top: 10px; max-width: 640px; }
.world-swatches { display: flex; }
.world-swatches span { width: 64px; height: 64px; border-radius: 50%; border: var(--line); }
.world-swatches span + span { margin-left: -14px; }

/* ── Character profile ───────────────────────────────────── */
.profile-hero { position: relative; overflow: hidden; border-bottom: var(--line); }
.profile-hero-inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; padding-top: 48px; }
.profile-figure { position: relative; align-self: end; }
.profile-figure::before {
  content: ""; position: absolute; left: 50%; top: 10%; width: 82%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--orange); border: var(--line);
}
.profile-brother .profile-figure::before { background: var(--paper); }
.turnaround {
  position: relative; height: 600px;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
          mask-image: linear-gradient(#000 80%, transparent);
}
.turnaround .pose { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); opacity: 0; transition: opacity .25s; }
.turnaround .pose.is-on { opacity: 1; }
.pose-tabs {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; background: var(--paper); border: var(--line); border-radius: 999px; overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
.pose-tabs button { border: 0; background: none; padding: 6px 16px; font-weight: 900; font-size: 0.85rem; cursor: pointer; }
.pose-tabs button + button { border-left: 2px solid var(--ink); }
.pose-tabs button.is-on { background: var(--ink); color: var(--cream); }
.profile-intro { padding: 24px 0 64px; }
.profile-name { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.profile-role { display: inline-block; margin: 14px 0 18px; font-weight: 900; font-size: 1.05rem; background: var(--ink); color: var(--cream); padding: 4px 14px; border-radius: 999px; }
.profile-oneliner { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; margin-bottom: 16px; }
.profile-desc { color: var(--ink-2); max-width: 560px; }

.profile-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.profile-side { display: grid; gap: 28px; }
.profile-card { padding: 28px 26px; }
.card-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 14px; }
.card-note { font-size: 0.8rem; color: var(--muted); margin: -8px 0 14px; }
.profile-table { display: grid; }
.profile-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1.5px dashed var(--gray); }
.profile-row:first-child { border-top: 0; }
.profile-row dt { font-weight: 900; }
.profile-row dd { color: var(--ink-2); }
.profile-card .chat { margin: 0; }

.stat-list { list-style: none; display: grid; gap: 12px; }
.stat { display: grid; grid-template-columns: 112px 1fr 34px; gap: 10px; align-items: center; }
.stat-label { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
.stat-bar { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); overflow: hidden; }
.stat-fill { position: absolute; inset: 0 auto 0 0; background: var(--orange); border-right: 2px solid var(--ink); }
.stat-ghost { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--muted); opacity: .7; }
.stat-num { font-family: var(--display); text-align: right; }

.duo-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.duo-copy p { color: var(--gray); margin-top: 10px; }
.other-twin {
  position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none;
  width: 240px; height: 260px; border: 2.5px solid var(--cream); border-radius: 24px; overflow: hidden; background: var(--cream);
}
.other-twin img { height: 210%; width: auto; max-width: none; margin-top: 8px; transition: transform .2s; }
.other-twin:hover img { transform: translateY(-6px); }
.other-twin-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; text-align: center;
  background: var(--orange); color: var(--ink); font-weight: 900; border-top: 2.5px solid var(--ink);
}

/* ── Page (정책 문서 등) ──────────────────────────────────── */
.page-wrapper { padding: 56px 24px 88px; }
.page { max-width: 820px; margin: 0 auto; padding: 44px 48px; }
.page-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: var(--line); }
.page-header h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25; }
.page-meta { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.page-content h2 { font-size: 1.3rem; font-weight: 900; margin: 32px 0 12px; }
.page-content h3 { font-size: 1.1rem; font-weight: 900; margin: 26px 0 10px; }
.page-content p  { margin-bottom: 14px; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content hr { border: 0; border-top: 1.5px dashed var(--gray); margin: 28px 0; }
.page-content a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.92rem; }
.page-content th, .page-content td { border: 1.5px solid var(--ink); padding: 8px 10px; text-align: left; }
.page-content th { background: var(--cream); }

.policy-list { list-style: none; margin: 20px 0 !important; display: grid; gap: 12px; }
.policy-list li { margin: 0 !important; }
.policy-list a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px;
  border: var(--line); border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.policy-list a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.policy-list img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); }
.policy-list span { display: flex; flex-direction: column; line-height: 1.4; }
.policy-list small { color: var(--muted); }

/* ── Post ─────────────────────────────────────────────────── */
.post-hero { position: relative; border-bottom: var(--line); padding: 48px 0 56px; background: var(--cream); }
.post-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--app-color, var(--orange)); border-bottom: var(--line); }
.post-hero-inner { max-width: 820px; }
.back-link { display: inline-block; font-weight: 900; font-size: 0.88rem; text-decoration: none; margin-bottom: 18px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.post-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.25; letter-spacing: -0.01em; }
.post-subtitle { margin-top: 10px; font-size: 1.08rem; color: var(--ink-2); font-weight: 400; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.post-hosts { display: inline-flex; }
.post-hosts img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); }
.post-hosts img + img { margin-left: -8px; }

.post-body { max-width: 820px; margin: -28px auto 0; position: relative; }
.post-content { padding: 44px 48px; }
.post-content > :first-child { margin-top: 0; }
.post-content h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.3;
  margin: 44px 0 14px; padding-left: 14px; border-left: 6px solid var(--orange);
}
.post-content h3 { font-size: 1.1rem; font-weight: 900; margin: 28px 0 10px; }
.post-content p  { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 18px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content li::marker { color: var(--orange); }
.post-content strong { background: linear-gradient(transparent 62%, var(--orange-soft) 62%); }
.post-content a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.post-content code { background: var(--cream); border: 1.5px solid var(--ink); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
.post-content pre { background: var(--ink); color: #eee; padding: 20px; border-radius: 12px; overflow-x: auto; margin-bottom: 16px; }
.post-content pre code { background: none; border: 0; padding: 0; }
.post-content blockquote { border-left: 4px solid var(--ink); background: var(--cream); padding: 12px 18px; border-radius: 0 12px 12px 0; margin-bottom: 16px; }
.post-content img { border: var(--line); border-radius: 12px; margin: 8px auto 20px; }
.post-content .chat-avatar { border-radius: 50%; border: 2px solid var(--ink); margin: 0; }

.post-app { max-width: 820px; margin: 56px auto 0; }
.post-nav { max-width: 820px; margin: 40px auto 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-weight: 900;
  padding: 14px 18px; border: var(--line); border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
}
.post-nav-link span { font-size: 0.78rem; color: var(--muted); }
.post-nav-link.next { text-align: right; grid-column: 2; }

/* ── SNS ─────────────────────────────────────────────────── */
.sns { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.sns li { margin: 0 !important; }
.sns-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.sns-icon { width: 22px; height: 22px; flex-shrink: 0; }
.sns-icons .sns-link {
  width: 40px; height: 40px; justify-content: center; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--cream); color: var(--ink);
}
.sns-icons .sns-link:hover { background: var(--orange); }
.sns-buttons { margin-top: 18px !important; }
.sns-buttons .sns-link {
  padding: 8px 18px 8px 12px; border: var(--line); border-radius: 999px; background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.sns-buttons .sns-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.sns-text { display: flex; flex-direction: column; line-height: 1.2; }
.sns-text strong { font-weight: 900; font-size: 0.92rem; }
.sns-text small { font-size: 0.75rem; color: var(--muted); }
.sns-cta { margin-top: 48px; padding-top: 28px; border-top: 2px dashed #4a4a4a; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sns-cta p { font-family: var(--display); font-size: 1.35rem; }
.sns-cta .sns-buttons { margin-top: 0 !important; }
.footer-col .sns { margin-top: 14px !important; }

/* ── 404 ──────────────────────────────────────────────────── */
.notfound { position: relative; overflow: hidden; border-bottom: var(--line); }
.notfound-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: end; padding-top: 48px; }
.notfound-stage { position: relative; height: 500px; }
.notfound-stage img {
  position: absolute; bottom: 0; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
}
.notfound-sister { left: 6%; height: 78%; }
.notfound-brother { right: 6%; height: 84%; }
.notfound-stage .bubble-left { top: 0; max-width: 320px; }
.notfound-stage .bubble-right { top: 30px; }
.notfound-copy { padding-bottom: 72px; }
.notfound-code { font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--orange); -webkit-text-stroke: 2.5px var(--ink); }

/* ── Footer ───────────────────────────────────────────────── */
.footer-peek { position: relative; height: 104px; overflow: hidden; max-width: var(--container); margin: 0 auto; pointer-events: none; }
.peek { position: absolute; top: 6px; height: 132px; width: auto; max-width: none; transition: transform .3s; }
.peek-sister { left: 8%; transform: scaleX(-1); }
.peek-brother { right: 8%; top: -14px; }
.site-footer { font-size: 0.87rem; background: linear-gradient(var(--cream) 104px, var(--ink) 104px); color: #cfc9bd; }
.site-footer > .container { padding-top: 40px; padding-bottom: 26px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 24px; margin-bottom: 24px; }
.footer-col p { margin-bottom: 4px; line-height: 1.6; }
.footer-brand { font-family: var(--display); font-size: 1.3rem; color: var(--cream); margin-bottom: 8px !important; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { color: var(--cream); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.site-footer a { color: var(--cream); }
.footer-bottom { border-top: 1px solid #3a3a3a; padding-top: 16px; text-align: center; color: #8d877b; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .post-grid, .episode-grid { grid-template-columns: repeat(2, 1fr); }
  .twin-grid, .app-grid { grid-template-columns: 1fr; }
  .formula { grid-template-columns: 1fr; gap: 28px; }
  .stamp-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
  .site-nav { order: 3; width: 100%; margin: 0; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex-shrink: 0; padding: 4px 12px; }
  .lang-switcher { margin-left: auto; }

  .section { padding: 60px 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; gap: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-stage { height: 400px; }
  .hero-sister { left: 6%; }
  .hero-brother { right: 2%; }
  .bubble { font-size: 1rem; max-width: 170px; }
  .stage-hint { bottom: 10px; }

  .page-hero { padding: 48px 0; }
  .page-hero-inner, .page-hero-compact .page-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .polaroid { max-width: 300px; }

  .twin-card { grid-template-columns: 38% 1fr; height: 280px; }
  .twin-card-body { padding: 20px 18px; }
  .twin-card-name { font-size: 2rem; }

  .post-grid, .episode-grid { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: 84px 1fr 1fr; }
  .compare-head a { font-size: 1.05rem; padding: 12px; gap: 6px; }
  .compare-head img { width: 32px; height: 32px; }
  .compare-row dt, .compare-row dd { padding: 10px 12px; font-size: 0.9rem; }

  .world-note { grid-template-columns: 1fr; gap: 20px; }

  .profile-hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .turnaround { height: 440px; }
  .profile-intro { padding: 28px 0 48px; }
  .profile-row { grid-template-columns: 88px 1fr; }
  .stat { grid-template-columns: 92px 1fr 30px; }
  .duo-row { grid-template-columns: 1fr; }
  .other-twin { width: 100%; max-width: 320px; }

  .page-wrapper { padding: 28px 16px 64px; }
  .page { padding: 28px 22px; }
  .post-body { margin: -20px 16px 0; }
  .post-content { padding: 28px 22px; }
  .post-app, .post-nav { padding: 0 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .notfound-inner { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .notfound-stage { height: 360px; order: 2; }
  .notfound-copy { padding-bottom: 8px; }
  .sns-cta { flex-direction: column; align-items: flex-start; }
  .peek { height: 104px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .twin-card { grid-template-columns: 1fr; height: auto; }
  .twin-card-art { height: 220px; border-right: 0; border-bottom: var(--line); }
  .twin-card-art img { height: 260%; }
  .hero-stage { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-drift, .ticker-track { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
