/* Hyegwang Classic — 헤더·토큰·본문 */

:root {
	--bg: #f6f4f1;
	--ink: #2d2926;
	--accent: #8e6e53;
	--candle: rgba(255, 230, 180, 0.4);
	--mist: rgba(255, 255, 255, 0.6);
	--header-pad-x: 60px;
	--header-pad-y: 40px;
	/* 글·페이지 본문 가독 폭 (큰 화면) */
	--article-content-max: 720px;
	/* 본문 oEmbed / 임베드 카드 — 한 겹만 radius(하위 iframe과 이중 라운드로 선 잘림 방지) */
	--embed-radius: 10px;

	/* 글 본문 제목 세로 리듬 (h1은 단일 글 제목 전용, h2~h6는 .entry-content) */
	--entry-featured-mb: 1.75rem;
	--entry-h1-mb: 2.125rem;
	--entry-h2-mt: 2.25rem;
	--entry-h2-mb: 0.875rem;
	--entry-h3-mt: 1.875rem;
	--entry-h3-mb: 0.75rem;
	--entry-h4-mt: 1.5rem;
	--entry-h4-mb: 0.625rem;
	--entry-h5-mt: 1.25rem;
	--entry-h5-mb: 0.5rem;
	--entry-h6-mt: 1.125rem;
	--entry-h6-mb: 0.45rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
}

html {
	scroll-behavior: smooth;
}

body {
	position: relative;
	z-index: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: "Noto Serif KR", serif;
	overflow-x: hidden;
	line-height: 1.8;
	/* 고정 네비 높이만큼 본문 시작 */
	padding-top: calc(var(--header-pad-y) * 2 + 1.5rem);
}

/* 전역 안개 레이어 (JS로 그라데이션 위치 미세 이동) */
.mist-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 80% 20%, var(--mist) 0%, transparent 40%),
		radial-gradient(circle at 20% 80%, var(--mist) 0%, transparent 40%);
}

/* 본문과 동일 z-index(1)이면 main이 나중에 그려져 고정 네비가 가려짐 → 헤더만 위로 */
.site-header {
	position: relative;
	z-index: 100;
}

.site-main {
	position: relative;
	z-index: 0;
}

/* 스크롤바 */
::-webkit-scrollbar {
	width: 4px;
}

