﻿@charset "utf-8";

/* ============================================================
	msub10 — 시·에세이형
	긴 글 읽기형 / 챕터 번호 + 인라인 이미지
	============================================================ */

/* ============================================================
	히어로
	============================================================ */
.poem-hero {
	position: relative;
	height: 100vh;
	min-height: 560px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	color: #fff;
}

.poem-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transform: scale(1.06);
}

.poem-hero-dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 20, 42, 0.78) 0%, rgba(7, 20, 42, 0.38) 60%, rgba(7, 20, 42, 0.2) 100%);
	z-index: 1;
}

.poem-hero-inner {
	position: relative;
	z-index: 2;
	padding: 0 30px;
}

.poem-hero-genre {
	font-size: 18px;
	text-transform: uppercase;
	color: rgba(200, 220, 255, 0.5);
	margin-bottom: 32px;
}

.poem-hero-tit {
	font-size: clamp(44px, 6.5vw, 84px);
	font-weight: 700;
	margin-bottom: 24px;
	color: #fff;
}

.poem-hero-sub {
	font-size: 18px;
	color: rgba(200, 220, 255, 0.5);
	margin-bottom: 10px;
}

.poem-hero-author {
	font-size: 18px;
	color: rgba(200, 220, 255, 0.7);
}

.poem-hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: rgba(200, 220, 255, 0.35);
}

.poem-hero-scroll-line {
	display: block;
	width: 1px;
	height: 48px;
	background: currentColor;
	animation: poem-scroll-pulse 2s ease-in-out infinite;
}

.poem-hero-scroll-txt {
	font-size: 18px;
	text-transform: uppercase;
}

@keyframes poem-scroll-pulse {
	0%,
	100% {
		opacity: 0.5;
		transform: scaleY(1);
	}
	50% {
		opacity: 0.15;
		transform: scaleY(0.45);
	}
}

/* ============================================================
	본문 아티클
	============================================================ */
.poem-article {
	max-width: 720px;
	margin: 0 auto;
	padding: 56px 40px 80px;
}

/* ============================================================
	작가의 말
	============================================================ */
.poem-intro {
	padding-bottom: 48px;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 0;
}

.poem-intro-label {
	font-size: 14px;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 24px;
}

.poem-intro-text {
	font-size: clamp(16px, 1.3vw, 18px);
	color: var(--color-text-sub);
	word-break: keep-all;
	margin-bottom: 18px;
}

.poem-intro-text:last-child {
	margin-bottom: 0;
}

/* ============================================================
	챕터
	============================================================ */
.poem-ch {
	padding: 52px 0;
	border-bottom: 1px solid var(--color-border);
}

.poem-ch-num {
	font-size: clamp(52px, 6vw, 80px);
	font-weight: 700;
	color: var(--color-border-strong);
	margin-bottom: 36px;
}

/* ============================================================
	시 구조
	============================================================ */
.poem-verse {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.poem-stanza {
	display: flex;
	flex-direction: column;
}

.poem-line {
	display: block;
	font-size: clamp(20px, 1.8vw, 25px);
	font-weight: 400;
	word-break: keep-all;
	color: var(--color-text-main);
}

.poem-line--em {
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	color: var(--color-text-main);
}

/* ============================================================
	인라인 이미지
	============================================================ */
.poem-figure {
	margin: 0;
	padding: 40px 0;
	border-bottom: 1px solid var(--color-border);
}

.poem-figure img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

/* ============================================================
	산문 인터루드
	============================================================ */
.poem-interlude {
	padding: 40px 0;
	border-bottom: 1px solid var(--color-border);
}

.poem-interlude .poem-intro-text {
	color: var(--color-text-sub);
}

/* ============================================================
	챕터 네비
	============================================================ */
.poem-ch-nav {
	position: fixed;
	left: 40px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 18px;
	z-index: 3;
	opacity: 1;
	transition: opacity 0.4s ease;
}

.poem-ch-nav.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.poem-ch-nav-link {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-text-muted);
	opacity: 0.35;
	transition:
		opacity 0.3s ease,
		color 0.3s ease;
	text-decoration: none;
}

.poem-ch-nav-link:hover {
	opacity: 0.7;
}

.poem-ch-nav-link.is-active {
	color: var(--color-text-main);
	opacity: 1;
}

/* 768px 이하: 아티클 여백 없어서 숨김 */
@media all and (max-width: 999px) {
	.poem-ch-nav {
		display: none;
	}
}

/* ============================================================
	아웃트로
	============================================================ */
.poem-outro {
	background: #07142a;
	color: #c8d8ec;
	padding: 90px 40px 100px;
	text-align: center;
}

.poem-outro-label {
	font-size: 14px;
	text-transform: uppercase;
	color: rgba(200, 220, 255, 0.3);
	margin-bottom: 22px;
}

.poem-outro-tit {
	font-size: clamp(26px, 3.5vw, 44px);
	font-weight: 700;
	color: #e8f0fa;
	margin-bottom: 56px;
}

.poem-outro-links {
	display: flex;
	justify-content: center;
	gap: 24px;
	max-width: 960px;
	margin: 0 auto;
}

.poem-outro-link {
	flex: 1;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.poem-outro-link .img-box {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
}

.poem-outro-link .img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.poem-outro-link:hover .img-box img {
	transform: scale(1.05);
}

.poem-outro-link .link-cate {
	display: block;
	font-size: 14px;
	text-transform: uppercase;
	color: rgba(200, 220, 255, 0.35);
}

.poem-outro-link .link-tit {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: rgba(232, 240, 250, 0.82);
	transition: color 0.2s;
}

.poem-outro-link:hover .link-tit {
	color: #fff;
}

/* ============================================================
	반응형 — 필수 구간 999 / 768 / 499
	============================================================ */
@media all and (max-width: 999px) {
	.poem-article {
		padding: 44px 28px 72px;
	}

	.poem-ch {
		padding: 44px 0;
	}

	.poem-verse {
		gap: 28px;
	}

	.poem-outro-links {
		gap: 16px;
	}
}

@media all and (max-width: 768px) {
	.poem-hero-scroll {
		bottom: 28px;
	}

	.poem-article {
		padding: 36px 20px 60px;
	}

	.poem-intro {
		padding-bottom: 36px;
	}

	.poem-ch {
		padding: 36px 0;
	}

	.poem-ch-num {
		margin-bottom: 24px;
	}

	.poem-verse {
		gap: 24px;
	}

	.poem-figure,
	.poem-interlude {
		padding: 32px 0;
	}

	.poem-outro {
		padding: 64px 20px 72px;
	}

	.poem-outro-links {
		flex-direction: column;
		align-items: center;
		gap: 32px;
	}

	.poem-outro-link {
		max-width: 100%;
		width: 100%;
	}
}

@media all and (max-width: 499px) {
	.poem-article {
		padding: 40px 20px 64px;
	}

	.poem-ch-num {
		font-size: clamp(40px, 10vw, 56px);
	}

	.poem-outro-tit {
		font-size: clamp(22px, 7vw, 30px);
	}
}
