/* 책 소개 쪽 */
.book { max-width: 1120px; margin: 0 auto; padding: clamp(96px, 10vw, 132px) var(--gut) 150px; }
.book__back { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--dim); transition: color .25s; }
.book__back:hover { color: var(--ink-on); }
.book__grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 28px; align-items: start; }
.book__cover { margin: 0; position: sticky; top: 96px; display: grid; justify-items: center; gap: 22px; }
.book__cover .b3 { cursor: pointer; }
.book__turn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: none; border: 0; color: var(--dim); font: inherit; font-size: 13px; letter-spacing: .08em; cursor: pointer; transition: color .25s; }
.book__turn:hover { color: var(--ink-on); }
.book__hint { margin-top: -18px; font-size: 12px; letter-spacing: .04em; color: var(--dim); text-align: center; }
.book__turn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.book__shelf { margin: 0; font-size: 12px; letter-spacing: .24em; color: var(--seal); }
.book__title { margin: 8px 0 0; font-weight: 200; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.15; letter-spacing: .02em; }
html[lang="en"] .book__title { font-family: var(--serif); font-weight: 400; }
.book__other { margin: 6px 0 0; font-size: 18px; color: var(--dim); }
html[lang="ko"] .book__other { font-family: var(--serif); font-size: 21px; }
.book__sub { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--dim); }
.book__author { margin: 18px 0 0; font-size: 17px; }
.book__author span { margin-left: 6px; font-size: 13px; letter-spacing: .08em; color: var(--dim); }
.book__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 36px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.book__facts dt { font-size: 11.5px; letter-spacing: .18em; color: var(--dim); }
.book__facts dd { margin: 4px 0 0; font-size: 15px; }
.book__facts small { display: block; margin-top: 2px; font-size: 11px; color: var(--dim); letter-spacing: .02em; }
.book__first { margin: 32px 0 0; }
.book__first figcaption { font-size: 11.5px; letter-spacing: .18em; color: var(--dim); }
.book__first blockquote { margin: 10px 0 0; padding-left: 18px; border-left: 2px solid var(--seal); font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.45; }
.book__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 10px 22px; border: 1px solid rgba(239, 235, 228, .35); background: none; color: var(--ink-on);
  font: inherit; font-size: 14px; letter-spacing: .06em; line-height: 1.3; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn small { font-size: 11px; color: var(--dim); letter-spacing: .02em; }