::-webkit-scrollbar-thumb {
	background: var(--accent);
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

/* ── 히어로 (첫 화면) ── */
.hero {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	padding: 120px 10%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.hero--in {
	opacity: 1;
	transform: translateY(0);
}

.candle-container {
	position: relative;
	width: 200px;
	height: 300px;
	margin-bottom: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.candle-glow {
	position: absolute;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, #ffe6b4 0%, rgba(255, 230, 180, 0) 70%);
	border-radius: 50%;
	filter: blur(20px);
	will-change: transform;
	animation: candle-flicker 4s infinite alternate ease-in-out;
}

@keyframes candle-flicker {
	0% {
		opacity: 0.4;
	}

	50% {
		opacity: 0.7;
	}

	100% {
		opacity: 0.5;
	}
}

.bracket-text {
	font-size: 1.5rem;
	color: var(--accent);
	margin-bottom: 30px;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 200;
	margin: 0 0 20px;
	letter-spacing: 0.2em;
	line-height: 1.35;
}

.hero-title__accent {
	color: var(--accent);
	font-weight: 400;
}

.hero-sub {
	max-width: 600px;
	margin: 0 auto;
	font-size: 0.9rem;
	opacity: 0.7;
	font-weight: 300;
}

/* 프론트: 히어로 풀폭, 아래 본문만 폭 제한 */
.is-front-page .site-main {
	max-width: none;
	padding: 0;
}

.is-front-page .entry--front .entry-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem var(--header-pad-x) 4rem;
}

@media (prefers-reduced-motion: reduce) {
	.hero {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.candle-glow {
		animation: none;
		opacity: 0.55;
	}

	.content-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ── 인사 (#about) ── */
.content-grid {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	padding: 120px 10%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
	align-items: center;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
}

.content-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-reveal.content-reveal--in {
	opacity: 1;
	transform: translateY(0);
}

.intro-text h2 {
	font-size: 2rem;
	margin: 0 0 40px;
	font-weight: 400;
	line-height: 1.35;
}

.divider-vertical {
	width: 0.5px;
	height: 100px;
	background: var(--accent);
	margin: 40px 0;
	opacity: 0.4;
}

.intro-text p {
	margin: 0 0 24px;
	opacity: 0.8;
	font-size: 1rem;
}

.intro-text p:last-child {
	margin-bottom: 0;
}

.content-grid__visual {
	text-align: right;
}

.content-grid__svg {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

@media (max-width: 900px) {
	.content-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
		min-height: min(100vh, 960px);
		padding: 96px 10%;
	}

	.content-grid__visual {
		text-align: center;
		order: -1;
	}

	.content-grid__svg {
		max-width: min(100%, 320px);
	}

	#service .chat-preview {
		justify-self: center;
		max-width: 100%;
	}
}

/* ── 상담 (#service) ── */
.chat-preview {
	background: rgba(255, 255, 255, 0.3);
	border: 0.5px solid rgba(142, 110, 83, 0.2);
	padding: 60px;
	position: relative;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.chat-msg {
	margin: 0 0 40px;
	padding: 0;
}

.chat-msg--reply {
	padding-left: 40px;
	border-left: 1px solid var(--accent);
}

.chat-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--accent);
	margin: 0 0 10px;
	display: block;
}

.chat-content {
	font-size: 0.95rem;
	font-weight: 300;
	margin: 0;
	padding: 0;
	line-height: 1.8;
}

.chat-input-sim {
	margin-top: 60px;
	border-top: 0.5px solid var(--accent);
	padding-top: 20px;
	font-size: 0.8rem;
	opacity: 0.5;
	font-style: italic;
}

.service-cta {
	display: inline-block;
	margin: 0;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--accent);
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
		box-shadow 0.25s ease, transform 0.2s ease;
}

button.service-cta {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	text-align: inherit;
}

.service-cta:hover,
.service-cta:focus-visible {
	opacity: 0.82;
}

.service-cta:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 3px;
}

/* 상담 CTA — 실제 버튼 형태 + 바깥 파동(링) */
@keyframes hyegwang-cta-ripple {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	70% {
		opacity: 0.08;
	}
	100% {
		transform: scale(1.61);
		opacity: 0;
	}
}

.intro-text p {
	margin: 0 0 36px;
}

button.service-cta--open-saju {
	position: relative;
	z-index: 0;
	overflow: visible;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.25rem;
	padding: 0.85rem 1.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	color: #f6f4f1;
	background: var(--ink);
	border: 0.5px solid var(--ink);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(45, 41, 38, 0.12);
	opacity: 1;
}

button.service-cta--open-saju::before,
button.service-cta--open-saju::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 14px;
	border: 1.5px solid rgba(142, 110, 83, 0.45);
	pointer-events: none;
	z-index: -1;
	animation: hyegwang-cta-ripple 2.6s ease-out infinite;
}

button.service-cta--open-saju::after {
	border-color: rgba(142, 110, 83, 0.28);
	animation-delay: 1.3s;
}

button.service-cta--open-saju:hover,
button.service-cta--open-saju:focus-visible {
	opacity: 1;
	background: #3d3834;
	border-color: #3d3834;
	box-shadow: 0 6px 18px rgba(45, 41, 38, 0.16);
	transform: translateY(-1px);
}

button.service-cta--open-saju:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	button.service-cta--open-saju,
	button.service-cta--open-saju:hover,
	button.service-cta--open-saju:focus-visible,
	.entry--single #cards .card-btn,
	.entry--single #cards .card-btn:hover,
	.entry--single #cards .card-btn:focus-visible {
		transition: none;
		transform: none;
	}

	button.service-cta--open-saju::before,
	button.service-cta--open-saju::after,
	.entry--single #cards .card-btn::before,
	.entry--single #cards .card-btn::after,
	.entry--single #cards .product-card:hover .card-btn::before,
	.entry--single #cards .product-card:hover .card-btn::after {
		animation: none;
		display: none;
	}
}

