@font-face {
  font-family: 'BNP Pretendard';
  src: url('https://www.devkids.co.kr/cdn/bnp/releases/20261114T060401Z-nighthawks-645e81/shared/brand/fonts/pretendard-semibold-hero-v2.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* 선택한 책 배경 컨셉. 검색·언어 선택·장소 카드는 기존 영역을 유지한다. */
.home-hero {
  --hero-paper: #f2ebe0;
  --hero-muted: #b8b5b0;
  --hero-accent: #d0ae86;
  position: relative;
  isolation: isolate;
  width: min(1088px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #17191e;
  color: var(--hero-paper);
  text-align: left;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}
.hero-brand {
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 40px;
  margin: 0;
  font-family: 'BNP Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.hero-brand span { color: var(--hero-accent); }
.hero-brand::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4px -12px;
  pointer-events: none;
  background: linear-gradient(90deg, #17191edd, #17191ecc 86%, #17191e00);
  mask-image: linear-gradient(0deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-slide {
  position: relative;
  min-height: 350px;
  padding: 80px 40px 52px;
  animation: hero-reveal 280ms ease-out both;
}
.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
  user-select: none;
  opacity: 1;
}
.hero-signage {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
  fill: #222932;
  font-family: 'BNP Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: 600;
}
.hero-copy {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: min(520px, 100%);
  margin: 0;
}
.hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -16px -24px -8px -24px;
  pointer-events: none;
  background: linear-gradient(90deg, #17191ef5, #17191ee6 72%, #17191e00);
  mask-image: linear-gradient(0deg, transparent, #000 15%, #000 88%, transparent);
}
.home-hero .hero-eyebrow {
  margin: 0 0 10px;
  color: var(--hero-accent);
  font: 500 12px/1.5 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: .18em;
}
.home-hero .hero-title {
  margin: 0;
  color: var(--hero-paper);
  font-family: 'BNP Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: clamp(34px, 3.7vw, 40px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.hero-title > span { display: block; }
.home-hero .hero-description {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--hero-muted);
  font: 400 14px/1.65 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -.025em;
  word-break: keep-all;
}
.hero-places { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 22px; margin-top: 7px; }
.hero-places a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hero-paper);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration-color: #d0ae866b;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.hero-places a:hover { color: var(--hero-accent); text-decoration-color: currentColor; }
.hero-pagination {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}
.hero-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.hero-pagination button > span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f2ebe04d;
  transition: width 180ms ease, background 180ms ease;
}
.hero-pagination button[aria-selected=true] > span { width: 20px; background: var(--hero-paper); }
.hero-rotation {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hero-muted);
  font: 400 15px/1 sans-serif;
  cursor: pointer;
}
.hero-rotation:hover { color: var(--hero-paper); }
.home-hero :focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 3px; }
.hero-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes hero-reveal { from { opacity: .35; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 720px) {
  .home-hero { margin-top: 16px; border-radius: 14px; }
  .hero-brand { top: 18px; left: 24px; font-size: 17px; }
  .hero-slide { min-height: 286px; padding: 60px 24px 49px; }
  .hero-background { object-position: center 28%; }
  .home-hero .hero-eyebrow { margin-bottom: 7px; font-size: 11px; }
  .home-hero .hero-title { font-size: clamp(26px, 7.2vw, 31px); line-height: 1.35; letter-spacing: -.04em; }
  .home-hero .hero-description { max-width: 290px; margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .hero-places { gap: 0 19px; margin-top: 0; }
  .hero-places a { font-size: 12px; }
  .hero-pagination { bottom: 5px; }
  .hero-rotation { right: 8px; bottom: 5px; }
  html:not([lang=ko]) .hero-slide { min-height: 332px; }
  html:not([lang=ko]) .hero-title { font-size: 29px; line-height: 1.35; letter-spacing: -.035em; }
}
@media (max-width: 360px) {
  .hero-brand { left: 20px; }
  .hero-slide { padding-left: 20px; padding-right: 20px; }
  .home-hero .hero-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-pagination button > span { transition: none; }
}
