
:root {
  --wood-deep: #1a1410;
  --wood-mid: #2b2018;
  --wood-light: #3d2f24;
  --wood-grain: #4a3a2c;
  --shelf: #0f0a06;
  --shelf-edge: #050302;

  --paper: #f0e8d8;
  --paper-warm: #ebe0c8;
  --label: #ffffff;

  --ink: #1a1410;
  --ink-soft: #4a3a2c;
  --ink-muted: #8a7a6a;
  --ink-ghost: #b8a896;

  --accent-amber: #E5A654;
  --accent-red: #B85850;
  --accent-cream: #fff5dd;

  --tag-song: #8DA4B0;
  --tag-story: #9BAE89;
  --tag-drawing: #C4805C;
  --tag-photo: #B5ADA0;
  --tag-compose: #C9A24E;

  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
  --font-kor: 'Pretendard Variable', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-kor);
  background: var(--wood-deep);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* === 나무 배경 === */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      rgba(74,58,44,0.04) 1px,
      transparent 2px,
      transparent 6px,
      rgba(74,58,44,0.06) 7px,
      transparent 8px,
      transparent 80px),
    radial-gradient(ellipse at 20% 30%, rgba(74,58,44,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(43,32,24,0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--wood-deep) 0%, var(--wood-mid) 100%);
  pointer-events: none;
}

/* 종이 노이즈 오버레이 */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* === AMBIENT MOUSE LIGHT (Aurora 차용 - 황동 톤) === */
.ambient-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(229, 166, 84, 0.18) 0%,
    rgba(229, 166, 84, 0.08) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ambient-light.active { opacity: 1; }

/* 작은 추가 빛 - 더 큰 따뜻함 */
.ambient-light-2 {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 220, 140, 0.12) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ambient-light-2.active { opacity: 1; }

/* 모바일/터치에서는 비활성 */
@media (hover: none), (max-width: 700px) {
  .ambient-light, .ambient-light-2 { display: none; }
}

/* 커서 자국 - 카세트/책/악보 위에 마우스 가면 미묘한 spotlight */
.cassette, .book, .score, .polaroid {
  position: relative;
}

main { position: relative; z-index: 2; }

/* === HEADER === */
header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(15,10,6,0.96) 0%, rgba(15,10,6,0.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,181,71,0.15);
}
.h-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--paper);
}
.h-brand-mark {
  width: 36px; height: 36px;
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  background:
    radial-gradient(circle at 50% 50%, var(--wood-deep) 28%, transparent 28%),
    radial-gradient(circle at 50% 50%, var(--accent-amber) 32%, transparent 32%),
    radial-gradient(circle at 50% 50%, var(--wood-deep) 38%, transparent 38%),
    var(--wood-mid);
  position: relative;
}
.h-brand-mark::before, .h-brand-mark::after {
  content: ''; position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wood-deep);
  border: 1.5px solid var(--accent-amber);
  top: 50%; transform: translateY(-50%);
}
.h-brand-mark::before { left: 6px; }
.h-brand-mark::after { right: 6px; }

.h-brand-text { display: flex; flex-direction: column; }
.h-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1;
}
.h-brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-top: 4px;
}

.h-issue {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
  display: flex; align-items: center; gap: 16px;
  justify-content: center;
}
.h-issue::before, .h-issue::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,181,71,0.3), transparent);
  max-width: 80px;
}

.h-actions {
  display: flex; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.h-actions a {
  color: var(--paper);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(240,232,216,0.2);
  border-radius: 4px;
  transition: all 0.2s;
}
.h-actions a:hover {
  background: var(--accent-amber);
  color: var(--wood-deep);
  border-color: var(--accent-amber);
}

/* === HERO === */
.hero {
  padding: 100px 32px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--accent-amber);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.hero h1 .row1 { display: block; font-style: italic; font-weight: 300; }
.hero h1 .row2 {
  display: block;
  color: var(--accent-amber);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero h1 .row2 small {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 0.3em;
  color: var(--paper);
  vertical-align: 0.6em;
  margin-left: 12px;
  transform: rotate(-4deg);
  font-style: normal;
}
.hero-lede {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-ghost);
  max-width: 460px;
  letter-spacing: -0.005em;
}
.hero-lede em {
  color: var(--accent-amber);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
}

/* HERO 우측: 보관함 옆태 일러스트 */
.hero-side {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hero-stat {
  font-family: var(--font-serif);
  font-size: 124px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-amber);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.hero-stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-handnote {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--accent-amber);
  transform: rotate(-3deg);
  margin-top: 8px;
  display: inline-block;
}

/* === SCROLL HINT === */
.scroll-hint {
  position: relative;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding: 24px 0 8px;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--accent-amber), transparent);
  margin: 16px auto 0;
}