@media (max-width: 782px) {
	button.service-cta--open-saju {
		display: flex;
		width: 85%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 100px auto 80px;
	}
}

/* ── 지혜 (#wisdom) ── */
.wisdom-section {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	padding: 120px 10%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
}

.wisdom-card {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

.wisdom-data {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	display: flex;
	flex-direction: row;
	gap: 0.65em;
	flex-shrink: 0;
	font-family: "Noto Serif KR", serif;
	font-size: 1.5rem;
	letter-spacing: 0.5em;
	line-height: 1.8;
	color: var(--ink);
	padding-top: 20px;
	padding-right: 0;
	border-right: 0.5px solid var(--accent);
	padding-bottom: 4px;
}

.wisdom-data__row {
	display: block;
	margin: 0;
	padding: 0;
}

.wisdom-desc {
	flex: 1;
	min-width: 0;
	padding-top: 40px;
}

.wisdom-desc .bracket-text {
	font-size: 1.5rem;
	color: var(--accent);
	margin-bottom: 30px;
}

.wisdom-title {
	font-weight: 200;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 30px;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.wisdom-desc p {
	margin: 0 0 1.25rem;
	opacity: 0.85;
	font-size: 1rem;
	line-height: 1.8;
}

.wisdom-desc p:last-child {
	margin-bottom: 0;
}

@media (max-width: 782px) {
	.wisdom-section {
		padding: 96px 6% 80px;
		min-height: min(100vh, 900px);
		justify-content: center;
	}

	.wisdom-card {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
		text-align: center;
	}

	.wisdom-data {
		writing-mode: horizontal-tb;
		flex-direction: column;
		align-items: center;
		border-right: none;
		border-bottom: 0.5px solid var(--accent);
		padding-top: 0;
		padding-bottom: 1.25rem;
		margin-bottom: 0.5rem;
		letter-spacing: 0.35em;
	}

	.wisdom-desc {
		padding-top: 0;
		text-align: left;
	}
}

/* ── 서가 (#books) ── */
.library-section {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	margin-top: 100px;
	margin-bottom: 0;
	padding: 100px 10% 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #2d2926;
	color: #f6f4f1;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
}

.library-heading {
	margin: 0 0 60px;
	font-weight: 200;
	letter-spacing: 0.3em;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	text-align: center;
}

.library-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.library-empty {
	margin: 0;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.55;
	line-height: 1.75;
}

.book-item {
	display: block;
	margin: 0;
	padding: 40px;
	border: 0.5px solid rgba(246, 244, 241, 0.2);
	color: inherit;
	text-decoration: none;
	transition:
		border-color 0.5s ease,
		background-color 0.5s ease,
		transform 0.5s ease;
	cursor: pointer;
}

.book-item:hover,
.book-item:focus-visible {
	border-color: rgba(246, 244, 241, 0.45);
	background: rgba(246, 244, 241, 0.04);
}

.book-item:focus-visible {
	outline: 1px solid rgba(246, 244, 241, 0.5);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.book-item {
		transition: none;
	}
}

.book-meta {
	display: block;
	font-size: 0.7rem;
	opacity: 0.5;
	margin-bottom: 0.5rem;
}

.book-title {
	display: block;
	font-size: 1.1rem;
	margin: 0 0 20px;
	letter-spacing: 0.1em;
	line-height: 1.45;
	font-weight: 500;
}

.book-desc {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.6;
	line-height: 1.75;
}

@media (max-width: 1024px) and (min-width: 601px) {
	.library-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.book-item:nth-child(3) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.library-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.library-section {
		margin-top: 60px;
		margin-bottom: 0;
		padding: 72px 8% 72px;
	}
}

/* 서가 하단 — 글 검색 */
.library-search {
	display: flex;
	justify-content: flex-end;
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 0.5px solid rgba(246, 244, 241, 0.18);
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.library-search__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: flex-end;
	align-items: stretch;
	max-width: 32rem;
	margin: 0;
}

.library-search__input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.65rem 1rem;
	font: inherit;
	font-size: 0.9rem;
	color: var(--ink);
	background: rgba(246, 244, 241, 0.96);
	border: 0.5px solid rgba(246, 244, 241, 0.35);
	border-radius: 8px;
}

.library-search__input::placeholder {
	color: rgba(45, 41, 38, 0.45);
}

.library-search__input:focus {
	outline: none;
	border-color: rgba(246, 244, 241, 0.55);
	box-shadow: 0 0 0 2px rgba(142, 110, 83, 0.35);
}

.library-search__submit {
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	cursor: pointer;
	border-radius: 8px;
	border: 0.5px solid rgba(246, 244, 241, 0.45);
	background: rgba(246, 244, 241, 0.12);
	color: #f6f4f1;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.library-search__submit:hover,
.library-search__submit:focus-visible {
	background: rgba(246, 244, 241, 0.22);
	border-color: rgba(246, 244, 241, 0.65);
}

/* 검색 결과 페이지 */
.search-page-header {
	margin-bottom: 0.5rem;
}

.search-page-title {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.search-page-meta {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	opacity: 0.65;
}

.search-page-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-end;
	gap: 0.65rem;
	margin: 1.75rem 0 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 0.5px solid rgba(45, 41, 38, 0.12);
}

.search-page-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
	max-width: 32rem;
	margin: 0;
}

.search-page-input {
	flex: 1 1 10rem;
	min-width: 0;
	padding: 0.55rem 0.85rem;
	font: inherit;
	font-size: 0.95rem;
	border: 0.5px solid rgba(45, 41, 38, 0.2);
	border-radius: 8px;
	background: #fff;
}

.search-page-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(142, 110, 83, 0.2);
}

