/* 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;
	overflow-x: hidden;
	max-width: 100%;
}

body {
	position: relative;
	z-index: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: "Noto Serif KR", serif;
	overflow-x: hidden;
	max-width: 100%;
	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;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 100vh;
	padding: 120px clamp(1rem, 10%, 4rem);
	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);
	overflow-x: clip;
}

.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(1.65rem, 4.2vw, 3rem);
	font-weight: 200;
	margin: 0 0 20px;
	letter-spacing: 0.12em;
	line-height: 1.4;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: keep-all;
}

.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 {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	overflow-x: clip;
	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;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 100vh;
	padding: 120px clamp(1rem, 10%, 4rem);
	display: grid;
	/* minmax(0): 그리드 자식 min-content 폭으로 뷰포트 가로 스크롤 나는 현상 방지 */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 6vw, 100px);
	align-items: center;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
	overflow-x: clip;
}

.content-grid > * {
	min-width: 0;
}

/* 홈 PC: #about / #service — 전체 폭 제한·가운데 정렬 */
@media (min-width: 901px) {
	.is-front-page #about.content-grid,
	.is-front-page #service.content-grid {
		box-sizing: border-box;
		width: 100%;
		max-width: min(1100px, 100%);
		margin-inline: auto;
		padding-inline: clamp(1.5rem, 4vw, 2.75rem);
	}

	/* #about: 인사 + 비주얼 2열 간격 */
	.is-front-page #about.content-grid {
		gap: clamp(2rem, 3vw, 3rem);
	}

	/* #service: chat-preview ↔ intro-text 가로 간격만 넉넉히 */
	.is-front-page #service.content-grid {
		gap: clamp(4.25rem, 8vw, 7.5rem);
	}
}

.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: minmax(0, 1fr);
		gap: 3rem;
		min-height: min(100vh, 960px);
		padding: 96px clamp(1rem, 8%, 3rem);
	}

	.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%;
	}

	.is-front-page #service.content-grid {
		gap: 5rem;
	}
}

/* ── 상담 (#service) ── */
.chat-preview {
	background: rgba(255, 255, 255, 0.3);
	border: 0.5px solid rgba(142, 110, 83, 0.2);
	padding: clamp(1.25rem, 5vw, 60px);
	position: relative;
	max-width: min(500px, 100%);
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	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;
}

.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;
}

.service-cta--open-saju::before,
.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;
}

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

.service-cta--open-saju:hover,
.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);
}

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

@media (prefers-reduced-motion: reduce) {
	.service-cta--open-saju,
	.service-cta--open-saju:hover,
	.service-cta--open-saju:focus-visible {
		transition: none;
		transform: none;
	}

	.service-cta--open-saju::before,
	.service-cta--open-saju::after {
		animation: none;
		display: none;
	}
}

/* 상담 안내 #service · 이용 방법 마지막 단계: 뷰포트 ≤1024px에서 「대화 시작하기」 가로 70% (901–1024 포함) */
@media (max-width: 1024px) {
	#service .intro-text {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	#service .intro-text .service-cta--open-saju {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 70%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 100px auto 80px;
	}

	/* .howto-step--cta 가 align-items:center 이면 __cta 가 버튼 폭만 잡혀 70%가 먹지 않음 → stretch */
	.howto-step.howto-step--cta .howto-step__cta {
		align-self: stretch;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.howto-step__cta .service-cta--open-saju {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 70%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0 auto;
		white-space: nowrap;
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	/* 터치·가독: 세로 패딩 + 합산 약 15px, 글자는 기본 0.95rem 대비 살짝 확대 */
	#service .intro-text .service-cta--open-saju,
	.howto-step__cta .service-cta--open-saju {
		padding-top: calc(0.85rem + 7.5px);
		padding-bottom: calc(0.85rem + 7.5px);
		font-size: 1.04rem;
	}
}

/* ── 지혜 (#wisdom) ── */
.wisdom-section {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 100vh;
	padding: 120px clamp(1rem, 10%, 4rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
	overflow-x: clip;
}

.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;
	}
}

