/* 서울휴치과 — 「휴(休) 전집」
   종이 #F2EDE3 · 먹 #161412 · 로고 남색 #1B2A5C · 로고 호박색 #E9A11B
   제목 Song Myung / 본문 Nanum Myeongjo / 숫자·영문 EB Garamond
   연출은 html.motion 아래에만 둔다(스크립트 없음·동작 줄이기 설정에서는 평범한 세로 문서). */

:root {
  --paper: #f2ede3;
  --paper-2: #e7dfcf;
  --page: #fbf8f1;
  --ink: #161412;
  --ink-2: #4b453e;
  --ink-3: #857c71;
  --rule: rgba(22, 20, 18, .16);
  --rule-2: rgba(22, 20, 18, .08);
  --navy: #1b2a5c;
  --amber: #e9a11b;
  --amber-ink: #a86a00;
  --f-d: 'Song Myung', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --f-b: 'Nanum Myeongjo', 'AppleMyungjo', 'Noto Serif KR', serif;
  --f-l: 'EB Garamond', 'Nanum Myeongjo', Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gut: clamp(20px, 5vw, 72px);
  --rh: 58px;
  --measure: 34em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--rh) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-b);
  font-size: 17.5px;
  line-height: 1.86;
  letter-spacing: -.004em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--page); padding: 10px 14px; }
.skip:focus { top: 12px; }
svg { flex: none; }

/* 종이 결 */
.grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .05  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 도장 */
.seal { color: var(--amber); width: 1em; height: 1em; overflow: visible; }
.seal text { font-family: 'Song Myung', serif; }

/* 줄 단위 등장 */
.ln { display: block; }
.ln > span { display: inline-block; }
html.motion [data-reveal] .ln, html.motion .ln-mask .ln { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
html.motion [data-reveal] .ln > span { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 90ms + 60ms); }
html.motion [data-reveal].in .ln > span { transform: none; }
html.motion [data-reveal]:not(.ch-open):not(.toc-head):not(.pf-head):not(.words-h):not(.cta-in) { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html.motion [data-reveal].in { opacity: 1 !important; transform: none !important; }

/* ───────── 머리말(러닝 헤드) */
.rh {
  position: fixed; inset: 0 0 auto; z-index: 120; height: var(--rh);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gut);
  transition: background .5s, box-shadow .5s, transform .6s var(--ease);
}
.rh::after { content: ''; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: var(--rule); transform-origin: left; transform: scaleX(var(--rh-line, 1)); }
.rh.scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rh.hide { transform: translateY(-100%); }
.rh-mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-d); font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.rh-word b { font-weight: 400; color: var(--amber); }
.rh-seal { width: 22px; height: 22px; margin-top: -14px; }
.rh-run { margin: 0; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.rh-run span { display: inline-block; transition: opacity .4s, transform .5s var(--ease); }
.rh-run span.swap { opacity: 0; transform: translateY(6px); }
.rh-r { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.rh-folio { font-family: var(--f-l); font-size: 15px; color: var(--ink-3); font-style: italic; min-width: 3.2em; text-align: right; }
.rh-folio b { font-weight: 400; color: var(--ink); font-style: normal; font-variant-numeric: oldstyle-nums; }
.rh-call { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-l); font-size: 16px; letter-spacing: .02em; }
.rh-call svg { width: 14px; height: 14px; color: var(--navy); }
.rh-menu { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; }
.rh-menu i { width: 22px; height: 9px; border-block: 1px solid currentColor; transition: transform .4s var(--ease); }
.rh-menu[aria-expanded="true"] i { transform: scaleX(.6); }

/* 차례 메뉴 */
.menu { position: fixed; inset: 0; z-index: 110; background: var(--page); overflow: auto; padding: calc(var(--rh) + 4vh) var(--gut) 6vh; }
.menu[hidden] { display: none; }
html.motion .menu { clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); display: block; visibility: hidden; }
html.motion .menu[hidden] { display: block; }
html.motion .menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-in { max-width: 980px; margin: 0 auto; }
.menu-k { font-family: var(--f-l); font-style: italic; font-size: 18px; color: var(--ink-3); margin-bottom: 2vh; }
.menu-list { list-style: none; margin: 0 0 5vh; padding: 0; }
.menu-list a { display: grid; grid-template-columns: 5.5em auto 1fr auto; align-items: baseline; gap: 14px; padding: .5em 0; border-bottom: 1px solid var(--rule-2); }
.m-p { font-size: 14px; color: var(--ink-3); }
.m-n { font-family: var(--f-d); font-size: clamp(26px, 4.4vw, 54px); line-height: 1.2; letter-spacing: -.02em; transition: color .3s; }
.m-d { border-bottom: 2px dotted var(--rule); transform: translateY(-.4em); }
.m-g { font-family: var(--f-l); font-size: 18px; font-style: italic; color: var(--ink-3); }
.menu-list a:hover .m-n { color: var(--navy); }
html.motion .menu-list li { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .8s var(--ease); }
html.motion .menu.open .menu-list li { opacity: 1; transform: none; }
html.motion .menu.open .menu-list li:nth-child(2) { transition-delay: .05s; } html.motion .menu.open .menu-list li:nth-child(3) { transition-delay: .1s; }
html.motion .menu.open .menu-list li:nth-child(4) { transition-delay: .15s; } html.motion .menu.open .menu-list li:nth-child(5) { transition-delay: .2s; }
html.motion .menu.open .menu-list li:nth-child(6) { transition-delay: .25s; }
.menu-vols { list-style: none; padding: 0; margin: 0 0 4vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.menu-vols a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0 8px 14px; border-left: 4px solid var(--tone); font-size: 16px; }
.menu-vols b { font-family: var(--f-l); font-weight: 400; color: var(--ink-3); }
.menu-cta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 16px; }
.menu-cta a { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.menu-cta svg { width: 16px; height: 16px; }

/* 가름끈 */
.ribbon { position: fixed; top: 0; right: clamp(8px, 2.2vw, 34px); z-index: 115; width: 13px; height: calc(48px + var(--prog, 0) * 34vh); background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); pointer-events: none; }

