@charset "utf-8";

/* ============================================================
   ① 히어로
   ============================================================ */
.fa-hero {
	position: relative;
	height: 70vh;
	min-height: 500px;
	overflow: hidden;
	background: #2a2520;
}

.fa-grain {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
	opacity: 0.3;
}

.fa-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.fa-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(0.45) saturate(0.5) sepia(0.25);
}

.fa-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		to top,
		rgba(42, 37, 32, 0.98) 0%,
		rgba(42, 37, 32, 0.65) 40%,
		rgba(42, 37, 32, 0.15) 75%,
		transparent 100%
	);
	pointer-events: none;
}

/* 필름 퍼포레이션 */
.fa-perf {
	position: absolute;
	left: 0;
	right: 0;
	height: 20px;
	z-index: 4;
	pointer-events: none;
	overflow: hidden;
}
.fa-perf--top { top: 0; }
.fa-perf--bottom { bottom: 0; }
.fa-perf::before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-image: repeating-linear-gradient(
		90deg,
		transparent 0px,
		transparent 10px,
		rgba(237, 232, 222, 0.12) 10px,
		rgba(237, 232, 222, 0.12) 22px
	);
	border-top: 1px solid rgba(237, 232, 222, 0.07);
	border-bottom: 1px solid rgba(237, 232, 222, 0.07);
}

.fa-hero-inner {
	position: relative;
	z-index: 4;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 clamp(24px, 8vw, 120px) clamp(60px, 8vh, 100px);
}

.fa-hero-eyebrow {
	display: block;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(237, 232, 222, 0.4);
	margin-bottom: 20px;
	font-weight: 500;
}

.fa-hero-tit {
	font-size: clamp(42px, calc(22px + 4vw), 88px);
	font-weight: 900;
	color: #ede8de;
	margin-bottom: 20px;
}

.fa-hero-sub {
	font-size: clamp(16px, calc(12px + 0.8vw), 22px);
	color: rgba(237, 232, 222, 0.6);
}

/* ============================================================
   ② 연도 탭
   ============================================================ */
.fa-year-bar {
	background: #2a2520;
	border-bottom: 1px solid rgba(184, 146, 46, 0.18);
	position: sticky;
	top: 90px;
	z-index: 5;
	transition: top 0.25s ease;
}

.fa-year-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 80px);
	display: flex;
	align-items: center;
	gap: 28px;
}

.fa-year-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(237, 232, 222, 0.35);
	white-space: nowrap;
	font-weight: 500;
}

.fa-year-tabs {
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fa-year-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(237, 232, 222, 0.4);
	padding: 18px 20px;
	white-space: nowrap;
	position: relative;
	font-weight: 500;
	transition: color 0.25s;
}
.fa-year-btn::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #b8922e;
	transform: scaleX(0);
	transition: transform 0.25s;
}
.fa-year-btn:hover { color: rgba(237, 232, 222, 0.75); }
.fa-year-btn.is-active { color: #b8922e; }
.fa-year-btn.is-active::after { transform: scaleX(1); }

/* ============================================================
   ③ 상영표 목록
   ============================================================ */
.fa-board {
	background: #ede8de;
	min-height: 50vh;
}

.fa-board-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(40px, 6vh, 80px) clamp(20px, 5vw, 80px);
}

.fa-issue {
	display: grid;
	grid-template-columns: 88px 1fr 80px auto;
	align-items: center;
	gap: 24px;
	padding: 28px 12px;
	border-bottom: 1px solid rgba(42, 37, 32, 0.1);
	cursor: pointer;
	transition: background 0.2s;
}
.fa-issue:first-child { border-top: 1px solid rgba(42, 37, 32, 0.1); }
.fa-issue:hover { background: rgba(184, 146, 46, 0.07); }

.fa-issue-num {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: #b8922e;
}

.fa-issue-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fa-issue-tit {
	font-size: clamp(18px, calc(14px + 0.8vw), 24px);
	font-weight: 700;
	color: #1a1510;
}

.fa-issue-period {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(42, 37, 32, 0.5);
}

.fa-issue-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fa-tag {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid rgba(42, 37, 32, 0.18);
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(42, 37, 32, 0.55);
	border-radius: 2px;
}

.fa-issue-poster {
	width: 80px;
	aspect-ratio: 2 / 3;
	position: relative;
	flex-shrink: 0;
}
.fa-issue-frame {
	position: absolute;
	inset: 0;
	border: 1.5px solid #b8922e;
	z-index: 1;
	pointer-events: none;
}
.fa-issue-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(0.65);
}

.fa-issue-btn {
	background: none;
	border: 1px solid rgba(42, 37, 32, 0.22);
	cursor: pointer;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(42, 37, 32, 0.55);
	padding: 10px 18px;
	white-space: nowrap;
	border-radius: 2px;
	transition: all 0.25s;
}
.fa-issue-btn:hover {
	border-color: #b8922e;
	color: #b8922e;
}

