.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: linear-gradient(
		to bottom,
		rgba(244, 236, 223, 0.98),
		rgba(244, 236, 223, 0.94)
	);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(139, 111, 82, 0.2);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-9);
	min-height: 72px;
}
.header-brand {
	display: flex;
	align-items: center;
	min-width: 0;
}
.header-logo-link {
	display: flex;
	align-items: center;
	gap: var(--space-5);
}
.header-logo-mark {
	width: 40px;
	height: 40px;
	border-radius: 18px;
	background: radial-gradient(circle at 30% 0, #fdf7ec, #d8b894);
	box-shadow: 0 8px 0 rgba(120, 94, 69, 0.9);
	border: 2px solid rgba(72, 53, 37, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
}
.header-logo-card {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 34px;
	border-radius: 10px;
	background: #223048;
	color: #fdf7eb;
	font-family: var(--font-display);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	box-shadow: 0 4px 0 rgba(6, 9, 15, 0.9);
}
.header-logo-text-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}
.header-logo-title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	white-space: nowrap;
}
.header-logo-subtitle {
	font-family: var(--font-serif);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-soft);
	white-space: nowrap;
}
.header-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}
.header-nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-7);
}
.header-nav-item {
	position: relative;
}
.header-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-3) var(--space-1);
	font-family: var(--font-display);
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-soft);
	border-radius: 999px;
	transition:
		color var(--transition-base),
		background-color var(--transition-base),
		box-shadow var(--transition-fast),
		transform var(--transition-fast);
}
.header-nav-link:hover {
	color: var(--color-primary);
	background-color: rgba(255, 250, 241, 0.9);
	box-shadow: 0 6px 16px rgba(82, 59, 38, 0.18);
	transform: translateY(-1px);
}
.header-nav-link:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 1px rgba(10, 6, 2, 0.9),
		0 0 0 3px rgba(179, 84, 50, 0.6);
	background-color: #fffaf1;
}
.header-nav-highlight .header-nav-link {
	padding-inline: var(--space-5);
	border-radius: 999px;
	background-color: var(--color-primary);
	color: #fdf5ec !important;
	box-shadow: 0 8px 0 rgba(82, 38, 20, 0.9);
}
.header-nav-highlight .header-nav-link:hover {
	background-color: var(--color-primary-soft);
	box-shadow: 0 9px 0 rgba(82, 38, 20, 0.95);
}
.header-toggle {
	display: none;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-4);
	border-radius: 999px;
	border: 1px solid rgba(117, 90, 64, 0.6);
	background-color: rgba(255, 250, 241, 0.92);
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.header-toggle-box {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}
.header-toggle-bar {
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background-color: #3b2b1e;
	transition:
		transform var(--transition-fast),
		opacity var(--transition-fast),
		background-color var(--transition-fast);
}
.header-toggle-text {
	color: var(--color-text-soft);
}
.header-toggle:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 1px rgba(10, 6, 2, 0.9),
		0 0 0 3px rgba(179, 84, 50, 0.6);
}
.header-nav-open .header-toggle-bar:first-child {
	transform: translateY(3px) rotate(42deg);
}
.header-nav-open .header-toggle-bar:last-child {
	transform: translateY(-3px) rotate(-42deg);
}
.header-nav-open .header-toggle-text {
	opacity: 0.9;
}
.header-nav-open .header-toggle {
	background-color: #1e2734;
	color: #f4eee0;
	border-color: rgba(244, 238, 226, 0.6);
}
.header-nav-open .header-toggle-bar {
	background-color: #f7efe0;
}
@media (max-width: 960px) {
	.header-inner {
		min-height: 68px;
	}
	.header-logo-subtitle {
		display: none;
	}
	.header-nav {
		position: fixed;
		inset: 64px 0 auto 0;
		z-index: 38;
		pointer-events: none;
	}
	.header-nav-list {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: var(--space-4);
		margin: var(--space-5) var(--space-7);
		padding: var(--space-6) var(--space-7);
		border-radius: 24px;
		background: linear-gradient(
			135deg,
			rgba(31, 39, 52, 0.97),
			rgba(25, 31, 42, 0.98)
		);
		box-shadow: var(--shadow-deep);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition:
			max-height var(--transition-slow),
			opacity var(--transition-base),
			transform var(--transition-base);
	}
	.header-nav-link {
		padding-block: var(--space-3);
		padding-inline: 0;
		color: #f5eee3;
	}
	.header-nav-highlight .header-nav-link {
		padding-inline: 0;
		background: none;
		box-shadow: none;
		color: var(--color-primary-soft);
	}
	.header-toggle {
		z-index: 111;
		display: inline-flex;
	}
	.header-nav-open .header-nav {
		pointer-events: auto;
	}
	.header-nav-open .header-nav-list {
		max-height: 260px;
		opacity: 1;
		transform: translateY(0);
	}
	.site-header::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(9, 6, 2, 0.55);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--transition-base);
		z-index: 37;
	}
	.header-nav-open.site-header::after {
		opacity: 1;
		pointer-events: auto;
	}
}
@media (max-width: 640px) {
	.header-inner {
		padding-inline: var(--space-6);
	}
	.header-logo-title {
		font-size: 0.95rem;
		letter-spacing: 0.22em;
	}
	.header-logo-mark {
		width: 36px;
		height: 36px;
	}
	.header-logo-card {
		width: 26px;
		height: 30px;
		font-size: 0.72rem;
	}
	.header-nav-list {
		margin-inline: var(--space-6);
	}
}
