@charset "utf-8";

/* ============================================================
   mmain15 — 독자의 흔적형 메인
   크림 배경 + 하이라이터 밑줄 강도 + 열독률 바
   ============================================================ */

/* ── 로컬 토큰 ── */
:root {
	--rt-bg: #f9f7f3;
	--rt-ink: #1a1a1a;
	--rt-muted: #6b6b63;
	--rt-accent: #92400e;
	--rt-hl-color: #fde047;
	--rt-live: #22c55e;
	--rt-border: rgba(26, 26, 26, 0.1);
	--rt-border-strong: rgba(26, 26, 26, 0.18);
}

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

/* 헤더 배경 — 크림 bg 오버라이드 */
body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: var(--rt-bg) !important;
}

/* ── 공용 래퍼 ── */
.rt-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ── 하이라이터 효과 ── */
.rt-hl {
	--intensity: 0.6;
	background-image: linear-gradient(transparent 56%, rgba(253, 224, 71, calc(var(--intensity) * 0.88)) 56%);
	background-repeat: no-repeat;
	background-size: 0% 100%;
	display: inline;
	transition: background-size 0.72s ease;
}
.rt-hl.is-drawn {
	background-size: 100% 100%;
}

/* 히어로 배경 하이라이터 (이미 그려진 상태) */
.rt-bg-hl {
	--intensity: 0.5;
	background-image: linear-gradient(transparent 56%, rgba(253, 224, 71, calc(var(--intensity) * 0.55)) 56%);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	display: inline;
}

/* ── 섹션 헤더 공통 ── */
.rt-sec-hd {
	margin-bottom: 40px;
}
.rt-sec-tag {
	display: block;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-family: var(--font-serif);
	color: var(--rt-muted);
	margin-bottom: 8px;
}
.rt-sec-tit {
	font-size: clamp(22px, calc(8px + 2vw), 32px);
	font-weight: 800;
	color: var(--rt-ink);
}

/* ── 링크 리셋 ── */
.rt-feat-tit a,
.rt-rank-tit a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}
.rt-feat-tit a:hover,
.rt-rank-tit a:hover {
	color: var(--rt-accent);
}

/* ============================================================
   ① 히어로
   ============================================================ */
.rt-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 130px 60px 90px;
}

/* 배경 텍스트 레이어 */
.rt-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}
.rt-bg-line {
	position: absolute;
	left: var(--x, 10%);
	top: var(--y, 20%);
	transform: rotate(var(--r, 0deg));
	font-size: clamp(12px, calc(4px + 0.85vw), 16px);
	font-family: var(--font-serif);
	color: var(--rt-ink);
	opacity: 0;
	white-space: nowrap;
}

/* 히어로 전경 */
.rt-hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
}

/* 라이브 배지 */
.rt-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-family: var(--font-serif);
	color: var(--rt-muted);
	margin-bottom: 24px;
	opacity: 0;
}
.rt-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rt-live);
	flex-shrink: 0;
	animation: rt-pulse 2.2s ease-in-out infinite;
}
@keyframes rt-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.7);
	}
}

/* 카운터 */
.rt-counter-wrap {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
	opacity: 0;
}
.rt-counter-num {
	font-size: clamp(32px, calc(12px + 3.7vw), 56px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--rt-ink);
}
.rt-counter-unit {
	font-size: clamp(18px, calc(6px + 1.3vw), 22px);
	font-family: var(--font-serif);
	color: var(--rt-muted);
}

/* 히어로 타이틀 */
.rt-hero-tit {
	font-size: clamp(44px, calc(20px + 5vw), 80px);
	font-weight: 900;
	font-family: var(--font-serif);
	line-height: 1.3;
	color: var(--rt-ink);
	margin: 4px 0 20px;
	opacity: 0;
}

.rt-hero-desc {
	font-size: clamp(15px, calc(5px + 1.5vw), 20px);
	color: var(--rt-muted);
	margin-bottom: 40px;
	opacity: 0;
}

/* 히어로 통계 */
.rt-hero-stats {
	display: flex;
	justify-content: center;
	gap: 40px;
}
.rt-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	opacity: 0;
}
.rt-stat-num {
	font-size: clamp(20px, calc(6px + 2.2vw), 32px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--rt-ink);
}
.rt-stat-lbl {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-muted);
}

/* 스크롤 힌트 */
.rt-scroll-hint {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: clamp(13px, calc(5px + 1.1vw), 18px);
	color: var(--rt-muted);
	font-family: var(--font-serif);
	z-index: 2;
	opacity: 0;
}
.rt-scroll-hint svg {
	animation: rt-bounce 2.2s ease-in-out infinite;
}
@keyframes rt-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(7px);
	}
}

