@charset "utf-8";

/* ============================================================
   mcat18 — 사서 인덱스형 (도서관 시리즈 분류)
   타이포그래피 목록 + 카테고리 필터 + 스크롤 stagger
   ============================================================ */

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: #f0ebe2 !important;
}

/* ── 히어로 ── */
.ci-hero {
	background: repeating-linear-gradient(transparent, transparent 27px, rgba(160, 130, 80, 0.1) 27px, rgba(160, 130, 80, 0.1) 28px), #f0ebe2;
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 40px 80px;
}

.ci-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.ci-hero-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.45);
}

.ci-hero-ornament {
	display: flex;
	align-items: center;
	width: 240px;
	gap: 0;
}

.ci-hero-ornament::before,
.ci-hero-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.45));
}

.ci-hero-ornament::after {
	background: linear-gradient(to left, transparent, rgba(201, 168, 76, 0.45));
}

.ci-hero-ornament span {
	font-size: 10px;
	color: rgba(201, 168, 76, 0.55);
	padding: 0 8px;
}

.ci-hero-tit {
	font-size: clamp(48px, calc(28px + 4vw), 100px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 800;
	color: #1c2412;
	letter-spacing: -0.02em;
}

.ci-hero-sub {
	font-size: clamp(18px, calc(12px + 0.9vw), 22px);
	font-family: "MaruBuri", serif;
	color: rgba(60, 45, 20, 0.55);
}

.ci-hero-count {
	font-size: clamp(18px, calc(12px + 0.8vw), 22px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.4);
}

.ci-total {
	font-style: normal;
	font-weight: 700;
	color: #1c2412;
}

/* ── 바디 ── */
.ci-body {
	background: #f0ebe2;
	padding-bottom: 120px;
}

/* ── 필터 ── */
.ci-filter-wrap {
	position: sticky;
	top: 90px;
	z-index: 2;
	background: rgba(240, 235, 226, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(160, 130, 80, 0.15);
	transition: top 0.25s ease;
}

@media (max-width: 999px) {
	.ci-filter-wrap {
		top: 70px;
	}
}

.ci-filter-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	gap: 0;
}

.ci-filter {
	padding: 18px 24px;
	font-size: clamp(18px, calc(12px + 0.8vw), 20px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 400;
	color: rgba(60, 45, 20, 0.4);
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
}

.ci-filter::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 24px;
	right: 24px;
	height: 2px;
	background: rgba(201, 168, 76, 0.7);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.ci-filter:hover {
	color: #1c2412;
}

.ci-filter.is-active {
	color: #1c2412;
	font-weight: 600;
}

.ci-filter.is-active::after {
	transform: scaleX(1);
}

/* ── 목록 헤더 ── */
.ci-list-head {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 40px 12px;
	display: grid;
	grid-template-columns: 48px 80px 1fr 140px;
	gap: 0 32px;
	border-bottom: 1px solid rgba(160, 130, 80, 0.3);
}

.ci-col--no,
.ci-col--cat,
.ci-col--author {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.4);
}

.ci-col--tit {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.4);
}

/* ── 목록 ── */
.ci-list {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 40px;
	list-style: none;
}

.ci-item {
	border-bottom: 1px solid rgba(160, 130, 80, 0.12);
	opacity: 0;
	transform: translateX(-20px);
}

.ci-item.is-hidden {
	display: none;
}

.ci-link {
	display: grid;
	grid-template-columns: 48px 80px 1fr 140px 32px;
	gap: 0 32px;
	align-items: center;
	padding: 24px 0;
	text-decoration: none;
	position: relative;
	transition: background 0.2s;
}

.ci-link::before {
	content: "";
	position: absolute;
	inset: 0 -40px;
	background: rgba(201, 168, 76, 0.06);
	opacity: 0;
	transition: opacity 0.2s;
}

.ci-link:hover::before {
	opacity: 1;
}

/* 컬럼 공통 */
.ci-col--no {
	font-size: clamp(18px, calc(12px + 0.8vw), 22px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.25);
}

/* 분류 뱃지 */
.ci-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 400;
	color: #7a5c2a;
	border: 1px solid rgba(201, 168, 76, 0.35);
	background: rgba(201, 168, 76, 0.08);
}

.ci-badge--culture {
	color: #2a5c5c;
	border-color: rgba(60, 160, 160, 0.3);
	background: rgba(60, 160, 160, 0.06);
}
.ci-badge--interview {
	color: #3a2a5c;
	border-color: rgba(120, 80, 200, 0.3);
	background: rgba(120, 80, 200, 0.06);
}
.ci-badge--poem {
	color: #5c2a3a;
	border-color: rgba(200, 80, 120, 0.3);
	background: rgba(200, 80, 120, 0.06);
}
.ci-badge--plan {
	color: #2a3a5c;
	border-color: rgba(80, 120, 200, 0.3);
	background: rgba(80, 120, 200, 0.06);
}

/* 제목 + 설명 */
.ci-tit {
	display: block;
	font-size: clamp(18px, calc(12px + 1vw), 24px);
	font-family: "MaruBuri", serif;
	font-weight: 700;
	color: #1c2412;
	transition: color 0.2s;
}

.ci-link:hover .ci-tit {
	color: #7a5c2a;
}

.ci-desc {
	display: block;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.45);
	margin-top: 4px;
}

/* 저자 */
.ci-col--author {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "MaruBuri", serif;
	font-weight: 400;
	color: rgba(60, 45, 20, 0.55);
}

/* 화살표 */
.ci-arr {
	font-size: clamp(18px, calc(12px + 0.8vw), 22px);
	color: rgba(60, 45, 20, 0.2);
	transition:
		color 0.2s,
		transform 0.3s;
}

.ci-link:hover .ci-arr {
	color: rgba(201, 168, 76, 0.7);
	transform: translateX(6px);
}

/* ── 반응형 ── */
@media (max-width: 999px) {
	.ci-list-head {
		grid-template-columns: 40px 72px 1fr 100px;
		gap: 0 20px;
		padding: 24px 30px 12px;
	}

	.ci-list {
		padding: 0 30px;
	}

	.ci-link {
		grid-template-columns: 40px 72px 1fr 100px 28px;
		gap: 0 20px;
	}
}

@media (max-width: 768px) {
	.ci-hero {
		min-height: 60vh;
		padding: 100px 24px 60px;
	}

	.ci-filter-inner {
		padding: 0 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ci-filter-inner::-webkit-scrollbar {
		display: none;
	}

	.ci-filter {
		padding: 16px 16px;
		white-space: nowrap;
	}

	.ci-list-head {
		display: none;
	}

	.ci-list {
		padding: 0 20px;
	}

	.ci-link {
		grid-template-columns: 1fr 28px;
		grid-template-rows: auto auto;
		gap: 8px 12px;
		padding: 20px 0;
	}

	.ci-col--no {
		display: none;
	}

	.ci-col--cat {
		grid-column: 1;
		grid-row: 1;
	}

	.ci-col--tit {
		grid-column: 1;
		grid-row: 2;
	}

	.ci-col--author {
		display: none;
	}

	.ci-arr {
		grid-column: 2;
		grid-row: 1 / 3;
		align-self: center;
	}
}

@media (max-width: 499px) {
	.ci-hero {
		padding: 90px 20px 50px;
	}
}
