/* 열두칸책방 — 동네 독립서점 디자인 샘플 (디코랩)
   구성: 맨 위 책장(책등 = 메뉴) + 섹션마다 책 한 권을 펼친 두 쪽 지면.
   색은 서점 실물에서: 올리브 표지 천·책장 뒤판, 자작 합판 선반, 노출 콘크리트 벽, 책 지면, 다홍 책갈피 끈 */
:root {
  --color-olive-cloth: #4A5523;   /* 책방 표지 천·책장 뒤판 (theme-color) */
  --color-olive-deep: #3A4319;
  --color-birch: #D9BC8C;         /* 자작 합판 선반 */
  --color-birch-edge: #B9965F;
  --color-concrete: #E4E2DA;      /* 배경 벽 */
  --color-page: #FBFAF5;          /* 책 지면 */
  --color-ink: #24261E;           /* 본문 글자 */
  --color-muted: #5A5D4E;
  --color-rule: #DAD6C9;
  --color-pen: #2D4B7C;           /* 책방지기 만년필 잉크 — 손글씨 카드 */
  --color-ribbon: #C4421F;        /* 주 버튼(북토크 신청)에만 — 다홍 책갈피 끈 */
  --color-ribbon-deep: #A53515;
  --color-kakao: #FEE500;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: "Yeon Sung", var(--font);

  --fs-h1: clamp(2rem, 1.3rem + 2.6vw, 3.3rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.5vw, 2.4rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.03rem;
  --fs-small: .86rem;

  --shelf-h: 108px;   /* 책장 전체 높이 (선반 포함) */
  --plank-h: 10px;
  --sec-pad: clamp(28px, 5vw, 72px);
  --page-x: 20px;
}
@media (min-width: 900px) {
  :root { --shelf-h: 138px; --plank-h: 14px; --page-x: clamp(34px, 4.2vw, 62px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--shelf-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-concrete);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(62px + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-pen); outline-offset: 3px; }

/* 실제 정보 자리 */
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 4px; opacity: .8; font-size: .92em; line-height: 1.5; }

/* 샘플 안내 띠 */
.sample-banner { background: var(--color-ink); color: #E9E7DE; font-size: .82rem; line-height: 1.6; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; max-width: 1280px; margin-inline: auto; padding: 8px 14px; }
.sample-banner__tag { flex: none; padding: 1px 8px; border-radius: 3px; background: var(--color-birch); color: var(--color-ink); font-weight: 700; font-size: .74rem; }
.sample-banner a { color: var(--color-birch); font-weight: 600; }

/* ---------- 책장 (sticky 메뉴) ---------- */
.shelf { position: sticky; top: 0; z-index: 40; background: linear-gradient(#3B4519, var(--color-olive-cloth) 70%); }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(rgba(36,38,30,.3), rgba(36,38,30,0)); pointer-events: none; }
.shelf__inner { display: flex; align-items: flex-end; gap: 8px; height: calc(var(--shelf-h) - var(--plank-h)); max-width: 1280px; margin-inline: auto; padding: 0 0 0 12px; }
.shelf__plank {
  height: var(--plank-h);
  background: linear-gradient(var(--color-birch) 0 50%, var(--color-birch-edge) 50% 58%, var(--color-birch) 58% 74%, #A98552 74% 80%, var(--color-birch) 80%);
  border-top: 1px solid rgba(255,255,255,.4);
}

/* 로고 = 북엔드 */
.logo {
  flex: none; align-self: flex-end;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 78px; height: 70px; padding: 6px 4px 4px;
  background: var(--color-birch); color: var(--color-ink); text-decoration: none;
  border-radius: 6px 6px 0 0;
  box-shadow: inset -4px 0 0 rgba(0,0,0,.1), inset 0 3px 0 rgba(255,255,255,.35);
}
.logo__mark { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.logo__text b { font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.logo__text small { display: none; }
.logo:focus-visible { outline-color: #F4EFE1; }

/* 책등 */
.spines {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: flex-end; gap: 4px;
  height: 100%; padding: 14px 24px 0 2px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
  mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.spines::-webkit-scrollbar { display: none; }
.spine {
  position: relative; flex: none;
  width: var(--mw); height: var(--mh);
  display: flex; justify-content: center; padding-top: 14px;
  background: var(--c); color: var(--t); text-decoration: none;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.16), inset -3px 0 0 rgba(0,0,0,.16);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.spine::before { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 4px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .45; }
.spine::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 8px; height: 8px; margin-left: -4px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .5; }
.spine--diamond::after { border-radius: 1px; transform: rotate(45deg); }
.spine--band::before { top: auto; bottom: 20px; height: 6px; border-width: 2px; }
.spine--wide::before { height: 6px; border-top-width: 2px; border-bottom-width: 2px; opacity: .6; }
.spine__title { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--font-display); font-size: 11.5px; line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
/* 낱말 사이: 세로쓰기에서 공백이 한 글자 폭이 되지 않게 좁은 틈만 */
.spine__title i { display: inline-block; inline-size: 4px; overflow: hidden; font-style: normal; }
@media (max-width: 899px) {
  .spine::after { display: none; }
  .spine--band::before { bottom: 6px; }
}
.spine:hover { transform: translateY(-4px); }
.spine.is-active { transform: translateY(-11px); box-shadow: inset 3px 0 0 rgba(255,255,255,.16), inset -3px 0 0 rgba(0,0,0,.16), 0 12px 10px -6px rgba(0,0,0,.45); }
.spine:focus-visible { outline: 3px solid #F4EFE1; outline-offset: 2px; }

.shelf__decor, .shelf__end { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 4px;
  font: 700 1rem/1.25 var(--font); text-decoration: none; text-align: center;
  border: 2px solid var(--color-ink); cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
/* 띠지 모양 — 주 버튼 */
.btn--band { background: var(--color-ribbon); border-color: var(--color-ribbon); color: #fff; box-shadow: inset 0 0 0 2px var(--color-ribbon), inset 0 0 0 3px rgba(255,255,255,.55); }
.btn--band:hover { background: var(--color-ribbon-deep); border-color: var(--color-ribbon-deep); box-shadow: inset 0 0 0 2px var(--color-ribbon-deep), inset 0 0 0 3px rgba(255,255,255,.55); }
.btn--line { background: transparent; color: var(--color-ink); }
.btn--line:hover { background: rgba(36,38,30,.06); }
.btn--kakao { background: var(--color-kakao); color: #191600; border-color: #191600; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- 책 (섹션) ---------- */
.book { padding: var(--sec-pad) 12px 0; }
.book:last-child { padding-bottom: var(--sec-pad); }
.book__body {
  position: relative; max-width: var(--bw, 1180px); margin-inline: auto;
  background: var(--cover); border-radius: 3px 8px 8px 3px;
  padding: 7px 7px 9px 12px;
  box-shadow: 0 22px 22px -20px rgba(36,38,30,.6), 0 1px 0 rgba(0,0,0,.12);
}
/* 표지 천 결 */
.book__body::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
}
.spread {
  position: relative; z-index: 1;
  background: var(--paper, var(--color-page));
  border-radius: 2px;
  box-shadow: 2px 2px 0 #ECE8DC, 4px 4px 0 #D7D2C3;
}
/* 모바일: 한 쪽 지면 — 왼쪽이 제본 */
.spread::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 26px; background: linear-gradient(90deg, rgba(60,55,40,.2), rgba(60,55,40,0)); pointer-events: none; }
.page { position: relative; min-width: 0; padding: 46px var(--page-x) 46px calc(var(--page-x) + 8px); }
.page--r { padding-top: 0; }
.page--r::before { content: ""; display: block; border-top: 1px dashed #CFC9B8; margin-bottom: 30px; }
.page__head { position: absolute; top: 16px; left: calc(var(--page-x) + 8px); right: var(--page-x); font-size: .76rem; color: var(--color-muted); letter-spacing: .02em; line-height: 1.4; }
.page__folio { position: absolute; bottom: 14px; font-size: .76rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.page--r .page__folio { right: var(--page-x); }
.page--l .page__folio, .page--r .page__head { display: none; }
.page__note { margin-top: 14px; font-size: .8rem; color: var(--color-muted); }

.book h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.01em; margin-bottom: 14px; }
.lead { color: var(--color-muted); max-width: 30em; margin-bottom: 26px; }

/* 손글씨 쪽지 */
.memo {
  position: relative; max-width: 25em; margin: 8px 0 6px;
  padding: 20px 22px 18px;
  background: #FFFDF2; border: 1px solid #E3DCC6;
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.6; color: var(--color-pen);
  transform: rotate(-1deg);
  box-shadow: 0 10px 14px -12px rgba(36,38,30,.55);
}
.memo::before { content: ""; position: absolute; top: -9px; left: 28px; width: 54px; height: 18px; background: rgba(217,188,140,.75); transform: rotate(-4deg); }
.memo p + p { margin-top: 6px; }
.memo__title { font: 800 .82rem/1.4 var(--font); color: var(--color-muted); letter-spacing: .02em; margin-bottom: 6px; }
.memo__sign { text-align: right; }
.memo__sign::before { content: "— "; }
.memo--small { font-size: 1.05rem; margin-top: 26px; }

/* ---------- 히어로 ---------- */
.hero__kicker { display: inline-block; margin-bottom: 12px; font-weight: 700; font-size: .9rem; color: var(--color-olive-cloth); border-bottom: 2px solid currentColor; line-height: 1.6; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.26; letter-spacing: -.015em; margin-bottom: 14px; }
.hero__lead { color: var(--color-muted); max-width: 27em; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero__facts { margin: 0; border-top: 1.5px solid var(--color-ink); }
.hero__facts div { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--color-rule); font-size: .95rem; }
.hero__facts dt { font-weight: 700; }
.hero__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.hero__facts .hero__today dd { font-weight: 700; color: var(--color-olive-cloth); }
.hero__art { margin: 0; }
.front { width: 100%; height: auto; }
.front__sign { font-family: var(--font-display); font-size: 42px; fill: #F4EFE1; }
.front__open { font-family: var(--font-display); font-size: 17px; fill: var(--color-ink); }
.front__chalk { font-family: var(--font-display); font-size: 19px; fill: #F4EFE1; }
.front__chalk--big { font-size: 28px; }
.hero__art figcaption { margin-top: 10px; font-size: .85rem; color: var(--color-muted); }

/* ---------- 새로 온 책 ---------- */
.newbooks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; align-items: end; }
.newbook { min-width: 0; }
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 2 / 3; padding: 12px 12px 10px 16px;
  background-color: var(--bg); color: var(--fg);
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 5px 0 0 rgba(0,0,0,.12), inset 6px 0 0 rgba(255,255,255,.15), 0 10px 12px -10px rgba(36,38,30,.6);
}
.cover__t { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; }
.cover__a { font-size: .72rem; font-weight: 600; opacity: .85; }
.cover--moon { --bg: #23423F; --fg: #F2EBD3; background-image: radial-gradient(circle at 70% 64%, #EAD9A0 0 15%, transparent 15.5%); }
.cover--flame { --bg: #EDE5D3; --fg: #2B2412; aspect-ratio: 5 / 7; width: 88%; background-image: radial-gradient(ellipse 9% 15% at 50% 62%, #C8962B 0 70%, transparent 72%); box-shadow: inset 0 0 0 8px #EDE5D3, inset 0 0 0 9.5px #2B2412, 0 10px 12px -10px rgba(36,38,30,.6); padding: 18px 18px 16px 20px; }
.cover--stripe { --bg: #2D4B7C; --fg: #F3EBD6; background-image: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.1) 14px 28px); aspect-ratio: 3 / 4.3; }
.cover--door { --bg: #5D6B78; --fg: #EEF0F2; background-image: linear-gradient(#E8E6DF, #E8E6DF); background-size: 26% 38%; background-position: 72% 74%; background-repeat: no-repeat; }
.cover--wave { --bg: #A3AE86; --fg: #22281A; aspect-ratio: 4 / 5; width: 84%; background-image: radial-gradient(circle at 50% 0, transparent 8px, rgba(34,40,26,.35) 8px 9.5px, transparent 10px); background-size: 20px 13px; background-position: 0 60%; }
.cover--lake { --bg: #E9EEEE; --fg: #1D2B40; background-image: linear-gradient(transparent 56%, #2D4B7C 56% 59%, #9DB4C8 59%); }
.newbook__title { margin-top: 10px; font-weight: 700; font-size: .95rem; line-height: 1.45; }
.newbook__meta { font-size: .82rem; color: var(--color-muted); line-height: 1.5; }
.newbook__meta b { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid currentColor; border-radius: 3px; font-weight: 700; color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* ---------- 책갈피 추천 ---------- */
.picker fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.22rem; }
.chip { display: inline-block; margin: 0 6px 8px 0; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--color-ink); border-radius: 3px; background: #fff;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.chip span:hover { background: #EFEBE0; }
.chip input:checked + span { background: var(--color-pen); border-color: var(--color-pen); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--color-pen); outline-offset: 2px; }

.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mark {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 18px 16px;
  background: #FFFEF8; border: 1px solid #DCD6C5; border-top: 6px solid var(--cord);
  border-radius: 2px 2px 4px 4px;
  font-family: var(--font-display);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 12px 16px -12px rgba(36,38,30,.55);
}
/* 펀치 구멍과 끈 */
.mark::before { content: ""; position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--color-concrete); box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); }
.mark::after { content: ""; position: absolute; top: -30px; left: 50%; width: 3px; height: 44px; margin-left: -1.5px; border-radius: 2px; background: var(--cord); }
.mark__no { font: 800 .74rem/1.4 var(--font); color: var(--color-muted); letter-spacing: .04em; }
.mark__title { margin: 6px 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; line-height: 1.3; }
.mark__meta { font: 500 .8rem/1.5 var(--font); color: var(--color-muted); }
.mark__note { margin-top: 12px; font-size: 1.1rem; line-height: 1.6; color: var(--color-pen); }
.mark__how { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--color-pen); text-decoration: underline wavy rgba(45,75,124,.45); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mark__where { margin-top: auto; padding-top: 14px; font: 500 .88rem/1.5 var(--font); }
.mark__where::before { content: ""; display: block; border-top: 1px dashed #CFC8B4; margin-bottom: 10px; }
.mark__where b { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 2px; }

.pickout { margin-top: 30px; }
.pickout__summary { font-weight: 700; line-height: 1.6; }
.pickout__hold { margin-top: 8px; font-size: .95rem; }
.pickout__hold b { display: inline-block; margin-left: 4px; padding: 1px 10px; background: #EEEADD; border-radius: 3px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pickout__help { margin-top: 4px; font-size: .88rem; color: var(--color-muted); }
.pickout__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.pickmap { margin-top: 28px; max-width: 440px; }
.pickmap__label { font-weight: 800; font-size: .85rem; margin-bottom: 8px; }

/* 평면도 */
.plan { width: 100%; height: auto; }
.plan__room { fill: #F1EEE5; stroke: var(--color-ink); stroke-width: 4; }
.plan__glass { stroke: #9CC0C9; stroke-width: 7; }
.plan__door { stroke: var(--paper, var(--color-page)); stroke-width: 8; }
.plan__shelf rect { fill: var(--color-birch); stroke: var(--color-ink); stroke-width: 2.5; transition: fill .3s ease; }
.plan__shelf text { font: 700 20px var(--font); text-anchor: middle; fill: var(--color-ink); transition: fill .3s ease; }
.plan__shelf--table text { font-size: 17px; }
.plan__shelf.is-on rect { fill: var(--color-pen); }
.plan__shelf.is-on text { fill: #fff; }
.plan__thing rect { fill: none; stroke: var(--color-ink); stroke-width: 2; stroke-dasharray: 5 5; }
.plan__thing text { font: 600 15px var(--font); text-anchor: middle; fill: var(--color-muted); }
.plan__in { font: 800 16px var(--font); text-anchor: middle; fill: var(--color-ink); }
.pin circle { fill: var(--cord); stroke: #fff; stroke-width: 3; }
.pin text { font: 800 17px var(--font); text-anchor: middle; fill: #fff; }

/* ---------- 북토크 ---------- */
.talk { border-top: 1.5px solid var(--color-ink); padding: 16px 0 20px; }
.talk + .talk { border-top-width: 1px; border-top-color: var(--color-rule); }
.talk__date { font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.talk__date b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--color-ink); margin-right: 6px; }
.talk--next .talk__date b { font-size: 2.3rem; }
.talk__title { font-size: 1.18rem; font-weight: 800; margin: 2px 0 6px; }
.talk p:not(.talk__date) { color: var(--color-muted); }
.talk__info { margin: 12px 0 0; }
.talk__info div { display: grid; grid-template-columns: 4.2em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--color-rule); font-size: .95rem; }
.talk__info dt { font-weight: 700; }
.talk__info dd { margin: 0; font-variant-numeric: tabular-nums; }
.talk__info small { color: var(--color-muted); font-size: .8rem; margin-left: 4px; }

.steps__title, .first__title, .services__title { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 0 0 16px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--color-ink); border-radius: 50%; background: #F3DCD8; font: 800 .95rem var(--font); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; border-left: 2px dotted #B9B2A0; }
.steps b { font-weight: 800; }
.steps span { color: var(--color-muted); font-size: .95rem; }
.cta-box { display: grid; gap: 10px; margin: 14px 0 0; }

/* ---------- 책 모임 출석부 ---------- */
.roll { width: 100%; border-collapse: collapse; font-size: .93rem; }
.roll th, .roll td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--color-rule); vertical-align: top; }
.roll thead th { font-size: .78rem; color: var(--color-muted); border-bottom: 1.5px solid var(--color-ink); padding-bottom: 6px; }
.roll tbody th { font-weight: 800; }
.roll td { font-variant-numeric: tabular-nums; }
.roll td:last-child { font-family: var(--font-display); font-size: 1.06rem; color: var(--color-pen); }
@media (max-width: 599px) {
  .roll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roll tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--color-rule); }
  .roll tbody th, .roll td { padding: 0; border: 0; }
  .roll tbody th { grid-column: 1 / -1; font-size: 1rem; }
  .roll td:nth-of-type(2) { color: var(--color-muted); }
  .roll td:last-child { grid-column: 1 / -1; }
}
.first { list-style: none; margin: 0 0 20px; padding: 0; }
.first li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--color-rule); }
.first b { font-weight: 800; }
.first span { color: var(--color-muted); font-size: .95rem; }
.first__note { margin-top: 12px; font-family: var(--font-display); font-size: 1.1rem; color: var(--color-pen); }

/* ---------- 책방 지도 ---------- */
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--color-birch); border: 1.5px solid var(--color-ink); border-radius: 3px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.services { margin: 0 0 22px; }
.services div { padding: 12px 0; border-bottom: 1px solid var(--color-rule); }
.services div:first-child { border-top: 1.5px solid var(--color-ink); }
.services dt { font-weight: 800; }
.services dd { margin: 2px 0 0; color: var(--color-muted); }

/* ---------- 자주 묻는 질문 ---------- */
.faq { border-top: 1.5px solid var(--color-ink); }
.qa { border-bottom: 1px solid var(--color-rule); }
.qa h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.qa button { position: relative; width: 100%; padding: 16px 36px 16px 0; background: none; border: 0; text-align: left; font: 700 1.02rem/1.5 var(--font); color: var(--color-ink); cursor: pointer; }
.qa button::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .25s ease; }
.qa.is-open button::after { transform: rotate(45deg); }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 0 18px; color: var(--color-muted); }
.js .qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.js .qa.is-open .qa__panel { grid-template-rows: 1fr; }

/* ---------- 오시는 길 ---------- */
.hours { width: 100%; max-width: 380px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 8px; border-bottom: 1px solid var(--color-rule); text-align: left; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1.5px solid var(--color-ink); }
.hours th { font-weight: 700; width: 7em; }
.hours .is-today { background: rgba(74,85,35,.1); }
.hours .is-today th { font-weight: 800; }
.hours__today { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--color-olive-cloth); color: #fff; font-size: .72rem; line-height: 1.6; vertical-align: 1px; }
.hours__off td { color: var(--color-muted); }
.hours__note { margin: 10px 0 22px; font-size: .88rem; color: var(--color-muted); }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 4.4em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--color-rule); font-size: .95rem; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: 6px; }
.map__store { font-family: var(--font-display); font-size: 21px; fill: #F4EFE1; }
.map__mark { font: 800 18px var(--font); fill: var(--color-ink); }
.map__p { font: 800 22px var(--font); fill: #fff; }
.map__sub { font: 600 14px var(--font); fill: var(--color-muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--color-olive-deep); color: #D9D6C6; font-size: .85rem; line-height: 1.7; }
.site-footer__inner { max-width: 1180px; margin-inline: auto; padding: 36px 20px 40px; display: grid; gap: 10px; }
.site-footer__logo { font-family: var(--font-display); font-size: 1.4rem; color: #F4EFE1; }
.site-footer .ph { border-color: rgba(255,255,255,.55); }
.site-footer__links { display: flex; gap: 14px; }
.site-footer__links a { color: #F4EFE1; }
.site-footer__links .strong { font-weight: 800; }
.site-footer__credit a { color: var(--color-birch); font-weight: 700; }

/* ---------- 하단 고정 바 (모바일) ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--color-olive-cloth); border-top: 3px solid var(--color-birch);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 59px; color: #F4EFE1; text-decoration: none; font-size: .8rem; font-weight: 700; }
.quickbar svg { width: 20px; height: 20px; }
.quickbar .quickbar__cta { flex-direction: row; background: var(--color-ribbon); color: #fff; font-size: 1rem; }

.toast { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 6px; background: var(--color-ink); color: #fff; font-size: .9rem; line-height: 1.5; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }

/* ================= 태블릿·데스크톱: 두 쪽으로 펼친 책 ================= */
@media (min-width: 600px) {
  .newbooks { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .quickbar { display: none; }
  .toast { bottom: 30px; }

  .shelf__inner { gap: 16px; padding: 0 24px; }
  .logo { flex-direction: row; gap: 10px; width: auto; height: 84px; padding: 8px 18px 6px 14px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__text { align-items: flex-start; }
  .logo__text b { font-size: 23px; }
  .logo__text small { display: block; font-size: 11.5px; color: var(--color-muted); margin-top: 3px; }
  .spines { flex: 0 0 auto; overflow: visible; padding: 14px 0 0; gap: 5px; -webkit-mask-image: none; mask-image: none; }
  .spine { width: var(--w); height: var(--h); padding-top: 15px; }
  .spine::before { top: 5px; }
  .spine::after { bottom: 5px; width: 8px; height: 8px; margin-left: -4px; }
  .spine--band::before { top: auto; bottom: 16px; }
  .spine__title { font-size: 13.5px; }
  .spine__title i { inline-size: 5px; }
  .spine.is-active { transform: translateY(-13px); }
  .shelf__end { display: flex; align-items: center; gap: 16px; margin-left: auto; align-self: center; padding-top: 6px; }
  .shelf__tel { display: flex; align-items: center; gap: 6px; color: #F4EFE1; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
  .shelf__tel svg { width: 18px; height: 18px; }
  .shelf__tel:hover { text-decoration: underline; }
  .shelf .btn--band { box-shadow: inset 0 0 0 2px var(--color-ribbon), inset 0 0 0 3px rgba(255,255,255,.55), 0 3px 0 rgba(0,0,0,.2); }

  .book { padding: var(--sec-pad) 24px 0; }
  .book__body { padding: 14px 16px 18px; border-radius: 8px; }
  .spread { display: grid; grid-template-columns: 1fr 1fr; box-shadow: -2px 2px 0 #ECE8DC, -4px 4px 0 #D7D2C3, 2px 2px 0 #ECE8DC, 4px 4px 0 #D7D2C3; }
  /* 가운데 제본 그림자 */
  .spread::before { left: 50%; width: 110px; margin-left: -55px; background: linear-gradient(90deg, rgba(60,55,40,0), rgba(60,55,40,.06) 34%, rgba(60,55,40,.22) 49.4%, rgba(255,255,255,.55) 50%, rgba(60,55,40,.2) 50.6%, rgba(60,55,40,.06) 66%, rgba(60,55,40,0)); }
  .page { padding: 66px var(--page-x) 64px; }
  .page--l { background: linear-gradient(90deg, transparent 70%, rgba(60,55,40,.035)); }
  .page--r { padding-top: 66px; background: linear-gradient(270deg, transparent 70%, rgba(60,55,40,.035)); }
  .page--r::before { display: none; }
  .page__head { top: 26px; left: var(--page-x); }
  .page--r .page__head { display: block; text-align: right; }
  .page--l .page__folio { display: block; left: var(--page-x); }
  .page__folio { bottom: 22px; }

  .hero__art { margin-top: 8px; }
  .book--hero .page--r { display: flex; flex-direction: column; justify-content: center; }

  .newbooks { gap: 30px 20px; }

  /* 추천 카드: 위로 삐져나온 책갈피 */
  .book--pick .page--r { padding-top: 0; }
  .book--pick .page--r .page__head { display: none; }
  .marks { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -34px; align-items: stretch; }
  .mark { min-height: 410px; padding: 30px 14px 14px; }
  .mark__title { font-size: 1.26rem; }
  .mark__note { font-size: 1.06rem; }

  .talk--next .talk__date b { font-size: 2.6rem; }
  .cta-box { margin-top: 20px; }
}
@media (min-width: 1100px) {
  .shelf__decor { display: flex; align-items: flex-end; gap: 4px; height: 100%; padding-top: 30px; margin-left: 10px; }
  .decor-end { width: 7px; height: 56px; background: #2B2A22; border-radius: 2px 2px 0 0; box-shadow: 9px 0 0 -2px #2B2A22; margin-right: 12px; }
  .decor-face { position: relative; width: 66px; height: 88px; background: #E6DCC4; border-radius: 1px 3px 3px 1px; box-shadow: inset 5px 0 0 rgba(0,0,0,.12); transform: rotate(-3deg); transform-origin: bottom left; }
  .decor-face i { position: absolute; left: 16px; right: 10px; top: 16px; height: 34px; background: radial-gradient(circle at 50% 50%, #C8962B 0 40%, transparent 42%); }
  .decor-lean { width: 18px; height: 82px; background: #3D6F6A; border-radius: 2px 2px 0 0; transform: rotate(12deg); transform-origin: bottom left; margin-left: 6px; margin-right: 14px; }
  .decor-stack { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .decor-stack i { display: block; height: 12px; border-radius: 2px; }
  .decor-stack i:nth-child(1) { width: 52px; background: #CF9A94; }
  .decor-stack i:nth-child(2) { width: 62px; height: 14px; background: #2D4B7C; }
  .decor-stack i:nth-child(3) { width: 58px; background: #A3AE86; }
  .decor-plant { width: 34px; height: 48px; margin-left: 6px; }
}

/* ---------- 등장: 보이는 상태가 기본. 데스크톱에서 책이 살짝 덮였다가 펼쳐진다 ---------- */
@media (min-width: 900px) {
  .has-motion .book .page { transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
  .has-motion .book:not(.is-open) .page--l { transform: perspective(2200px) rotateY(9deg); transform-origin: right center; opacity: .45; }
  .has-motion .book:not(.is-open) .page--r { transform: perspective(2200px) rotateY(-9deg); transform-origin: left center; opacity: .45; }
}

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* 3단계(색·위치 표시·아코디언)는 남긴다 */
  .spine, .chip span, .plan__shelf rect, .plan__shelf text, .btn, .js .qa__panel { transition-duration: .2s !important; }
}
