:root {
	--color-dark: #111820;
	--color-dark-light: #19222c;
	--color-dark-hover: #222d38;

	--color-gold: #b58b4a;
	--color-gold-dark: #977039;
	--color-gold-light: #d4b77f;
	--color-gold-soft: #f5efe5;

	--color-text: #20242b;
	--color-text-dark: #11161c;
	--color-text-soft: #666b72;

	--color-border: #ded8ce;
	--color-border-light: #ebe6de;

	--color-background: #ffffff;
	--color-white: #ffffff;

	--container-width: 1000px;
	--header-height: 80px;
}

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: var(--color-background);
	color: var(--color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.78;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	border: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin-top: 0;
}

main {
	flex: 1;
}


/* =========================================================
HEADER
========================================================= */

.header {
	position: relative;
	z-index: 1000;
	background: var(--color-dark);
	color: #ffffff;
}

.inner {
	width: min(calc(100% - 40px), var(--container-width));
	min-height: var(--header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
}


/* =========================================================
LOGO
========================================================= */

.logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.logo a {
	display: flex;
	align-items: center;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.logo img {
	display: block;
}


/* =========================================================
NAVIGATION
========================================================= */

.nav {
	margin-left: auto;
}

.menu {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.menu li {
	margin: 0;
	padding: 0;
}

.link {
	position: relative;
	min-height: auto;
	padding: 10px 0;
	display: block;
	color: rgba(255, 255, 255, 0.76);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.025em;
	transition: color 0.18s ease;
}

.link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 1px;
	background: var(--color-gold-light);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.18s ease;
}

.link:hover {
	color: #ffffff;
}

.link:hover::after {
	transform: scaleX(1);
}

.link.is-active {
	background: transparent;
	color: #ffffff;
}

.link.is-active::after {
	right: 0;
	bottom: 3px;
	left: 0;
	height: 1px;
	background: var(--color-gold-light);
	transform: scaleX(1);
}


/* =========================================================
BURGER
========================================================= */

.burger {
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 0;
	cursor: pointer;
}

.burger:hover {
	background: rgba(255, 255, 255, 0.05);
}

.burger-bar {
	width: 20px;
	height: 2px;
	display: block;
	background: #ffffff;
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
	opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
MAIN
========================================================= */

.contents {
	padding: 0 0 76px;
}

.container {
	width: min(calc(100% - 40px), var(--container-width));
	margin: 0 auto;
}


/* =========================================================
PAGE HEADER
========================================================= */

.page-header {
	position: relative;
	width: min(calc(100% - 40px), var(--container-width));
	margin: 0 auto 32px;
	padding: 38px 0 25px;
	border-bottom: 1px solid var(--color-border);
}

.page-header::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 82px;
	height: 1px;
	background: var(--color-dark);
}

.page-title {
	margin: 0;
	padding: 0;
	color: var(--color-text-dark);
	font-size: clamp(28px, 5vw, 36px);
	font-weight: 850;
	line-height: 1.3;
	letter-spacing: -0.05em;
}

.page-title::before {
	display: none;
}


/* =========================================================
CARD LIST
========================================================= */

.card-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.card {
	min-width: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	border-color: #c8bbab;
	box-shadow: none;
}

.card-link {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card-image {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: #e8e2d9;
	border-bottom: 0;
}

.card-image:empty::before {
	content: "이미지 준비 중";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #89847d;
	font-size: 14px;
}

.card-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.card:hover .card-image img {
	transform: scale(1.025);
}

.card-content {
	flex: 1;
	padding: 18px 18px 20px;
	display: flex;
	align-items: flex-start;
	background: #ffffff;
}

.card-title {
	margin: 0;
	color: var(--color-text-dark);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.48;
	letter-spacing: -0.035em;
}

.card-link:hover .card-title {
	color: var(--color-gold-dark);
}

.empty-message {
	grid-column: 1 / -1;
	margin: 0;
	padding: 60px 20px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 0;
	color: var(--color-text-soft);
	text-align: center;
}


/* =========================================================
PAGINATION
========================================================= */

.pagination {
	margin-top: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination p {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination a,
.pagination strong {
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.pagination a {
	background: #ffffff;
	border: 1px solid var(--color-border);
	color: #555b63;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

.pagination a:hover {
	background: #f2eee7;
	border-color: #c8baaa;
	color: var(--color-text-dark);
}

.pagination strong {
	background: var(--color-dark);
	border: 1px solid var(--color-dark);
	color: #ffffff;
}


/* =========================================================
POST
========================================================= */

.post {
	width: min(calc(100% - 40px), var(--container-width));
	max-width: var(--container-width);
	margin: 0 auto;
}


/* =========================================================
POST HEADER
========================================================= */

.post-header {
	position: relative;
	margin: 0 0 34px;
	padding: 38px 0 26px;
	border-bottom: 1px solid var(--color-border);
}

.post-header::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 86px;
	height: 1px;
	background: var(--color-dark);
}

.post-title {
	margin: 0;
	padding: 0;
	color: var(--color-text-dark);
	font-size: clamp(28px, 5vw, 36px);
	font-weight: 850;
	line-height: 1.3;
	letter-spacing: -0.055em;
}

.post-title::before {
	display: none;
}


/* =========================================================
POST CONTENT
========================================================= */

.post-content {
	position: relative;
	padding: 0px 50px;
	background: #ffffff;
	color: #343a42;
	font-size: 17px;
	line-height: 1.86;
}

.post-content > :first-child {
	margin-top: 0;
}

.post-content > :last-child {
	margin-bottom: 0;
}

.post-content p {
	margin: 0 0 19px;
}

.post-content p:empty {
	display: none;
}


/* =========================================================
H2
========================================================= */

.post-content h2 {
	position: relative;
	margin: 50px 0 21px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-dark);
	font-size: 27px;
	font-weight: 850;
	line-height: 1.38;
	letter-spacing: -0.05em;
}

.post-content h2:first-child {
	margin-top: 0;
}

.post-content h2::before {
	content: "";
	display: block;
	width: 34px;
	height: 2px;
	margin: 0 0 15px;
	background: var(--color-gold);
}

.post-content h2::after {
	display: none;
}


/* =========================================================
H3
========================================================= */

.post-content h3 {
	position: relative;
	margin: 36px 0 15px;
	padding: 0 0 0 17px;
	color: var(--color-text-dark);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.04em;
}

.post-content h3::before {
	content: "";
	position: absolute;
	top: 0.33em;
	bottom: auto;
	left: 0;
	width: 5px;
	height: 1.05em;
	border-radius: 0;
	background: var(--color-gold);
}


/* =========================================================
LISTS
========================================================= */

.post-content ul,
.post-content ol {
	margin: 18px 0 28px;
	padding-left: 26px;
}

.post-content li {
	margin: 0 0 9px;
}

.post-content ul {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-border-light);
}

.post-content ul li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 24px;
	border-bottom: 1px solid var(--color-border-light);
}

.post-content ul li::before {
	content: "";
	position: absolute;
	top: 1.25em;
	left: 5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-gold);
}


/* =========================================================
LINKS
========================================================= */

.post-content a:not(.item-widget-button) {
	color: var(--color-gold-dark);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-content a:not(.item-widget-button):hover {
	color: #755124;
}


/* =========================================================
BLOCKQUOTE
========================================================= */

.post-content blockquote {
	margin: 30px 0;
	padding: 20px 23px;
	background: var(--color-gold-soft);
	border: 0;
	border-left: 4px solid var(--color-gold);
	border-radius: 0;
	color: #4f4a43;
}


/* =========================================================
TABLE
========================================================= */

.post-content table {
	width: 100%;
	margin: 24px 0 31px;
	border-collapse: collapse;
	border-top: 2px solid var(--color-dark);
	background: #ffffff;
	font-size: 15px;
	line-height: 1.6;
}

.post-content th,
.post-content td {
	padding: 14px 15px;
	border: 0;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.post-content th {
	background: #f2eee7;
	color: var(--color-text-dark);
	font-weight: 800;
}

.post-content td:first-child {
	color: var(--color-gold-dark);
	font-weight: 700;
}


/* =========================================================
ITEM
========================================================= */

.item {
	position: relative;
	margin: 48px 0;
	padding: 20px 20px 34px 20px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	box-shadow: none;
}

.item:first-of-type {
	margin-top: 34px;
}

.item::before {
	display: none;
}


/* =========================================================
ITEM IMAGE
========================================================= */

.item-image {
	width: 100%;
	aspect-ratio: 2 / 1;
	margin: 0;
	display: block;
	object-fit: cover;
	border-radius: 0;
	background: #e7e1d8;
	transition:
		transform 0.22s ease,
		opacity 0.22s ease;
}

.item-image[data-item] {
	cursor: pointer;
}

.item-image[data-item]:hover {
	transform: none;
	box-shadow: none;
	opacity: 0.92;
}

.item-image[data-item]:active {
	opacity: 0.85;
}

.item-image[data-item]:focus-visible {
	outline: 3px solid rgba(181, 139, 74, 0.4);
	outline-offset: -3px;
}


/* =========================================================
ITEM NAME
========================================================= */

.item-name {
	position: relative;
	margin: 0px 0px 20px 0px !important;
	padding: 20px 0 20px !important;
	border-bottom: 1px solid var(--color-border-light) !important;
	color: var(--color-text-dark);
	font-size: 28px !important;
	font-weight: 850;
	line-height: 1.4;
	letter-spacing: -0.045em;
}

.item-name::before {
	content: "";
	position: absolute;
	top: auto;
	right: auto;
	bottom: -1px;
	left: 0;
	width: 44px;
	height: 2px;
	border-radius: 0;
	background: var(--color-gold);
}


/* =========================================================
ITEM WIDGET
========================================================= */

.item-widget {
	width: 100%;
	margin-top: 26px;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* =========================================================
ITEM BUTTON
========================================================= */

.item-widget-button {
	width: 100%;
	max-width: 500px;
	min-height: 52px;
	margin: 0 auto;
	padding: 13px 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--color-gold);
	border: 1px solid var(--color-gold);
	border-radius: 6px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.025em;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(181, 139, 74, 0.2);
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.item-widget-button::before {
	display: none;
}

.item-widget-button::after {
	content: "›";
	position: static;
	color: #ffffff;
	font-size: 21px;
	font-weight: 500;
	line-height: 1;
	transform: translateY(-1px);
	transition: transform 0.18s ease;
}

.item-widget-button:hover {
	background: var(--color-gold-dark);
	border-color: var(--color-gold-dark);
	transform: translateY(-1px);
	box-shadow: 0 5px 13px rgba(181, 139, 74, 0.28);
}

.item-widget-button:hover::after {
	transform: translate(2px, -1px);
}

.item-widget-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 7px rgba(181, 139, 74, 0.2);
}

.item-widget-button:disabled {
	background: #aaa9a5;
	border-color: #aaa9a5;
	cursor: not-allowed;
	box-shadow: none;
}


/* =========================================================
SEPARATORS
========================================================= */

.post + .container,
.container + .container {
	margin-top: 54px;
	padding-top: 40px;
	border-top: 1px solid var(--color-border);
}


/* =========================================================
FOOTER
========================================================= */

.footer {
	margin-top: auto;
	background: #f7f6f3;
	border-top: 1px solid #ded8ce;
}

.footer-inner {
	width: min(calc(100% - 40px), var(--container-width));
	min-height: 64px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-copy {
	color: #333333;
	font-size: 14px;
	text-align: center;
}

.footer-copy p {
	margin: 0;
}


/* =========================================================
FOCUS
========================================================= */

a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(181, 139, 74, 0.45);
	outline-offset: 3px;
}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {
	.card-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-content {
		padding: 0px 30px;
		font-size: 16px;
	}
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 760px) {
	:root {
		--header-height: 80px;
	}

	.inner {
		width: min(calc(100% - 30px), var(--container-width));
		gap: 16px;
	}

	.burger {
		display: flex;
		margin-left: auto;
	}

	.nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: 0;
		margin: 0;
		overflow: hidden;
		background: var(--color-dark);
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		border-bottom: 1px solid transparent;
		opacity: 0;
		visibility: hidden;
		transition:
			max-height 0.25s ease,
			opacity 0.18s ease,
			visibility 0.18s ease;
	}

	.nav.is-open {
		max-height: 420px;
		border-bottom-color: rgba(255, 255, 255, 0.1);
		opacity: 1;
		visibility: visible;
	}

	.menu {
		width: min(calc(100% - 30px), var(--container-width));
		margin: 0 auto;
		padding: 12px 0 16px;
		display: block;
	}

	.menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.menu li:last-child {
		border-bottom: 0;
	}

	.link {
		min-height: 46px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		color: rgba(255, 255, 255, 0.78);
	}

	.link::after {
		display: none;
	}

	.link.is-active {
		color: var(--color-gold-light);
	}

	.contents {
	    padding:0px 0px 54px 0px;
	}

	.container,
	.page-header,
	.post {
		width: 100%
	}
	
	.card-list {margin:0px 10px;}

	.page-header {
		margin: 0px 14px 27px 14px;
		padding: 32px 0 23px;
	}

	.page-title {
		font-size: 28px;
	}

	.post-header {
		margin: 0px 14px 27px 14px;
		padding: 32px 0 24px;
	}

	.post-title {
		font-size: 30px;
	}

	.post-content {
		padding: 0px 16px;
		font-size: 16px;
		line-height: 1.8;
	}

	.post-content h2 {
		margin-top: 42px;
		font-size: 23px;
	}

	.post-content h3 {
		margin-top: 30px;
		font-size: 19px;
	}

	.item {
		margin: 38px 0;
        padding: 14px 14px 34px 14px;
	}

	.item-name {
		font-size: 26px !important;
	}

	.item-widget {
		margin-top: 22px;
		padding: 0 18px;
	}

	.item-widget-button {
		min-height: 50px;
		padding: 12px 16px;
		font-size: 14px;
	}

	.post + .container,
	.container + .container {
		margin-top: 44px;
		padding-top: 34px;
	}

	.footer-inner {
		width: min(calc(100% - 30px), var(--container-width));
		min-height: 64px;
	}
}


/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 560px) {
	body {
		line-height: 1.72;
		word-break: normal;
	}

	.card-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.card-content {
		padding: 16px 15px 18px;
	}

	.card-title {
		font-size: 17px;
	}

	.post-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		font-size: 14px;
	}

	.item-name {
		font-size: 24px !important;
	}

	.item-widget {
		padding: 0 15px;
	}

	.item-widget-button {
		max-width: 100%;
	}

	.pagination {
		margin-top: 32px;
	}

	.pagination a,
	.pagination strong {
		min-width: 38px;
		height: 38px;
	}
}


/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}