/* site.css — 사이트 개편 새 화면의 공통 틀 (2026-10-31): 상단 글자 메뉴 · 허브 · 요소 페이지 · 소개 · 푸터
   값은 theme-editorial.css 토큰으로만 쓴다. 문구 기준 docs/사이트개편_문구집.md */
* { box-sizing: border-box; margin: 0; padding: 0; }
html body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }

.yj-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 88px; }
.yj-page-head { text-align: center; margin-bottom: 36px; }
.yj-page-kicker { font-size: 13px; font-weight: 700; color: var(--ed-accent); margin-bottom: 8px; }
.yj-page-head h1 { font-family: var(--ed-serif); font-size: clamp(28px, 5vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.35; color: var(--ed-ink); }
.yj-page-head p.lead { margin-top: 12px; font-size: 17px; line-height: 1.8; color: var(--ed-sub); }
.yj-block { margin-top: 44px; }
.yj-block h2 { font-family: var(--ed-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.45; color: var(--ed-ink); margin-bottom: 12px; }
.yj-block p { font-size: 17px; line-height: 1.85; color: var(--ed-text); margin-bottom: 12px; }
.yj-block .note { font-size: 15px; line-height: 1.75; color: var(--ed-sub); }

.yj-six-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.yj-six-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-md, 8px); color: inherit; text-decoration: none; transition: border-color var(--ed-t-fast) ease; }
.yj-six-card:hover { border-color: var(--ed-ink); }
.yj-six-card .char { font-family: var(--ed-serif); font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--ed-ink); }
.yj-six-card .name { margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--ed-ink); }
.yj-six-card .def { margin: 6px 0 10px; font-size: 15px; line-height: 1.65; color: var(--ed-sub); }
.yj-six-card .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ed-accent); }
@media (max-width: 480px) { .yj-six-grid { grid-template-columns: 1fr; } }

.yj-stack-fig { display: block; width: 100%; max-width: 420px; margin: 8px auto 16px; color: var(--ed-ink); }
.yj-tools { display: grid; gap: 10px; }
.yj-tool { display: block; padding: 16px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-md, 8px); color: inherit; text-decoration: none; }
.yj-tool:hover { border-color: var(--ed-ink); }
.yj-tool strong { display: block; font-size: 16px; color: var(--ed-ink); margin-bottom: 4px; }
.yj-tool span { display: block; font-size: 15px; line-height: 1.7; color: var(--ed-sub); }
.yj-tool em { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ed-accent); }

.yj-el-char { font-family: var(--ed-serif); font-size: 56px; font-weight: 600; line-height: 1.15; color: var(--ed-ink); }
.yj-el-def { margin-top: 10px; font-family: var(--ed-serif); font-size: 18px; font-weight: 500; line-height: 1.7; color: var(--ed-ink); }
.yj-rows { list-style: none; border-top: 1px solid var(--ed-line-strong); }
.yj-rows > li { display: flex; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--ed-line); font-size: 17px; line-height: 1.75; color: var(--ed-text); }
.yj-rows .where { flex: none; min-width: 3.2em; padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--ed-accent); }
.yj-links { list-style: none; border-top: 1px solid var(--ed-line-strong); }
.yj-links li { border-bottom: 1px solid var(--ed-line); }
.yj-links a { display: block; min-height: 44px; padding: 12px 2px; font-size: 16px; line-height: 1.6; color: var(--ed-ink); text-decoration: none; }
.yj-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.yj-links small { display: block; font-size: 13px; color: var(--ed-muted); }
.yj-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ed-ink); text-underline-offset: 4px; }
.yj-safety { margin-top: 20px; padding: 16px; border: 1px solid var(--ed-ink); border-radius: var(--ed-r-md, 8px); font-size: 16px; line-height: 1.8; color: var(--ed-ink); }
.yj-safety a { color: var(--ed-ink); font-weight: 700; text-underline-offset: 3px; }
.yj-next { display: block; margin-top: 44px; padding: 18px; border-top: 1px solid var(--ed-ink); color: inherit; text-decoration: none; }
.yj-next p { font-size: 16px; line-height: 1.75; color: var(--ed-sub); }
.yj-next strong { display: block; margin-top: 6px; font-size: 17px; color: var(--ed-ink); }