/* ───────── 인트로 */
.intro { display: none; }
html.motion:not(.seen) .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; background: var(--paper);
  animation: introOut .9s var(--ease-io) 1.45s forwards;
}
.intro-in { text-align: center; }
.intro-seal { width: 96px; height: 96px; margin: 0 auto 18px; animation: stamp .7s var(--ease) .15s both; }
.intro-t { font-family: var(--f-d); font-size: 34px; margin: 0; animation: fadeUp .8s var(--ease) .55s both; }
.intro-s { font-family: var(--f-l); font-style: italic; font-size: 16px; color: var(--ink-3); animation: fadeUp .8s var(--ease) .7s both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ───────── 공통 단락 */
.ch-part { font-family: var(--f-l); font-size: 17px; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 .8em; display: flex; align-items: center; gap: .8em; }
.ch-part::after { content: ''; width: 46px; height: 1px; background: currentColor; opacity: .6; }
.ch-open { padding: 0 var(--gut); max-width: 1320px; margin: 0 auto; }
.ch-title { font-family: var(--f-d); font-size: clamp(44px, 6.4vw, 104px); line-height: 1.12; letter-spacing: -.035em; }
.ch-lead { max-width: 30em; margin-top: 1.2em; color: var(--ink-2); font-size: 18px; }
.k { font-family: var(--f-l); font-style: italic; color: var(--ink-3); font-size: 17px; margin-bottom: .6em; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; margin-top: .6em; }
.tlink svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; background: var(--ink); color: var(--page); font-size: 16px; border: 1px solid var(--ink); border-radius: 0; transition: background .3s, color .3s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--page); }
.btn.big { min-height: 62px; padding: 0 30px; font-size: 17px; }
.btn.big b { font-family: var(--f-l); font-weight: 500; font-size: 1.12em; letter-spacing: .02em; }
.plate { margin: 0; }
.plate img { width: 100%; background: var(--paper-2); }
.plate figcaption { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); margin-top: 12px; }
.plate figcaption b { font-weight: 700; color: var(--ink-2); }
.drop::first-letter { font-family: var(--f-d); float: left; font-size: 4.1em; line-height: .9; margin: .08em .1em 0 0; color: var(--navy); }

/* ───────── 표지 (책) */
.cv {
  container-type: inline-size;
  position: relative; width: 100%; aspect-ratio: 128 / 188; background: var(--page);
  display: flex; flex-direction: column; padding: 8% 7.5% 6% 12%; overflow: hidden;
  color: var(--ink);
}
.cv::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 5%, rgba(255, 255, 255, .25) 6.5%, rgba(0, 0, 0, 0) 9%), linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .03)); }
.cv-band { position: absolute; left: 0; top: 0; bottom: 0; width: 4.2cqw; background: var(--tone, var(--navy)); }
.cv-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 3.6cqw; color: var(--ink-2); letter-spacing: .08em; }
.cv-no { font-family: var(--f-l); font-size: 5cqw; letter-spacing: .04em; color: var(--ink); }
.cv-title { font-family: var(--f-d); font-size: 10.8cqw; line-height: 1.16; letter-spacing: -.03em; margin: 7cqw 0 2.6cqw; }
.cv-title span { display: block; }
.cv-sub { font-size: 3.7cqw; line-height: 1.5; color: var(--ink-2); margin: 0 0 1.6cqw; }
.cv-author { font-size: 3.9cqw; margin: 0 0 5cqw; letter-spacing: .04em; }
.cv-art { margin: auto 0 0; flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; border: .5cqw solid #fff; box-shadow: 0 0 0 .25cqw rgba(0, 0, 0, .12); background: var(--paper-2); }
.cv-art picture, .cv-art img { width: 100%; height: 100%; }
.cv-art img { object-fit: cover; }
.cv-pub { display: flex; align-items: center; justify-content: flex-end; gap: 1.6cqw; margin: 4cqw 0 0; font-size: 3.6cqw; letter-spacing: .1em; }
.cv-seal { width: 6.4cqw; height: 6.4cqw; }

/* ───────── 홈: 표지 무대 */
.cover-stage { position: relative; }
html.motion .cover-stage { height: 330vh; }
.cs-sticky { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: calc(var(--rh) + 5vh) var(--gut) 6vh; overflow: hidden; }
html.motion .cs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding: 0; perspective: 2200px; }
.cs-desk { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 55%, var(--paper) 0%, var(--paper-2) 100%); }
.cs-fill { display: none; }
html.motion .cs-fill { display: block; position: absolute; inset: 0; z-index: 4; background: var(--page); opacity: var(--fill, 0); pointer-events: none; }
.cs-text { position: relative; z-index: 2; max-width: 640px; }
html.motion .cs-text { position: absolute; left: var(--gut); top: 50%; width: min(46vw, 640px); transform: translateY(calc(-50% + var(--ty, 0px))); opacity: var(--to, 1); }
.cs-series { font-family: var(--f-l); font-size: 15px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 3vh; }
.cs-series span { font-family: var(--f-d); letter-spacing: .1em; color: var(--ink); margin-right: .9em; }
.cs-h1 { margin: 0; }
.cs-k { display: block; font-family: var(--f-b); font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.6vh; color: var(--navy); }
.cs-t { display: block; font-family: var(--f-d); font-size: clamp(48px, 6.6vw, 112px); line-height: 1.08; letter-spacing: -.045em; }
html.motion .cs-t .ln { overflow: hidden; padding-bottom: .05em; }
html.motion .cs-t .ln > span { animation: lineUp 1.3s var(--ease) both; animation-delay: calc(var(--i) * 120ms + .35s); }
html.motion:not(.seen) .cs-t .ln > span { animation-delay: calc(var(--i) * 120ms + 1.75s); }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
.cs-lead { max-width: 27em; color: var(--ink-2); margin: 3.4vh 0 2vh; font-size: 17.5px; }
.cs-meta { font-size: 14px; color: var(--ink-3); letter-spacing: .04em; }
.cs-down { display: inline-flex; align-items: center; gap: 14px; margin-top: 3vh; font-size: 14px; letter-spacing: .06em; }
.cs-down i { width: 1px; height: 46px; background: var(--ink); position: relative; overflow: hidden; }
html.motion .cs-down i::after { content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--page); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }

