:root {
  --cream: #f5f0e8;
  --warm: #e8dcc8;
  --brown: #6b4f3a;
  --soft: #c4a882;
  --text: #3a2e24;
  --muted: #9c8472;
  --ff-serif: 'Gothic+A1', serif;
  --ff-hand: 'Gothic+A1', cursive;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--text);
}

/* ── 좌우 분할 ── */
.split-screen {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.panel {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

/* ── 왼쪽 패널 ── */
.left-panel {
  background: var(--warm);
  border-right: 1px solid var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-panel:hover {
  background: #e2d5be;
}

/* ── 오른쪽 패널 ── */
.right-panel {
  background: var(--cream);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.right-panel:hover {
  background: #f0ebe0;
}

/* ── 슬라이드 공통 ── */
.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  padding: 3rem 2.5rem;
  animation: fadein 0.4s ease;
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 오른쪽은 텍스트 길면 스크롤 */
.right-panel .slide.active {
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 4rem;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 사진 ── */
.photo-placeholder {
  width: 75%;
  aspect-ratio: 3 / 4;
  background: var(--soft);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-hand);
  font-size: 1.4rem;
  color: var(--cream);
  margin: 0 auto;
  transform: rotate(-1.5deg);
  box-shadow: 3px 4px 12px rgba(0,0,0,0.15);
}

.left-panel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 텍스트 ── */
.date {
  font-family: var(--ff-hand);
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  transform: rotate(-1deg);
  display: inline-block;
}

.story {
  font-family: var(--ff-serif);
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text);
  word-break: keep-all;
}

/* ── 카운터 ── */
.slide-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-hand);
  font-size: 1rem;
  color: var(--muted);
  z-index: 10;
  pointer-events: none;
}

/* ── 클릭 힌트 ── */
.click-hint {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--ff-hand);
  font-size: 0.95rem;
  color: var(--soft);
  pointer-events: none;
  z-index: 10;
}

/* ── 반응형 ── */
@media (max-width: 640px) {
  .split-screen {
    flex-direction: column;
  }
  .panel {
    flex: none;
    height: 50vh;
  }
  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--soft);
  }
}