/* ── 후기 (#reviews) ── */
/* 고정 페이지 /reviews/ — 에디터 본문(선택)과 후기 블록 사이 */
.entry--reviews-page .reviews-page-intro {
	max-width: 40rem;
	margin: 0 auto 2rem;
	padding: 0 10%;
	font-size: 0.95rem;
	line-height: 1.75;
	opacity: 0.88;
}

.entry--reviews-page .reviews-page-intro > *:first-child {
	margin-top: 0;
}

.entry--reviews-page .reviews-page-intro > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.entry--reviews-page .reviews-page-intro {
		padding: 0 8%;
	}
}

.reviews-section {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: min(1200px, 100%);
	min-width: 0;
	min-height: min(100vh, 960px);
	padding: 100px clamp(1rem, 10%, 4rem) 100px;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
	margin-left: auto;
	margin-right: auto;
	overflow-x: clip;
}

.reviews-section__header {
	text-align: center;
	margin-bottom: 3.5rem;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.reviews-section__title {
	margin: 0.75rem 0 1.25rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.reviews-section__accent {
	color: var(--accent);
}

.reviews-section__sub {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	opacity: 0.78;
}

.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
	min-width: 0;
}

.review-card {
	position: relative;
	margin: 0;
	padding: 1.75rem 1.5rem 1.5rem;
	background: rgba(255, 255, 255, 0.42);
	border: 0.5px solid rgba(45, 41, 38, 0.12);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(45, 41, 38, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	box-sizing: border-box;
	transition:
		border-color 0.35s ease,
		box-shadow 0.35s ease,
		transform 0.35s ease;
}

.review-card:hover {
	border-color: rgba(142, 110, 83, 0.28);
	box-shadow: 0 12px 32px rgba(45, 41, 38, 0.08);
	transform: translateY(-2px);
}

.wish-card {
	overflow: visible;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	text-align: center;
}

.wish-card:hover {
	border: none;
	box-shadow: none;
	transform: none;
}

.wish-card .wish-card__glow.candle-glow {
	position: relative;
	top: auto;
	left: auto;
	width: 120px;
	height: 120px;
	margin: 0 auto 2.25rem;
	flex-shrink: 0;
	pointer-events: none;
	will-change: opacity;
	background: radial-gradient(
		circle,
		#ffe08a 0%,
		#ffc44d 28%,
		rgba(255, 176, 56, 0.55) 52%,
		rgba(255, 176, 56, 0) 72%
	);
	filter: blur(16px);
	animation: wish-candle-breathe 8s ease-in-out infinite;
}

.wish-card:nth-child(3n + 2) .wish-card__glow {
	animation-delay: 2.6s;
}

.wish-card:nth-child(3n + 3) .wish-card__glow {
	animation-delay: 5.2s;
}

@keyframes wish-candle-breathe {
	0%,
	100% {
		opacity: 0.42;
	}

	50% {
		opacity: 1;
	}
}

.wish-card .wish-content,
.wish-card .wish-footer {
	position: relative;
	z-index: 1;
	text-align: center;
}

.wish-card .wish-content {
	margin-bottom: 0.85rem;
}

.wish-card .wish-footer {
	border-top: none;
	padding-top: 0;
}

.wish-card .reviewer-info {
	align-items: center;
}

.wish-card .review-card__actions {
	justify-content: center;
}

.wish-heart-row {
	display: flex;
	justify-content: center;
	margin-top: 0.85rem;
}

.wish-heart {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.15rem 0.2rem;
	border: none;
	background: none;
	color: rgba(142, 110, 83, 0.72);
	font: inherit;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
}

.wish-heart__icon {
	width: 1.05rem;
	height: 1.05rem;
	display: block;
	flex-shrink: 0;
}

.wish-heart__icon path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.wish-heart__count {
	font-variant-numeric: tabular-nums;
	min-width: 0.6rem;
}

.wish-heart.is-hearted {
	color: #a85a48;
}

.wish-heart.is-hearted .wish-heart__icon path {
	fill: currentColor;
}

.wish-heart.is-busy {
	opacity: 0.55;
	cursor: progress;
}

.wish-heart.is-error {
	color: #8c4b41;
}

.review-card__quote {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--accent);
	opacity: 0.35;
	margin-bottom: 0.35rem;
	user-select: none;
}

.review-rating {
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	color: rgba(142, 110, 83, 0.95);
	margin-bottom: 0.85rem;
}

.review-content {
	margin: 0 0 1.25rem;
	flex: 1 1 auto;
	font-size: 0.9rem;
	line-height: 1.75;
	opacity: 0.88;
}

.review-footer {
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 0.5px solid rgba(45, 41, 38, 0.08);
}

.reviewer-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.reviewer-name {
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.reviewer-date {
	font-size: 0.75rem;
	opacity: 0.5;
}

.review-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 0.6rem;
}

.review-card__action--edit {
	font-size: 0.78rem;
	color: rgba(142, 110, 83, 0.95);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.review-card__action--edit:hover {
	opacity: 0.85;
}

.review-card__delete-form {
	display: inline;
	margin: 0;
}

.review-card__action--delete {
	font: inherit;
	font-size: 0.78rem;
	color: rgba(140, 75, 65, 0.92);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.review-card__action--delete:hover {
	opacity: 0.88;
}

.reviews-submit__cancel {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
}

.reviews-submit__cancel a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* 메인 후기: 초과분 더보기 */
.reviews-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2.75rem;
	width: 100%;
}

.reviews-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 9rem;
	padding: 0.55rem 1.35rem;
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	color: rgba(45, 41, 38, 0.88);
	background: rgba(255, 255, 255, 0.55);
	border: 0.5px solid rgba(45, 41, 38, 0.18);
	border-radius: 999px;
	cursor: pointer;
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease;
}

.reviews-more__btn:hover {
	border-color: rgba(142, 110, 83, 0.35);
	background: rgba(255, 255, 255, 0.75);
	box-shadow: 0 6px 20px rgba(45, 41, 38, 0.06);
}

.wishes-page-cta-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 3rem;
}