.yj-promise { display: grid; gap: 10px; }
.yj-promise > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--ed-line); font-size: 16px; line-height: 1.7; color: var(--ed-text); }
.yj-promise .h { font-size: 13px; font-weight: 700; color: var(--ed-accent); padding: 0 2px 8px; }
@media (max-width: 640px) { .yj-promise > div { grid-template-columns: 1fr; gap: 4px; } .yj-promise .h { display: none; } }
.yj-help { list-style: none; margin-top: 8px; }
.yj-help li { padding: 12px 2px; border-bottom: 1px solid var(--ed-line); font-size: 16px; line-height: 1.7; color: var(--ed-text); }
.yj-help strong { font-size: 18px; color: var(--ed-ink); margin-right: 6px; }
.yj-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yj-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-full); font-size: 15px; font-weight: 500; color: var(--ed-ink); text-decoration: none; }
.yj-btn:hover { border-color: var(--ed-ink); }
.yj-btn.primary { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-on-ink); }

@media (max-width: 640px) { .yj-page { padding: 32px 20px 80px; } }

.yj-novel-head { max-width: 720px; margin: 0 auto; padding: 48px 24px 8px; }
.yj-novel-btns { justify-content: center; margin-top: 20px; }
.yj-open-range a { color: var(--ed-ink); text-underline-offset: 3px; }

/* 홈 (P4) */
.yj-home { max-width: 720px; margin: 0 auto; padding: 8px 24px 72px; }
.yj-home-block { margin-top: 44px; }
.yj-home-block h2 { font-family: var(--ed-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.45; color: var(--ed-ink); margin-bottom: 8px; }
.yj-home-block .note { font-size: 15px; line-height: 1.75; color: var(--ed-sub); margin-bottom: 14px; }
.yj-home-after { margin: 14px 0 0 !important; }
.yj-scenes { border-top: 1px solid var(--ed-line-strong); }
.yj-scene { display: flex; gap: 10px; min-height: 44px; padding: 14px 2px; border-bottom: 1px solid var(--ed-line); color: inherit; text-decoration: none; }
.yj-scene:hover .text { text-decoration: underline; text-underline-offset: 4px; }
.yj-scene .where { flex: none; min-width: 2.6em; padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--ed-accent); }
.yj-scene .text { font-size: 17px; line-height: 1.75; color: var(--ed-ink); }
.yj-home-note-first { display: block; padding: 4px 2px 18px; color: inherit; text-decoration: none; }
.yj-home-quote { font-family: var(--ed-serif); font-size: 19px; font-weight: 500; line-height: 1.7; color: var(--ed-ink); margin-bottom: 8px; }
/* 홈 머리: 첫 화면에 첫 장면이 보이게 짧게 */
html body .hero.yj-home-hero { padding: 28px 24px 4px; }
.yj-home-hero .hero-main-title { margin-bottom: 0; }
.yj-home-lead { max-width: 560px; margin: 12px auto 0; font-size: 17px; line-height: 1.75; color: var(--ed-sub); word-break: keep-all; }
.yj-home-small { margin-top: 8px; font-size: 14px; color: var(--ed-muted); }
.yj-home-hero .yj-btn-row { justify-content: center; margin-top: 16px; }
/* 게시판: 상단 메뉴가 길을 맡으므로 탭 줄은 숨긴다 (요소와 ?track= 주소는 그대로) */
html body .track-switcher-wrap { display: none; }
@media (max-width: 640px) { .yj-home { padding: 4px 20px 64px; } }
