@font-face {
  font-family: "Bookk Myungjo";
  src: url("fonts/BookkMyungjo_Light.ttf") format("truetype");
  /* font-weight: 300; */
  font-style: normal;
}

:root {
  /*--bg: #0f1419;*/
  /*--surface: #1a222d;*/
  /*--text: #e8edf2;*/
  --muted: #8b9aad;
  --accent: #3d9cf5;
  --accent-soft: rgba(61, 156, 245, 0.15);
  --radius: 12px;
  --font: "Noto Sans KR", system-ui, sans-serif;
  --hero-image-bottom-offset: clamp(20px, 4vw, 60px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background-color: #ffd53d;
/*
    background: #05663f;
  */
  /*
  position: fixed;
  */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /*background: linear-gradient(to bottom, rgba(15, 20, 25, 0.92), transparent);*/
  /*
  padding: 1rem 1.5rem;
  */
  padding: 18px 0px 7px 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  /* NOTE: 메뉴 gap */
  gap: 2.5rem;
  margin-right: 20px;
  font-size: 0.9rem;
  /*color: var(--muted);*/
}

.nav a:hover {
  color: var(--text);
}

.hero {
  align-items: center;
  position: relative;
  /*min-height: min(85vh, 720px);*/
  min-height: clamp(230px, 62vw, 460px);
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-color: #ffd53d;
  /*
    background: #05663f;
	*/
  background-size: 120% auto;
  /*background-position: center bottom;*/
  /*background-position: center calc(100% + 220px);*/
  background-position: center calc(100% + var(--hero-image-bottom-offset) * 4.6);
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  /* */
  transform: scaleX(-1);
  /* */
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /*
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 70%,
    rgba(0, 0, 0, 0.38) 100%
  );
  z-index: 2;
}

.book_excerpt {
  width: 460px;
  margin: 0 auto;
  padding-top: 1px;
  text-align: center;
  color: #6b320f;
  margin-right: 100px;
  /* font-family: "Bookk Myungjo", "Batang", serif; */
  font-family: "Bookk Myungjo";

  font-weight: 300;
}

.book_excerpt p {
  text-wrap-mode: nowrap;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1.5px solid rgba(107, 50, 15, 0.3);
  font-size: 21px;
  line-height: 0.7;
  letter-spacing: -0.05em;
  font-weight: 10;
}

.book_excerpt p:last-of-type {
  /* border-bottom: 0.5px solid #6b320f; */
  border-bottom: 1.5px solid rgba(107, 50, 15, 0.3);
}

.book_excerpt p:first-of-type {
  /* border-bottom: 0.5px solid #6b320f; */
  border-top: 1.5px solid rgba(107, 50, 15, 0.3);
}

.book_excerpt span {
  font-family: Pretendard;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 71px;
  letter-spacing: 0%;

  /* display: block; */
  /* margin-top: 52px; */
  /* font-size: 20px; */
  /* font-weight: 700; */
}

.line-arrow {
  position: relative;
  width: 120px;
  height: 18px;
  border-top: 3px solid #6b320f;
}

.line-arrow::after {
  content: "";
  position: absolute;
  top: -11px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-top: 3px solid #6b320f;
  /* border-right: 1px solid #6b320f; */
  transform: rotate(45deg);
}

.hero__content {
  position: relative;
  z-index: 3;
  /* max-width: 1200px; */
  margin: 0 auto;
  /*padding: clamp(6rem, 18vh, 8rem) 1.5rem 6.5rem;*/
  padding: clamp(5.5rem, 12vw, 0.5rem) clamp(1rem, 4vw, 2rem)
    clamp(4.5rem, 9vw, 0rem);
}

.hero__eyebrow {
  text-wrap-mode: nowrap;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d2a1e;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1f1b12;
}

.hero__more {
  font-family: Pretendard Variable;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 32px;
  line-height: 0px;
  letter-spacing: 0%;

  /* margin: 0 0 2rem; */
  margin-top: 60px;
  max-width: 26rem;
  color: rgba(31, 27, 18, 0.82);
  font-size: 1.05rem;
}

.hero__dots {
  /* display: flex; */
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(31, 27, 18, 0.25);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.hero__dot:hover {
  background: rgba(31, 27, 18, 0.45);
}

.hero__dot.is-active {
  background: #1f1b12;
  transform: scale(1.15);
}

.books-strip {
  padding: 3rem 0 4rem;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0.5px solid rgba(50, 50, 50, 0.3);
}

.books-strip__head {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.books-strip h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.books-strip__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.books-strip__progress {
  --books-progress-ms: 2200ms;
  /*position: absolute;*/
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0);
  border-radius: 0;
  overflow: hidden;
  z-index: 4;
}

.books-strip__progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #ffd641;
  /*
  background: linear-gradient(
    90deg,
    #ffd84a 0%,
    #ffb300 45%,
    #ff7a00 100%
  );
  */
  box-shadow: 0 0 10px rgba(255, 156, 0, 0.7);
  border-radius: inherit;
}

.books-strip__progress-fill.is-running {
  animation-name: books-progress-fill;
  animation-duration: var(--books-progress-ms);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.books-marquee:hover .books-strip__progress-fill.is-running {
  animation-play-state: paused;
}

@keyframes books-progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* NOTE: 좌우 그라데이션 마스크 */
.books-marquee {
  display: flex;
  justify-content: center;
  overflow: hidden;
  /*
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  */
}

/* NOTE: gap: clamp(XXX, , ) */
.books-marquee__track {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  margin: 0 auto;
  padding: 0 20px;
  /*
  gap: 10.25rem;
  */
  gap: clamp(70px, 1.8vw, 120px);
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.books-marquee__track.is-jumping {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .books-strip__progress {
    display: none;
  }

  .books-marquee__track {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: none;
  }

  .hero__slide {
    transition: none;
  }
}

/* NOTE: flex: 0 0 clamp(, , XXX) */
.book-card {
  flex: 0 0 clamp(180px, 24vw, 120px);
  width: clamp(180px, 24vw, 540px);
  /*
  flex: 0 0 auto;
  width: 230px;
  */
  text-align: left;
}

.book-card__cover {
  aspect-ratio: 2 / 3;
  /*border-radius: var(--radius);*/
  /*background: var(--bg) center/cover no-repeat;*/
  background-color: var(--bg);
  background-position: center;
  background-size: cover;

  background-repeat: no-repeat;

  /* NOTE: 도서 카드 그림자 */
  box-shadow: 7px 5px 10px rgba(0, 0, 0, 0.35);
  /*
  margin-bottom: 0.65rem;
  */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  object-fit: cover;
}

.books-marquee:hover .book-card__cover {
  transform: translateY(-2px);
}

.book-card__title {
  /* NOTE: 도서 카드 제목 위치 */
  margin: 13px 0 6px 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__author {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 16px 28px;
  font-family: Arial, sans-serif;
  color: #222;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.copyright {
  font-size: 11px;
  color: #333;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 110px;
  margin-right: 40px;
}

.footer-column h3 {
  font-size: 20px;
  font-weight: 700;
  /*margin: 0 0 18px;*/
}

.footer-column p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
  color: #333;
}




.nav {
  display: flex;
  align-items: center;
  gap: 45px;
  height: 100%;
}

.nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 62px;
  height: 3px;
  background: #fff;
  transform: translateX(-50%);
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
  .footer-left {
    width: 280px;
	min-height: 70px;
  }

  .footer-right {
    gap: 0px;
	margin-right: 0px;
  }
  .footer-column {
    gap: 0px;
  }
  .footer-column h3 {
    margin: initial;
  }
}

@media (min-width: 992px) {
	#ft_right {
		gap: 10px;
	}
}

@media (min-width: 1220px) {
}

@media (max-width: 768px) {
	.footer { display: grid; }
}
