:root {
	--bg: #f3f6f8;
	--surface: #ffffff;
	--surface-alt: #eef3f7;
	--text: #142433;
	--muted: #5f7283;
	--primary: #0f6d5f;
	--primary-dark: #0b564b;
	--border: #d5dde5;
	--radius: 12px;
	--shadow: 0 12px 34px rgba(8, 29, 45, 0.08);
	--container: 1100px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	background: radial-gradient(circle at top right, #d7e7f4 0, rgba(215, 231, 244, 0) 35%), var(--bg);
	color: var(--text);
	font-family: "Avenir Next", "Trebuchet MS", sans-serif;
	line-height: 1.7;
}

a {
	color: inherit;
	text-decoration-color: rgba(15, 109, 95, 0.35);
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	text-decoration-color: var(--primary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: min(var(--container), calc(100% - 2.5rem));
	margin-inline: auto;
}

.section {
	padding: 3rem 0 4rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(213, 221, 229, 0.9);
	overflow: visible;
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 76px;
}

.site-branding {
	margin-right: auto;
}

.site-title {
	margin: 0;
	font-size: 1.15rem;
	letter-spacing: 0.01em;
}

.site-title a {
	text-decoration: none;
	color: var(--text);
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.35rem;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	padding: 0;
	border-radius: 8px;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.menu-toggle::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.primary-nav {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	display: none;
	width: min(280px, calc(100vw - 2rem));
	padding: 0.75rem;
	background: rgba(8, 21, 33, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 12px;
	box-shadow: 0 18px 32px rgba(8, 21, 33, 0.25);
	z-index: 100;
}

.primary-nav.is-open {
	display: block;
}

.primary-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	text-decoration: none;
	font-weight: 600;
	color: #fff;
}

.primary-menu .current-menu-item > a,
.primary-menu a:hover,
.primary-menu a:focus-visible {
	color: var(--primary);
}

.page-header {
	margin-bottom: 1.8rem;
}

.page-title,
.entry-title {
	margin: 0 0 0.7rem;
	line-height: 1.25;
}

.page-title {
	font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.entry-title {
	font-size: clamp(1.85rem, 2.8vw, 2.8rem);
}

.page-intro,
.archive-description,
.entry-meta,
.post-card__meta {
	color: var(--muted);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.2rem;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: clip;
	box-shadow: var(--shadow);
}

.post-card__image {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.post-card__content {
	padding: 1.1rem 1.2rem 1.25rem;
}

.post-card__title {
	font-size: 1.22rem;
	margin: 0.3rem 0 0.6rem;
	line-height: 1.35;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt > :last-child {
	margin-bottom: 0;
}

.button {
	display: inline-block;
	border-radius: 8px;
	padding: 0.45rem 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.button--text {
	color: var(--primary);
	padding: 0;
}

.button--text:hover,
.button--text:focus-visible {
	color: var(--primary-dark);
}

.single-entry,
.page-entry {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(1.1rem, 2.5vw, 2rem);
	box-shadow: var(--shadow);
}

.entry-header {
	margin-bottom: 1.25rem;
}

.entry-meta {
	margin: 0 0 0.65rem;
	font-size: 0.96rem;
}

.entry-media {
	margin: 0 0 1.2rem;
}

.entry-image {
	border-radius: 10px;
	width: 100%;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.8rem;
}

.nav-links a,
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid var(--border);
	background: var(--surface);
}

.page-numbers.current {
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
}

.site-footer {
	display: none !important;
	visibility: hidden;
}

.site-footer__inner {
	display: none;
}

@media (max-width: 900px) {
	.primary-nav {
		right: 0.75rem;
		width: min(250px, calc(100vw - 1.5rem));
	}
}

/* Front Page */
.site-header-contact {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	margin-left: auto;
}

.site-header-contact__link {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.site-header-contact__link:hover,
.site-header-contact__link:focus-visible {
	color: var(--primary-dark);
}

.site-header-language {
	position: relative;
	display: inline-block;
	margin-left: 1.2rem;
	flex-shrink: 0;
}

.site-header-language[open] {
	z-index: 130;
}

.site-header-language__current {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.35rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.site-header-language__current::-webkit-details-marker {
	display: none;
}

.site-header-language__list {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	min-width: 92px;
	background: rgba(8, 21, 33, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(8, 21, 33, 0.2);
	z-index: 140;
}

.site-header-language__list a {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.35rem;
	color: #fff;
	font-size: 0.9rem;
	text-decoration: none;
	border-radius: 6px;
}

.site-header-language__list a:hover,
.site-header-language__list a:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.home .site-main,
.front-page .site-main {
	padding-top: 0;
}

.home .site-header,
.front-page .site-header {
	position: fixed;
	inset: 0 0 auto;
	background: transparent !important;
	border-bottom: 0 !important;
	backdrop-filter: none;
	pointer-events: none;
	box-shadow: none;
}

.home .site-header__inner,
.front-page .site-header__inner {
	position: absolute;
	inset: 0 0 auto;
	min-height: 96px;
}

.home .site-branding,
.home .site-header-contact,
.home .menu-toggle,
.home .site-header-language,
.home .primary-nav,
.front-page .site-branding,
.front-page .site-header-contact,
.front-page .menu-toggle,
.front-page .site-header-language,
.front-page .primary-nav {
	pointer-events: auto;
}

.home .site-branding,
.front-page .site-branding {
	margin-right: 0;
}

.home .site-description,
.front-page .site-description {
	display: none;
}

.home .site-title,
.front-page .site-title {
	margin: 0;
}

.home .site-title a,
.front-page .site-title a {
	display: inline-block;
	position: relative;
	padding-top: 0.3rem;
	color: #0d4378;
	font-size: clamp(2.05rem, 4vw, 4.1rem);
	line-height: 0.95;
	letter-spacing: 0.09em;
	font-weight: 500;
	text-decoration: none;
}

.home .site-title a::before,
.front-page .site-title a::before {
	content: "";
	position: absolute;
	top: -0.05em;
	left: 0.22em;
	width: 0.16em;
	height: 0.16em;
	background: #f39a14;
	border-radius: 1px;
}

.home .site-header-contact,
.front-page .site-header-contact {
	position: absolute;
	left: 50%;
	top: 0.95rem;
	transform: translateX(-50%);
	gap: clamp(1.8rem, 3.2vw, 5rem);
	pointer-events: auto;
	margin-left: 0;
	z-index: 62;
}

.home .site-header-contact__link,
.front-page .site-header-contact__link {
	color: #f39a14;
	font-size: clamp(1rem, 1.55vw, 2.05rem);
}

.home .site-header-contact__link:hover,
.home .site-header-contact__link:focus-visible,
.front-page .site-header-contact__link:hover,
.front-page .site-header-contact__link:focus-visible {
	color: #ffc165;
}

.home .menu-toggle,
.front-page .menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 6rem;
	top: 0.5rem;
	padding: 0.2rem 0.45rem;
	border: 0;
	background: transparent;
	color: #f39a14;
	font-size: 0;
	line-height: 1;
}

.home .site-header-language,
.front-page .site-header-language {
	position: absolute;
	right: 1rem;
	top: 0.95rem;
	margin-left: 0;
	z-index: 62;
}

.home .site-header-language__current,
.front-page .site-header-language__current {
	color: #f39a14;
	padding: 0.15rem 0.3rem;
}

.home .site-header-language__list,
.front-page .site-header-language__list {
	top: calc(100% + 0.25rem);
}

.home .primary-nav,
.front-page .primary-nav {
	position: absolute;
	left: auto;
	right: 1.25rem;
	top: calc(100% - 8px);
	display: none;
	width: min(260px, calc(100vw - 2rem));
	padding: 0.8rem;
	background: rgba(8, 21, 33, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 12px;
}

.home .primary-nav.is-open,
.front-page .primary-nav.is-open {
	display: block;
}

.home .primary-menu,
.front-page .primary-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.8rem;
}

.home .primary-menu a,
.front-page .primary-menu a {
	color: #fff;
}

.front-hero {
	position: relative;
	width: 100%;
	height: 100svh;
	min-height: 100svh;
	overflow: hidden;
	background-color: #111f2a;
	background-image: var(--front-hero-bg-image, linear-gradient(120deg, #0f2234 0%, #1d3648 52%, #325467 100%));
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.front-hero__carousel {
	position: absolute;
	inset: 0;
	height: 100%;
	overflow: hidden;
}

.front-hero__track {
	display: flex;
	height: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.front-hero__slide {
	position: relative;
	display: block;
	flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
	overflow: hidden;
}

.front-hero__slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--front-slide-image, var(--front-hero-bg-image, linear-gradient(120deg, #0f2234 0%, #1d3648 52%, #325467 100%)));
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transform: scale(1.03);
	transition: transform 8s ease-out;
	will-change: transform;
	z-index: 0;
}

.front-hero__slide.is-active::before {
	transform: scale(1.14);
}

.front-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 13, 22, 0.3) 0, rgba(5, 13, 22, 0.5) 38%, rgba(5, 13, 22, 0.76) 100%);
	pointer-events: none;
	z-index: 2;
}

.site-footer {
	display: none;
	visibility: hidden;
}

.home .site-footer,
.front-page .site-footer {
	display: none !important;
	visibility: hidden;
}

@media (max-width: 1080px) {
	.home .site-header__inner,
	.front-page .site-header__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.45rem 0.8rem;
		min-height: auto;
		padding-top: 0.65rem;
		padding-bottom: 0.45rem;
	}

	.home .site-header-contact,
	.front-page .site-header-contact {
		position: static;
		order: 3;
		width: 100%;
		transform: none;
		justify-content: center;
		gap: 0.7rem 1.2rem;
		flex-wrap: wrap;
		margin-top: 0.1rem;
	}

	.home .menu-toggle,
	.front-page .menu-toggle {
		position: static;
		order: 1;
		margin-left: auto;
		padding-right: 0;
	}

	.home .site-header-language,
	.front-page .site-header-language {
		position: static;
		order: 2;
	}
}

@media (max-width: 900px) {
	.home .site-header__inner,
	.front-page .site-header__inner {
		padding-top: 0.5rem;
	}

	.home .site-title a,
	.front-page .site-title a {
		font-size: clamp(1.6rem, 8vw, 2.3rem);
	}

	.home .site-header-contact__link,
	.front-page .site-header-contact__link {
		font-size: 1rem;
	}
}