.search-page-submit {
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	cursor: pointer;
	border-radius: 8px;
	border: 0.5px solid var(--ink);
	background: var(--ink);
	color: #f6f4f1;
	transition: opacity 0.2s ease;
}

.search-page-submit:hover,
.search-page-submit:focus-visible {
	opacity: 0.88;
}

.search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.search-hit {
	display: block;
	padding: 1.25rem 1.35rem;
	border: 0.5px solid rgba(45, 41, 38, 0.14);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease;
}

.search-hit:hover,
.search-hit:focus-visible {
	border-color: rgba(142, 110, 83, 0.45);
	background: rgba(142, 110, 83, 0.06);
}

.search-hit:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 2px;
}

.search-hit__meta {
	display: block;
	font-size: 0.72rem;
	opacity: 0.5;
	margin-bottom: 0.35rem;
}

.search-hit__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
	line-height: 1.45;
}

.search-hit__excerpt {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.65;
	opacity: 0.72;
}

.search-empty {
	margin: 2rem 0;
	font-size: 0.95rem;
	line-height: 1.75;
	opacity: 0.8;
}

.entry--search .navigation.pagination {
	margin: 2.5rem 0 1rem;
	display: flex;
	justify-content: center;
}

.entry--search .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
}

.entry--search .navigation.pagination a.page-numbers,
.entry--search .navigation.pagination span.page-numbers {
	display: inline-block;
	padding: 0.4rem 0.65rem;
	font-size: 0.85rem;
	text-decoration: none;
	border-radius: 6px;
	border: 0.5px solid rgba(45, 41, 38, 0.15);
	color: var(--ink);
}

