@charset "utf-8";

/* ============================================================
   msub22 — 조판실 에디토리얼형
   ============================================================ */

:root {
	--te-bg: #f8f7f4;
	--te-ink: #1c1c1c;
	--te-accent: #1a56db;
	--te-muted: #6b7280;
	--te-grid: rgba(0, 0, 0, 0.055);
	--te-crop: #bbb;
	--te-border: rgba(0, 0, 0, 0.1);
	--te-border-strong: rgba(0, 0, 0, 0.2);
}

body {
	background: var(--te-bg);
}
body.dark {
	background: #111318;
}

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: var(--te-bg) !important;
}

/* ── 래퍼 ── */
.te-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 60px;
	position: relative;
}

/* ── 링크 리셋 ── */
.te-related-link,
.te-footnav-link,
.te-footnav-home {
	text-decoration: none;
	color: inherit;
}

/* ============================================================
   격자 오버레이
   ============================================================ */
.te-grid-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0;
	background-image: linear-gradient(var(--te-grid) 1px, transparent 1px), linear-gradient(90deg, var(--te-grid) 1px, transparent 1px);
	background-size: 64px 64px;
}

/* ============================================================
   읽기 진행 바
   ============================================================ */
.te-progress-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	z-index: 9000;
	background: var(--te-border);
}
.te-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--te-accent);
	transition: width 0.1s linear;
}

/* ============================================================
   크롭마크 공통
   ============================================================ */
.te-cropmarks,
.te-img-cropmarks,
.te-spread-cropmarks,
.te-cta-cropmarks {
	position: absolute;
	pointer-events: none;
}
.te-cropmarks {
	inset: -20px;
}
.te-img-cropmarks {
	inset: -10px;
}
.te-spread-cropmarks {
	inset: -14px;
}

.te-cm {
	position: absolute;
	width: 12px;
	height: 12px;
	opacity: 0;
}
.te-cm--tl {
	top: 0;
	left: 0;
	border-top: 1px solid var(--te-crop);
	border-left: 1px solid var(--te-crop);
}
.te-cm--tr {
	top: 0;
	right: 0;
	border-top: 1px solid var(--te-crop);
	border-right: 1px solid var(--te-crop);
}
.te-cm--bl {
	bottom: 0;
	left: 0;
	border-bottom: 1px solid var(--te-crop);
	border-left: 1px solid var(--te-crop);
}
.te-cm--br {
	bottom: 0;
	right: 0;
	border-bottom: 1px solid var(--te-crop);
	border-right: 1px solid var(--te-crop);
}

/* ============================================================
   폴리오 공통
   ============================================================ */
.te-folio-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--te-border-strong);
	margin-bottom: 36px;
	opacity: 0;
}
.te-folio-vol,
.te-folio-name,
.te-folio-date {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 700;
	font-family: var(--font-serif);
	color: var(--te-ink);
}
.te-folio-div {
	display: block;
	width: 1px;
	height: 12px;
	background: var(--te-border-strong);
	flex-shrink: 0;
}
.te-folio-cat {
	margin-left: auto;
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
	font-style: italic;
	font-family: var(--font-serif);
}

.te-folio-tag {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-family: var(--font-serif);
	color: var(--te-crop);
}

.te-folio-section {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--te-border);
}
.te-section-label {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 600;
	color: var(--te-muted);
}

.te-kicker {
	display: block;
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 700;
	color: var(--te-accent);
	margin-bottom: 10px;
}

/* ============================================================
   ① 히어로
   ============================================================ */
.te-hero {
	padding: 120px 0 0;
}

.te-hero-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	opacity: 0;
}
.te-hero-byline {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
}

.te-hero-head {
	opacity: 0;
}

.te-title {
	font-size: clamp(44px, calc(8px + 5.5vw), 88px);
	font-weight: 900;
	color: var(--te-ink);
	margin-bottom: 20px;
	word-break: keep-all;
	line-height: 1.1;
}

.te-cursor {
	display: inline-block;
	font-weight: 200;
	color: var(--te-accent);
	opacity: 0;
	margin-left: 2px;
}

.te-deck {
	font-size: clamp(16px, calc(5px + 1.6vw), 22px);
	color: var(--te-muted);
	font-family: var(--font-serif);
	max-width: 560px;
}

.te-hero-rule {
	height: 1px;
	background: var(--te-border-strong);
	margin-top: 48px;
	transform: scaleX(0);
	transform-origin: left;
}

/* ============================================================
   본문 공통
   ============================================================ */
.te-article {
	padding-bottom: 80px;
}

.te-p {
	font-size: clamp(15px, calc(4px + 1.6vw), 18px);
	color: var(--te-ink);
	font-family: var(--font-serif);
	word-break: keep-all;
	margin-bottom: 20px;
}
.te-p:last-child {
	margin-bottom: 0;
}

.te-dropcap::first-letter {
	float: left;
	font-size: clamp(28px, 2.8vw, 40px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--te-ink);
	margin: 5px 10px 0 0;
	line-height: 1;
}

/* ── 리드 ── */
.te-lead {
	padding: 48px 0 0;
}

/* ── 섹션 공통 ── */
.te-section {
	padding-top: 56px;
}

/* ── 2단 그리드 ── */
.te-col2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.te-section--rev .te-col2 {
	direction: rtl;
}
.te-section--rev .te-col2 > * {
	direction: ltr;
}

