/*
Theme Name: Roland Cheek Field Journal
Theme URI: https://rolandcheek.com/
Description: Astra 차일드 테마. 몬타나 야생 가이드의 탐사 일지 컨셉 — Pendleton에서 영감을 받은 차분한 바탕, 중앙 세리프 워드마크, 따뜻한 울 포인트 컬러. 헤더·푸터·파비콘 커스텀.
Author: Curator Park
Author URI: https://rolandcheek.com/
Template: astra
Version: 1.0.4
Text Domain: roland-cheek-child
*/

/* =========================================================
   Roland Cheek — Field Journal Child Theme
   팔레트는 부모 사이트의 기존 변수를 계승한다.
   ========================================================= */

:root {
	--rc-ink: #2f4f4f;
	--rc-ink-deep: #1f3a3a;
	--rc-leather: #8b4513;
	--rc-leather-soft: #a85d27;
	--rc-paper: #fdfbf7;
	--rc-canvas: #f4f1ea;
	--rc-meadow: #f0e68c;
	--rc-trail: #d2b48c;
	--rc-text: #3e3e3e;

	--rc-serif: 'Georgia', 'Noto Serif KR', serif;
	--rc-mono: 'Source Code Pro', 'Courier New', monospace;
}

/* ---------------------------------------------------------
   1. 공지 바 (헤더 최상단 — Pendleton식 가는 promo bar)
   --------------------------------------------------------- */
.rc-announce {
	background: var(--rc-ink-deep);
	color: var(--rc-meadow);
	font-family: var(--rc-mono);
	font-size: 0.72rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-align: center;
	padding: 7px 16px;
	line-height: 1.5;
}
.rc-announce a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.rc-announce a:hover { color: var(--rc-meadow); }

/* ---------------------------------------------------------
   2. 커스텀 헤더 (중앙 세리프 워드마크 + 엠블럼)
   --------------------------------------------------------- */
.rc-header {
	background: var(--rc-paper);
	border-bottom: 1px solid var(--rc-trail);
	position: relative;
}
/* 헤더 상·하단 가는 잉크 괘선 (현장 노트 디테일) */
.rc-header::before,
.rc-header::after {
	content: "";
	display: block;
	height: 1px;
	background: var(--rc-ink);
	opacity: 0.18;
}
.rc-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 26px 30px 20px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

/* 좌측: 빈 칸(균형용) / 또는 추후 검색 */
.rc-header-left { justify-self: start; }

/* 중앙: 엠블럼 + 워드마크 */
.rc-brand {
	justify-self: center;
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.rc-brand-emblem {
	width: 54px;
	height: 54px;
	display: block;
}
.rc-brand-wordmark {
	font-family: var(--rc-serif);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--rc-ink) !important;
	line-height: 1;
}
.rc-brand-tagline {
	font-family: var(--rc-mono);
	font-size: 0.62rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rc-leather);
	margin-top: 2px;
}

/* 우측: 1336 헬프라인 배지 */
.rc-header-right { justify-self: end; }
.rc-help-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid var(--rc-leather);
	border-radius: 3px;
	padding: 6px 12px;
	font-family: var(--rc-mono);
	font-size: 0.72rem;
	letter-spacing: 0.5px;
	color: var(--rc-leather) !important;
	text-decoration: none !important;
	background: var(--rc-paper);
	transition: all 0.2s ease;
	white-space: nowrap;
}
.rc-help-badge .rc-help-num { font-weight: 700; font-size: 0.82rem; }
.rc-help-badge .rc-help-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: #c0392b; flex: 0 0 auto;
}

/* ---------------------------------------------------------
   3. 내비게이션 (헤더 하단 중앙 정렬, 대문자 세리프)
   --------------------------------------------------------- */
.rc-nav {
	background: var(--rc-paper);
	border-top: 1px solid rgba(47,79,79,0.12);
	border-bottom: 2px solid var(--rc-ink);
}
.rc-nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}
.rc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
}
.rc-nav li { margin: 0; }
.rc-nav a {
	display: block;
	padding: 14px 20px;
	font-family: var(--rc-serif);
	font-size: 0.82rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rc-ink);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
}
.rc-nav a:hover,
.rc-nav .current-menu-item > a,
.rc-nav .current_page_item > a {
	color: var(--rc-leather);
	border-bottom-color: var(--rc-leather);
}