.entry--search .navigation.pagination a.page-numbers:hover,
.entry--search .navigation.pagination a.page-numbers:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.entry--search .navigation.pagination span.page-numbers.current {
	background: rgba(142, 110, 83, 0.12);
	border-color: rgba(142, 110, 83, 0.35);
	font-weight: 600;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── 우측 고정 세로 문구 ── */
.sidebar-text {
	position: fixed;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 0.7rem;
	letter-spacing: 0.4em;
	color: var(--accent);
	opacity: 0.6;
	z-index: 10;
	pointer-events: none;
}

@media (max-width: 900px) {
	.sidebar-text {
		display: none;
	}
}

/* ── 고정 헤더 네비 ── */
.site-header {
	position: relative;
}

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: var(--header-pad-y) var(--header-pad-x);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	z-index: 100;
	isolation: isolate;
	background: transparent;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.logo {
	font-weight: 700;
	letter-spacing: 0.3em;
	font-size: 1.2rem;
	color: var(--accent);
	text-decoration: none;
}

.logo:hover {
	opacity: 0.85;
}

.nav-links {
	display: flex;
	gap: 40px;
	list-style: none;
	align-items: center;
	flex-wrap: wrap;
}

.nav-links a {
	text-decoration: none;
	color: var(--ink);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--accent);
}

/* UM 인증 (네비 오른쪽) */
.site-header__auth {
	flex-shrink: 0;
}

.site-header__auth .header-auth {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.site-header__auth .header-auth__link {
	text-decoration: none;
	color: var(--ink);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	transition: color 0.3s ease;
}

.site-header__auth .header-auth__link:hover {
	color: var(--accent);
}

/* 어두운 섹션(서가 #books 등) 위로 올라왔을 때 — JS가 .site-nav--on-dark 부여 */
.site-nav--on-dark .logo {
	color: #f0ebe4;
}

.site-nav--on-dark .nav-links a {
	color: rgba(246, 244, 241, 0.92);
}

.site-nav--on-dark .nav-links a:hover {
	color: #f5e6c8;
}

.site-nav--on-dark .site-header__auth .header-auth__link {
	color: rgba(246, 244, 241, 0.92);
}

.site-nav--on-dark .site-header__auth .header-auth__link:hover {
	color: #f5e6c8;
}

.header-auth--in .header-auth__link--logout {
	margin-left: 15px;
}

/* 본문 (프론트가 아닐 때만 좌우 패딩·폭 기본) */
.site-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem var(--header-pad-x) 4rem;
	min-height: 50vh;
}

/* 뷰포트 ≥1024: article 컬럼 ~720px (패딩 제외) — 기존 1100−패딩 ≈980에서 축소 */
@media (min-width: 1024px) {
	body:not(.is-front-page) .site-main {
		max-width: calc(var(--article-content-max) + var(--header-pad-x) * 2);
	}
}

.is-front-page .site-main {
	min-height: 0;
}

.entry-title {
	margin-top: 0;
	font-size: 1.75rem;
	font-weight: 600;
}

.entry-content > *:first-child {
	margin-top: 0;
}

/* 글·페이지 본문 소제목 마진 비율 */
.entry-content h2 {
	margin-top: var(--entry-h2-mt);
	margin-bottom: var(--entry-h2-mb);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.4;
}

.entry-content h3 {
	margin-top: var(--entry-h3-mt);
	margin-bottom: var(--entry-h3-mb);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.45;
}

.entry-content h4 {
	margin-top: var(--entry-h4-mt);
	margin-bottom: var(--entry-h4-mb);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.45;
}

.entry-content h5 {
	margin-top: var(--entry-h5-mt);
	margin-bottom: var(--entry-h5-mb);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.entry-content h6 {
	margin-top: var(--entry-h6-mt);
	margin-bottom: var(--entry-h6-mb);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	opacity: 0.92;
}

/* 글 본문: 워드프레스 글 임베드 (.wp-embed … / .wp-block-embed)
   래퍼(.wp-block-embed__wrapper / div.wp-embed)만 border-radius + overflow:hidden 으로 클립.
   iframe 은 radius 0·직사각으로 채움 → 상·하위 라운드 불일치로 테두리/모서리가 잘리는 현상 완화 */
.entry-content .wp-block-embed,
.entry-content figure.wp-block-embed {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 30px auto;
}

.entry-content .wp-block-embed .wp-block-embed__wrapper {
	position: relative;
	z-index: 0;
	border-radius: var(--embed-radius);
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(45, 41, 38, 0.08);
	line-height: 0;
	isolation: isolate;
	background: var(--bg);
}

.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	border-radius: var(--embed-radius);
	overflow: hidden;
}