.wishes-page-cta {
	text-align: center;
}

/* 후기 페이지 — 로그인 회원 제출 폼 */
.wishes-section .reviews-submit-wrap {
	margin-top: 0;
	margin-bottom: 56px;
}

.reviews-submit-wrap {
	margin-top: 3.5rem;
	padding: 2rem 1.75rem;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	background: rgba(255, 255, 255, 0.5);
	border: 0.5px solid rgba(45, 41, 38, 0.12);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(45, 41, 38, 0.06);
}

.reviews-submit__heading {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-align: center;
}

.reviews-notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	border-radius: 10px;
	text-align: center;
}

.reviews-notice--ok {
	background: rgba(142, 110, 83, 0.12);
	color: rgba(45, 41, 38, 0.92);
}

.reviews-notice--warn {
	background: rgba(180, 90, 70, 0.12);
	color: rgba(45, 41, 38, 0.9);
}

.reviews-submit__login-hint {
	margin: 0;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.65;
}

.reviews-submit__login-hint a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.reviews-submit-form__field {
	margin: 0 0 1rem;
}

.reviews-submit-form__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.88;
}

/* 별점: 한 줄 고정 — 「별점」+☆☆☆☆☆ (wrap 금지·inline-flex로 줄바꿈 방지) */
.reviews-submit-form__field--rating {
	margin: 0 0 1rem;
}

.reviews-submit-form__field--rating .reviews-submit-form__rating-row {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0.45rem;
	max-width: 100%;
	width: max-content;
	box-sizing: border-box;
}

.reviews-submit-form__field--rating .reviews-submit-form__label {
	display: inline;
	margin: 0 !important;
	padding: 0;
	line-height: 1.3;
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	white-space: nowrap;
}

.reviews-submit-form__field--rating .reviews-star-picker {
	margin: 0;
	flex: 0 0 auto;
	min-width: 0;
}

.reviews-star-picker {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
}