/* === AISLE (가로 스크롤 섹션) === */
.aisle {
  padding: 80px 0 60px;
  position: relative;
}
.aisle-header {
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
}
.aisle-label {
  display: flex; flex-direction: column; gap: 4px;
}
.aisle-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--accent-amber);
  text-transform: uppercase;
}
.aisle-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 0.95;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.aisle-count {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-amber);
  line-height: 1;
}
.aisle-count small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 400;
}

/* 가로 스크롤 트랙 */
.shelf {
  position: relative;
  padding: 40px 0 60px;
  background:
    /* 선반 윗면 그림자 */
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 12%),
    /* 선반 바닥 */
    linear-gradient(180deg, transparent 0%, transparent 70%, var(--shelf) 70%, var(--shelf) 75%, var(--shelf-edge) 75%, var(--shelf-edge) 100%),
    /* 그림자 */
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  border-top: 1px solid rgba(255,181,71,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.4);
}
.shelf::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%),
    repeating-linear-gradient(90deg,
      transparent 0,
      rgba(0,0,0,0.1) 1px,
      transparent 2px,
      transparent 100px);
  pointer-events: none;
}
.shelf-track {
  display: flex;
  gap: 14px;
  padding: 0 32px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track:active { cursor: grabbing; }

/* 트랙 양 끝 페이드 */
.shelf-fade-l, .shelf-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 5;
}
.shelf-fade-l {
  left: 0;
  background: linear-gradient(90deg, var(--wood-deep) 0%, transparent 100%);
}
.shelf-fade-r {
  right: 0;
  background: linear-gradient(270deg, var(--wood-deep) 0%, transparent 100%);
}

/* 가로 스크롤 컨트롤 (좌우 화살표) */
.shelf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(15,10,6,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,181,71,0.3);
  color: var(--accent-amber);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: 18px;
}
.shelf-nav:hover {
  background: var(--accent-amber);
  color: var(--wood-deep);
  transform: translateY(-50%) scale(1.08);
}
.shelf-nav.prev { left: 16px; }
.shelf-nav.next { right: 16px; }

/* 진행 인디케이터 */
.shelf-progress {
  position: relative;
  margin: 0 auto;
  max-width: 1400px;
  padding: 16px 32px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.shelf-progress-bar {
  flex: 1; height: 1px;
  background: rgba(255,181,71,0.15);
  position: relative;
  overflow: hidden;
}
.shelf-progress-bar::after {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 100%;
  width: var(--p, 0%);
  background: var(--accent-amber);
  transition: width 0.3s ease;
}

/* === 카세트테이프 === */
.cassette {
  flex: 0 0 280px;
  height: 180px;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
}
.cassette:hover {
  transform: translateY(-24px) rotate(-1deg);
  z-index: 5;
}
.cassette-body {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--wood-light) 0%, var(--wood-mid) 100%);
  border-radius: 6px;
  border: 1px solid rgba(255,181,71,0.15);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.5);
}
.cassette-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
}
.cassette-label {
  position: absolute;
  top: 18px; left: 14px; right: 14px;
  height: 78px;
  background: var(--paper);
  border-radius: 3px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 0 0 1px rgba(0,0,0,0.05);
  /* 살짝 비뚤어진 라벨 */
  transform: rotate(-0.3deg);
}
.cassette-label::before {
  content: '';
  position: absolute; top: 0; left: 8px; right: 8px;
  height: 5px;
  background: var(--c, var(--tag-song));
  border-radius: 0 0 3px 3px;
}
.cassette-tag {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--c, var(--tag-song));
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}
.cassette-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.cassette-meta {
  position: absolute;
  bottom: 28px;
  left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-ghost);
  text-transform: uppercase;
}
/* 카세트 릴 */
.cassette-reels {
  position: absolute;
  bottom: 16px;
  left: 24px; right: 24px;
  height: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.4) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  border-radius: 4px;
  padding: 0 8px;
  border: 1px solid rgba(0,0,0,0.4);
}
.reel {
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--wood-mid) 32%, var(--wood-deep) 33%, var(--wood-deep) 38%, var(--wood-light) 39%);
  position: relative;
  border: 1.5px solid rgba(0,0,0,0.6);
  animation: reel-spin 3s linear infinite;
  animation-play-state: paused;
}
.reel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(var(--wood-mid) 0deg 30deg, var(--wood-light) 30deg 60deg);
}
.cassette:hover .reel { animation-play-state: running; }
@keyframes reel-spin { to { transform: rotate(360deg); } }