/* 비율 임베드: 코어와 동일하게 iframe을 래퍼 안에 꽉 채움(절대배치) */
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper .wp-embedded-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.entry-content .wp-block-embed iframe,
.entry-content .wp-block-embed .wp-embedded-content {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: bottom;
	border-radius: 0;
	background: transparent;
}

.entry-content div.wp-embed {
	position: relative;
	z-index: 0;
	margin: 30px auto;
	max-width: 100%;
	border-radius: var(--embed-radius);
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(45, 41, 38, 0.08);
	line-height: 0;
	isolation: isolate;
	background: var(--bg);
}

/* 바깥 div.wp-embed 가 이미 클립하므로 안쪽은 이중 라운드/클립 제거 */
.entry-content div.wp-embed .wp-embed__wrapper {
	position: relative;
	border-radius: 0;
	overflow: visible;
}

.entry-content div.wp-embed iframe {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: bottom;
	border-radius: 0;
	background: transparent;
}

/* ── 단일 글: 대표 이미지 위 상담 유형 카드 ── */
.entry--single #cards.post-saju-cards {
	position: relative;
	z-index: 2;
	padding: 3rem 0 3.5rem;
	/* 세로는 잘리지 않게(모바일 하단·도트 클립 방지), 가로만 캐러셀 영역에서 제어 */
	overflow-x: hidden;
	overflow-y: visible;
	text-align: center;
}

.entry--single #cards .cards-container {
	/* 본문 컬럼(--article-content-max)과 동일한 가로 한도 */
	position: relative;
	width: 100%;
	max-width: min(var(--article-content-max), 100%);
	padding: 0 10%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.entry--single #cards .card-track {
	display: flex;
	gap: 30px;
	transition: transform 0.4s ease;
	will-change: transform;
}

.entry--single #cards .card-slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
}

.entry--single #cards .product-card {
	display: flex;
	flex-direction: column;
	width: 170px;
	max-width: min(170px, 100%);
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	background: rgba(255, 255, 255, 0.4);
	border: 0.5px solid rgba(142, 110, 83, 0.2);
	border-radius: 10px;
	/* 메인 CTA 파동(::before/::after)이 잘리지 않도록 — 이미지는 .card-image에서 클립 */
	overflow: visible;
	position: relative;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.entry--single #cards .product-card:hover,
.entry--single #cards .product-card:focus-within {
	border-color: rgba(142, 110, 83, 0.45);
	box-shadow: 0 12px 40px rgba(45, 41, 38, 0.06);
}

.entry--single #cards .card-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	padding: 6px 16px;
	border-radius: 4px;
	z-index: 1;
}

.entry--single #cards .card-image {
	flex-shrink: 0;
	height: 180px;
	background: linear-gradient(
		135deg,
		rgba(142, 110, 83, 0.1) 0%,
		rgba(142, 110, 83, 0.05) 100%
	);
	position: relative;
	overflow: hidden;
}

.entry--single #cards .card-image::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
}

/* 만세력: 흙·기본 악센트 */
.entry--single #cards .card-image--manse::before {
	background: radial-gradient(circle, rgba(142, 110, 83, 0.24) 0%, transparent 70%);
}

/* 올해: 따뜻한 호박·연운 */
.entry--single #cards .card-image--year::before {
	background: radial-gradient(circle, rgba(196, 148, 88, 0.26) 0%, transparent 70%);
}

/* 이번 달: 달빛 느낌의 차분한 청회색 */
.entry--single #cards .card-image--month::before {
	background: radial-gradient(circle, rgba(108, 128, 158, 0.22) 0%, transparent 72%);
}

.entry--single #cards .card-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 30px;
	padding-bottom: 40px;
}

.entry--single #cards .card-label {
	flex-shrink: 0;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--accent);
	margin-bottom: 12px;
	display: block;
}