/* ---------------------------------------------------------
   4. 모바일 헤더
   --------------------------------------------------------- */
.rc-mobile-toggle {
	display: none;
	background: none;
	border: 1.5px solid var(--rc-ink);
	border-radius: 3px;
	color: var(--rc-ink);
	padding: 8px 10px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}
.rc-mobile-nav { display: none; }

@media (max-width: 921px) {
	.rc-header-inner {
		grid-template-columns: auto 1fr auto;
		padding: 16px 18px;
		gap: 10px;
	}
	.rc-brand-wordmark { font-size: 1.4rem; letter-spacing: 2px; }
	.rc-brand-emblem { width: 40px; height: 40px; }
	.rc-brand-tagline { font-size: 0.55rem; letter-spacing: 2px; }
	.rc-help-badge { padding: 5px 8px; font-size: 0.62rem; }
	.rc-help-badge .rc-help-label { display: none; }

	/* 데스크탑 가로 메뉴 숨기고 토글 노출 */
	.rc-nav { display: none; }
	.rc-mobile-toggle { display: inline-block; justify-self: start; }
	.rc-header-left { display: none; }
	.rc-header-inner { grid-template-columns: auto 1fr auto; }

	.rc-mobile-nav.is-open { display: block; }
	.rc-mobile-nav {
		background: var(--rc-paper);
		border-top: 1px solid var(--rc-trail);
		border-bottom: 2px solid var(--rc-ink);
	}
	.rc-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
	.rc-mobile-nav a {
		display: block;
		padding: 14px 22px;
		font-family: var(--rc-serif);
		font-size: 0.9rem;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		color: var(--rc-ink);
		text-decoration: none;
		border-bottom: 1px solid rgba(47,79,79,0.1);
	}
	.rc-mobile-nav a:hover { background: var(--rc-canvas); color: var(--rc-leather); }
}

@media (max-width: 480px) {
	.rc-brand-wordmark { font-size: 1.15rem; }
}

/* ---------------------------------------------------------
   5. 부모 Astra 기본 헤더 숨김 (커스텀으로 대체)
   --------------------------------------------------------- */
#ast-desktop-header,
#ast-mobile-header { display: none !important; }

/* ---------------------------------------------------------
   6. 푸터 (기존 .rc-footer 디자인을 계승 + 등고선 디테일)
   기존 커스텀 CSS의 .rc-footer 룰과 충돌하지 않도록 보강만 한다.
   --------------------------------------------------------- */