/* === 책 (이야기) === */
.book {
  flex: 0 0 220px;
  height: 320px;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.7));
  perspective: 600px;
}
.book:hover {
  transform: translateY(-30px);
  z-index: 5;
}
.book-spine {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.6) 0%,
      transparent 6%,
      transparent 94%,
      rgba(0,0,0,0.6) 100%),
    linear-gradient(135deg, var(--c, var(--tag-story)) 0%, color-mix(in srgb, var(--c, var(--tag-story)) 70%, black) 100%);
  border-radius: 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px 16px;
  border: 1px solid rgba(0,0,0,0.4);
}
.book-spine::before {
  /* 가죽 질감 */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      rgba(0,0,0,0.05) 1px,
      transparent 2px,
      transparent 5px);
  opacity: 0.5;
  pointer-events: none;
}
.book-spine::after {
  /* 양각 라벨 */
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  top: 30%; height: 1px;
  background: rgba(255,255,255,0.3);
  box-shadow: 0 80px 0 rgba(255,255,255,0.3);
}
.book-vol {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.book-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: white;
  letter-spacing: -0.015em;
  font-style: italic;
  position: relative; z-index: 1;
  display: flex; align-items: center;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.book-foot {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  position: relative; z-index: 1;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.book-emboss {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display, var(--font-serif));
  font-size: 24px;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

/* === 악보 (작곡) === */
.score {
  flex: 0 0 240px;
  height: 320px;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  padding: 18px 16px;
}
.score:hover {
  transform: translateY(-20px) rotate(2deg);
  z-index: 5;
}
.score::before {
  /* 오선지 */
  content: '';
  position: absolute;
  top: 70px; left: 0; right: 0;
  height: 80px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 14px,
    var(--ink-soft) 14px,
    var(--ink-soft) 15px);
  opacity: 0.5;
}
.score::after {
  /* 음표 SVG */
  content: '';
  position: absolute;
  top: 76px; left: 28px;
  width: 14px; height: 50px;
  background:
    radial-gradient(ellipse 8px 6px at 4px 44px, var(--ink) 60%, transparent 60%),
    linear-gradient(90deg, transparent 8px, var(--ink) 8px, var(--ink) 9.5px, transparent 9.5px);
  background-repeat: no-repeat;
  transform: rotate(-2deg);
}
.score-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--c, var(--tag-compose));
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--c, var(--tag-compose));
  padding-bottom: 6px;
  display: inline-block;
}
.score-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  position: relative; z-index: 2;
}
.score-foot {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: flex; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--ink-ghost);
}
.score-handwrite {
  position: absolute;
  bottom: 60px; left: 16px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--c, var(--tag-compose));
  transform: rotate(-3deg);
}

/* === 폴라로이드 (그림 + 사진) === */
.polaroid {
  flex: 0 0 220px;
  height: 280px;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.6));
  background: var(--paper-warm);
  border-radius: 2px;
  padding: 14px 14px 50px;
  transform: rotate(var(--r, -2deg));
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.04);
  z-index: 5;
}
.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c, var(--tag-drawing)) 80%, white) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--c, var(--tag-drawing)) 60%, black) 0%, transparent 60%),
    linear-gradient(135deg, var(--c, var(--tag-drawing)) 0%, color-mix(in srgb, var(--c, var(--tag-drawing)) 50%, black) 100%);
  position: relative;
  overflow: hidden;
}
.polaroid-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.polaroid-img.is-photo {
  filter: grayscale(0.6) sepia(0.2);
}
.polaroid-caption {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.polaroid-stamp {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--c, var(--tag-drawing));
  text-transform: uppercase;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600;
}