.entry--single #cards .card-title {
	flex-shrink: 0;
	font-size: 1.3rem;
	font-weight: 400;
	margin-bottom: 16px;
	letter-spacing: 0.05em;
	line-height: 1.35;
	color: var(--ink);
}

.entry--single #cards .card-title br {
	display: block;
}

.entry--single #cards .card-desc {
	flex-shrink: 0;
	box-sizing: border-box;
	height: 8rem;
	min-height: 8rem;
	max-height: 8rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-size: 0.85rem;
	opacity: 0.7;
	line-height: 1.6;
	margin-bottom: 24px;
	color: var(--ink);
}

/* 상담하기 = 상담 메인 CTA(button.service-cta--open-saju)와 동일 색·파동 */
.entry--single #cards .card-btn {
	flex-shrink: 0;
	margin-top: auto;
	position: relative;
	z-index: 0;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.85rem 1.75rem;
	font-family: "Noto Serif KR", serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	white-space: nowrap;
	color: #f6f4f1;
	background: var(--ink);
	border: 0.5px solid var(--ink);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(45, 41, 38, 0.12);
	opacity: 1;
	cursor: pointer;
	transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
		box-shadow 0.25s ease, transform 0.2s ease;
}

.entry--single #cards .card-btn::before,
.entry--single #cards .card-btn::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 14px;
	border: 1.5px solid rgba(142, 110, 83, 0.45);
	pointer-events: none;
	z-index: -1;
	opacity: 0;
	animation: none;
}

/* 카드 전체 호버 시 상담하기 버튼에 파동 */
.entry--single #cards .product-card:hover .card-btn::before {
	opacity: 1;
	animation: hyegwang-cta-ripple 2.6s ease-out infinite;
}

.entry--single #cards .product-card:hover .card-btn::after {
	opacity: 1;
	border-color: rgba(142, 110, 83, 0.28);
	animation: hyegwang-cta-ripple 2.6s ease-out infinite;
	animation-delay: 1.3s;
}

.entry--single #cards .card-btn:hover,
.entry--single #cards .card-btn:focus-visible {
	opacity: 1;
	background: #3d3834;
	border-color: #3d3834;
	box-shadow: 0 6px 18px rgba(45, 41, 38, 0.16);
	transform: translateY(-1px);
}

.entry--single #cards .card-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.entry--single #cards .card-dots {
	display: none;
	justify-content: center;
	gap: 12px;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	padding-bottom: 0.25rem;
}

.entry--single #cards .card-dots .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: rgba(142, 110, 83, 0.2);
	transition: background 0.3s ease, transform 0.2s ease;
}

.entry--single #cards .card-dots .dot.active {
	background: var(--accent);
	transform: scale(1.15);
}

/* 1024px 이상: 3열(슬라이드 = 열) */
@media (min-width: 1024px) {
	.entry--single #cards .card-track {
		transform: none !important;
		width: auto;
		align-items: stretch;
	}

	.entry--single #cards .card-slide {
		height: auto;
		align-self: stretch;
	}

	.entry--single #cards .product-card {
		height: 100%;
		min-height: 100%;
	}
}

/* 1023px 이하: 통일 — 캐러셀 · 도트 · 스와이프 · 안전영역 (카드 너비 170px는 공통) */
@media (max-width: 1023px) {
	.entry--single #cards.post-saju-cards {
		padding-bottom: max(3.5rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
	}

	.entry--single #cards .cards-container {
		overflow: hidden;
		touch-action: pan-y;
		cursor: grab;
	}

	.entry--single #cards .cards-container.is-dragging {
		touch-action: none;
		cursor: grabbing;
		user-select: none;
	}

	.entry--single #cards .card-track {
		width: 300%;
		gap: 0;
	}

	.entry--single #cards .card-slide {
		flex: 0 0 33.333333%;
		min-width: 33.333333%;
	}

	.entry--single #cards .card-dots {
		display: flex;
		margin-top: 2.25rem;
		margin-bottom: 0.75rem;
	}
}

