/* 미디어·에듀 media.refit.kr — 강조색: 황동 → 금. 그 밖의 모든 것은 base.css 와 같음 */
:root { --accent: #E0A84A; --accent-2: #F3D08A; --accent-ink: #1A1204; }

/* ---------- 1면 ---------- */
.front-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.story-lead { padding-right: clamp(20px, 3vw, 40px); border-right: 1px solid var(--line); }
.col { display: grid; align-content: start; }
.kicker { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-2); letter-spacing: .06em; }
.hl { font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; letter-spacing: -0.035em; margin: 8px 0 18px; }
.hl-s { font-weight: 700; font-size: 19px; line-height: 1.38; letter-spacing: -0.02em; margin: 6px 0 10px; }
.story-lead figure, .brief figure, .row3 figure { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.story-lead img, .story-lead .pic-hold { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-lead figcaption { font-size: 12.5px; color: var(--sub); padding: 8px 10px; border-top: 1px solid var(--line); }
.dek { font-size: 16.5px; line-height: 1.9; color: var(--sub); margin-top: 14px; }
.dek::first-letter { float: left; font-size: 3.2em; line-height: .9; font-weight: 800; padding: 4px 8px 0 0; color: var(--accent); }
.more { display: inline-block; margin-top: 14px; font-weight: 700; border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
.more:hover { color: var(--accent-2); border-color: var(--accent); }
.brief { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.brief:first-child { padding-top: 0; }
.brief p, .row3 p { font-size: 14.5px; color: var(--sub); line-height: 1.75; }
.brief img, .row3 img, .brief .pic-hold, .row3 .pic-hold { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.brief img.is-mock, .row3 img.is-mock { padding: 4%; }

/* ---------- 책장 ---------- */
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: end; padding-bottom: 18px; border-bottom: 3px solid var(--line-2); }
.book { margin: 0; }
.book img, .book .pic-hold { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 24px 40px -18px rgb(0 0 0 / .9), 0 0 0 1px var(--line-2); transition: transform .5s var(--ease); }
.book:hover img, .book:hover .spine { transform: translateY(-8px) rotate(-1deg); }
.book figcaption { display: grid; margin-top: 12px; }
.book figcaption b { font-size: 14px; letter-spacing: -0.01em; }
.book figcaption span { font-size: 12.5px; color: var(--sub); }
.spine { aspect-ratio: 2 / 3; background: linear-gradient(160deg, #1F2A3A, #0F141D); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 20px 16px;
  box-shadow: 0 24px 40px -18px rgb(0 0 0 / .9), 0 0 0 1px var(--line-2); transition: transform .5s var(--ease); border-left: 6px solid rgb(255 255 255 / .1); }
.spine b { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.35; letter-spacing: -0.02em; }
.spine span { font-family: var(--font-mono); font-size: 10px; color: var(--sub); }

/* ---------- 발행 정보 ---------- */
.pub { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pub-box { padding: 6px 22px; }
.pub-box div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pub-box div:last-child { border-bottom: 0; }
.pub-box dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); padding-top: 3px; letter-spacing: .04em; }

@media (max-width: 900px) { .front-grid, .pub { grid-template-columns: 1fr; } .story-lead { padding-right: 0; border-right: 0; } .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 책장: 들어올 때 책이 차례로 세워짐 */
.book.rv.in img, .book.rv.in .spine { animation: bookIn .9s var(--ease) both; animation-delay: var(--d-delay, 0s); }
@keyframes bookIn { from { transform: translateY(24px) rotate(-3deg); opacity: 0; } }