.fa-issue.is-hidden {
	display: none;
}

/* ============================================================
   ④ 디테일 패널
   ============================================================ */
.fa-panel {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
}
.fa-panel.is-open {
	visibility: visible;
}

.fa-panel-overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 21, 16, 0.6);
	opacity: 0;
	transition: opacity 0.35s;
	cursor: pointer;
}
.fa-panel.is-open .fa-panel-overlay { opacity: 1; }

.fa-panel-body {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: min(540px, 92vw);
	background: #ede8de;
	display: flex;
	flex-direction: column;
	gap: 32px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: clamp(60px, 8vh, 100px) clamp(24px, 4vw, 52px) clamp(40px, 5vh, 64px);
}
.fa-panel.is-open .fa-panel-body { transform: translateX(0); }

.fa-panel-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 4px;
}
.fa-panel-close span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: #1a1510;
}
.fa-panel-close span:first-child { transform: rotate(45deg) translate(1px, 1px); }
.fa-panel-close span:last-child { transform: rotate(-45deg) translate(1px, -1px); }

.fa-panel-poster {
	width: 100%;
	max-width: 240px;
	aspect-ratio: 2 / 3;
	position: relative;
	align-self: center;
	flex-shrink: 0;
}
.fa-panel-frame {
	position: absolute;
	inset: 0;
	border: 2px solid #b8922e;
	z-index: 1;
	pointer-events: none;
}
.fa-panel-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(0.7) sepia(0.06);
}

.fa-panel-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.fa-panel-num {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: #b8922e;
}
.fa-panel-tit {
	font-size: clamp(20px, calc(14px + 1vw), 28px);
	font-weight: 700;
	color: #1a1510;
}
.fa-panel-period {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(42, 37, 32, 0.5);
}
.fa-panel-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fa-panel-desc {
	font-size: clamp(16px, calc(12px + 0.6vw), 20px);
	color: rgba(42, 37, 32, 0.7);
	margin-top: 8px;
}
.fa-panel-link {
	display: inline-block;
	margin-top: 8px;
	padding: 14px 30px;
	background: #2a2520;
	color: #ede8de;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	text-decoration: none;
	align-self: flex-start;
	border: 1.5px solid transparent;
	transition: all 0.25s;
}
.fa-panel-link:hover {
	background: transparent;
	border-color: #2a2520;
	color: #2a2520;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 999px) {
	.fa-year-bar { top: 70px; }
	.fa-hero { min-height: 440px; }
	.fa-issue { grid-template-columns: 70px 1fr; }
	.fa-issue-poster { display: none; }
	.fa-issue-btn { grid-column: 2; width: fit-content; }
}

@media (max-width: 768px) {
	.fa-hero { height: 62vh; min-height: 380px; }
	.fa-hero-inner { padding: 0 24px clamp(40px, 6vh, 64px); }
	.fa-board-inner { padding: clamp(28px, 4vh, 48px) 20px; }
	.fa-issue { gap: 14px; padding: 20px 0; }
	.fa-year-inner { gap: 12px; }
	.fa-panel-body { width: 100%; }
}

@media (max-width: 499px) {
	.fa-hero { height: 58vh; min-height: 320px; }
	.fa-issue { grid-template-columns: 1fr; }
	.fa-issue-num { font-size: 14px; }
	.fa-board-inner { padding: 24px 16px; }
}

/* ============================================================
   다크모드
   ============================================================ */
body.dark .fa-board { background: #1e1a16; }
body.dark .fa-issue { border-color: rgba(237, 232, 222, 0.1); }
body.dark .fa-issue:hover { background: rgba(184, 146, 46, 0.09); }
body.dark .fa-issue-tit { color: #ede8de; }
body.dark .fa-issue-period { color: rgba(237, 232, 222, 0.42); }
body.dark .fa-tag { border-color: rgba(237, 232, 222, 0.18); color: rgba(237, 232, 222, 0.52); }
body.dark .fa-issue-btn { border-color: rgba(237, 232, 222, 0.2); color: rgba(237, 232, 222, 0.52); }
body.dark .fa-panel-body { background: #1e1a16; }
body.dark .fa-panel-tit { color: #ede8de; }
body.dark .fa-panel-period { color: rgba(237, 232, 222, 0.42); }
body.dark .fa-panel-desc { color: rgba(237, 232, 222, 0.62); }
body.dark .fa-panel-close span { background: #ede8de; }
body.dark .fa-panel-link { background: #ede8de; color: #1a1510; border-color: transparent; }
body.dark .fa-panel-link:hover { background: transparent; border-color: #ede8de; color: #ede8de; }
.fa-panel-link:visited { color: #ede8de; }
body.dark .fa-panel-link:visited { color: #1a1510; }