.book-wrap { position: relative; z-index: 1; --bw: min(400px, 74vw, 49vh); width: var(--bw); margin: 0 auto; }
html.motion .book-wrap {
  position: absolute; left: 50%; top: 50%; width: var(--bw); margin: 0;
  transform: translate(-50%, -50%) translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(var(--bs, 1));
  transform-style: preserve-3d; will-change: transform;
}
.book { position: relative; width: 100%; aspect-ratio: 128 / 188; transform-style: preserve-3d; }
html.motion .book { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.book-shadow { position: absolute; left: 4%; right: -6%; bottom: -5%; height: 12%; background: radial-gradient(closest-side, rgba(40, 28, 10, .35), rgba(40, 28, 10, 0)); filter: blur(6px); transform: translateZ(-60px); opacity: var(--sh, 1); }
.bk-cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; z-index: 3; }
html.motion .bk-cover { transform: rotateY(var(--open, 0deg)); }
.bk-front, .bk-inside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-front { box-shadow: 0 30px 60px -24px rgba(30, 20, 5, .45), 0 2px 4px rgba(0, 0, 0, .08); }
.bk-inside { transform: rotateY(180deg); background: var(--navy); }
.endpaper { position: absolute; inset: 0; opacity: .9; background-color: var(--navy); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><text x='16' y='28' font-size='18' font-family='serif' fill='%23e9a11b' fill-opacity='.38'>休</text><text x='48' y='60' font-size='18' font-family='serif' fill='%23e9a11b' fill-opacity='.2'>休</text></svg>"); box-shadow: inset -14px 0 24px -12px rgba(0, 0, 0, .5); }
.bk-pages { position: absolute; inset: 1% 1.4% 1% 0; background: var(--page); z-index: 1; transform: translateZ(-2px); box-shadow: inset 14px 0 22px -14px rgba(0, 0, 0, .28); display: none; }
html.motion .bk-pages { display: block; }
.bk-back-board { position: absolute; inset: 0; background: #ece4d4; transform: translateZ(-26px); box-shadow: 0 40px 70px -30px rgba(30, 20, 5, .5); display: none; }
.bk-edge { position: absolute; top: 1%; bottom: 1%; left: 98.6%; width: 24px; transform-origin: left center; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f6f1e6 0 1px, #e2d8c6 1px 2px); display: none; }
.bk-spine { position: absolute; top: 0; bottom: 0; left: -26px; width: 26px; transform-origin: right center; transform: rotateY(-90deg); background: var(--page); display: none; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0; font-family: var(--f-d); font-size: 13px; writing-mode: vertical-rl; letter-spacing: .2em; border-left: 4px solid var(--navy); }
.bk-spine b { font-weight: 400; font-family: var(--f-l); font-size: 11px; color: var(--ink-3); }
html.motion .bk-back-board, html.motion .bk-edge { display: block; }
html.motion .bk-spine { display: flex; }
.tp { container-type: inline-size; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16% 10% 10%; }
.tp-k { font-family: var(--f-d); font-size: 3.4cqw; letter-spacing: .2em; color: var(--ink-3); }
.tp-t { font-family: var(--f-d); font-size: 13cqw; letter-spacing: -.03em; margin: 8cqw 0 2cqw; line-height: 1.1; }
.tp-s { font-size: 4cqw; color: var(--ink-2); }
.tp-seal { width: 22cqw; height: 22cqw; margin: auto 0; }
.tp-a { font-size: 4cqw; margin: 0 0 1cqw; }
.tp-p { font-size: 3.4cqw; letter-spacing: .14em; color: var(--ink-3); margin: 0; }
/* 처음 띄워 둘 때 살짝 숨 쉬는 표지 */
html.motion .cover-stage[data-p="0"] .book { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -8px; } }

/* ───────── 서문 */
.preface { background: var(--page); position: relative; padding: 18vh var(--gut) 16vh; }
.pf-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "head plate" "body plate"; gap: 0 7vw; align-items: start; }
.pf-head { grid-area: head; margin-bottom: 7vh; }
.pf-t { font-family: var(--f-d); font-size: clamp(52px, 8vw, 132px); line-height: 1.04; letter-spacing: -.045em; }
.pf-body { grid-area: body; max-width: var(--measure); font-size: 18.5px; line-height: 2; }
.pf-sign { text-align: right; margin-top: 2.4em; font-family: var(--f-d); font-size: 20px; letter-spacing: .02em; }
.pf-sign::before { content: '— '; }
.pf-plate { grid-area: plate; margin-top: 18vh; }
.pf-plate img { aspect-ratio: 600 / 1194; object-fit: cover; }

/* ───────── 차례 */
.toc { background: var(--page); padding: 6vh var(--gut) 18vh; position: relative; }
.toc-in { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--ink); padding-top: 8vh; }
.toc-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5vh; }
.toc-t { font-family: var(--f-d); font-size: clamp(56px, 9vw, 150px); line-height: 1; letter-spacing: -.04em; }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list a { display: grid; grid-template-columns: 5em auto 1fr auto; align-items: baseline; gap: 18px; padding: 1.1em 0; border-bottom: 1px solid var(--rule-2); position: relative; }
.t-part { font-size: 15px; color: var(--ink-3); }
.t-name { font-family: var(--f-d); font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.02em; line-height: 1.3; transition: transform .6s var(--ease), color .3s; }
.t-dots { border-bottom: 2px dotted var(--rule); transform: translateY(-.35em); transform-origin: left; transition: transform .6s var(--ease); }
.t-pg { font-family: var(--f-l); font-size: 22px; font-style: italic; min-width: 2.4em; text-align: right; font-variant-numeric: oldstyle-nums; }
.toc-list a:hover .t-name { transform: translateX(14px); color: var(--navy); }
.toc-list a:hover .t-dots { transform: translateY(-.35em) scaleX(.94); }
.toc-peek { position: fixed; left: 0; top: 0; z-index: 50; width: 220px; aspect-ratio: 3 / 4; pointer-events: none; opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--pr, 0deg)) scale(.86); transition: opacity .35s, transform .12s linear; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .35); border: 6px solid #fff; background: var(--paper-2); }
.toc-peek.on { opacity: 1; }
.toc-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── 제1부 다섯 가지 물음 */
.qs { padding: 18vh 0 10vh; }
.fl-stage { margin-top: 8vh; padding: 0 var(--gut); }
.spread { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; }
.pg { position: relative; }
.pg-in { position: relative; }
.pg-l.base, .face.back { display: none; }
.leaf .face.front { background: var(--page); padding: clamp(28px, 4vw, 48px); box-shadow: 0 1px 0 var(--rule); }
.qh { text-wrap: balance; font-family: var(--f-d); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -.03em; margin-bottom: .9em; }
.qn { display: block; font-family: var(--f-b); font-size: 14px; letter-spacing: .1em; color: var(--amber-ink); margin-bottom: .6em; font-weight: 700; }
.fn { font-size: 14.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: .9em; margin-top: 1.4em; }
.fn sup { color: var(--amber-ink); margin-right: .3em; }
.folio { position: absolute; bottom: 18px; font-family: var(--f-l); font-style: italic; font-size: 14px; color: var(--ink-3); }
.folio.l { left: 28px; } .folio.r { right: 28px; }
.leaf .folio, .base .folio { display: none; }
.end { background: var(--page); padding: clamp(28px, 4vw, 48px); }
.end-t { font-family: var(--f-d); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -.03em; margin-bottom: .7em; }
.fl-hint { display: none; }
.shade { display: none; }
.q-left { display: flex; flex-direction: column; height: 100%; }
.ql-n { font-family: var(--f-l); font-size: 20px; color: var(--ink-3); display: flex; align-items: baseline; gap: 10px; }
.ql-n span { font-family: var(--f-b); font-size: 14px; letter-spacing: .1em; color: var(--amber-ink); font-weight: 700; }
.ql-q { font-family: var(--f-d); font-size: clamp(36px, calc(var(--pw, 500px) * .092), 60px); line-height: 1.12; letter-spacing: -.04em; margin-top: auto; }
.ql-q .ln { display: block; }
.ql-deco { position: absolute; right: -4%; top: 6%; font-family: var(--f-d); font-size: clamp(140px, 16vw, 260px); line-height: 1; color: var(--amber); opacity: .14; margin: 0; }