.rc-footer {
	background: var(--rc-ink-deep);
	color: #d6e0e0;
	font-family: var(--rc-serif);
	border-top: 4px solid var(--rc-leather);
	margin-top: 0;
	position: relative;
}
/* 등고선(topographic) 옅은 라인 패턴 — 탐사 지도 디테일 */
.rc-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; height: 60px;
	background-image:
		repeating-linear-gradient(
			180deg,
			transparent 0,
			transparent 11px,
			rgba(240,230,140,0.05) 11px,
			rgba(240,230,140,0.05) 12px
		);
	pointer-events: none;
}
.rc-footer-inner { max-width: 1200px; margin: 0 auto; padding: 50px 30px 0; position: relative; z-index: 1; }
.rc-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 38px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rc-ink);
}
.rc-footer-col h3.rc-footer-h {
	color: var(--rc-meadow);
	font-size: 0.95rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 18px;
	font-weight: 700;
}
.rc-footer-brand-row {
	display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.rc-footer-emblem { width: 38px; height: 38px; flex: 0 0 auto; }
.rc-footer-col p {
	margin: 0 0 12px;
	font-size: 0.92rem;
	line-height: 1.7;
	color: #c5cccc;
}
.rc-footer-meta {
	color: var(--rc-trail) !important;
	font-size: 0.78rem !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 16px !important;
	margin-bottom: 6px !important;
}
.rc-footer-nav { list-style: none; padding: 0; margin: 0; }
.rc-footer-nav li { margin-bottom: 10px; font-size: 0.93rem; }
.rc-footer-nav a, .rc-footer-col a {
	color: #c5cccc; text-decoration: none; transition: color 0.2s ease;
}
.rc-footer-nav a:hover, .rc-footer-col a:hover { color: var(--rc-meadow); }
.rc-footer-disclosure {
	padding: 22px 0;
	border-bottom: 1px solid var(--rc-ink);
	font-size: 0.88rem;
	color: var(--rc-trail);
	line-height: 1.7;
}
.rc-footer-disclosure p { margin: 0; }
.rc-footer-disclosure strong { color: var(--rc-meadow); }
.rc-footer-disclosure a { color: var(--rc-meadow) !important; text-decoration: underline; }
.rc-footer-bar { padding: 22px 0 30px; text-align: center; }
.rc-footer-copyright { color: #b4b9b9 !important; font-size: 0.88rem !important; margin: 0 0 8px !important; }
.rc-footer-fineprint { color: #888 !important; font-size: 0.8rem !important; margin: 0 !important; line-height: 1.5; }

@media (max-width: 768px) {
	.rc-footer-inner { padding: 35px 20px 0; }
	.rc-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding-bottom: 28px; }
}
@media (max-width: 480px) {
	.rc-footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* 부모 테마의 빈 기본 푸터 숨김 */
.site-below-footer-wrap[data-section="section-below-footer-builder"],
.ast-small-footer { display: none !important; }

/* =========================================================
   7. 헤더 아래 섹션 카드 (홈)
   ========================================================= */
.rc-sections {
	background: var(--rc-canvas);
	border-bottom: 1px solid var(--rc-trail);
	/* 옅은 등고선 라인 — 탐사 지도 디테일 */
	background-image:
		repeating-linear-gradient(180deg, transparent 0, transparent 13px, rgba(47,79,79,0.03) 13px, rgba(47,79,79,0.03) 14px);
}
.rc-sections-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 30px 44px;
}
.rc-sections-head { text-align: center; margin-bottom: 30px; }
.rc-sections-eyebrow {
	display: inline-block;
	font-family: var(--rc-mono);
	font-size: 0.7rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rc-leather);
	margin-bottom: 8px;
}
.rc-sections-title {
	font-family: var(--rc-serif);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--rc-ink);
	margin: 0;
	letter-spacing: 1px;
}
.rc-sections-title::after {
	content: "";
	display: block;
	width: 48px; height: 2px;
	background: var(--rc-leather);
	margin: 12px auto 0;
}
.rc-sections-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
.rc-section-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 24px 14px 22px;
	background: var(--rc-paper);
	border: 1px solid var(--rc-trail);
	border-radius: 3px;
	text-decoration: none !important;
	color: var(--rc-ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	position: relative;
}
.rc-section-card::before {
	/* 상단 가죽색 인덱스 탭 (현장 노트의 색인 탭) */
	content: "";
	position: absolute;
	top: -1px; left: 50%; transform: translateX(-50%);
	width: 36px; height: 4px;
	background: var(--rc-leather);
	border-radius: 0 0 3px 3px;
	opacity: 0.55;
	transition: opacity 0.18s ease, width 0.18s ease;
}
.rc-section-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px -8px rgba(31,58,58,0.35);
	border-color: var(--rc-leather);
}
.rc-section-card:hover::before { opacity: 1; width: 60px; }
.rc-section-ico {
	width: 40px; height: 40px;
	color: var(--rc-ink);
	margin-bottom: 4px;
	transition: color 0.18s ease;
}
.rc-section-ico svg { width: 100%; height: 100%; display: block; }
.rc-section-card:hover .rc-section-ico { color: var(--rc-leather); }
.rc-section-en {
	font-family: var(--rc-serif);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--rc-ink);
}
.rc-section-ko {
	font-family: var(--rc-mono);
	font-size: 0.68rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--rc-leather);
}
.rc-section-desc {
	font-family: var(--rc-serif);
	font-size: 0.78rem;
	color: var(--rc-text-mute, #666);
	line-height: 1.5;
	margin-top: 4px;
}

@media (max-width: 921px) {
	.rc-sections-grid { grid-template-columns: repeat(3, 1fr); }
	.rc-sections-inner { padding: 32px 18px 36px; }
}
@media (max-width: 600px) {
	.rc-sections-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.rc-sections-title { font-size: 1.35rem; }
	.rc-section-desc { display: none; } /* 모바일에서 설명 숨겨 간결하게 */
}

/* =========================================================
   8. 바디 무드 통일
   목록/본문 영역을 헤더·푸터의 종이·잉크·가죽 팔레트로 맞춘다.
   Astra 기본 파란색(--ast-global-color-0:#046bd2)을 덮어쓴다.
   ========================================================= */

/* 8-1. 컨테이너 배경: 종이 톤 */
.ast-separate-container { background-color: var(--rc-canvas); }
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-blog-layout-5-grid .ast-article-inner {
	background-color: var(--rc-paper);
}

/* 8-2. 목록 카드: 가죽 테두리 + 종이 바탕 + 색인 탭 */
.ast-blog-layout-5-grid .ast-article-post {
	border: 1px solid var(--rc-trail);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	background: var(--rc-paper);
}
.ast-blog-layout-5-grid .ast-article-post::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 4px; height: 100%;
	background: var(--rc-leather);
	opacity: 0.7;
}
.ast-blog-layout-5-grid .ast-article-inner { box-shadow: none; }
.ast-blog-layout-5-grid .post-content { padding: 30px 32px; }

