/* 꿈해몽 풀이사전 — 시안 A(종이 사전, 2026-11-22 사용자 고름).
   실물 사전에 있는 것만 쓴다: 쪽 머리(이 쪽 표제어·쪽 번호·다음 표제어), 옆면 반달 색인(ㄱ~ㅎ), 뜻 번호①, 인주색 둘째 색.
   둥근 카드·칩·색 덩어리·형광 라임 금지(jcstudios.app 결). */
:root {
  --paper: #f6f5f0; --sheet: #fbfaf6; --surface: #eeede6; --ink: #25271f; --muted: #66685d; --faint: #85877b;
  --line: #d9dacf; --rule: #25271f; --seal: #b5352a; --seal-soft: #b5352a14;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
body::after { content: ""; position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 60; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.wrap { width: min(100%, 1240px); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 10.5px; letter-spacing: 1.6px; font-weight: 600; color: var(--muted); }
.eyebrow b { color: var(--ink); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip:focus { top: 10px; }

/* 머리줄 */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid #25271f26; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { height: 58px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: -.04em; font-size: 17px; white-space: nowrap; }
.brand em { font-style: normal; font-family: var(--serif); font-weight: 700; color: var(--seal); }
.brand small { font-weight: 500; font-size: 11px; color: var(--faint); letter-spacing: 0; }
.hsearch { flex: 1; max-width: 340px; margin-left: 8px; display: flex; height: 38px; border: 1px solid #25271f40; border-radius: 3px; background: var(--sheet); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-size: 13.5px; outline: none; }
.hsearch input::placeholder { color: var(--faint); }
.hsearch button { border: 0; background: transparent; width: 40px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.hsearch svg, .hs-icon svg { width: 16px; height: 16px; }
.hs-icon { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid #25271f40; border-radius: 3px; }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 860px) {
  .nav a:not(.keep), .brand small { display: none; }
  .hsearch { display: none; }
  .hs-icon { display: grid; margin-left: auto; }
  .nav { margin-left: 0; }
}

/* 옆면 반달 색인 */
.thumbs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 3px; }
.thumbs a { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; border-radius: 16px 0 0 16px; transition: width .15s; }
.thumbs a.on { background: var(--seal); }
.thumbs a:hover { width: 36px; }
.jamo { display: none; }
@media (max-width: 900px) { .thumbs { display: none; } .jamo { display: flex; } }
.jamo { margin-top: 18px; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); scrollbar-width: none; }
.jamo::-webkit-scrollbar { display: none; }
.jamo a { flex: 1 0 40px; height: 40px; display: grid; place-items: center; font-weight: 700; font-size: 14px; border-right: 1px solid var(--line); }
.jamo a:last-child { border-right: 0; }
.jamo a.on { background: var(--ink); color: var(--paper); }
.jamo a.off { color: #c2c3b8; pointer-events: none; }

/* 표시(길몽·재물…) */
.mark { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; color: var(--muted); white-space: nowrap; }
.mark.good, .mark.money { color: var(--seal); }
.marks { display: flex; gap: 6px; flex-wrap: wrap; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; padding-block: 52px 44px; border-bottom: 1px solid var(--line); align-items: end; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -.06em; font-weight: 800; }
.hero h1 em { font-style: normal; font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; }
.hero .lead { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 560px; }
.ask { margin-top: 28px; display: flex; border: 1.5px solid var(--ink); border-radius: 3px; background: #fbfaf6; min-height: 60px; }
.ask textarea, .ask input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 18px 18px 0; font-size: 16px; outline: none; resize: none; line-height: 1.5; height: 58px; }
.ask input { padding: 0 18px; }
.ask textarea::placeholder, .ask input::placeholder { color: var(--faint); }
.ask button { border: 0; background: var(--ink); color: var(--paper); padding: 0 26px; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.ask-help { margin-top: 10px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.ask-help b { color: var(--muted); font-weight: 600; }
.top10 { margin-top: 26px; }
.top10 ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.top10 li a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.top10 li a span { font-size: 11px; color: var(--faint); font-weight: 600; width: 16px; font-variant-numeric: tabular-nums; }
.top10 li a i { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--seal); font-weight: 600; }
.top10 li a i.plain { color: var(--faint); font-weight: 500; }
.top10 li a:hover { background: var(--surface); }

/* 오늘의 표제어 — 사전에서 오려 낸 종잇조각 */
.slip { position: relative; justify-self: end; width: min(100%, 370px); background: #fbfaf5; padding: 26px 26px 22px; transform: rotate(1.6deg); box-shadow: 0 1px 0 #00000010, 0 18px 40px #25271f1c; border-top: 3px solid var(--ink); }
.slip .head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 1.2px; color: var(--faint); font-weight: 600; }
.slip h2 { margin-top: 14px; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.slip .marks { margin-top: 8px; }
.slip p { margin-top: 12px; font-family: var(--serif); font-size: 16px; line-height: 1.85; }
.slip .more { margin-top: 12px; display: inline-block; font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--ink); }

/* 단락 */
.section { padding-block: 46px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.sec-head h1, .sec-head h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.05em; font-weight: 800; }
.sec-head h1 em, .sec-head h2 em { font-style: normal; font-family: var(--serif); font-weight: 400; }
.sec-head p { font-size: 13px; color: var(--muted); }

/* 갈래 찾아보기 — 책 뒤 찾아보기처럼 */
.index { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--rule); }
.group { padding: 16px 18px 20px 0; border-bottom: 1px solid var(--line); }
.index .group:not(:nth-child(5n+1)) { padding-left: 18px; border-left: 1px solid var(--line); }
.group h3 { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.group h3 span { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: 1px; }
.group ul { list-style: none; margin: 10px 0 0; padding: 0; }
.group li a { display: block; padding: 4px 0; font-size: 14px; color: #3a3c33; }
.group li a:hover { color: var(--seal); }
.group li a i { font-style: normal; color: var(--seal); font-size: 11px; margin-left: 4px; }
.group .all { margin-top: 6px; display: inline-block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* 가나다 찾아보기 */
.letters { margin-top: 26px; border-top: 2px solid var(--rule); }
.letter { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.letter > h2 { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 700; color: var(--seal); }
.letter ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.letter li a { display: block; padding: 8px 0; border-bottom: 1px solid #e6e6dd; }
.letter li a b { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.letter li a span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.letter li a:hover b { color: var(--seal); }

/* 갈래 쪽 목록 */
.list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.list li a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list .no { font-size: 12px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.list h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.list p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: #45473e; }
.list li a:hover h2 { color: var(--seal); }
.cats { margin-top: 30px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.cats a { padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.cats a span { font-size: 10.5px; color: var(--faint); margin-right: 6px; }
.cats a[aria-current] { background: var(--ink); color: var(--paper); }
.cats a[aria-current] span { color: #b9baae; }

/* 사전 한 쪽 */
.crumb { padding-top: 22px; font-size: 12.5px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 6px; color: #b2b3a8; }
.page { margin: 16px 0 10px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 20px 50px #25271f12; }
.running { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 2px solid var(--rule); font-size: 12px; font-weight: 700; }
.running .pn { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.running a:last-child { text-align: right; }
.running a:hover { color: var(--seal); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 34px 28px 38px; }
.entry h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.05em; line-height: 1.12; }
.entry h1 small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.entry .marks { margin-top: 12px; }
.gist { margin-top: 18px; font-size: 19px; line-height: 1.7; font-weight: 600; letter-spacing: -.02em; }
.senses { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.senses li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.senses .n { font-family: var(--serif); font-size: 19px; color: var(--seal); line-height: 1.4; }
.senses h2 { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.senses .tag { font-size: 11.5px; font-weight: 700; margin-left: 6px; color: var(--muted); }
.senses .tag.t-길, .senses .tag.t-재물 { color: var(--seal); }
.senses p { margin-top: 4px; font-family: var(--serif); font-size: 16px; line-height: 1.85; color: #34362e; }
.note { margin-top: 22px; padding: 16px 18px; background: var(--surface); border-left: 3px solid var(--ink); }
.note h2 { font-size: 12px; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.note p { margin-top: 6px; font-family: var(--serif); font-size: 15.5px; line-height: 1.85; }
.tip { margin-top: 14px; display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.tip b { flex: none; font-size: 11px; letter-spacing: 1.2px; color: var(--seal); }

.side h2 { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; }
.scale { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.scale + .scale { margin-top: 18px; }
.cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.cells i { height: 12px; background: #dcdcd2; }
.cells i.f { background: var(--ink); }
.cells i.r { background: var(--seal); }
.ends { margin-top: 6px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.scale p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.rel { margin-top: 22px; }
.rel a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.rel a i { font-style: normal; color: var(--faint); font-weight: 500; font-size: 12px; white-space: nowrap; }
.rel a:hover { color: var(--seal); }

/* 사주로 이어 보기 */
.saju { margin: 0 28px 30px; padding: 24px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.saju h2 { font-size: 22px; letter-spacing: -.04em; font-weight: 800; }
.saju h2 em { font-style: normal; font-family: var(--serif); font-weight: 400; }
.saju p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: #c9cabd; max-width: 520px; }
.saju .go { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 3px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.line { border: 1px solid #ffffff55; color: #fff; }
.btn.ink { background: var(--ink); color: var(--paper); }

.turn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.turn a { padding: 16px 28px; font-size: 14px; font-weight: 700; }
.turn a small { display: block; font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: 1px; margin-bottom: 2px; }
.turn a + a { text-align: right; border-left: 1px solid var(--line); }
.turn a:hover { background: var(--surface); }

/* 찾기 결과 */
.said { margin-top: 22px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--line); font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.said mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--seal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.said mark sup { font-family: var(--sans); font-size: 10px; font-weight: 700; color: var(--seal); margin-left: 1px; }
.found { list-style: none; margin: 20px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.found > li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.found .n { font-family: var(--serif); font-size: 19px; color: var(--seal); }
.found h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
.found h2 a:hover { color: var(--seal); }
.found .gist2 { margin-top: 6px; font-size: 15.5px; line-height: 1.7; font-weight: 600; }
.found .hit { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--seal); }
.found .hit b { font-size: 14px; }
.found .hit p { margin-top: 2px; font-family: var(--serif); font-size: 15px; line-height: 1.8; color: #3a3c33; }
.found .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.none { margin-top: 20px; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* 글 쪽(소개·개인정보) */
.doc { max-width: 760px; padding-block: 40px 60px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.05em; font-weight: 800; }
.doc h2 { margin-top: 34px; font-size: 19px; letter-spacing: -.03em; font-weight: 800; }
.doc p, .doc li { font-family: var(--serif); font-size: 16px; line-height: 1.95; color: #34362e; }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .rows { margin-top: 24px; border-top: 2px solid var(--rule); }
.doc .rows div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc .rows span:first-child { color: var(--muted); }
.doc a { border-bottom: 1px solid currentColor; }

.foot { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { padding-block: 28px 56px; font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; line-height: 1.8; }
.foot-in nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-in a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 34px 30px; }
  .slip { justify-self: start; transform: rotate(-1deg); }
  .index { grid-template-columns: repeat(2, 1fr); }
  .index .group:not(:nth-child(5n+1)) { padding-left: 0; border-left: 0; }
  .index .group:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
  .entry { grid-template-columns: 1fr; gap: 26px; padding: 24px 18px 28px; }
  .running { padding: 10px 18px; font-size: 11px; }
  .saju { grid-template-columns: 1fr; margin: 0 18px 22px; padding: 20px; gap: 16px; }
  .turn a { padding: 14px 18px; }
  .top10 ol { grid-template-columns: 1fr; }
  .sec-head { display: block; }
  .sec-head p { margin-top: 6px; }
  .letter { grid-template-columns: 1fr; gap: 6px; }
  .letter > h2 { font-size: 34px; }
  .letter ul { grid-template-columns: 1fr; }
  .list li a { grid-template-columns: 30px 1fr; }
  .list .marks { grid-column: 2; }
  .doc .rows div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 420px) {
  .ask button { padding: 0 18px; }
  .group h3 { font-size: 15px; }
  .group li a { font-size: 13.5px; }
  .gist { font-size: 17.5px; }
}