/* === FOOTER 거대 시그니처 === */
footer {
  margin-top: 80px;
  padding: 100px 32px 60px;
  background: linear-gradient(180deg, var(--wood-deep) 0%, var(--shelf-edge) 100%);
  border-top: 1px solid rgba(255,181,71,0.15);
  text-align: center;
  position: relative;
  z-index: 2;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 1px;
  background: var(--accent-amber);
}
.foot-display {
  font-family: var(--font-serif);
  font-size: clamp(60px, 12vw, 200px);
  font-weight: 200;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--paper);
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.foot-display em {
  color: var(--accent-amber);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.foot-handnote {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--accent-amber);
  margin-bottom: 40px;
  transform: rotate(-2deg);
  display: inline-block;
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  header { grid-template-columns: 1fr; gap: 12px; padding: 14px 20px; }
  .h-issue { display: none; }
  .h-actions { justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px 40px; }
  .hero-side { align-items: flex-start; }
  .hero-stat { font-size: 88px; }
  .aisle-header { padding: 0 20px; }
  .shelf-track { padding: 0 20px; }
  .shelf-nav { display: none; }
  .cassette { flex-basis: 240px; height: 160px; }
  .book { flex-basis: 180px; height: 270px; }
  .score, .polaroid { flex-basis: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === 페이지 전환 오버레이 === */
.warp {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background: var(--accent-amber);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.warp.active { opacity: 1; }

/* ============================================
   POST PAGE — 개별 글
   ============================================ */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  position: relative;
  z-index: 2;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255,181,71,0.2);
  border-radius: 999px;
  transition: all 0.2s;
}
.post-back:hover {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}
.post-tag-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hc, var(--accent-amber));
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--hc, var(--accent-amber)) 40%, transparent);
  border-radius: 999px;
}
.post-article h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  font-style: italic;
}
.post-byline {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,181,71,0.15);
}
.post-feature-image {
  margin: 0 -32px 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.post-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-content {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.post-content p {
  margin-bottom: 1.4em;
}
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2em 0 0.6em;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.post-content h2 { font-size: 32px; color: var(--paper); }
.post-content h3 { font-size: 26px; color: var(--paper); }
.post-content h4 { font-size: 22px; color: var(--ink-ghost); }
.post-content a {
  color: var(--accent-amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(229,166,84,0.4);
  transition: text-decoration-color 0.2s;
}
.post-content a:hover {
  text-decoration-color: var(--accent-amber);
}
.post-content blockquote {
  border-left: 3px solid var(--accent-amber);
  padding: 4px 24px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--ink-ghost);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(229,166,84,0.1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-amber);
}
.post-content pre {
  background: var(--shelf);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.6em 0;
  border: 1px solid rgba(255,181,71,0.1);
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--paper);
  font-size: 14px;
}
.post-content ul, .post-content ol {
  margin: 1em 0 1em 1.4em;
}
.post-content li {
  margin-bottom: 0.4em;
}
.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  margin: 2.4em 0;
}

/* === Koenig 에디터 카드 === */
.post-content .kg-card { margin: 1.8em 0; }
.post-content .kg-image,
.post-content .kg-image-card img,
.post-content figure img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.post-content figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}
/* Koenig 갤러리 */
.post-content .kg-gallery-card { margin: 2em 0; }
.post-content .kg-gallery-container {
  display: flex; flex-direction: column;
  gap: 8px; max-width: 100%;
}
.post-content .kg-gallery-row {
  display: flex; flex-direction: row;
  justify-content: center; gap: 8px;
}
.post-content .kg-gallery-image {
  flex: 1 1 0%;
  min-width: 0;
}
.post-content .kg-gallery-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .post-content .kg-gallery-row { flex-wrap: wrap; }
  .post-content .kg-gallery-image {
    flex-basis: calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
}
/* kg-width-* 본문 폭 강제 */
.post-content .kg-width-wide,
.post-content .kg-width-full,
.post-content figure.kg-width-wide,
.post-content figure.kg-width-full {
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}

/* 관련글 섹션 */
.related-section {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 48px 32px;
  border-top: 1px dashed rgba(255,181,71,0.2);
  position: relative;
  z-index: 2;
}
.related-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-amber);
  text-align: center;
  margin-bottom: 32px;
}
.related-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,181,71,0.08);
  text-decoration: none;
  color: var(--paper);
  transition: padding 0.3s;
}
.related-item:hover { padding-left: 12px; }
.related-item .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}
.related-item .rt {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  margin-bottom: 4px;
}
.related-item:hover .rt { color: var(--accent-amber); }
.related-item .rm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 700px) {
  .post-article { padding: 80px 20px 60px; }
  .post-feature-image { margin: 0 -20px 36px; }
  .related-section { padding: 36px 20px; }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 10, 6, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 32px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-inner {
  width: 100%;
  max-width: 720px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,181,71,0.2);
  border-radius: 16px;
  margin-bottom: 24px;
}
.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.search-input-wrap input::placeholder { color: var(--ink-muted); }
.search-close {
  background: none;
  border: 1px solid rgba(255,181,71,0.3);
  color: var(--accent-amber);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.search-close:hover {
  background: var(--accent-amber);
  color: var(--wood-deep);
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,181,71,0.08);
  transition: background 0.2s, padding 0.2s;
  border-radius: 8px;
}
.search-result:hover {
  background: rgba(255,181,71,0.06);
  padding-left: 32px;
}
.search-result-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.search-result-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.search-empty {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 48px 0;
}