/* ============================================================
   ② 오늘의 밑줄
   ============================================================ */
.rt-underlines {
	padding: 80px 0;
	border-top: 1px solid var(--rt-border-strong);
}

.rt-ul-item {
	padding: 36px 0;
	border-top: 1px solid var(--rt-border);
}
.rt-ul-item:first-child {
	border-top: none;
	padding-top: 0;
}

.rt-ul-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 16px;
}
.rt-ul-rank {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-family: var(--font-serif);
	color: var(--rt-muted);
	flex-shrink: 0;
	min-width: 26px;
}
.rt-ul-bar-wrap {
	flex: 1;
	height: 3px;
	background: var(--rt-border);
	border-radius: 2px;
	overflow: hidden;
}
.rt-ul-bar {
	width: 0%;
	height: 100%;
	background: var(--rt-hl-color);
	border-radius: 2px;
}
.rt-ul-cnt {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-muted);
	flex-shrink: 0;
}

.rt-ul-quote {
	font-size: clamp(20px, calc(7px + 1.8vw), 28px);
	font-family: var(--font-serif);
	color: var(--rt-ink);
	margin: 0 0 12px;
	font-weight: 700;
}

.rt-ul-src {
	font-style: normal;
}
.rt-ul-src a {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-accent);
	text-decoration: none;
	font-family: var(--font-serif);
	transition: opacity 0.2s;
}
.rt-ul-src a:hover {
	opacity: 0.7;
}

/* ============================================================
   ③ 피처드 기사
   ============================================================ */
.rt-featured {
	padding: 80px 0;
	border-top: 1px solid var(--rt-border-strong);
}

.rt-feat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid var(--rt-border-strong);
}

.rt-feat-card {
	overflow: hidden;
}
.rt-feat-card + .rt-feat-card {
	border-left: 1px solid var(--rt-border-strong);
}

.rt-feat-fig {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.rt-feat-fig img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.rt-feat-card:hover .rt-feat-fig img {
	transform: scale(1.04);
}

/* 지금 N명 배지 */
.rt-now-badge {
	position: absolute;
	bottom: 12px;
	left: 14px;
	background: rgba(26, 26, 26, 0.72);
	color: #fff;
	font-size: clamp(13px, calc(5px + 1.1vw), 18px);
	padding: 5px 12px;
	border-radius: 2px;
	backdrop-filter: blur(4px);
}
.rt-now-badge strong {
	color: var(--rt-hl-color);
}

.rt-feat-body {
	padding: 24px 28px 28px;
}

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

.rt-feat-tit {
	font-size: clamp(20px, calc(6px + 1.8vw), 28px);
	font-weight: 800;
	color: var(--rt-ink);
	margin: 0 0 12px;
}

.rt-feat-excerpt {
	font-size: clamp(15px, calc(5px + 1.4vw), 20px);
	color: var(--rt-muted);
	margin-bottom: 18px;
}

/* 열독률 바 */
.rt-read-stat {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rt-read-bar-wrap {
	flex: 1;
	height: 3px;
	background: var(--rt-border);
	border-radius: 2px;
	overflow: hidden;
}
.rt-read-bar {
	width: 0%;
	height: 100%;
	background: var(--rt-hl-color);
	border-radius: 2px;
}
.rt-read-pct {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-weight: 700;
	font-family: var(--font-serif);
	color: var(--rt-ink);
	flex-shrink: 0;
}
.rt-read-lbl {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-muted);
	flex-shrink: 0;
}

/* ============================================================
   ④ 기사 랭킹
   ============================================================ */
.rt-ranking {
	padding: 80px 0;
	border-top: 1px solid var(--rt-border-strong);
}

.rt-rank-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rt-rank-item {
	display: grid;
	grid-template-columns: 32px 1fr minmax(120px, 260px) 90px;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	border-top: 1px solid var(--rt-border);
}
.rt-rank-item:first-child {
	border-top: none;
}

.rt-rank-no {
	font-size: clamp(18px, calc(6px + 1.5vw), 24px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--rt-border-strong);
}
.rt-rank-item:first-child .rt-rank-no {
	color: var(--rt-hl-color);
}

.rt-rank-info {
	min-width: 0;
}
.rt-rank-tit {
	font-size: clamp(18px, calc(6px + 1.6vw), 24px);
	font-weight: 700;
	color: var(--rt-ink);
	margin-bottom: 4px;
}
.rt-rank-kicker {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-muted);
}