/* ── 이미지 ── */
.te-img-wrap {
	position: relative;
}
.te-fig {
	display: block;
}
.te-fig img {
	width: 100%;
	display: block;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}
.te-figcap {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
	font-family: var(--font-serif);
	margin-top: 10px;
}

/* ============================================================
   ④ 풀쿼트
   ============================================================ */
.te-pullquote {
	padding: 56px 0;
}
.te-pq-inner {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}
.te-pq-rule {
	height: 2px;
	background: var(--te-border-strong);
	margin: 0 0 28px;
}
.te-pq-text {
	font-size: clamp(20px, calc(6px + 2vw), 30px);
	font-weight: 700;
	font-family: var(--font-serif);
	color: var(--te-ink);
	margin-bottom: 16px;
}
.te-pq-cite {
	display: block;
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
	font-style: normal;
	margin-bottom: 28px;
}

/* ============================================================
   ⑥ 풀블리드 스프레드
   ============================================================ */
.te-spread {
	padding: 56px 0;
}
.te-spread-img-wrap {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
}
.te-spread-fig img {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}
.te-spread-cap-wrap {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-top: 12px;
	padding: 0 20px;
}
.te-spread-cap {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
	font-family: var(--font-serif);
}

/* ── 1단 마무리 ── */
.te-section--single .te-single-col {
	max-width: 640px;
}

/* ============================================================
   작가 바이오
   ============================================================ */
.te-bio {
	margin-top: 48px;
}
.te-bio-rule {
	height: 1px;
	background: var(--te-border-strong);
	margin-bottom: 24px;
}
.te-bio-inner {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.te-bio-label {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 700;
	font-family: var(--font-serif);
	color: var(--te-crop);
	flex-shrink: 0;
	padding-top: 2px;
}
.te-bio-name {
	font-size: clamp(16px, calc(5px + 1.4vw), 20px);
	font-weight: 700;
	color: var(--te-ink);
	margin-bottom: 6px;
}
.te-bio-desc {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
	font-family: var(--font-serif);
}

/* ============================================================
   관련 기사
   ============================================================ */
.te-related {
	padding-top: 56px;
}
.te-related-list {
	list-style: none;
	padding: 0;
}
.te-related-list li {
	border-bottom: 1px solid var(--te-border);
}
.te-related-list li:first-child {
	border-top: 1px solid var(--te-border);
}
.te-related-link {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 18px 0;
	transition: color 0.2s;
}
.te-related-link:hover {
	color: var(--te-accent);
}
.te-related-cat {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 700;
	color: var(--te-accent);
	flex-shrink: 0;
	min-width: 60px;
}
.te-related-tit {
	font-size: clamp(15px, calc(4px + 1.4vw), 18px);
	color: var(--te-ink);
}

/* ============================================================
   하단 네비
   ============================================================ */
.te-footnav {
	padding-top: 56px;
}
.te-footnav-rule {
	height: 1px;
	background: var(--te-border-strong);
}
.te-footnav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 28px 0;
}
.te-footnav-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: color 0.2s;
}
.te-footnav-link:hover {
	color: var(--te-accent);
}
.te-footnav-dir {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	color: var(--te-muted);
}
.te-footnav-tit {
	font-size: clamp(15px, calc(4px + 1.4vw), 18px);
	font-weight: 600;
	color: var(--te-ink);
}
.te-footnav-next {
	text-align: right;
}
.te-footnav-home {
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	font-weight: 700;
	color: var(--te-muted);
	transition: color 0.2s;
}
.te-footnav-home:hover {
	color: var(--te-ink);
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.te-wrap {
		padding: 0 32px;
	}
	.te-hero {
		padding-top: 90px;
	}
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media all and (max-width: 768px) {
	.te-wrap {
		padding: 0 20px;
	}
	.te-hero {
		padding-top: 80px;
	}

	.te-folio-bar {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 20px;
	}
	.te-folio-cat {
		margin-left: 0;
		width: 100%;
	}

	.te-pullquote {
		padding: 72px 0;
	}
	.te-lead {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.te-col2 {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.te-section--rev .te-col2 {
		direction: ltr;
	}

	.te-fig img {
		aspect-ratio: 4 / 3;
	}

	.te-spread-fig img {
		aspect-ratio: 4 / 3;
	}

	.te-footnav-inner {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}
	.te-footnav-next {
		text-align: center;
	}

	.te-hero .te-cropmarks {
		inset: -10px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.te-title {
		font-size: clamp(36px, calc(8px + 5.5vw), 88px);
	}

	.te-bio-inner {
		flex-direction: column;
		gap: 10px;
	}

	.te-related-link {
		flex-direction: column;
		gap: 4px;
	}
}

/* ============================================================
   darkmode
   ============================================================ */
body.dark {
	--te-bg: #111318;
	--te-ink: #e8e8e8;
	--te-accent: #60a5fa;
	--te-muted: #9ca3af;
	--te-grid: rgba(255, 255, 255, 0.05);
	--te-crop: #666;
	--te-border: rgba(255, 255, 255, 0.08);
	--te-border-strong: rgba(255, 255, 255, 0.15);
}

body.dark .te-grid-overlay {
	mix-blend-mode: screen;
}