/* ============================================
   LIGHTBOX (이미지 클릭 확대)
   ============================================ */
.dgp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 2, 0.96);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
  padding: 24px;
}
.dgp-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.dgp-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dgp-lightbox.open img { transform: scale(1); }
.dgp-lightbox .lb-close,
.dgp-lightbox .lb-nav {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.dgp-lightbox .lb-close { top: 24px; right: 24px; }
.dgp-lightbox .lb-close:hover { transform: rotate(90deg); background: rgba(255,255,255,0.2); }
.dgp-lightbox .lb-nav { top: 50%; transform: translateY(-50%); }
.dgp-lightbox .lb-nav.prev { left: 24px; }
.dgp-lightbox .lb-nav.next { right: 24px; }
.dgp-lightbox .lb-nav:hover { background: rgba(255,255,255,0.2); }
.dgp-lightbox svg { width: 18px; height: 18px; stroke-width: 2; }
.dgp-lightbox .lb-counter {
  position: absolute;
  top: 24px; left: 24px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.dgp-lightbox .lb-caption {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  max-width: 80vw;
  text-align: center;
}
@media (max-width: 700px) {
  .dgp-lightbox .lb-close,
  .dgp-lightbox .lb-nav { width: 38px; height: 38px; }
  .dgp-lightbox .lb-close { top: 16px; right: 16px; }
  .dgp-lightbox .lb-counter { top: 16px; left: 16px; }
}

/* ============================================
   PAGE / TAG / AUTHOR / ERROR (간소)
   ============================================ */
.simple-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  position: relative;
  z-index: 2;
}
.simple-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 16px;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.simple-page .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 32px;
}
.simple-page .desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-ghost);
  margin-bottom: 48px;
  max-width: 600px;
}
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tag-grid a {
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,181,71,0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--paper);
  transition: all 0.3s;
}
.tag-grid a:hover {
  border-color: var(--accent-amber);
  background: rgba(229,166,84,0.08);
}
.tag-grid h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.tag-grid .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================
   PAGINATION
   ============================================ */
nav.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
nav.pagination a {
  color: var(--accent-amber);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(229,166,84,0.3);
  border-radius: 999px;
  transition: all 0.2s;
}
nav.pagination a:hover {
  background: var(--accent-amber);
  color: var(--wood-deep);
}
nav.pagination .page-number {
  color: var(--ink-muted);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Polaroid 회전 — nth-child 패턴 (Handlebars 회전 대체)
   ============================================ */
.shelf-track .polaroid:nth-child(4n+1) { --r: -3deg; }
.shelf-track .polaroid:nth-child(4n+2) { --r: 2deg; }
.shelf-track .polaroid:nth-child(4n+3) { --r: -1.5deg; }
.shelf-track .polaroid:nth-child(4n+4) { --r: 3deg; }

/* 검색 trigger 버튼 (네비게이션) */
.primary-nav .search-trigger {
  background: rgba(229,166,84,0.08);
  border: 1px solid rgba(229,166,84,0.25);
  color: var(--accent-amber);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
}
.primary-nav .search-trigger:hover {
  background: var(--accent-amber);
  color: var(--wood-deep);
}

/* ============================================
   누락 클래스 보충 (hbs 기준 클래스명)
   ============================================ */

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(15, 10, 6, 0.65);
  border-bottom: 1px solid rgba(229, 166, 84, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 35% 35%, var(--accent-amber) 0%, var(--wood-mid) 60%, var(--wood-deep) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(229,166,84,0.4),
    0 0 18px rgba(229,166,84,0.3);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--wood-deep);
  border: 1px solid rgba(229,166,84,0.3);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  line-height: 1;
  text-decoration: none;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-amber);
  text-decoration: none;
}