/* 8-3. 카테고리 라벨: 잉크그린 배지 (파란 링크 제거) */
.ast-taxonomy-container.cat-links a {
	display: inline-block;
	font-family: var(--rc-mono);
	font-size: 0.7rem !important;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rc-leather) !important;
	border: 1px solid var(--rc-leather);
	padding: 3px 10px;
	border-radius: 2px;
	text-decoration: none !important;
	transition: all 0.18s ease;
}
.ast-taxonomy-container.cat-links a:hover {
	background: var(--rc-leather);
	color: #fff !important;
}

/* 8-4. 글 제목: 세리프 + 잉크색, 호버 시 가죽색 */
.ast-blog-layout-5-grid .entry-title { margin-top: 14px; }
.entry-title a,
.entry-title a:visited {
	font-family: var(--rc-serif);
	color: var(--rc-ink) !important;
	transition: color 0.18s ease;
}
.entry-title a:hover { color: var(--rc-leather) !important; }

/* 8-5. 메타(작성자/날짜): 파란색 제거 → 가죽 톤 */
.entry-meta,
.entry-meta *,
.entry-meta a:not(.ast-button) {
	color: var(--rc-leather) !important;
	font-family: var(--rc-mono);
	font-size: 0.72rem;
	letter-spacing: 0.3px;
}
.entry-meta a:not(.ast-button):hover { color: var(--rc-ink) !important; }

/* 8-6. 본문 영역 일반 링크: 파란색 → 가죽색 */
.ast-blog-layout-5-grid .post-content a:not(.rc-section-card),
.entry-content a {
	color: var(--rc-leather);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.ast-blog-layout-5-grid .post-content a:hover,
.entry-content a:hover { color: var(--rc-leather-soft); }

/* 8-7. "더 보기" 링크: 가죽 아웃라인 버튼 */
.ast-the-content-more-link a {
	display: inline-block;
	font-family: var(--rc-mono);
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--rc-leather) !important;
	border: 1.5px solid var(--rc-leather);
	padding: 7px 16px;
	border-radius: 2px;
	text-decoration: none !important;
	transition: all 0.18s ease;
}
.ast-the-content-more-link a:hover {
	background: var(--rc-leather);
	color: #fff !important;
}

/* 8-8. 글 내부 구조 클래스 무드 통일
   목록 카드 안에서 .rc-essay 등이 전체 폭을 먹지 않도록 정리 +
   톤을 종이/잉크로 통일 */
