:root {
	--spfa-primary: #0b5d3b;
	--spfa-primary-foreground: #ffffff;
	--spfa-secondary: #c58a2b;
	--spfa-accent: #e87d23;
	--spfa-accent-foreground: #ffffff;
	--spfa-background: #f8f9fa;
	--spfa-foreground: #1a2420;
	--spfa-muted: #eef1ee;
	--spfa-muted-foreground: #5c6b63;
	--spfa-border: #e2e6e3;
	--spfa-card: #ffffff;
	--spfa-radius: 0.625rem;
	--spfa-container: 80rem;
	--spfa-font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
	--spfa-font-heading: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--spfa-background);
	color: var(--spfa-foreground);
	font-family: var(--spfa-font-body);
	font-size: 1rem;
	line-height: 1.6;
}

body.spfa-nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--spfa-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--spfa-accent);
}

h1,
h2,
h3,
h4 {
	font-family: var(--spfa-font-heading);
	line-height: 1.2;
	font-weight: 600;
}

p {
	margin: 0 0 1rem;
}

:focus-visible {
	outline: 2px solid var(--spfa-primary);
	outline-offset: 3px;
}

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

.spfa-skip-link {
	position: absolute;
	left: 1rem;
	top: 0;
	z-index: 200;
	transform: translateY(-120%);
	background: var(--spfa-primary);
	color: #fff;
	padding: 0.7rem 1rem;
	border-radius: 0 0 var(--spfa-radius) var(--spfa-radius);
}

.spfa-skip-link:focus {
	transform: none;
	color: #fff;
}

.spfa-container {
	width: min(100%, var(--spfa-container));
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.spfa-container--narrow {
	width: min(100% - 3rem, 46rem);
}

.spfa-icon {
	width: 1rem;
	height: 1rem;
	flex: none;
}

.spfa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.25rem;
	min-height: 2.25rem;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 0.375rem;
	background: var(--spfa-accent);
	color: var(--spfa-accent-foreground);
	font: 500 0.875rem/1 var(--spfa-font-body);
	text-decoration: none;
	cursor: pointer;
}

.spfa-button:hover {
	color: var(--spfa-accent-foreground);
	filter: brightness(0.95);
}

.spfa-button--primary {
	background: var(--spfa-primary);
	color: #fff;
}

.spfa-button--primary:hover {
	color: #fff;
}

.spfa-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.spfa-utility {
	display: none;
	background: var(--spfa-primary);
	color: var(--spfa-primary-foreground);
	font-size: 0.875rem;
}

.spfa-utility a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.spfa-utility a:hover {
	color: inherit;
	opacity: 0.8;
}

.spfa-utility__inner,
.spfa-header__inner,
.spfa-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.spfa-utility__inner {
	padding: 0.5rem 0;
}

.spfa-utility__contacts {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.spfa-utility__region {
	margin: 0;
	color: color-mix(in srgb, #fff 80%, transparent);
}

.spfa-header__bar {
	background: var(--spfa-background);
	border-bottom: 1px solid transparent;
}

.spfa-header.is-scrolled .spfa-header__bar {
	background: color-mix(in srgb, var(--spfa-background) 92%, transparent);
	border-bottom-color: var(--spfa-border);
	backdrop-filter: blur(12px);
}

.spfa-header__inner {
	padding: 0.75rem 0;
}

.spfa-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.spfa-logo__img {
	width: auto;
	height: 3rem;
}

.spfa-logo--light .spfa-logo__img {
	height: 4.5rem;
}

.spfa-nav__list,
.spfa-footer__nav,
.spfa-footer__contact,
.spfa-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spfa-nav__list {
	display: none;
}

.spfa-nav__list a,
.spfa-footer__nav a {
	text-decoration: none;
}

.spfa-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.spfa-header__donate {
	display: none;
}

.spfa-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--spfa-foreground);
	cursor: pointer;
}

.spfa-menu-toggle .spfa-icon {
	width: 1.4rem;
	height: 1.4rem;
}

.spfa-menu-toggle__close {
	display: none;
}

.spfa-header.is-open .spfa-menu-toggle__open {
	display: none;
}

.spfa-header.is-open .spfa-menu-toggle__close {
	display: inline-flex;
}

.spfa-nav__donate {
	display: none;
	margin: 1rem 1rem 0;
}

.spfa-main {
	min-height: 40vh;
}

.spfa-entry__header {
	padding: 4.5rem 0 0;
}

.spfa-entry__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3rem);
}

.spfa-entry__title a {
	color: inherit;
	text-decoration: none;
}

.spfa-entry__title a:hover {
	color: var(--spfa-accent);
}

.spfa-entry__content {
	padding: 1.5rem 0 4.5rem;
}

.spfa-entry__content--builder {
	padding: 0;
}

.spfa-entry__content--builder > .spfa-entry__title {
	display: none;
}

.spfa-archive-head {
	padding: 4.5rem 0 0;
}

.spfa-archive-head__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
}

.spfa-archive-head__text {
	max-width: 40rem;
	margin-top: 0.75rem;
	color: var(--spfa-muted-foreground);
}