/* 데스크톱 + 연출: 책장 넘김 */
@media (min-width: 900px) and (min-height: 600px) {
  html.motion .fl-stage { height: calc((var(--n) * 78 + 120) * 1vh); padding: 0; margin-top: 4vh; }
  html.motion .fl-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 2600px; }
  html.motion .spread {
    --pw: min(540px, 45vw, calc(72vh / 1.32));
    --ph: calc(var(--pw) * 1.32);
    position: relative; width: calc(var(--pw) * 2); height: var(--ph); max-width: none; display: block; margin-top: calc(var(--rh) * .6);
    transform-style: preserve-3d;
  }
  html.motion .spread::before { content: ''; position: absolute; inset: -14px -16px -18px; background: #d9cfbd; box-shadow: 0 50px 80px -40px rgba(30, 20, 5, .55); border-radius: 3px; transform: translateZ(-4px); }
  html.motion .pg, html.motion .leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); }
  html.motion .pg-l.base { display: block; left: 0; background: var(--page); box-shadow: inset -26px 0 34px -26px rgba(0, 0, 0, .3); }
  html.motion .pg-r.base { left: var(--pw); box-shadow: inset 26px 0 34px -26px rgba(0, 0, 0, .3); }
  html.motion .end { display: flex; flex-direction: column; justify-content: center; padding: 9% 11%; }
  html.motion .end-t { display: none; }
  html.motion .leaf { left: var(--pw); transform-origin: left center; transform-style: preserve-3d; transform: rotateY(var(--a, 0deg)); z-index: var(--z, 1); }
  html.motion .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--page); overflow: hidden; }
  html.motion .face.front { padding: 9% 11% 12%; box-shadow: inset 26px 0 34px -26px rgba(0, 0, 0, .28); display: flex; flex-direction: column; justify-content: center; font-size: clamp(14.5px, 1.95vh, 17px); line-height: 1.85; }
  html.motion .face.back { display: block; transform: rotateY(180deg); padding: 10% 11% 12%; box-shadow: inset -26px 0 34px -26px rgba(0, 0, 0, .3); }
  html.motion .pg-l.base .pg-in, html.motion .face.back .pg-in { height: 100%; }
  html.motion .pg-l.base { padding: 10% 11% 12%; }
  html.motion .leaf .qh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.motion .folio { display: block; }
  html.motion .shade { display: block; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 60%); opacity: var(--sd, 0); }
  html.motion .face.back .shade { background: linear-gradient(270deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 60%); }
  html.motion .fl-hint { display: block; position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); font-family: var(--f-l); font-style: italic; color: var(--ink-3); font-size: 16px; margin: 0; }
  html.motion .fl-hint span { color: var(--ink); font-style: normal; }
}
/* 모바일 + 연출: 종이가 한 장씩 쌓임 */
@media (max-width: 899.98px), (max-height: 599.98px) {
  html.motion .spread { display: block; }
  html.motion .leaf { position: sticky; top: calc(var(--rh) + 14px + var(--k) * 10px); margin-bottom: 18px; transform-origin: 50% 0; transform: scale(var(--sc, 1)); filter: brightness(var(--br, 1)); }
  html.motion .leaf .face.front { box-shadow: 0 -1px 0 var(--rule), 0 18px 40px -26px rgba(30, 20, 5, .4); min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
  html.motion .pg-r.base { position: relative; z-index: 2; }
}

/* ───────── 제2부 책장 */
.shelf { padding: 18vh 0 12vh; background: var(--paper); }
.sh-stage { margin-top: 8vh; }
.sh-sticky { position: relative; overflow: hidden; }
.sh-track { display: flex; gap: clamp(24px, 4vw, 64px); padding: 4vh var(--gut) 6vh; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-track::-webkit-scrollbar { display: none; }
html.motion .sh-stage { height: var(--sh-h, 400vh); }
html.motion .sh-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; perspective: 1600px; }
html.motion .sh-track { overflow: visible; scroll-snap-type: none; transform-style: preserve-3d; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; padding-left: calc(50vw - min(160px, 31vw)); padding-right: calc(50vw - min(160px, 31vw)); align-items: flex-start; }
.vol { flex: none; width: min(320px, 62vw); scroll-snap-align: center; display: block; transform-style: preserve-3d; }
.vol-book { transform-style: preserve-3d; transition: transform .7s var(--ease); box-shadow: 0 34px 60px -30px rgba(30, 20, 5, .5), 0 2px 3px rgba(0, 0, 0, .06); }
html.motion .vol .vol-book { transform: rotateY(var(--vr, 0deg)) translateZ(var(--vz, 0px)); transition: box-shadow .5s; }
.vol:hover .vol-book { box-shadow: 0 44px 70px -28px rgba(30, 20, 5, .6), 0 2px 3px rgba(0, 0, 0, .06); }
.vol-cap { padding-top: 26px; }
html.motion .vol .vol-cap { opacity: var(--vo, 1); transform: translateY(calc((1 - var(--vo, 1)) * 16px)); }
.vol-no { font-family: var(--f-l); font-size: 15px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: .3em; }
.vol-t { text-wrap: balance; font-family: var(--f-d); font-size: 27px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: .3em; }
.vol-s { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: .7em; }
.vol-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border-bottom: 1px solid currentColor; }
.vol-more svg { width: 16px; height: 16px; }
.vol-all .spines { aspect-ratio: 128 / 188; display: flex; align-items: flex-end; gap: 4px; padding: 0 6%; border-bottom: 10px solid #b9a888; }
.spine { flex: 1; height: 92%; background: var(--page); border-top: 8px solid var(--tone); display: flex; flex-direction: column; align-items: center; padding: 10px 0 8px; gap: 10px; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .05), 0 10px 20px -14px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); }
.spine:nth-child(2n) { height: 96%; } .spine:nth-child(3n) { height: 89%; }
.spine b { font-family: var(--f-l); font-weight: 400; font-size: 12px; color: var(--ink-3); }
.spine em { font-style: normal; font-family: var(--f-d); font-size: 14px; writing-mode: vertical-rl; letter-spacing: .08em; flex: 1; overflow: hidden; }
.sp-seal { width: 16px; height: 16px; }
.vol-all:hover .spine { transform: translateY(-10px); }
.vol-all:hover .spine:nth-child(2n) { transform: translateY(-4px); }
.sh-count { display: none; }
html.motion .sh-count { display: block; position: absolute; right: var(--gut); bottom: 5vh; margin: 0; font-family: var(--f-l); font-style: italic; font-size: 18px; color: var(--ink-3); }
html.motion .sh-count b { font-weight: 400; color: var(--ink); font-style: normal; font-size: 34px; }