.rt-rank-bar-wrap {
	height: 3px;
	background: var(--rt-border);
	border-radius: 2px;
	overflow: hidden;
}
.rt-rank-bar {
	width: 0%;
	height: 100%;
	background: var(--rt-hl-color);
	border-radius: 2px;
}

.rt-rank-nums {
	text-align: right;
}
.rt-rank-reads {
	display: block;
	font-size: clamp(18px, calc(6px + 1.3vw), 22px);
	font-weight: 700;
	font-family: var(--font-serif);
	color: var(--rt-ink);
}
.rt-rank-unit {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--rt-muted);
}

/* ============================================================
   ⑤ CTA
   ============================================================ */
.rt-cta {
	padding: 80px 0;
	border-top: 1px solid var(--rt-border-strong);
}
.rt-cta-inner {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}
.rt-cta-label {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-family: var(--font-serif);
	color: var(--rt-muted);
	margin-bottom: 12px;
}
.rt-cta-tit {
	font-size: clamp(22px, calc(7px + 2.4vw), 36px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--rt-ink);
	margin-bottom: 32px;
}
.rt-cta-form {
	display: flex;
	max-width: 420px;
	margin: 0 auto;
}
.rt-cta-input {
	flex: 1;
	padding: 12px 16px;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	border: 1.5px solid var(--rt-border-strong);
	border-right: none;
	background: transparent;
	color: var(--rt-ink);
	outline: none;
	min-width: 0;
}
.rt-cta-input::placeholder {
	color: var(--rt-muted);
}
.rt-cta-btn {
	padding: 12px 24px;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-weight: 700;
	border: 1.5px solid var(--rt-ink);
	background: var(--rt-ink);
	color: var(--rt-bg);
	cursor: pointer;
	white-space: nowrap;
	transition:
		background 0.2s,
		border-color 0.2s;
}
.rt-cta-btn:hover {
	background: var(--rt-accent);
	border-color: var(--rt-accent);
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.rt-wrap {
		padding: 0 32px;
	}
	.rt-hero {
		padding: 110px 32px 80px;
	}
	.rt-hero-stats {
		gap: 24px;
	}
	.rt-feat-grid {
		grid-template-columns: 1fr;
	}
	.rt-feat-card + .rt-feat-card {
		border-left: none;
		border-top: 1px solid var(--rt-border-strong);
	}
	.rt-rank-item {
		grid-template-columns: 32px 1fr 90px;
		gap: 16px;
	}
	.rt-rank-bar-wrap {
		display: none;
	}
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media all and (max-width: 768px) {
	.rt-wrap {
		padding: 0 20px;
	}
	.rt-hero {
		padding: 100px 20px 80px;
		min-height: 100svh;
	}
	.rt-hero-bg {
		opacity: 0.55;
	}
	.rt-hero-stats {
		gap: 20px;
		flex-wrap: wrap;
		justify-content: center;
	}
	.rt-sec-hd {
		margin-bottom: 20px;
	}
	.rt-underlines,
	.rt-featured,
	.rt-ranking,
	.rt-cta {
		padding: 32px 0;
	}
	.rt-cta-form {
		flex-direction: column;
	}
	.rt-cta-input {
		border-right: 1.5px solid var(--rt-border-strong);
		border-bottom: none;
	}
	.rt-ul-item,
	.rt-rank-item {
		padding: 15px 0;
	}
	.rt-feat-body {
		padding: 20px 15px 15px;
	}
	.rt-feat-excerpt {
		margin-bottom: 12px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.rt-rank-item {
		grid-template-columns: 28px 1fr;
		gap: 12px;
	}
	.rt-rank-nums {
		display: none;
	}
	.rt-hero-stats {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
}

/* ============================================================
   darkmode
   ============================================================ */
body.dark {
	--rt-bg: #111318;
	--rt-ink: #e8e8e8;
	--rt-muted: #9ca3af;
	--rt-accent: #d97706;
	--rt-hl-color: #ca8a04;
	--rt-live: #4ade80;
	--rt-border: rgba(255, 255, 255, 0.07);
	--rt-border-strong: rgba(255, 255, 255, 0.14);
}

body.dark .rt-now-badge {
	background: rgba(0, 0, 0, 0.7);
}

body.dark .rt-cta-btn {
	color: var(--rt-bg);
}

body.dark .rt-bg-hl {
	background-image: linear-gradient(transparent 56%, rgba(202, 138, 4, calc(var(--intensity) * 0.45)) 56%);
}

body.dark .rt-hl {
	background-image: linear-gradient(transparent 56%, rgba(202, 138, 4, calc(var(--intensity) * 0.75)) 56%);
}

body.dark .rt-scroll-thumb {
	background: rgba(255, 255, 255, 0.28);
}