.navigation.pagination {
	width: min(100% - 3rem, var(--spfa-container));
	margin: 0 auto 4rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border-radius: 0.5rem;
	background: #fff;
	color: var(--spfa-foreground);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--spfa-primary);
	color: #fff;
}

.spfa-not-found {
	padding: 6rem 0;
}

.spfa-not-found__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--spfa-secondary);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spfa-not-found__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.spfa-not-found__text {
	color: var(--spfa-muted-foreground);
	font-size: 1.05rem;
}

.spfa-footer {
	background: var(--spfa-primary);
	color: #fff;
}

.spfa-footer a {
	color: color-mix(in srgb, #fff 78%, transparent);
	text-decoration: none;
}

.spfa-footer a:hover {
	color: var(--spfa-accent);
}

.spfa-footer__main {
	padding: 4rem 0;
}

.spfa-footer__grid {
	display: grid;
	gap: 2.5rem;
}

.spfa-footer__title {
	margin: 0 0 1.25rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spfa-footer__about {
	margin: 1.25rem 0 0;
	color: color-mix(in srgb, #fff 75%, transparent);
	font-size: 0.92rem;
}

.spfa-footer__nav,
.spfa-footer__contact {
	display: grid;
	gap: 0.85rem;
	font-size: 0.92rem;
}

.spfa-footer__contact li {
	display: flex;
	gap: 0.75rem;
	color: color-mix(in srgb, #fff 75%, transparent);
}

.spfa-footer__contact .spfa-icon {
	margin-top: 0.2rem;
	color: var(--spfa-accent);
}

.spfa-newsletter__row {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.spfa-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 1px solid color-mix(in srgb, #fff 25%, transparent);
	border-radius: 0.5rem;
	background: color-mix(in srgb, #fff 10%, transparent);
	color: #fff;
	padding: 0.7rem 0.9rem;
	font: inherit;
}

.spfa-newsletter input[type="email"]::placeholder {
	color: color-mix(in srgb, #fff 60%, transparent);
}

.spfa-newsletter button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--spfa-accent);
	color: #fff;
	cursor: pointer;
}

.spfa-newsletter button:hover {
	filter: brightness(0.95);
}

.spfa-newsletter__hp {
	position: absolute;
	left: -9999px;
}

.spfa-newsletter__notice {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
}

.spfa-footer__bar {
	border-top: 1px solid color-mix(in srgb, #fff 15%, transparent);
}

.spfa-footer__bar-inner {
	padding: 1.4rem 0;
	color: color-mix(in srgb, #fff 60%, transparent);
	font-size: 0.75rem;
}

.spfa-footer__bar p {
	margin: 0;
}

.spfa-footer__legal {
	display: flex;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.spfa-logo__img {
		height: 3.5rem;
	}

	.spfa-logo--light .spfa-logo__img {
		height: 5rem;
	}

	.spfa-header__donate {
		display: inline-flex;
	}
}

@media (min-width: 1024px) {
	.spfa-utility {
		display: block;
	}

	.spfa-footer__grid {
		grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
		gap: 3rem;
	}
}

@media (min-width: 1280px) {
	.spfa-nav {
		display: flex;
		align-items: center;
	}

	.spfa-nav__list {
		display: flex;
		align-items: center;
		gap: 0.25rem;
	}

	.spfa-nav__list a {
		display: inline-flex;
		align-items: center;
		height: 2.25rem;
		padding: 0 0.75rem;
		border-radius: 0.4rem;
		color: var(--spfa-foreground);
		font-size: 0.875rem;
		font-weight: 500;
	}

	.spfa-nav__list a:hover {
		background: var(--spfa-muted);
		color: var(--spfa-primary);
	}

	.spfa-nav__list .is-current a,
	.spfa-nav__list .current-menu-item > a,
	.spfa-nav__list .current_page_item > a {
		color: var(--spfa-primary);
	}

	.spfa-menu-toggle,
	.spfa-nav__donate {
		display: none;
	}
}

@media (max-width: 1279px) {
	.spfa-header.is-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(13, 20, 16, 0.45);
	}

	.spfa-menu-toggle {
		position: relative;
		z-index: 130;
	}

	.spfa-nav {
		position: fixed;
		z-index: 120;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: min(100%, 24rem);
		padding: 5rem 0.5rem 2rem;
		background: #fff;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow: auto;
	}

	.spfa-header.is-open .spfa-nav {
		transform: none;
	}

	.spfa-nav__list {
		display: flex;
		flex-direction: column;
	}

	.spfa-nav__list a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0.15rem 0.5rem;
		padding: 0.85rem 1rem;
		border-radius: 0.6rem;
		color: var(--spfa-foreground);
		font-weight: 500;
	}

	.spfa-nav__list .is-current a,
	.spfa-nav__list .current-menu-item > a,
	.spfa-nav__list .current_page_item > a,
	.spfa-nav__list a:hover {
		background: var(--spfa-muted);
		color: var(--spfa-primary);
	}

	.spfa-nav__donate {
		display: inline-flex;
	}
}

@media (max-width: 639px) {
	.spfa-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.spfa-nav {
		transition: none;
	}
}