/* ───────── 제3부 세한도 */
.ss { background: #ebe5d8; padding: 18vh 0 14vh; position: relative; }
.ss-stage { margin-top: 6vh; }
.ss-sticky { position: relative; padding: 0 var(--gut); }
.ss-strip { position: relative; overflow-x: auto; border-block: 10px solid #c9b893; background: #f4efe2; }
.ss-paper picture { height: 100%; }
.ss-paper img { height: min(52vh, 460px); width: auto; max-width: none; }
.ss-rod { display: none; }
.ss-quote { display: none; }
.ss-ko { max-width: 760px; margin: 5vh auto 0; text-align: center; }
.ss-ko p { font-family: var(--f-d); font-size: clamp(24px, 3vw, 46px); line-height: 1.32; letter-spacing: -.03em; margin-bottom: .5em; }
.ss-ko small { font-size: 14px; color: var(--ink-3); }
html.motion .ss-stage { height: 460vh; }
html.motion .ss-sticky { position: sticky; top: 0; height: 100vh; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; overflow: hidden; }
html.motion .ss-strip { overflow: visible; border: 0; background: none; height: min(44vh, 420px); grid-row: 2; }
html.motion .ss-paper { position: absolute; top: 0; left: 0; height: 100%; transform: translate3d(var(--pan, 0px), 0, 0); clip-path: inset(0 0 0 var(--clip, 0px)); will-change: transform; box-shadow: 0 30px 60px -36px rgba(30, 20, 5, .6); }
html.motion .ss-paper img { height: 100%; width: auto; }
html.motion .ss-rod { display: block; position: absolute; top: -14px; bottom: -14px; width: 18px; border-radius: 9px; background: linear-gradient(90deg, #4a2e1a, #8a5a34 40%, #3b2414); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); }
html.motion .ss-rod.r { left: calc(var(--rodr, 100vw) - 9px); }
html.motion .ss-rod.l { left: calc(var(--rodl, 100vw) - 9px); }
html.motion .ss-quote { display: block; grid-row: 1; align-self: end; text-align: center; padding: calc(var(--rh) + 2vh) var(--gut) 3.4vh; }
.ss-han { font-family: var(--f-d); font-size: clamp(26px, 3.4vw, 52px); letter-spacing: .32em; margin: 0; padding-left: .32em; color: var(--ink); }
.ss-han span { display: inline-block; opacity: var(--hv, 0); transform: translateY(calc((1 - var(--hv, 0)) * 18px)); transition: opacity .5s, transform .6s var(--ease); }
html.motion .ss-ko { grid-row: 3; align-self: start; margin-top: 3.4vh; padding: 0 var(--gut); }
html.motion .ss-ko .ln { overflow: hidden; }
html.motion .ss-ko .ln > span { transform: translateY(110%); transition: transform 1s var(--ease) calc(var(--i) * 120ms); }
html.motion .ss-ko.in .ln > span { transform: none; }
html.motion .ss-ko small { opacity: 0; transition: opacity .8s .5s; }
html.motion .ss-ko.in small { opacity: 1; }
.ss-after { max-width: 1180px; margin: 12vh auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4vh 7vw; align-items: start; }
.ss-story { font-size: 18px; line-height: 2; color: var(--ink-2); border-left: 1px solid var(--ink); padding-left: 1.4em; }
.ss-bt { font-family: var(--f-d); font-size: clamp(34px, 4vw, 60px); line-height: 1.18; letter-spacing: -.035em; margin-bottom: .8em; }
.ss-bridge p { font-size: 18px; line-height: 2; }
.ss-cap { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; }
.ss-cap b { color: var(--ink-2); }

/* ───────── 제4부 저자 */
.author { padding: 18vh 0 14vh; background: var(--page); }
.flap { max-width: 1180px; margin: 8vh auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 0; align-items: stretch; perspective: 1800px; }
.fl-photo { margin: 0; position: relative; overflow: hidden; align-self: start; }
@media (min-width: 900px) { .fl-photo { position: sticky; top: calc(var(--rh) + 4vh); } }
.fl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05) brightness(1.02); transition: filter 1.2s var(--ease); aspect-ratio: 896 / 1080; }
.flap:hover .fl-photo img { filter: grayscale(.15) contrast(1.02); }
.fl-text { background: var(--paper); padding: clamp(28px, 4.4vw, 64px); position: relative; transform-origin: left center; }
.fl-text::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)); }
html.motion .flap .fl-text { transform: rotateY(-78deg); opacity: .4; transition: transform 1.6s var(--ease) .15s, opacity 1.2s .15s; }
html.motion .flap.in .fl-text { transform: none; opacity: 1; }
html.motion .flap .fl-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
html.motion .flap.in .fl-photo { clip-path: inset(0 0 0 0); }
html.motion .flap[data-reveal] { opacity: 1; transform: none; }
.fl-k { font-size: 14px; letter-spacing: .14em; color: var(--ink-3); }
.fl-name { font-family: var(--f-d); font-size: clamp(56px, 7vw, 108px); line-height: 1; letter-spacing: -.02em; margin-bottom: .25em; }
.fl-role { font-weight: 700; color: var(--navy); font-size: 16px; margin-bottom: 1.6em; }
.fl-p { color: var(--ink-2); }
.fl-dl { margin: 2em 0 1.2em; border-top: 1px solid var(--rule); }
.fl-dl div, .co-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 14px; padding: .8em 0; border-bottom: 1px solid var(--rule-2); }
.fl-dl dt { font-size: 14px; color: var(--ink-3); }
.fl-dl dd { margin: 0; font-size: 15.5px; line-height: 1.75; }
.words { max-width: 1180px; margin: 16vh auto 0; padding: 0 var(--gut); }
.words-h { margin-bottom: 6vh; }
.words-t { font-family: var(--f-d); font-size: clamp(40px, 5.4vw, 84px); line-height: 1.14; letter-spacing: -.035em; }
.words-list, .phil-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.words-list li, .phil-list li { display: grid; grid-template-columns: clamp(56px, 8vw, 120px) 1fr; gap: 16px; padding: 2.4em 0; border-bottom: 1px solid var(--rule); }
.w-n { font-family: var(--f-l); font-size: clamp(30px, 3.2vw, 46px); line-height: 1; color: var(--amber-ink); font-style: italic; padding-top: .1em; }
.w-t { text-wrap: balance; font-family: var(--f-d); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.02em; margin-bottom: .5em; }
.w-d { color: var(--ink-2); max-width: 40em; margin: 0; }
.words-sign { margin-top: 6vh; max-width: 34em; margin-left: auto; text-align: right; font-size: 18px; line-height: 1.95; }
.words-sign span { display: block; font-family: var(--f-d); font-size: 22px; margin-top: .6em; }

/* ───────── 제5부 도판 */
.plates { padding: 18vh var(--gut) 14vh; }
.pl-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; }
.pl-stick { position: sticky; top: calc(var(--rh) + 6vh); }
.pl-side .ch-title { margin-bottom: .3em; }
.eq { list-style: none; padding: 0; margin: 5vh 0 0; border-top: 1px solid var(--ink); counter-reset: eq; }
.eq li { display: grid; grid-template-columns: 2.6em auto; column-gap: 8px; padding: .62em 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; line-height: 1.55; }
.eq-n { font-family: var(--f-l); color: var(--ink-3); grid-row: span 2; }
.eq b { font-weight: 700; }
.eq-d { color: var(--ink-3); font-size: 14px; }
.pl-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6vh 2.4vw; align-items: start; }
.room img { aspect-ratio: 3 / 4; object-fit: cover; filter: sepia(.08) saturate(.92); }
.room.off { margin-top: 18vh; }
.room:first-child { grid-column: 1 / -1; }
.room:first-child img { aspect-ratio: 4 / 3; }
html.motion [data-parallax] img { transform: translate3d(0, var(--plx, 0px), 0) scale(1.08); transition: none; }
html.motion [data-parallax] picture { overflow: hidden; }