/* primary-nav (이미 부분 있지만 강화) */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  padding: 9px 14px;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover {
  color: var(--accent-amber);
  background: rgba(229,166,84,0.08);
}

/* === ARCHIVE main wrapper === */
.archive {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === HERO 보강 === */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.hero-inner {
  max-width: 1100px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  margin-bottom: 32px;
}
.hero-title .line1 {
  display: block;
  font-style: italic;
  font-weight: 200;
}
.hero-title .line2 {
  display: block;
  font-weight: 300;
  background: linear-gradient(135deg,
    var(--paper) 0%,
    var(--accent-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero-counter {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed rgba(229,166,84,0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-counter strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-amber);
  letter-spacing: -0.02em;
  margin-right: 6px;
  vertical-align: -2px;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 96;
}

/* === AISLE 보강 (이미 .aisle-header, .aisle-tag 있지만 .aisle-num, -title-wrap 누락) === */
.aisle-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 200;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-amber);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  margin-right: 8px;
}
.aisle-title-wrap {
  flex: 1;
}

/* aisle-song / aisle-story / aisle-compose / aisle-visual : 기본 .aisle 사용, 추가 컬러 힌트만 */
.aisle-song .aisle-num    { color: var(--tag-song); }
.aisle-story .aisle-num   { color: var(--tag-story); }
.aisle-compose .aisle-num { color: var(--tag-compose); }
.aisle-visual .aisle-num  { color: var(--tag-drawing); }

/* shelf-nav .left / .right 위치 */
.shelf-nav.left { left: 0; }
.shelf-nav.right { right: 0; }

/* === FOOTER === */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 100px 32px 50px;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid rgba(229,166,84,0.1);
}
.foot-display {
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 200;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  background: linear-gradient(180deg,
    var(--paper) 30%,
    var(--accent-amber) 90%,
    transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer .foot-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 반응형 */
@media (max-width: 700px) {
  .site-header { padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8px; }
  .archive { padding: 0 18px; }
  .hero { padding: 60px 0 48px; }
  .aisle-num { font-size: 40px; }
  .site-footer { padding: 60px 18px 32px; }
}

/* ============================================
   v1.3 — 헤더 nav 강화
   ============================================ */
.site-header {
  flex-wrap: wrap;
  gap: 16px;
}
.primary-nav {
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
}
.nav-item:hover {
  color: var(--accent-amber);
  background: rgba(229,166,84,0.08);
}
/* 활성 보관대 (현재 스크롤 위치) 표시 */
.nav-item.active {
  color: var(--accent-amber);
  background: rgba(229,166,84,0.14);
}

/* 모바일: 브랜드 + 검색만 가로, nav는 아래 줄 */
@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }
  .primary-nav {
    width: 100%;
    justify-content: center;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px dashed rgba(229, 166, 84, 0.15);
  }
  .nav-item {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .search-trigger {
    font-size: 9px;
    letter-spacing: 0.15em;
  }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 8px; }
}

/* 매우 좁은 화면: nav 가로 스크롤 가능 */
@media (max-width: 380px) {
  .primary-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-item, .search-trigger {
    flex-shrink: 0;
  }
}

/* ============================================
   v1.5 — DRAWING (Sketchbook 카드)
   ============================================ */
.aisle-drawing .aisle-num { color: var(--tag-drawing); }

.sketch-card {
  flex: 0 0 240px;
  height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transform-origin: center top;
  transform: rotate(var(--rot, -1deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  cursor: pointer;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}
.shelf-track .sketch-card:nth-child(3n+1) { --rot: -2deg; }
.shelf-track .sketch-card:nth-child(3n+2) { --rot: 2.5deg; }
.shelf-track .sketch-card:nth-child(3n+3) { --rot: -1deg; }

.sketch-card:hover {
  transform: rotate(0deg) translateY(-12px);
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.6));
}

/* 마스킹 테이프 (상단 부착) */
.sketch-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 22px;
  background:
    repeating-linear-gradient(45deg,
      rgba(229, 200, 130, 0.85) 0,
      rgba(229, 200, 130, 0.85) 6px,
      rgba(212, 178, 100, 0.85) 6px,
      rgba(212, 178, 100, 0.85) 10px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 0 8px rgba(180, 140, 70, 0.3);
  z-index: 3;
  border-radius: 1px;
}
.sketch-tape::before, .sketch-tape::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: inherit;
  filter: blur(1px);
  opacity: 0.7;
}
.sketch-tape::before { left: -3px; }
.sketch-tape::after { right: -3px; }

