/* =============================================================
   NU-VEDA — v1.5
   디자인 원칙:
   1. 부교감 디자인 — 여백을 콘텐츠처럼, 모션 절제, 채도 낮춤
   2. 작가의 무게감 — 명조체(Noto Serif KR) 강조, 산세리프(Pretendard) 본문
   3. 1분 신뢰 설계 — 첫 화면에서 "무엇·누구·약속·다음행동" 전달
   4. 채널 분배 — 책 구매 1순위, SNS 2순위
   ============================================================= */


/* 리디바탕 — 책 톤의 명조체 (매니페스토에 사용)
   출처: 눈누 (noonnu.cc), © 리디주식회사 */
@font-face {
  font-family: 'Ridibatang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ──────────────────────────────────────────────
   토큰
   ────────────────────────────────────────────── */
:root {
  /* 색 — 따뜻한 종이톤 + 깊은 모스 그린 */
  --bg:        #f5f2ea;   /* 따뜻한 오프화이트 (종이) */
  --bg-soft:   #efeae0;   /* 살짝 더 어두운 톤 (섹션 구분용) */
  --ink:       #1c2620;   /* 본문 — 검정 대신 짙은 그린-블랙 */
  --ink-soft:  #4a5249;   /* 보조 본문 */
  --green:     #2d4a3a;   /* 강조 — 포레스트 그린 */
  --green-d:   #1f3528;   /* 강조 진한 (hover) */
  --muted:     #8a8378;   /* 회갈색 보조 */
  --line:      #d4cdbe;   /* 구분선 */
  --line-soft: #e4ddd0;

  /* 폰트 */
  --font-sans:  'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-ridi:  'Ridibatang', 'Noto Serif KR', 'Nanum Myeongjo', serif;

  /* 간격 — 일반 사이트보다 1.5배 넉넉 */
  --space-section: 140px;
  --space-section-sm: 80px;

  /* 컨테이너 */
  --max-width: 720px;
}


/* ──────────────────────────────────────────────
   기본 리셋
   ────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* 부드러운 스크롤은 JS에서 직접 제어 (iOS Safari 호환성) */
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;

  /* 미세한 종이 질감 (subtle grain) */
  background-image:
    radial-gradient(circle at 25% 25%, rgba(45, 74, 58, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(45, 74, 58, 0.012) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ──────────────────────────────────────────────
   페이지 로드 진입 애니메이션 (한 번, 절제됨)
   ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__brand,
.hero__message,
.hero__cta {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) backwards;
}
.hero__brand   { animation-delay: 0.1s; }
.hero__message { animation-delay: 0.6s; }
.hero__cta     { animation-delay: 1.2s; }


/* ──────────────────────────────────────────────
   섹션 1. 히어로
   ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}

.hero__inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__brand {
  margin-bottom: 80px;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--green);
  margin-bottom: 14px;
  padding-left: 0.5em; /* letter-spacing 적용 시 마지막 글자 뒤 여백 보정용으로 좌측 패딩 */
  /* 영문 로고: 자간을 넓게 → 명상적·고요한 무게감 */
}

.hero__ko {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.hero__message {
  margin-bottom: 80px;
}

.hero__slogan {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--green);
  padding: 12px 4px;
  border-bottom: 1px solid var(--green);
  transition: gap 0.4s ease, color 0.3s ease;
}
.hero__cta:hover {
  gap: 14px;
  color: var(--green-d);
}

/* 화살표만 있는 모드 — 보더 제거, 화살표 자체가 신호 */
.hero__cta--arrow-only {
  border-bottom: none;
  padding: 16px 24px;
  color: var(--green);
  transition: color 0.3s ease, transform 0.3s ease;
}
.hero__cta--arrow-only:hover {
  color: var(--green-d);
  transform: translateY(2px);
}

.hero__cta .arrow {
  font-size: 14px;
  display: inline-block;
  animation: gentleBob 2.4s ease-in-out infinite;
}
.hero__cta--arrow-only .arrow {
  font-size: 24px;
  font-weight: 300;
  animation: deepBreath 3.6s ease-in-out infinite;
  /* 더 큰 진폭, 더 느린 호흡 → 부교감 톤 강화 */
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@keyframes deepBreath {
  0%, 100% { transform: translateY(0);   opacity: 0.7; }
  50%      { transform: translateY(8px); opacity: 1; }
}


/* ──────────────────────────────────────────────
   공통 — 섹션 라벨
   ────────────────────────────────────────────── */
.manifesto__label,
.book__label,
.sns__label,
.author__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 32px;
}


/* ──────────────────────────────────────────────
   섹션 2. 매니페스토
   ────────────────────────────────────────────── */
.manifesto {
  padding: var(--space-section) 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.manifesto__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.manifesto__body {
  font-family: var(--font-ridi);
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  color: var(--ink);
  letter-spacing: -0.005em;
}


/* ──────────────────────────────────────────────
   섹션 3. 책
   ────────────────────────────────────────────── */
.book {
  padding: var(--space-section) 24px;
}

.book__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

/* 책 표지 */
.book__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
  box-shadow:
    0 1px 2px rgba(28, 38, 32, 0.04),
    0 12px 32px rgba(28, 38, 32, 0.10),
    0 24px 64px rgba(28, 38, 32, 0.06);
  overflow: hidden;
}
.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book__cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;          /* JS가 inline 처리하지 않을 경우 기본은 보임 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  gap: 6px;
  border: 1px dashed var(--line);
}
.book__cover-placeholder small {
  font-size: 10px;
  letter-spacing: 0.15em;
}
/* 이미지가 정상 로드되면 onerror 이벤트가 안 발생 → placeholder는 이미지 뒤에 가려짐.
   이미지 실패 시 onerror가 placeholder를 다시 보이게 함. */
.book__cover img + .book__cover-placeholder {
  display: none;
}

.book__text {}

.book__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.book__subtitle {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 28px;
  letter-spacing: 0;
}

.book__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.book__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 버튼 */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}
.btn:hover {
  background: var(--green);
  color: var(--bg);
}
.btn__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn__platform {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* 미리보기 진입 카드 — 책 구매 전 결정에 도움이 되는 핵심 동선
   책 버튼들 아래에 크게 자리 잡되, 구매 버튼보다 시각적 무게는 한 단계 아래 */
.book__preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 24px;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.4s ease;
  color: var(--ink);
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* 좌측 작은 액센트 바 — 시각적 갈고리 */
.book__preview::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  opacity: 0.8;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.book__preview:hover {
  background: var(--bg);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 38, 32, 0.08);
}
.book__preview:hover::before {
  width: 5px;
  opacity: 1;
}