/* ───────── 부록 */
.appx { padding: 18vh 0 12vh; background: var(--page); }
.appx.sub { padding-top: 6vh; background: transparent; }
.ax-grid { max-width: 1320px; margin: 8vh auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr); gap: 4vw; align-items: start; }
.ax-h { font-family: var(--f-d); font-size: 30px; letter-spacing: -.02em; margin-bottom: .9em; padding-bottom: .5em; border-bottom: 1px solid var(--ink); }
.ax-h small { font-family: var(--f-b); font-size: 14px; color: var(--ink-3); margin-left: .6em; }
.now { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 99px; margin-bottom: 1.2em; }
.now i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.now.open i { background: #2f8a4f; box-shadow: 0 0 0 4px rgba(47, 138, 79, .18); }
.now.lunch i { background: var(--amber); }
.ht { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ht th, .ht td { text-align: left; padding: .62em .3em; border-bottom: 1px solid var(--rule-2); font-weight: 400; vertical-align: top; }
.ht th { width: 5em; }
.ht td { font-family: var(--f-l); font-size: 17px; white-space: nowrap; }
.ht td.sub { font-family: var(--f-b); font-size: 13.5px; color: var(--ink-3); white-space: normal; }
.ht tr.today th, .ht tr.today td { color: var(--navy); font-weight: 700; }
.ht tr.today td.sub { font-weight: 400; }
.hn { font-size: 14.5px; color: var(--ink-2); margin-top: 1em; }
.addr { display: flex; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.addr svg { width: 20px; height: 20px; margin-top: 4px; color: var(--amber); }
.wl { margin: 1em 0 1.4em; }
.wl div { display: grid; grid-template-columns: 3.4em 1fr; gap: 12px; padding: .8em 0; border-bottom: 1px solid var(--rule-2); }
.wl dt { color: var(--ink-3); font-size: 14px; padding-top: 3px; }
.wl dd { margin: 0; font-size: 15.5px; line-height: 1.75; }
.wl ul { list-style: none; margin: 0; padding: 0; }
.wl li { margin-bottom: .5em; }
.wl li span { color: var(--ink-3); font-size: 14px; margin-left: .4em; }
.wl li small { display: block; font-family: var(--f-l); font-size: 14px; color: var(--ink-3); }
.way-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ax-map { margin-top: 70px; }
.ax-map img { aspect-ratio: 800 / 1220; object-fit: cover; }
.biblio { max-width: 1320px; margin: 12vh auto 0; padding: 0 var(--gut); }
.qa-lead { font-size: 18px; line-height: 1.95; max-width: 46em; }
.bib { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 15.5px; }
.bib th, .bib td { text-align: left; vertical-align: top; padding: .9em .6em; border-bottom: 1px solid var(--rule-2); font-weight: 400; }
.bib th { width: 9em; color: var(--ink-3); font-size: 14px; padding-top: 1.05em; }
.ax-faq { max-width: 1320px; margin: 12vh auto 0; padding: 0 var(--gut); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { text-wrap: pretty; list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; padding: 1.2em 0; font-family: var(--f-d); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-l); font-size: 26px; line-height: 1; transition: transform .4s var(--ease); color: var(--ink-3); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary span, .faq p span { font-family: var(--f-b); font-size: 14px; font-weight: 700; color: var(--amber-ink); padding-top: .3em; }
.faq p { display: grid; grid-template-columns: 2.2em 1fr; gap: 8px; color: var(--ink-2); padding-bottom: 1.4em; margin: 0; max-width: 48em; }

/* ───────── 맺음말 */
.cta { background: var(--navy); color: var(--page); padding: 18vh var(--gut); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: '休'; position: absolute; right: -4vw; bottom: -12vw; font-family: var(--f-d); font-size: 46vw; line-height: 1; color: var(--amber); opacity: .08; pointer-events: none; }
.cta .k { color: rgba(251, 248, 241, .6); }
.cta-t { font-family: var(--f-d); font-size: clamp(40px, 5.6vw, 92px); line-height: 1.16; letter-spacing: -.04em; margin-bottom: .5em; }
.cta-l { color: rgba(251, 248, 241, .75); font-size: 18px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 5vh; }
.cta .btn { background: var(--page); color: var(--ink); border-color: var(--page); }
.cta .btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.cta .btn.ghost { background: transparent; color: var(--page); border-color: rgba(251, 248, 241, .45); }
.cta .btn.ghost:hover { background: var(--page); color: var(--ink); }
html.motion .cta-in .cta-l, html.motion .cta-in .cta-btns { opacity: 0; transform: translateY(20px); transition: opacity 1s .4s, transform 1.2s var(--ease) .4s; }
html.motion .cta-in.in .cta-l, html.motion .cta-in.in .cta-btns { opacity: 1; transform: none; }

/* ───────── 판권 */
.colophon { background: var(--paper); padding: 14vh var(--gut) 10vh; }
.co-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 8vw; border-top: 1px solid var(--ink); padding-top: 6vh; }
.co-k { font-family: var(--f-l); font-style: italic; color: var(--ink-3); font-size: 16px; }
.co-title { font-family: var(--f-d); font-size: 44px; line-height: 1.1; margin: 0 0 .2em; }
.co-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 2.2em; }
.co-dl { margin: 0 0 2em; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.co-dl div { grid-template-columns: 9em 1fr; padding: .5em 0; font-size: 14.5px; }
.co-dl dt { color: var(--ink-3); }
.co-dl dd { margin: 0; }
.co-dl a { border-bottom: 1px solid var(--rule); }
.co-fine { font-size: 13px; color: var(--ink-3); margin-bottom: .4em; }
.co-logo { width: min(280px, 100%); margin-bottom: 4vh; }
.co-nav { list-style: none; padding: 0; margin: 0 0 4vh; display: grid; gap: .3em; font-size: 15px; }
.co-nav a:hover { color: var(--navy); }
.co-bar { width: 180px; background: #fff; padding: 12px 14px 8px; border: 1px solid var(--rule); }
.bc { width: 100%; height: 46px; fill: var(--ink); }
.co-bar p { font-family: var(--f-l); font-size: 13px; letter-spacing: .14em; margin: 6px 0 0; text-align: center; }
.co-copy { font-family: var(--f-l); font-size: 13px; color: var(--ink-3); margin-top: 3vh; }
.mcta { display: none; }

/* ───────── 하위 쪽 */
.sh { padding: calc(var(--rh) + 12vh) var(--gut) 8vh; max-width: 1320px; margin: 0 auto; }
.sh-t { font-family: var(--f-d); font-size: clamp(46px, 7vw, 116px); line-height: 1.1; letter-spacing: -.04em; }
.sh-k { display: block; font-family: var(--f-b); font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; color: var(--navy); letter-spacing: -.01em; margin-bottom: 1.2em; }
.sh-l { max-width: 32em; color: var(--ink-2); font-size: 18px; margin-top: 1.4em; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 5vh; }
.crumb i { font-style: normal; opacity: .5; }
.crumb a:hover { color: var(--ink); }
html.motion .sh-t .ln, html.motion .vh .sh-t .ln { overflow: hidden; }
html.motion .sh-t .ln > span { animation: lineUp 1.2s var(--ease) both; animation-delay: calc(var(--i) * 110ms + .15s); }
.prose-sec { max-width: 1240px; margin: 0 auto; padding: 4vh var(--gut) 14vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 7vw; }
.prose-sec.one { display: block; max-width: 900px; }
.prose { max-width: var(--measure); font-size: 18.5px; line-height: 2; }
.prose.legal { font-size: 16px; }
.plate.side img { aspect-ratio: 600 / 1194; object-fit: cover; }
.phil { padding: 10vh 0 6vh; }
.phil-list, .qa-list { max-width: 1180px; margin: 6vh auto 0; padding: 0 var(--gut); }
.phil-list { margin-left: auto; margin-right: auto; }
.qa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 3vw; }
.qa-item { background: var(--page); padding: clamp(24px, 3.4vw, 44px); }
.qa-item h3 { font-family: var(--f-d); font-size: 32px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .8em; }
.review-note { font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 1em; margin-top: 8vh; }

/* 휴 전집 목록 */
.vlist { padding: 2vh var(--gut) 16vh; }
.vgrid { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 9vh 4vw; }
.vcard { display: block; }
.vcard .vol-book { transition: transform .7s var(--ease), box-shadow .7s; }
.vcard:hover .vol-book { transform: translateY(-10px) rotate(-1.2deg); }

/* 진료 한 권 */
.vh { max-width: 1320px; margin: 0 auto; padding: calc(var(--rh) + 9vh) var(--gut) 12vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 6vw; align-items: center; }
.vh .sh-t { font-size: clamp(44px, 5.6vw, 92px); }
.vh-lead { font-size: 19px; line-height: 1.95; max-width: 30em; margin: 1.6em 0 1.2em; color: var(--ink); }
.vh-book { position: relative; perspective: 1600px; }
.vh-book-in { transform-style: preserve-3d; transform: rotateY(var(--try, -14deg)) rotateX(var(--trx, 4deg)); transition: transform .8s var(--ease); box-shadow: 0 50px 80px -40px rgba(30, 20, 5, .55); }
html.motion .vh-book-in { animation: bookIn 1.5s var(--ease) .1s both; }
@keyframes bookIn { from { transform: rotateY(-70deg) translateX(40px); opacity: 0; } }
.vh-book .book-shadow { transform: none; bottom: -7%; }
.vbody { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut) 12vh; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 6vw; }
.v-stick { position: sticky; top: calc(var(--rh) + 5vh); }
.v-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.v-toc a { display: block; padding: .7em 0; border-bottom: 1px solid var(--rule-2); font-size: 15px; line-height: 1.5; transition: color .3s, padding .4s var(--ease); }
.v-toc a span { display: block; font-size: 12.5px; color: var(--ink-3); }
.v-toc a:hover, .v-toc a.cur { color: var(--navy); padding-left: 8px; }
.v-main { max-width: 760px; min-width: 0; }
.v-main .biblio { padding: 0; margin: 0 0 10vh; }
.chap { margin-bottom: 11vh; font-size: 18.5px; line-height: 2; }
.chap-no { font-size: 14px; letter-spacing: .12em; color: var(--amber-ink); font-weight: 700; margin-bottom: .6em; }
.chap-t { text-wrap: balance; font-family: var(--f-d); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.22; letter-spacing: -.03em; margin-bottom: .9em; }
.v-plate .plate { margin: 0 0 1.6em; }
.v-plate .plate img { max-height: 80vh; object-fit: contain; background: var(--paper-2); }
.vnext { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.vn { display: flex; flex-direction: column; gap: 6px; padding: 7vh var(--gut); border-left: 8px solid var(--tone); transition: background .4s; }
.vn.next { text-align: right; border-left: 1px solid var(--rule); border-right: 8px solid var(--tone); }
.vn:hover { background: var(--page); }
.vn-k { font-size: 14px; color: var(--ink-3); }
.vn-t { font-family: var(--f-d); font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.02em; line-height: 1.25; }

.doc-page { padding-top: 0; }
.doc-page .flap { margin-top: 0; }
.cv-list { max-width: 1180px; margin: 10vh auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 6vh 5vw; }
.cvl h3 { font-family: var(--f-d); font-size: 28px; border-bottom: 1px solid var(--ink); padding-bottom: .4em; margin-bottom: .6em; }
.cvl ul { list-style: none; margin: 0; padding: 0; }
.cvl li { padding: .55em 0; border-bottom: 1px solid var(--rule-2); font-size: 16px; line-height: 1.7; }
.doc-page .review-note { max-width: 1180px; margin: 6vh auto 0; padding: 1em var(--gut) 0; border: 0; }

/* ───────── 진료 권 — 답변 구조(요지·추천·대조표·순서·뒷날·일러두기·낱말) */
.byline a, .rv a { border-bottom: 1px solid var(--rule); }
.byline a:hover, .rv a:hover { border-color: var(--ink); }
.il { border-bottom: 1px solid var(--amber); transition: background .3s; }
.il:hover { background: rgba(233, 161, 27, .16); }
.answer { border-left: 2px solid var(--amber); padding: .15em 0 .15em 1.1em; margin: 0 0 1.3em; font-weight: 700; color: var(--ink); line-height: 1.9; }
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.who li { display: grid; grid-template-columns: 2.6em 1fr; gap: 10px; padding: .85em 0; border-bottom: 1px solid var(--rule-2); font-size: 17px; line-height: 1.7; }
.who li span { font-family: var(--f-d); color: var(--amber-ink); font-size: 19px; line-height: 1.5; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.nw { white-space: nowrap; }
.cmp { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 15.5px; line-height: 1.7; }
.cmp.wide { min-width: 560px; }
.cmp caption { caption-side: top; text-align: left; font-size: 14px; color: var(--ink-3); padding-bottom: .7em; }
.cmp thead th { font-family: var(--f-d); font-weight: 400; font-size: 18px; text-align: left; padding: .8em .6em; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.cmp thead td { border-bottom: 1px solid var(--ink); }
.cmp tbody th { text-align: left; font-weight: 400; font-size: 14px; color: var(--ink-3); width: 7.5em; padding: .95em .6em; vertical-align: top; border-bottom: 1px solid var(--rule-2); }
.cmp tbody td { padding: .85em .6em; vertical-align: top; border-bottom: 1px solid var(--rule-2); }
.cmp tbody td:last-child { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; padding: 1.1em 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--rh) + 24px); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.st-n { font-family: var(--f-l); font-size: 30px; line-height: 1.1; color: var(--amber-ink); }
.st-t { font-family: var(--f-d); font-weight: 400; font-size: 22px; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 .25em; }
.steps p { margin: 0; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.after { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.after div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 1em 0; border-bottom: 1px solid var(--rule-2); }
.after dt { font-family: var(--f-d); font-size: 18px; line-height: 1.6; }
.after dd { margin: 0; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.notice-box { background: var(--page); border: 1px solid var(--rule); border-top: 3px double var(--ink); padding: 1.5em clamp(18px, 3vw, 34px) 1.3em; }
.notice-box h3 { font-family: var(--f-d); font-weight: 400; font-size: 20px; margin: 0 0 .4em; display: flex; align-items: center; gap: .5em; }
.notice-box h3::before { content: ''; width: 8px; height: 8px; background: var(--amber); transform: rotate(45deg); }
.notice-box p { font-size: 16.5px; line-height: 1.9; color: var(--ink-2); margin: 0 0 1.3em; }
.notice-box p:last-child { margin-bottom: 0; }
.terms { margin: 0; border-top: 1px solid var(--ink); }
.terms div { padding: .95em 0; border-bottom: 1px solid var(--rule-2); }
.terms dt { font-weight: 800; font-size: 17px; margin-bottom: .2em; }
.terms dd { margin: 0; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.review-note .rv { margin: 0 0 .7em; }
.review-note .rv b { font-weight: 800; color: var(--ink); margin-right: .5em; }
.review-note .legal { margin: 0; }
.v-rel-k { margin-top: 5vh; }
.v-rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v-rel a { display: block; padding: .7em .9em; border-left: 6px solid var(--tone); background: var(--page); font-size: 15px; line-height: 1.45; transition: transform .4s var(--ease); }
.v-rel a b { display: block; font-family: var(--f-l); font-weight: 500; font-size: 13px; color: var(--ink-3); }
.v-rel a:hover { transform: translateX(4px); }
.v-rel.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.v-rel.wide a { font-family: var(--f-d); font-size: 20px; padding: 1em 1.1em; }
/* 요지 상자(저자·오시는 길·서문 쪽) */
.qa-box { max-width: 1320px; margin: 0 auto 8vh; }
.qa-box .qa-lead { font-size: clamp(17px, 1.5vw, 20px); border-left: 2px solid var(--amber); padding-left: 1.1em; }
.qa-k { font-family: var(--f-l); font-style: italic; color: var(--ink-3); font-size: 16px; margin: 0 0 .4em; }
.doc-vols, .doc-faq { max-width: 1180px; margin: 12vh auto 0; padding: 0 var(--gut); }
.appx.sub .ax-faq { max-width: 1320px; margin: 10vh auto 0; }
.faq-all .faq-sec { margin-bottom: 10vh; }
.faq-all .tlink { margin-top: 1.4em; }
.faq-no { display: block; font-family: var(--f-l); font-size: 14px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: .2em; }
/* 영문 쪽 */
html[lang="en"] .sh-t, html[lang="en"] .ax-h, html[lang="en"] .st-t, html[lang="en"] .faq summary { font-family: var(--f-l); letter-spacing: -.01em; }
html[lang="en"] .sh-t { font-weight: 500; }
.en-body .ax-h { margin-top: 10vh; }
.en-body .way-btns { margin-top: 6vh; }

/* ───────── 커서 */
.cur { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--ink); border-radius: 50%; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1)); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; mix-blend-mode: multiply; display: grid; place-items: center; }
.cur span { font-size: 11px; letter-spacing: .08em; opacity: 0; transition: opacity .3s; white-space: nowrap; color: var(--page); }
.cur.link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(233, 161, 27, .9); border-color: transparent; mix-blend-mode: normal; }
.cur.read { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--ink); border-color: var(--ink); mix-blend-mode: normal; }
.cur.read span { opacity: 1; }
.cur-dot { position: fixed; left: 0; top: 0; z-index: 301; pointer-events: none; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink); transform: translate3d(var(--dx, -100px), var(--dy, -100px), 0); }
@media (hover: hover) and (pointer: fine) { html.motion.has-cur, html.motion.has-cur a, html.motion.has-cur button, html.motion.has-cur summary { cursor: none; } }

/* ───────── 반응형 */
@media (max-width: 1100px) {
  .ax-grid { grid-template-columns: 1fr 1fr; }
  .ax-map { display: none; }
}
@media (max-width: 899.98px) {
  :root { --rh: 54px; }
  body { font-size: 16.5px; line-height: 1.85; }
  .rh { grid-template-columns: auto 1fr auto; gap: 10px; }
  .rh-run { display: none; }
  .rh-call { display: none; }
  .rh-r { gap: 14px; }
  .rh-folio { font-size: 14px; }
  .cs-sticky { grid-template-columns: 1fr; padding-top: calc(var(--rh) + 4vh); }
  html.motion .cs-text { top: calc(var(--rh) + 3vh); left: var(--gut); right: var(--gut); width: auto; transform: translateY(var(--ty, 0px)); }
  .cs-series { font-size: 12px; margin-bottom: 1.6vh; }
  .cs-t { font-size: clamp(40px, 11.2vw, 64px); }
  .cs-k { font-size: 15px; margin-bottom: 1vh; }
  .cs-lead { font-size: 15px; line-height: 1.75; margin: 1.8vh 0 0; }
  .cs-meta, .cs-down { display: none; }
  .book-wrap { --bw: min(250px, 58vw, 30vh); }
  .pf-in { grid-template-columns: 1fr; grid-template-areas: "head" "body" "plate"; }
  .pf-plate { margin: 8vh 0 0; max-width: 300px; }
  .pf-body { font-size: 17px; line-height: 1.95; }
  .toc-list a { grid-template-columns: 3.4em 1fr auto; gap: 10px; }
  .t-dots { display: none; }
  .t-part { font-size: 13px; }
  .t-pg { font-size: 18px; }
  .toc-peek { display: none; }
  .ss-after { grid-template-columns: 1fr; }
  .flap { grid-template-columns: 1fr; }
  .fl-photo { max-height: 62vh; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-stick { position: static; }
  .pl-photos { gap: 4vh 3vw; }
  .room.off { margin-top: 8vh; }
  .ax-grid { grid-template-columns: 1fr; gap: 7vh; }
  .bib th { width: 6em; }
  .co-in { grid-template-columns: 1fr; gap: 6vh; }
  .co-dl div { grid-template-columns: 7.4em 1fr; }
  .mcta { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 105; background: var(--ink); color: var(--page); padding-bottom: env(safe-area-inset-bottom); }
  .mcta a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; font-size: 12.5px; }
  .mcta a + a { border-left: 1px solid rgba(255, 255, 255, .14); }
  .mcta svg { width: 18px; height: 18px; }
  body { padding-bottom: 62px; }
  .prose-sec { grid-template-columns: 1fr; }
  .plate.side { max-width: 280px; }
  .vh { grid-template-columns: 1fr; padding-top: calc(var(--rh) + 5vh); gap: 6vh; }
  .vh-book { max-width: 250px; margin: 0 auto; }
  .vbody { grid-template-columns: minmax(0, 1fr); }
  .v-side { display: none; }
  .vnext { grid-template-columns: 1fr; }
  .after div { grid-template-columns: 1fr; gap: 2px; }
  .cmp { font-size: 14.5px; }
  .cmp thead th { font-size: 16px; padding: .7em .45em; }
  .cmp tbody th { width: 4.8em; font-size: 13px; padding: .9em .45em .9em 0; }
  .cmp tbody td { padding: .8em .45em; }
  .steps li { grid-template-columns: 2.4em 1fr; }
  .st-n { font-size: 24px; }
  .who li { font-size: 16px; }
  .vn.next { border-left: 8px solid var(--tone); border-right: 0; text-align: left; border-top: 1px solid var(--rule); }
  .ss-han { letter-spacing: .14em; padding-left: .14em; }
  .words-list li, .phil-list li { grid-template-columns: 52px 1fr; padding: 1.8em 0; }
  .faq summary { font-size: 19px; }
  .ribbon { width: 8px; right: 6px; }
}
@media (max-width: 480px) {
  .pl-photos { grid-template-columns: 1fr; }
  .room.off { margin-top: 0; }
  .room img { aspect-ratio: 4 / 5; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