.rc-essay,
.rc-journal {
	font-family: var(--rc-serif);
	color: var(--rc-text);
	background: transparent;
}
.rc-essay-header,
.rc-journal-header {
	text-align: center;
	border-bottom: 2px solid var(--rc-leather);
	padding-bottom: 18px;
	margin-bottom: 24px;
}
.rc-essay-label,
.rc-journal-label {
	display: inline-block;
	font-family: var(--rc-mono);
	font-size: 0.72rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rc-ink);
	border: 1px solid var(--rc-ink);
	padding: 4px 12px;
}
.rc-essay-title,
.rc-journal-title {
	font-family: var(--rc-serif);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--rc-ink);
	margin: 16px 0 6px;
	line-height: 1.3;
}
.rc-essay-meta,
.rc-journal-meta {
	font-family: var(--rc-mono);
	font-size: 0.78rem;
	color: var(--rc-leather);
	font-style: normal;
	margin: 0;
}
.rc-essay-lead,
.rc-lead {
	font-size: 1.08rem;
	line-height: 1.85;
	color: var(--rc-text);
}
.rc-essay-h2,
.rc-essay h2,
.rc-journal h2 {
	font-family: var(--rc-serif);
	font-size: 1.3rem;
	color: var(--rc-leather);
	border-left: 4px solid var(--rc-ink);
	padding-left: 16px;
	margin-top: 36px;
	margin-bottom: 18px;
}
.rc-essay-h3,
.rc-essay h3,
.rc-journal h3 {
	font-family: var(--rc-serif);
	color: var(--rc-ink);
	margin-top: 26px;
	margin-bottom: 12px;
}
.rc-quote-box,
.rc-pullquote {
	background: var(--rc-canvas);
	border-left: 4px solid var(--rc-leather);
	padding: 16px 22px;
	margin: 28px 0;
	font-style: italic;
	color: var(--rc-text-soft, #5d4037);
}

/* 8-9. 페이지네이션: 파란색 → 잉크/가죽 */
.ast-pagination a, .nav-links a { color: var(--rc-ink); }
.ast-pagination a:hover,
.ast-pagination > span.current,
.ast-pagination .page-numbers.current {
	color: #fff;
	background-color: var(--rc-leather) !important;
	border-color: var(--rc-leather) !important;
}

/* 8-10. 스크롤탑 버튼: 잉크그린 */
#ast-scroll-top { background-color: var(--rc-ink) !important; }

/* =========================================================
   9. 히어로 띠 (홈) — 능선 실루엣 + 선언
   ========================================================= */
.rc-hero {
	position: relative;
	background: var(--rc-paper);
	border-bottom: 1px solid var(--rc-trail);
	overflow: hidden;
}
.rc-hero-ridge {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
	pointer-events: none;
	z-index: 0;
}
.rc-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0 auto;
	padding: 60px 30px 56px;
	text-align: center;
}
.rc-hero-eyebrow {
	display: inline-block;
	font-family: var(--rc-mono);
	font-size: 0.72rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rc-leather);
	margin-bottom: 16px;
}
.rc-hero-eyebrow::before,
.rc-hero-eyebrow::after {
	content: "—";
	margin: 0 10px;
	color: var(--rc-trail);
}
.rc-hero-title {
	font-family: var(--rc-serif);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rc-ink);
	margin: 0 0 18px;
	letter-spacing: -0.5px;
}
.rc-hero-sub {
	font-family: var(--rc-serif);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--rc-text-soft, #5d4037);
	margin: 0 auto;
	max-width: 620px;
}
/* 히어로와 섹션 카드가 연달아 올 때 경계선 중복 방지 */
.rc-hero + .rc-sections { border-top: 0; }

@media (max-width: 921px) {
	.rc-hero-inner { padding: 46px 22px 42px; }
	.rc-hero-title { font-size: 1.85rem; }
	.rc-hero-sub { font-size: 0.98rem; }
}
@media (max-width: 480px) {
	.rc-hero-inner { padding: 38px 18px 34px; }
	.rc-hero-title { font-size: 1.5rem; }
	.rc-hero-eyebrow { font-size: 0.64rem; letter-spacing: 2px; }
	.rc-hero-eyebrow::before, .rc-hero-eyebrow::after { margin: 0 6px; }
}
