/* ============================================
   KANSAI TRAVELOGUE — 6권 시리즈
   Design System: Contemporary Travel Guidebook
   참고 톤: Lonely Planet (최신) · Condé Nast Traveler · 일본 BRUTUS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700;900&family=Noto+Serif+JP:wght@400;500;600;700&family=Shippori+Mincho:wght@500;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* 베이스 — 화이트 / 오프화이트 */
  --bg: #FFFFFF;
  --bg-soft: #F7F5F1;
  --bg-warm: #F2EDE5;
  --bg-card: #1A1A1A;

  /* 텍스트 — 다크 / 그레이 스케일 */
  --text: #1A1A1A;
  --text-soft: #3D3D3D;
  --text-muted: #6E6E6E;
  --text-faint: #A6A6A6;
  --text-inverse: #FFFFFF;

  /* 액센트 컬러 */
  --accent: #C53C2E;        /* 진한 주홍 — 강조 */
  --accent-soft: #E8554A;
  --accent-bg: #FBE8E5;     /* 액센트 박스 연한 배경 */
  --indigo: #1A3661;
  --indigo-soft: #2D4F85;
  --indigo-bg: #E5EBF5;
  --moss: #3D5C2F;
  --gold: #A07729;
  --paper-tint: #FAF6EE;

  --line: #E2DDD5;
  --line-soft: #EFEAE2;
  --line-dark: #1A1A1A;

  /* 활자 시스템 */
  --font-sans: 'Inter', 'Noto Sans KR', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--indigo); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   레이아웃 시스템 — 콘텐츠 폭 변주
   ============================================ */
.book {
  position: relative;
}

/* 본문 단락 — 가독성 좁은 폭 */
.content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

/* 와이드 — 사진 그리드, 큰 박스 */
.wide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

/* 풀폭 — 히어로 이미지, 컬러 배경 섹션 */
.full {
  width: 100%;
}

/* ============================================
   히어로 — 권 표지 (풀스크린)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-card);
  color: var(--text-inverse);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 48px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-top, .hero-bottom {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(255,255,255,0.75);
}

.hero-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  max-width: 800px;
}

.hero-vol {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  margin-bottom: 24px;
}

.hero-title-jp {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-inverse);
}

.hero-title-ko {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--text-inverse);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 700px;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-meta-item .value {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-inverse);
}

/* ============================================
   섹션 (scene) — 컨템포러리 가이드북 모듈
   ============================================ */
.scene {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.scene:last-child { border-bottom: none; }

.scene-eyebrow {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.scene-eyebrow .num {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.scene-eyebrow .time {
  color: var(--text-soft);
  font-weight: 500;
}

.scene-h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}

.scene-h2-jp {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.scene-lead {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 680px;
}

/* 본문 단락 */
.prose p {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.prose .jp {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.prose em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.prose blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  font-family: var(--font-jp-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  font-style: italic;
}

/* ============================================
   풀폭 사진 — 컨템포러리 가이드북의 핵심
   ============================================ */
.figure-full {
  margin: 64px 0;
  position: relative;
}

.figure-full img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.figure-full figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 16px 32px 0;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.figure-full figcaption .caption-text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 500;
}

.figure-full figcaption .credit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
}

/* 콘텐츠 폭 사진 (본문 흐름 안) */
.figure-inline {
  margin: 40px 0;
}
.figure-inline img {
  width: 100%;
  border-radius: 2px;
}
.figure-inline figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.figure-inline figcaption .credit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  display: block;
  margin-top: 4px;
}

/* 사진 그리드 (2x1, 2x2) */
.figure-grid {
  display: grid;
  gap: 12px;
  margin: 48px 0;
}
.figure-grid.two { grid-template-columns: 1fr 1fr; }
.figure-grid.three { grid-template-columns: 2fr 1fr 1fr; }
.figure-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ============================================
   AT A GLANCE — 정보 카드 (인디고 배경)
   ============================================ */
.facts-card {
  margin: 56px 0;
  padding: 36px 40px;
  background: var(--bg-card);
  color: var(--text-inverse);
  position: relative;
}

.facts-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
  font-weight: 600;
}

.facts-card-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text-inverse);
  letter-spacing: -0.01em;
}

.facts-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 24px;
  font-size: 14.5px;
  line-height: 1.55;
}