.reviews-star-picker__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	font: inherit;
	font-size: 12px;
	line-height: 1;
	color: rgba(142, 110, 83, 0.42);
	background: transparent;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition:
		color 0.15s ease,
		transform 0.15s ease,
		background 0.15s ease;
}

.reviews-star-picker__btn:hover,
.reviews-star-picker__btn:focus-visible {
	color: rgba(142, 110, 83, 0.88);
	outline: none;
	background: rgba(142, 110, 83, 0.08);
}

.reviews-star-picker__btn.is-filled,
.reviews-star-picker__btn.is-filled:hover {
	color: rgba(142, 110, 83, 0.98);
}

.reviews-star-picker__icon {
	display: block;
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.reviews-submit-form select,
.reviews-submit-form input[type='text'] {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.65rem;
	font: inherit;
	font-size: 0.95rem;
	border: 0.5px solid rgba(45, 41, 38, 0.2);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	box-sizing: border-box;
}

.reviews-submit-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.6;
	min-height: 8rem;
	border: 0.5px solid rgba(45, 41, 38, 0.2);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	resize: vertical;
	box-sizing: border-box;
}

.reviews-submit-form__hints {
	margin: 0.5rem 0 0;
}

.reviews-submit-form__hints .reviews-submit-form__hint {
	margin: 0.4rem 0 0;
}

.reviews-submit-form__hints .reviews-submit-form__hint:first-child {
	margin-top: 0;
}

.reviews-submit-form__hint {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	opacity: 0.65;
	line-height: 1.5;
}

.reviews-submit-form__hint--bonus {
	opacity: 0.82;
	font-weight: 500;
}

.reviews-submit-form__actions {
	margin: 1.25rem 0 0;
	text-align: center;
}

.reviews-submit-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.65rem 1.5rem;
	font: inherit;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: #f6f4f1;
	background: var(--accent);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.reviews-submit-form__btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.reviews-submit-wrap {
		margin-top: 2.5rem;
		padding: 1.5rem 1.1rem;
	}

	.wishes-section .reviews-submit-wrap {
		margin-top: 0;
		margin-bottom: 56px;
	}
}

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

	.review-card:hover {
		transform: none;
	}

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

@media (max-width: 1024px) {
	.reviews-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.reviews-section {
		padding: 72px 8% 80px;
	}

	.reviews-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
}

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

.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, minmax(0, 1fr));
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
	min-width: 0;
}

.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, minmax(0, 1fr));
	}

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

@media (max-width: 600px) {
	.library-grid {
		grid-template-columns: minmax(0, 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;
	right: 0;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	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);
	overflow-x: clip;
}

.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;
	min-width: 0;
}

.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;
}