/* 종이 본체 */
.sketch-paper {
  flex: 1;
  background: #ede4d0;
  padding: 22px 18px 14px;
  position: relative;
  border-radius: 1px;
  /* 종이 결 */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.45'/></svg>"),
    linear-gradient(170deg, #f0e7d0 0%, #e6dcc4 60%, #ddd2b8 100%);
  background-blend-mode: multiply, normal;
  box-shadow:
    inset 0 -2px 8px rgba(120, 80, 40, 0.08),
    inset 2px 0 0 rgba(0, 0, 0, 0.03);
}
/* 종이 모서리 살짝 닳음 (오른쪽 위) */
.sketch-paper::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, transparent 50%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.12) 100%);
}
/* 종이 줄 (옅게) */
.sketch-paper::after {
  content: '';
  position: absolute;
  inset: 22px 18px 60px;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 19px,
    rgba(140, 100, 60, 0.12) 19px,
    rgba(140, 100, 60, 0.12) 20px
  );
  pointer-events: none;
}

/* 그림 이미지 영역 */
.sketch-img {
  width: 100%;
  height: 70%;
  background:
    radial-gradient(circle at 35% 35%,
      color-mix(in srgb, var(--c, var(--tag-drawing)) 70%, white 25%) 0%,
      transparent 60%),
    radial-gradient(circle at 70% 70%,
      color-mix(in srgb, var(--c, var(--tag-drawing)) 80%, black 10%) 0%,
      transparent 55%),
    var(--c, var(--tag-drawing));
  filter: contrast(0.85) saturate(0.7);
  position: relative;
  z-index: 1;
  border-radius: 2px;
  /* 손그림 느낌 - 살짝 흔들리는 테두리 */
  box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.2);
}
.sketch-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='r'><feTurbulence baseFrequency='0.04' numOctaves='3'/><feDisplacementMap in='SourceGraphic' scale='3'/></filter></svg>");
  pointer-events: none;
}

/* 메타 정보 */
.sketch-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(229, 166, 84, 0.7);
}
.sketch-meta .sketch-num { color: var(--tag-drawing); font-weight: 600; }

