@font-face {
	font-family: "Toracles Fell";
	src: url("./candidate2/fonts/im-fell-english-0.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("./candidate2/fonts/source-serif-4-0.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body .skip-link {
	position: absolute;
	z-index: 10000;
	top: -4rem;
	left: 1rem;
	padding: 0.75rem 1rem;
	background: #f6efe0;
	color: #0a0a0c;
	font: 600 1rem/1.3 "Source Serif 4", Georgia, serif;
	text-decoration: none;
	transform: none;
}

body .skip-link:focus {
	top: 1rem;
	transform: none;
}

#masthead.site-header {
	--header-text: var(--text, #e4dccd);
	--header-muted: var(--muted, #a99f8e);
	--header-gold: var(--gold, #cdb07a);
	--header-line: rgba(205, 176, 122, 0.22);
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(10, 10, 12, 0.96);
	border-bottom: 1px solid var(--header-line);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

#masthead .header-inner {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 36px));
	min-height: 70px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 22px;
}

#masthead .brand {
	min-height: 48px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--header-text);
	text-decoration: none;
}

#masthead .brand-mark {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	object-fit: contain;
	border: 1px solid var(--header-line);
	border-radius: 50%;
	background: transparent;
}

#masthead .brand-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.05;
}

#masthead .brand-text strong {
	color: var(--header-text);
	font-family: "Toracles Fell", Georgia, serif;
	font-size: 1.55rem;
	font-weight: 400;
	letter-spacing: 0.035em;
}

#masthead .brand-text small {
	color: var(--header-muted);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 0.75rem;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
	white-space: nowrap;
}

#masthead .primary-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(7px, 1.15vw, 16px);
	border: 0;
	background: transparent;
}

#masthead .primary-nav a {
	box-sizing: border-box;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 3px;
	border: 0;
	background: transparent;
	color: var(--header-text);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	text-underline-offset: 0.22em;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}

#masthead .primary-nav a:hover,
#masthead .primary-nav a:focus-visible,
#masthead .primary-nav a[aria-current="page"] {
	color: var(--header-gold);
	text-decoration: underline;
}

#masthead .primary-nav .nav-cta {
	min-height: 40px;
	margin-left: 4px;
	padding: 0 12px;
	border: 1px solid var(--header-line);
	color: var(--header-gold);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#masthead .primary-nav .nav-cta:hover,
#masthead .primary-nav .nav-cta:focus-visible {
	border-color: var(--header-gold);
	background: rgba(205, 176, 122, 0.08);
	text-decoration: none;
}

#masthead .menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--header-line);
	border-radius: 2px;
	background: transparent;
	color: var(--header-text);
	cursor: pointer;
}

#masthead .menu-toggle:focus-visible {
	outline: 2px solid var(--header-gold);
	outline-offset: 3px;
}

#masthead .menu-lines,
#masthead .menu-lines::before,
#masthead .menu-lines::after {
	position: relative;
	width: 19px;
	height: 1px;
	display: block;
	margin: 0 auto;
	background: currentColor;
	content: "";
	transform: none;
}

#masthead .menu-lines::before,
#masthead .menu-lines::after {
	position: absolute;
	left: 0;
}

#masthead .menu-lines::before { top: -6px; }
#masthead .menu-lines::after { top: 6px; }

#masthead .sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 1080px) {
	#masthead .header-inner {
		min-height: 68px;
		flex-wrap: wrap;
		gap: 0 16px;
		padding: 9px 0;
	}

	#masthead .menu-toggle {
		margin-left: auto;
		display: inline-flex;
	}

	#masthead .primary-nav {
		width: 100%;
		margin: 9px 0 0;
		display: none;
		flex: 0 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		border: 0;
		border-top: 1px solid var(--header-line);
		padding-top: 8px;
	}

	#masthead.is-open .primary-nav {
		display: flex;
	}

	#masthead .primary-nav a {
		width: 100%;
		min-height: 44px;
		padding: 0 12px;
		border-bottom: 1px solid var(--header-line);
		background: rgba(19, 19, 24, 0.72);
	}

	#masthead .primary-nav .nav-cta {
		width: auto;
		min-height: 44px;
		margin: 4px 0 0;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	#masthead .primary-nav a {
		transition: none;
	}
}