.facts-card dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  padding-top: 4px;
}

.facts-card dd { color: rgba(255,255,255,0.95); font-weight: 400; }

/* ============================================
   ESSENCE — 백과 박스 (컬러 배경)
   ============================================ */
.essence {
  margin: 48px 0;
  padding: 32px 36px;
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
}

.essence-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.essence-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.essence p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.essence .jp {
  font-family: var(--font-jp-serif);
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   VOICES — 여행자 후기 카드 그리드
   ============================================ */
.voices {
  margin: 64px 0;
}

.voices-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line-dark);
}

.voices-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.voices-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.voice-card {
  padding: 24px 26px;
  background: var(--bg-soft);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.voice-card .quote {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  flex: 1;
}

.voice-card .quote::before {
  content: '\201C';
  font-family: var(--font-jp-serif);
  font-size: 36px;
  line-height: 0;
  color: var(--accent);
  vertical-align: -12px;
  margin-right: 4px;
}

.voice-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.voice-card .meta .author {
  color: var(--text-soft);
  font-weight: 500;
  text-transform: none;
}

.voice-card .meta .source {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================
   지도 — 약도 풀폭
   ============================================ */
.map-wrap {
  margin: 64px 0;
  background: var(--paper-tint);
  padding: 24px;
}
.map-wrap img {
  width: 100%;
  height: auto;
}
.map-wrap-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  text-transform: uppercase;
}

/* ============================================
   큰 시간 표시 — 시각적 분할자
   ============================================ */
.time-divider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: end;
  margin: 100px 0 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.time-divider .roman {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}
.time-divider .clock {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.02em;
}
.time-divider .place {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
  padding-bottom: 8px;
}

/* ============================================
   시작/끝 글 (epilogue / opening)
   ============================================ */
.opening, .closing {
  padding: 80px 0;
  background: var(--bg-soft);
  text-align: center;
}

.closing .closing-quote {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 24px;
  font-style: italic;
}

.closing .closing-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   다음 권 내비게이션
   ============================================ */
.nav-next {
  margin-top: 0;
  padding: 60px 32px;
  background: var(--bg-card);
  color: var(--text-inverse);
}

.nav-next-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.nav-next a {
  display: block;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-inverse);
  transition: background 0.15s, border-color 0.15s;
}

.nav-next a:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
}

.nav-next .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 8px;
}

.nav-next .title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.nav-next .next-card { text-align: right; }

/* ============================================
   푸터
   ============================================ */
.book-footer {
  background: var(--bg-card);
  color: var(--text-faint);
  padding: 24px 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ============================================
   인쇄 막대
   ============================================ */
.print-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  z-index: 100;
  text-transform: uppercase;
  font-weight: 600;
}
.print-bar:hover { background: var(--text); }

/* ============================================
   인쇄 최적화
   ============================================ */
@media print {
  body { background: white; font-size: 10.5pt; }
  .no-print { display: none !important; }
  .scene { padding: 32pt 0; page-break-inside: avoid; }
  .figure-full { page-break-inside: avoid; }
  .voice-card { page-break-inside: avoid; }
  .hero { min-height: auto; padding: 40pt; page-break-after: always; }
  .hero-image { display: none; }
  .hero { background: white; color: black; }
  .hero-title-jp, .hero-title-ko { color: black; }
  .hero-tagline { color: #333; }
  .nav-next { display: none; }
}

/* ============================================
   모바일
   ============================================ */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .content { padding: 0 22px; }
  .wide { padding: 0 22px; }
  .scene { padding: 56px 0; }
  .scene-h2 { font-size: 30px; }
  .voices-grid { grid-template-columns: 1fr; }
  .figure-grid.two, .figure-grid.three { grid-template-columns: 1fr; }
  .nav-next-inner { grid-template-columns: 1fr; }
  .next-card { text-align: left !important; }
  .hero-content { padding: 32px 28px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .facts-card { padding: 28px 24px; }
  .facts-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .facts-card dt { padding-top: 12px; }
  .time-divider { grid-template-columns: auto 1fr; }
  .time-divider .place { display: none; }
  .time-divider .clock { font-size: 44px; }
  .figure-full figcaption { grid-template-columns: 1fr; gap: 8px; padding: 14px 22px 0; }
  .figure-full figcaption .credit { text-align: left; }
}