/* 손글씨 캡션 */
.sketch-caption {
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.1;
  color: var(--paper);
  margin-top: 6px;
  position: relative;
  z-index: 1;
  /* 손글씨 살짝 기울어짐 */
  transform: rotate(-1deg);
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sketch-date {
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(229, 166, 84, 0.6);
  margin-top: 4px;
  text-align: right;
  position: relative;
  z-index: 1;
  transform: rotate(-1deg);
}

/* ============================================
   v1.5 — PHOTO (35mm 슬라이드 마운트)
   ============================================ */
.aisle-photo .aisle-num { color: var(--tag-photo); }

.slide-card {
  flex: 0 0 240px;
  height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s;
  cursor: pointer;
}
.slide-card:hover {
  transform: translateY(-10px);
}

/* 슬라이드 마운트 본체 (검정 카드보드) */
.slide-mount {
  background:
    /* 마운트의 미세한 결 */
    repeating-linear-gradient(0deg,
      transparent 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px,
      transparent 5px),
    linear-gradient(135deg,
      #1f1814 0%,
      #2a201a 50%,
      #1a130f 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 필름 천공 (아주 작은 사각형들) */
.slide-perfs {
  display: flex;
  justify-content: space-between;
  height: 8px;
  padding: 0 4px;
  margin: 4px 0;
}
.slide-perfs::before, .slide-perfs::after {
  content: '';
  flex: 0 0 8px;
}
.slide-perfs-top {
  background-image: repeating-linear-gradient(90deg,
    rgba(0, 0, 0, 0.7) 0,
    rgba(0, 0, 0, 0.7) 6px,
    transparent 6px,
    transparent 14px);
}
.slide-perfs-bottom {
  background-image: repeating-linear-gradient(90deg,
    rgba(0, 0, 0, 0.7) 0,
    rgba(0, 0, 0, 0.7) 6px,
    transparent 6px,
    transparent 14px);
}

/* 노출된 이미지 영역 (필름 컷) */
.slide-aperture {
  flex: 1;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  margin: 6px 0;
}

.slide-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%,
      color-mix(in srgb, var(--c, var(--tag-photo)) 80%, white 20%) 0%,
      transparent 60%),
    radial-gradient(ellipse at 70% 70%,
      color-mix(in srgb, var(--c, var(--tag-photo)) 60%, black 40%) 0%,
      transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--c, var(--tag-photo)) 40%, #2a2620 60%) 0%,
      color-mix(in srgb, var(--c, var(--tag-photo)) 30%, #1a1612 70%) 100%);
  filter: contrast(1.1) saturate(0.65) sepia(0.15);
}
.slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 필름 그레인 */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' seed='5'/></filter><rect width='200' height='200' filter='url(%23g)' opacity='0.5'/></svg>"),
    /* 비네팅 */
    radial-gradient(ellipse at center,
      transparent 50%,
      rgba(0, 0, 0, 0.4) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* 슬라이드 메타 (상단 인쇄 정보 같은) */
.slide-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(229, 166, 84, 0.7);
  margin-top: 4px;
}
.slide-meta .slide-num {
  color: var(--accent-amber);
  font-weight: 600;
}

/* 슬라이드 하단 캡션 (필름 라벨 영역) */
.slide-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.05em;
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(245, 240, 220, 0.04);
  border-left: 2px solid var(--accent-amber);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.slide-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(229, 166, 84, 0.6);
  text-align: right;
  margin-top: 6px;
}

/* 모바일에서 카드 약간 좁게 */
@media (max-width: 700px) {
  .sketch-card,
  .slide-card {
    flex: 0 0 200px;
    height: 280px;
  }
  .sketch-caption { font-size: 18px; }
  .slide-caption { font-size: 10px; }
}

/* ============================================
   v1.7 — CARD PREVIEW (excerpt + feature_image)
   ============================================ */

/* 카세트 라벨에 excerpt 한 줄 — 라벨 영역 자체를 살짝 키움 */
.cassette-excerpt {
  font-family: var(--font-serif);
  font-size: 9px;
  line-height: 1.35;
  color: var(--ink-ghost);
  letter-spacing: -0.005em;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
  opacity: 0.72;
}
/* 라벨 안에 excerpt가 들어오면 라벨을 살짝 늘려서 클립 방지 */
.cassette-label:has(.cassette-excerpt) {
  height: auto;
  min-height: 78px;
  padding-bottom: 8px;
}

/* 책표지 한가운데 부제처럼 excerpt 한 줄 */
.book-excerpt {
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  letter-spacing: 0.005em;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative; z-index: 1;
  text-align: left;
}
/* book-title이 flex:1로 가운데를 다 먹으니 excerpt가 오면 title을 줄이고 공간 양보 */
.book-spine:has(.book-excerpt) .book-title {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

/* 악보 카드 excerpt — 악보지 본문에 손글씨 느낌으로 */
.score-excerpt {
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-ghost);
  font-style: italic;
  letter-spacing: -0.005em;
  margin-top: 6px;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.78;
}

/* 그림 카드 — 종이 위 이미지 슬롯 */
.sketch-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 이미지 없을 때(placeholder): 태그 색상 그라데이션 + 사선 패턴 */
  background-color: var(--c, var(--tag-drawing));
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--c, var(--tag-drawing)) 25%, transparent) 0%,
    color-mix(in srgb, var(--c, var(--tag-drawing)) 8%, transparent) 100%);
  transition: filter 0.4s ease;
}
.sketch-card:hover .sketch-img {
  filter: brightness(1.06) saturate(1.1);
}
/* 이미지가 실제로 hydrate된 경우에만 약간 어두운 오버레이로 텍스트 가독성 확보 */
.sketch-card.has-preview .sketch-img,
.sketch-card[data-feature] .sketch-img {
  background-color: transparent;
}

/* 사진 카드 — 35mm 슬라이드 구멍 안 이미지 슬롯 */
.slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--c, var(--tag-photo));
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--c, var(--tag-photo)) 30%, transparent) 0%,
    color-mix(in srgb, var(--c, var(--tag-photo)) 10%, transparent) 100%);
  transition: filter 0.4s ease;
}
.slide-card:hover .slide-img {
  filter: brightness(1.04) contrast(1.05);
}
.slide-card.has-preview .slide-img,
.slide-card[data-feature] .slide-img {
  background-color: transparent;
}

/* 모바일에선 excerpt 폰트 한 단계 더 작게 */
@media (max-width: 700px) {
  .cassette-excerpt { font-size: 8px; -webkit-line-clamp: 2; }
  .book-excerpt { font-size: 9px; -webkit-line-clamp: 3; }
  .score-excerpt { font-size: 10px; -webkit-line-clamp: 2; }
}
