/* 명인 장기 소개 사이트 — 먹색과 한지, 금색 하나 */
:root {
  --ink: #1b1611;
  --ink-2: #2a231c;
  --night: #14110e;
  --night-2: #1f1a15;
  --paper: #f7f1e6;
  --paper-2: #efe5d2;
  --card: #fffdf8;
  --line: #e3d6c0;
  --muted: #6e6152;
  --gold: #d6a13a;
  --gold-2: #f0c665;
  --gold-ink: #3a2706;
  --seal: #b3261e;
  --green: #1f6b2a;
  --red: #a8261f;
  --serif: 'Noto Serif KR', 'Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap-narrow { width: min(720px, 100% - 32px); margin: 0 auto; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 17, 14, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #3a3027; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f6eedf; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(160deg, #d0392f, var(--seal)); color: #fff4e6; font-family: var(--serif); font-weight: 900; font-size: 19px; box-shadow: inset 0 0 0 1.5px rgba(255, 230, 210, .35); }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #d9cdb9; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--gold-2); }
@media (max-width: 560px) {
  .top .brand-name { display: none; }
  .nav a:not(.btn) { padding: 8px 7px; font-size: 14.5px; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, filter .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(214, 161, 58, .28); }
.btn-dark { background: var(--ink); color: #f8efe0; }
.btn-line { border-color: #cbb999; color: var(--ink); background: transparent; }
.btn-ghost { border-color: rgba(240, 220, 190, .35); color: #f3e8d6; background: rgba(255, 255, 255, .04); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 첫 장 */
.hero { background: radial-gradient(120% 90% at 80% 0%, #3a2a17 0%, var(--night) 55%), var(--night); color: #f4ead9; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 64px 0 72px; }
.eyebrow { margin: 0 0 12px; color: var(--gold-2); font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.22; letter-spacing: -.02em; }
.gold { color: var(--gold-2); }
.hero-sub { margin: 18px 0 28px; font-size: 18px; color: #d8ccb8; max-width: 34em; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: #bfb19b; font-size: 15px; }
.hero-facts b { color: #fff3dc; font-family: var(--serif); font-size: 20px; margin-right: 3px; }
.hero-phone { display: flex; justify-content: center; }
.phone { width: 290px; border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #3b3128, #17130f); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 240, 220, .12); }
.phone img { border-radius: 29px; width: 100%; height: auto; aspect-ratio: 375 / 760; object-fit: cover; object-position: top; background: #14110e; }
.phone.sm { width: 100%; max-width: 230px; border-radius: 30px; padding: 8px; }
.phone.sm img { border-radius: 23px; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding: 40px 0 48px; gap: 36px; }
  .phone { width: 240px; }
}

/* 마디 */
.sec { padding: 64px 0 8px; }
.sec-title { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; line-height: 1.35; margin: 0 0 24px; }
.sec-title.center { text-align: center; }
.sec-title.light { color: #f4ead9; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { color: var(--muted); font-weight: 600; text-decoration: none; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.f-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 10px; border-radius: 14px; background: var(--night); color: var(--gold-2); font-family: var(--serif); font-weight: 900; font-size: 20px; }
.feature h3 { margin: 14px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.band { background: var(--night); padding: 56px 0 44px; margin-top: 64px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.shots figcaption { margin-top: 12px; color: #d4c7b2; font-size: 14.5px; text-align: center; }
.note { margin: 22px 0 0; text-align: center; color: #8d806e; font-size: 13.5px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }

/* 오늘의 묘수 */
.today { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; align-items: center; }
.today-text h2 { font-size: 22px; line-height: 1.5; margin: 12px 0 8px; }
.today-text p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 760px) { .today { grid-template-columns: 1fr; gap: 16px; } .today-board { max-width: 420px; } }
.puzzle-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.puzzle-list a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 12px; }
.puzzle-list a:hover { border-color: #c9a865; }
.pl-board { display: block; margin-bottom: 6px; }
.puzzle-list strong { font-size: 16px; }
.puzzle-list small { color: var(--muted); font-size: 13.5px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #c9a865; transform: translateY(-2px); }
.card-title { font-size: 19px; line-height: 1.45; }
.card-desc { color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1; }
.card-meta { color: #9a8b78; font-size: 13.5px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.tag { align-self: flex-start; display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #efe2c8; color: #6a4c18; }
.t-basic { background: #e3eedb; color: #2f5a22; }
.t-rule { background: #f3e1d6; color: #8a3a1c; }
.t-strat { background: #e2e5f1; color: #33407a; }
.t-piece { background: #f1e5c9; color: #6e4d10; }
.t-app { background: #ecdcef; color: #6b2f74; }
.t-puzzle { background: var(--night); color: var(--gold-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 자주 묻는 것 */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* 머리말 마디 */
.page-head { padding: 52px 0 24px; }
.page-head h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 10px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 17.5px; }

/* 글 */
.article { padding: 36px 0 24px; }
.crumb { font-size: 14px; color: #9a8b78; margin-bottom: 18px; }
.crumb a { color: inherit; text-decoration: none; }
.article h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.35; letter-spacing: -.02em; margin: 12px 0 14px; }
.lead { font-size: 19px; color: #4b4035; margin: 0 0 10px; }
.meta { font-size: 14px; color: #9a8b78; margin: 0 0 24px; }
.points { background: var(--night); color: #efe4d1; border-radius: 20px; padding: 20px 24px; margin: 0 0 24px; }
.points-h { margin: 0 0 6px; font-size: 15px; color: var(--gold-2); letter-spacing: .06em; }
.points ul { margin: 0; padding-left: 20px; }
.points li { margin: 4px 0; }
.points code { background: rgba(255, 255, 255, .1); }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 0 0 8px; background: var(--card); font-size: 15.5px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.toc a { text-decoration: none; color: #4b4035; }
.toc a:hover { color: var(--gold); }
.prose h2 { font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1.4; margin: 48px 0 14px; letter-spacing: -.015em; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 5px 0; }
.prose strong { background: linear-gradient(transparent 62%, rgba(240, 198, 101, .45) 62%); }
.prose blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--paper-2); border-radius: 0 14px 14px 0; color: #4b4035; }
.prose blockquote p { margin: 0; }
.prose code { font-family: inherit; background: var(--paper-2); padding: 1px 7px; border-radius: 6px; font-weight: 700; }
.prose a { color: #8a5a10; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* 장기판 */
.board { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(60, 35, 10, .22)); }
.board.mini { filter: none; }
.board-fig { margin: 26px auto; max-width: 440px; }
.board-fig.small { max-width: 330px; margin: 10px auto; }
.board-fig figcaption { margin-top: 10px; text-align: center; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.reveal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin: 14px 0; }
.reveal summary { cursor: pointer; font-weight: 700; padding: 13px 0; }
.reveal[open] { padding-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* 마무리 */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; background: var(--night); color: #f2e7d4; border-radius: 22px; padding: 24px 26px; margin: 44px 0 24px; }
.cta-text { flex: 1 1 280px; }
.cta strong { font-family: var(--serif); font-size: 21px; font-weight: 900; }
.cta p { margin: 6px 0 0; color: #cbbfab; font-size: 15.5px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-line { color: #f2e7d4; border-color: rgba(240, 220, 190, .35); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 0; }
.pager a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.pager a small { display: block; font-weight: 500; color: #9a8b78; font-size: 13px; }
.pager .next { text-align: right; }
.more { padding: 24px 0 8px; }

/* 바닥 */
.foot { background: var(--night); color: #bcae98; margin-top: 72px; padding: 40px 0 28px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #e4d7c2; text-decoration: none; }
.foot-copy { margin-top: 28px; font-size: 13px; color: #7f725f; }