/* ── 단일 글: 제목 아래 대표 이미지(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;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	margin-top: auto;
	padding: 100px clamp(1rem, 10%, 4rem);
	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: 2.5rem;
	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 {
		/* 고정 헤더(로고·인증 1줄 + 메뉴) 높이에 맞춘 본문 시작 */
		padding-top: calc(var(--header-pad-y) * 2 + 4.35rem);
	}

	.site-nav {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo auth"
			"nav nav";
		align-items: center;
		gap: 0.35rem 0.75rem;
		padding-top: 0.45rem;
		padding-bottom: 0.45rem;
	}

	.logo {
		grid-area: logo;
		justify-self: start;
		font-size: 1.05rem;
		letter-spacing: 0.22em;
	}

	.nav-links {
		grid-area: nav;
		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 {
		grid-area: auth;
		justify-self: end;
		align-self: center;
		text-align: right;
		padding-top: 0;
	}

	.site-header__auth .header-auth {
		justify-content: flex-end;
	}

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

	.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;
	}

	.howto-step__media--pair {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

/* ── 이용 방법 페이지 ── */
.entry--howto-page {
	position: relative;
	z-index: 2;
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
}

.howto-page__header {
	text-align: center;
	margin-bottom: 2.75rem;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.howto-page__header .bracket-text {
	display: block;
	font-size: 1.35rem;
	color: var(--accent);
	margin-bottom: 1rem;
}

/* 제목은 .screen-reader-text 로만 출력(화면 중복 방지) */
.howto-page__title.screen-reader-text {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.howto-page__lead {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	opacity: 0.78;
}

.howto-page__content {
	max-width: 100%;
}

.howto-steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.howto-step {
	margin: 0;
	padding: 0 0 3rem;
	border-bottom: 0.5px solid rgba(45, 41, 38, 0.12);
}

/* 구분선 아래 본문이 바로 붙지 않도록 (제목·본문 상단 여유) */
.howto-step:not(:first-child):not(.howto-step--cta) {
	padding-top: 2rem;
}

/* 마지막 단계: 위(이전 단계 하단선)·아래(계산 기준 상단선) 사이 세로 중앙 */
.howto-step.howto-step--cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.howto-step:last-child {
	border-bottom: none;
}

.entry--howto-page .howto-page__content + .howto-page__calc-criteria {
	margin-top: 0;
}

.howto-step__title {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.howto-step__note {
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
	line-height: 1.65;
	opacity: 0.82;
}

.howto-step__note--privacy {
	padding: 0.65rem 0.9rem;
	background: rgba(255, 255, 255, 0.45);
	border-left: 3px solid var(--accent);
	border-radius: 0 8px 8px 0;
	opacity: 1;
}

.howto-step__pricing-lead {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.65;
	opacity: 0.82;
}

.howto-step__criteria-ref {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.65;
	opacity: 0.82;
}

.howto-step__criteria-ref a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.howto-step__criteria-ref a:hover,
.howto-step__criteria-ref a:focus-visible {
	opacity: 0.85;
}

.howto-step__criteria {
	margin: 0 0 1.25rem;
	padding: 0.85rem 0.85rem 0.85rem 1.35rem;
	list-style: disc;
	font-size: 0.88rem;
	line-height: 1.65;
	opacity: 0.88;
	background: rgba(255, 255, 255, 0.35);
	border: 0.5px solid rgba(45, 41, 38, 0.08);
	border-radius: 10px;
}

.howto-step__criteria li {
	margin: 0.35rem 0;
	padding-left: 0.15rem;
}

.howto-step__criteria li:first-child {
	margin-top: 0;
}

.howto-step__criteria li:last-child {
	margin-bottom: 0;
}

.howto-step__desc {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.75;
	opacity: 0.88;
}

.howto-step__cta {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* .howto-step--cta — 버튼 한 줄 유지(모바일 줄바꿈 방지) */
.howto-step__cta .service-cta--open-saju {
	margin-top: 0;
	white-space: nowrap;
}

.howto-step__media {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	align-items: flex-start;
}

.howto-step__media--pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 300px));
 	justify-content: center;
	gap: 1.25rem;
	align-items: start;
}

.howto-gif {
	margin: 0;
	padding: 0;
	max-width: min(300px, 100%);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.35);
	border: 0.5px solid rgba(45, 41, 38, 0.1);
	box-shadow: 0 4px 16px rgba(45, 41, 38, 0.07);
}

.howto-gif__img {
	display: block;
	max-width: min(300px, 100%);
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.howto-page__editor {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 0.5px solid rgba(45, 41, 38, 0.12);
	max-width: var(--article-content-max);
	margin-left: auto;
	margin-right: auto;
}

.howto-page__calc-criteria {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 0.5px solid rgba(45, 41, 38, 0.12);
	scroll-margin-top: calc(var(--header-pad-y) * 2 + 3rem);
}

.howto-page__calc-criteria-list {
	margin-bottom: 0;
}

.entry--chat-page .saju-chat-page__calc-criteria {
	max-width: var(--article-content-max);
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 2rem;
}

/* PC: 이용 방법 마지막 단계 「대화 시작하기」 버튼 30% 확대 */
@media (min-width: 1024px) {
	.howto-step__cta .service-cta--open-saju {
		padding: 1.105rem 2.275rem;
		font-size: 1.235rem;
		border-radius: 13px;
	}
}