/* ── 단일 글: 제목 아래 대표 이미지(540 정방형) · 태그 간격 ── */
.entry--single .entry-featured {
	width: 540px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 auto var(--entry-featured-mb);
	overflow: hidden;
}

.entry--single .entry-featured__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.entry--single .entry-title {
	margin-bottom: var(--entry-h1-mb);
}

.entry--single .entry-header {
	margin-bottom: 0;
}

.entry--single .entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 0.5px solid rgba(45, 41, 38, 0.12);
}

.entry--single .entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1.25rem;
}

.entry--single .entry-tags a {
	display: inline-block;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--accent);
	text-decoration: none;
	padding: 0.35rem 0;
	transition: opacity 0.2s ease;
}

.entry--single .entry-tags a:hover,
.entry--single .entry-tags a:focus-visible {
	opacity: 0.78;
}

.entry--single .entry-tags a:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 2px;
}

/* 푸터 */
.site-footer {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 100px 10%;
	text-align: center;
	border-top: 0.5px solid rgba(142, 110, 83, 0.2);
	color: var(--ink);
}

.footer-logo {
	font-size: 2rem;
	margin: 0 0 20px;
	letter-spacing: 0.5em;
	color: var(--ink);
	font-weight: 600;
}

.footer-tagline {
	margin: 0 0 20px;
	padding: 0;
	opacity: 0.7;
	line-height: 1.8;
}

.copyright {
	font-size: 0.7rem;
	opacity: 0.5;
	letter-spacing: 0.1em;
	margin: 0;
	padding: 0;
}

/* 저작권 아래 — 사업자 정보 (11px, 좌측 정렬) */
.footer-business {
	margin-top: 30px;
	width: 100%;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.footer-business__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.25rem 2rem;
	font-size: 11px;
	line-height: 1.6;
	color: var(--ink);
	opacity: 0.88;
}

.footer-business__company,
.footer-business__contact {
	min-width: min(100%, 280px);
}

.footer-business__line {
	margin: 0 0 0.35em;
	text-align: left;
}

.footer-business__company .footer-business__line:last-child,
.footer-business__contact .footer-business__line:last-child {
	margin-bottom: 0;
}

.footer-business a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer-business a:hover,
.footer-business a:focus-visible {
	opacity: 0.85;
}

/* 사업자 정보 아래 — 약관·정책 링크 (12px, 가로 나열) */
.footer-policy {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	width: 100%;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem 1.25rem;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
	border-top: 0.5px solid rgba(142, 110, 83, 0.15);
}

.footer-policy__link {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.88;
	transition: opacity 0.2s ease;
}

.footer-policy__link:hover,
.footer-policy__link:focus-visible {
	opacity: 1;
}

.footer-policy__link:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 2px;
}

@media (max-width: 782px) {
	:root {
		--header-pad-x: 1rem;
		--header-pad-y: 0.5rem;
	}

	body {
		/* 고정 헤더(3줄) 높이에 맞춘 본문 시작 — 헤더는 촘촘히, 가림 방지용 여백은 유지 */
		padding-top: calc(var(--header-pad-y) * 2 + 5.35rem);
	}

	.site-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem 0.75rem;
		padding-top: 0.45rem;
		padding-bottom: 0.45rem;
	}

	.logo {
		font-size: 1.05rem;
		letter-spacing: 0.22em;
	}

	.nav-links {
		justify-content: center;
		gap: 0.65rem 0.85rem;
		flex-wrap: wrap;
		row-gap: 0.35rem;
	}

	.nav-links a {
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}

	.site-header__auth .header-auth__link {
		font-size: 0.72rem;
	}

	.site-header__auth {
		text-align: center;
		padding-top: 0.1rem;
	}

	.hero {
		padding: 72px 6% 88px;
		min-height: min(100vh, 920px);
	}

	.bracket-text {
		font-size: 1.2rem;
	}

	.footer-business__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.site-footer {
		margin-bottom: 20px;
	}
}