.btn:hover { border-color: var(--ink-on); }
.btn--main { background: var(--ink-on); color: var(--night); border-color: var(--ink-on); font-weight: 500; min-width: 160px; align-items: center; }
.btn--main:hover { background: #fff; }
.btn--want[aria-pressed="true"] { border-color: var(--seal); }
.book__sec { margin-top: clamp(56px, 7vw, 88px); }
.book__sec h2 { margin: 0 0 16px; font-weight: 300; font-size: 13px; letter-spacing: .24em; color: var(--dim); }
.toc { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 40px; border-top: 1px solid var(--hair); padding-top: 14px; }
.toc__item { break-inside: avoid; }
.toc__item a { display: block; padding: 6px 0; font-family: var(--serif); font-size: 16px; color: var(--ink-on); transition: color .2s; }
.toc__item a:hover { color: var(--seal); }
.toc__item--sub a { padding-left: 14px; font-size: 15px; color: rgba(239, 235, 228, .82); }
.toc__more { margin-top: 14px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--hair); color: var(--dim); font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.toc__more:hover { color: var(--ink-on); }
.colophon dl { margin: 0; border-top: 1px solid var(--hair); }
.colophon dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.colophon dt { font-size: 12.5px; letter-spacing: .1em; color: var(--dim); }
.colophon dd { margin: 0; font-size: 14.5px; line-height: 1.8; }
.colophon a { border-bottom: 1px solid var(--hair); }
.colophon a:hover { border-color: var(--ink-on); }
@media (max-width: 760px) {
  .book { padding-top: 84px; padding-bottom: 130px; }
  .book__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 20px; }
  .book__cover { position: static; justify-items: start; }
  .book__cover .b3--large { --w: min(58vw, 240px); }
  .book__facts { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .book__facts > div:nth-child(2) { grid-column: 2; }
  .book__actions .btn { flex: 1 1 100%; align-items: center; }
  .colophon dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* 언어 상자(책 소개 쪽 · 개인소장하기 창): 언어 이름만 보이고, 누르면 기기 기본 목록이 열린다 */
.book__pick { margin-top: 34px; }
.book__pick + .book__actions { margin-top: 12px; }
.pick { position: relative; display: inline-flex; align-items: center; min-width: 200px; }
.pick__sel { width: 100%; min-height: 48px; padding: 0 44px 0 18px; -webkit-appearance: none; appearance: none; background: none; border: 1px solid rgba(239, 235, 228, .35); border-radius: 0;
  color: var(--ink-on); font: inherit; font-size: 14px; letter-spacing: .06em; cursor: pointer; color-scheme: dark; transition: border-color .25s; }
.pick__icon + .pick__sel { padding-left: 46px; }
.pick__sel:hover { border-color: var(--ink-on); }
.pick__sel option { background: #1B1A17; color: var(--ink-on); }
.pick svg { position: absolute; pointer-events: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pick__icon { left: 16px; color: var(--dim); }
.pick__down { right: 16px; }

/* 개인소장하기 창: PC는 화면 가운데, 휴대폰은 아래에서 올라와 손가락으로 끌어내려 닫는다. 관장 명함(.cardbox)은 이 창 위에 뜬다 */
.get { position: fixed; inset: 0; z-index: 80; }
.get[hidden] { display: none; }
.get__scrim { position: absolute; inset: 0; background: rgba(8, 8, 7, .62); opacity: 0; transition: opacity .32s ease; }
.get.is-open .get__scrim { opacity: 1; }
.get__panel { position: absolute; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: min(88vh, 880px); display: flex; flex-direction: column;
  background: #1B1A17; border: 1px solid rgba(239, 235, 228, .14); box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate(-50%, calc(-50% + 14px)); transition: opacity .32s ease, transform .42s cubic-bezier(.2, .7, .1, 1); }
.get.is-open .get__panel { opacity: 1; transform: translate(-50%, -50%); }
.get__panel { color-scheme: dark; }  /* 창 안 스크롤 막대도 어둡게 */
.get__panel:focus { outline: none; }
.get__head { position: relative; flex: none; padding: 30px 72px 16px 36px; transition: box-shadow .2s; }
.get__panel.is-scrolled .get__head { box-shadow: 0 1px 0 var(--hair); }
.get__grab { display: none; }
.get__book { margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--seal); }
.get__title { margin: 6px 0 0; font-weight: 200; font-size: 30px; line-height: 1.2; letter-spacing: .02em; }
html[lang="en"] .get__title { font-family: var(--serif); font-weight: 400; }
.get__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--dim); cursor: pointer; transition: color .2s; }
.get__close:hover { color: var(--ink-on); }
.get__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.get__body { padding: 0 36px 32px; overflow-y: auto; overscroll-behavior: contain; }
.get__lead { margin: 0; font-size: 15.5px; }
.get__field { margin-top: 22px; }
.get__k { display: block; margin-bottom: 8px; font-size: 11.5px; letter-spacing: .18em; color: var(--dim); }
.get__field .pick { display: flex; }
.get__dl { display: flex; width: 100%; margin-top: 12px; align-items: center; }
.get__help { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.get__about { margin: 28px 0 0; border-top: 1px solid var(--hair); }
.get__about > div { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.get__about dt { font-size: 11.5px; letter-spacing: .18em; color: var(--dim); }
.get__about dd { margin: 6px 0 0; font-size: 14px; line-height: 1.75; }
.get__motto { margin: 0; font-family: var(--kserif); font-weight: 500; font-size: 16px; line-height: 1.6; }
html[lang="en"] .get__motto { font-family: var(--serif); font-size: 17px; }
.get__motto + .get__motto { margin-top: 4px; }
html.is-get { overflow: hidden; }
@media (max-width: 760px) {
  .book__pick .pick { display: flex; }
  .get__panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 90vh; max-height: 90dvh; padding-bottom: env(safe-area-inset-bottom); border-width: 1px 0 0;
    opacity: 1; transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .7, .1, 1); }
  .get.is-open .get__panel { transform: translateY(var(--pull, 0px)); }
  .get.is-drag .get__panel { transition: none; }
  .get__head { padding: 28px 64px 14px 20px; touch-action: none; }
  .get__grab { display: block; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: rgba(239, 235, 228, .28); }
  .get__title { font-size: 26px; }
  .get__close { top: 12px; right: 8px; }
  .get__body { padding: 0 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .get__scrim, .get__panel { transition: none; } }

/* 열람·완독(10/30 관장님): 정보 표의 새 줄 맨 앞에서 시작(분량·읽는 시간·언어 아래 줄) */
.book__facts.has-st { row-gap: 16px; }
.book__facts .st--first { grid-column-start: 1; }
@media (max-width: 760px) { .book__facts.has-st { row-gap: 14px; } }
/* 듣기 단추(오디오북이 있는 책): 읽기를 앞세우되 듣기는 인주색 헤드폰으로 살짝 */
.btn--listen { flex-direction: row; align-items: center; gap: 8px; }
.btn--listen svg { width: 18px; height: 18px; fill: none; stroke: var(--seal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