.book__preview-text {
  /* 라벨과 메타를 묶는 컨테이너가 필요하지만 inline 형태도 가능.
     현재는 label + meta가 형제 요소로 자연스럽게 흐름 */
}

.book__preview-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.book__preview-meta {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.book__preview-arrow {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--green);
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.book__preview:hover .book__preview-arrow {
  transform: translateX(4px);
}


/* ──────────────────────────────────────────────
   섹션 4. SNS
   ────────────────────────────────────────────── */
.sns {
  padding: var(--space-section) 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sns__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.sns__heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  line-height: 1.5;
}

.sns__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.sns-card {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 카드 내부 콘텐츠 세로 중앙 정렬 → 좌우 카드 시각 균형 */
  padding: 36px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  min-height: 180px;          /* 두 카드 높이 통일 */
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.sns-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(28, 38, 32, 0.08);
}

.sns-card__platform {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sns-card__handle {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.sns-card__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;           /* 화살표 제거에 따라 하단 마진 정리 */
}


/* ──────────────────────────────────────────────
   섹션 5. 저자
   ────────────────────────────────────────────── */
.author {
  padding: var(--space-section) 24px;
}

.author__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.author__body {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* 책에 대한 평 — 인용 박스, 저자 진술과 시각적 분리 */
.author__quote {
  margin: 56px auto 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-soft);
  max-width: 480px;
}
.author__quote-body {
  font-family: var(--font-ridi);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  font-style: normal;
}


/* ──────────────────────────────────────────────
   푸터
   ────────────────────────────────────────────── */
.footer {
  padding: 60px 24px 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__disclaimer {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer__meta a {
  transition: color 0.2s ease;
}
.footer__meta a:hover {
  color: var(--green);
}


/* ──────────────────────────────────────────────
   반응형 (모바일 우선 — 인스타 유입 대비)
   ────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --space-section: 90px;
  }

  .hero {
    padding: 60px 20px;
  }
  .hero__brand   { margin-bottom: 56px; }
  .hero__message { margin-bottom: 56px; }
  .hero__title   { font-size: 18px; letter-spacing: 0.4em; }
  .hero__ko      { font-size: 12px; }
  .hero__slogan  { font-size: 26px; }
  .hero__sub     { font-size: 13px; }

  .manifesto__body { font-size: 16px; line-height: 1.95; }

  .book__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .book__cover {
    max-width: 240px;
    margin: 0 auto;
  }
  .book__title { font-size: 30px; }
  .book__buttons { max-width: 320px; margin: 0 auto; }

  /* 미리보기 카드 모바일 — 좌우 분할 유지, 패딩만 약간 줄임 */
  .book__preview {
    margin-top: 20px;
    padding: 18px 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .book__preview-label { font-size: 13.5px; }
  .book__preview-meta { font-size: 12px; }
  .book__preview-arrow { font-size: 16px; }

  .sns__heading  { font-size: 22px; margin-bottom: 40px; }
  .sns__cards    { grid-template-columns: 1fr; gap: 12px; }
  .sns-card      { padding: 24px 22px; }
  .sns-card__handle { font-size: 18px; }

  .author__body { font-size: 15px; }
  .author__quote { margin-top: 40px; padding-top: 24px; }
  .author__quote-body { font-size: 14px; line-height: 1.9; }

  .footer__disclaimer { font-size: 10.5px; }
}

@media (max-width: 380px) {
  .hero__slogan { font-size: 22px; }
  .manifesto__body { font-size: 15px; }
}


/* ──────────────────────────────────────────────
   접근성: 모션 줄이기 설정 존중
   ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
