@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&display=swap");

:root {
	--font-main: "Alexandria", Tahoma, Arial, sans-serif;
	--brand: #2e666d;
	--brand-dark: #16383d;
	--ink: #101514;
	--muted: #64736f;
	--paper: #ffffff;
	--soft: #eef3f2;
	--card: #f7f9f8;
	--line: rgba(22, 56, 61, 0.16);
	--shadow: 0 12px 28px rgba(22, 56, 61, 0.08);
	--container: 1180px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #f4fbf9;
	--muted: #d1ddda;
	--paper: #0d1718;
	--soft: #17282b;
	--card: #1a2b2e;
	--line: rgba(214, 235, 231, 0.24);
	--shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.8;
	margin: 0;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration-color: rgba(46, 102, 109, 0.45);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--brand);
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

.container {
	margin-inline: auto;
	max-width: var(--container);
	padding-inline: clamp(16px, 4vw, 28px);
}

.screen-reader-text {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	background: #fff;
	color: var(--brand-dark);
	clip: auto;
	height: auto;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	padding: 0.75rem 1rem;
	width: auto;
	z-index: 20;
}

.site-header {
	background: var(--brand);
	color: #fff;
}

.search-form {
	display: flex;
}

.header-actions .search-form {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	max-width: 330px;
	overflow: hidden;
	width: 100%;
}

.search-form label {
	flex: 1;
}

.search-field {
	background: rgba(255, 255, 255, 0.08);
	border: 0;
	color: #fff;
	min-height: 34px;
	outline: 0;
	padding-inline: 0.9rem;
	width: 100%;
}

.search-field::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.search-submit {
	background: #fff;
	border: 0;
	border-radius: 0;
	color: var(--brand-dark);
	font-weight: 900;
	padding-inline: 0.9rem;
}

.header-main {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-height: 100px;
	padding-block: 0.9rem;
}

.site-branding {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	min-width: 0;
}

.custom-logo,
.site-logo-fallback img {
	height: 58px;
	object-fit: contain;
	width: 58px;
}

.site-title {
	font-size: clamp(1.55rem, 3vw, 2.3rem);
	font-weight: 900;
	line-height: 1;
	margin: 0;
}

.site-title a {
	color: #fff;
	text-decoration: none;
}

.site-description {
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.86rem;
	margin: 0.25rem 0 0;
}

.header-actions {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	min-width: min(360px, 42vw);
}

.theme-toggle,
.menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.theme-toggle::before {
	content: "☾";
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

:root[data-theme="dark"] .theme-toggle::before {
	content: "☀";
	font-size: 17px;
}

.theme-toggle:hover,
.menu-toggle:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.menu-toggle {
	display: none;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
	background: currentColor;
	border-radius: 999px;
	content: "";
	display: block;
	height: 2px;
	width: 17px;
}

.menu-toggle span::before {
	transform: translateY(-6px);
}

.menu-toggle span::after {
	transform: translateY(4px);
}

.site-navigation {
	background: var(--brand-dark);
}

.site-navigation ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-navigation a {
	color: #fff;
	display: block;
	font-size: 0.92rem;
	font-weight: 900;
	padding: 0.75rem 0.95rem;
	text-decoration: none;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
	background: rgba(255, 255, 255, 0.12);
}

.site-main {
	padding-block: clamp(1.4rem, 4vw, 2.6rem);
}

.section {
	margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.grid4 {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature2 {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-layout {
	align-items: start;
	display: grid;
	gap: 1.4rem;
	grid-template-columns: minmax(0, 1fr) 300px;
}

.news-list {
	background: var(--card);
	border: 1px solid var(--line);
}

.news-card,
.feature-card,
.list-card,
.compact-card {
	background: var(--card);
	border: 1px solid var(--line);
	overflow: hidden;
}

.news-card,
.feature-card,
.list-card {
	box-shadow: none;
}

.news-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.news-card__media,
.feature-card__media,
.list-card__media {
	background: transparent;
	display: block;
	overflow: visible;
	text-decoration: none;
}

.news-card__media img,
.feature-card__media img,
.list-card__media img {
	height: auto;
	width: 100%;
}

.news-card__media img {
	aspect-ratio: 16 / 10;
	max-height: none;
	object-fit: cover;
	object-position: center top;
}

.feature-card__media img {
	aspect-ratio: 16 / 10;
	max-height: none;
	object-fit: cover;
	object-position: center top;
}

.list-card__media img {
	aspect-ratio: 4 / 3;
	max-height: none;
	object-fit: cover;
	object-position: center top;
}

.news-card__media {
	aspect-ratio: auto;
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0.9rem;
}

.post-category {
	align-self: flex-start;
	background: var(--brand);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 0.55rem;
	padding: 0.35rem 0.48rem;
	text-decoration: none;
}

.news-card__title,
.feature-card__title,
.list-card__title {
	color: var(--brand-dark);
	font-weight: 900;
	line-height: 1.28;
	margin: 0;
}

:root[data-theme="dark"] .news-card__title,
:root[data-theme="dark"] .feature-card__title,
:root[data-theme="dark"] .list-card__title {
	color: #e6f2f0;
}

.news-card__title {
	font-size: clamp(0.98rem, 1.15vw, 1.12rem);
	line-height: 1.45;
}

.news-card__title a,
.feature-card__title a,
.list-card__title a {
	text-decoration: none;
}

.post-meta {
	align-items: center;
	border-top: 1px solid var(--line);
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8rem;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.65rem;
}

.feature-card {
	display: grid;
	grid-template-columns: 44% minmax(0, 1fr);
	min-height: 0;
}

.feature-card__media {
	aspect-ratio: auto;
}

.feature-card__body {
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

.feature-card__title {
	font-size: clamp(1.08rem, 1.65vw, 1.38rem);
	line-height: 1.45;
	margin-bottom: 0.65rem;
}

.feature-card__excerpt {
	color: var(--muted);
	font-size: 0.95rem;
}

.feature-card__excerpt p {
	margin: 0;
}

.section-header {
	align-items: center;
	border-bottom: 3px solid var(--brand);
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding-bottom: 0.45rem;
}

.section-header h2 {
	color: var(--brand-dark);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.3;
	margin: 0;
}

.section-header a {
	color: var(--brand);
	font-size: 0.9rem;
	font-weight: 900;
	text-decoration: none;
}

:root[data-theme="dark"] .section-header h2 {
	color: #e6f2f0;
}

.category-strip {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.list-card {
	border: 0;
	border-bottom: 1px solid var(--line);
	display: grid;
	gap: 1rem;
	grid-template-columns: 190px minmax(0, 1fr);
	padding: 0.85rem;
}

.list-card:last-child {
	border-bottom: 0;
}

.list-card__media {
	aspect-ratio: auto;
}

.list-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.list-card__title {
	font-size: clamp(1rem, 1.35vw, 1.24rem);
	line-height: 1.5;
	margin-bottom: 0.4rem;
}

.list-card__excerpt {
	color: var(--muted);
	font-size: 0.9rem;
}

.list-card__excerpt p {
	margin: 0;
}

.media-placeholder {
	align-items: center;
	background: var(--soft);
	color: var(--brand-dark);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	height: 100%;
	justify-content: center;
	min-height: 120px;
	text-align: center;
	width: 100%;
}

:root[data-theme="dark"] .media-placeholder {
	color: #e6f2f0;
}

.media-placeholder img {
	height: 54px;
	object-fit: contain;
	width: 54px;
}

.news-sidebar {
	display: grid;
	gap: 1rem;
}

.widget {
	background: var(--card);
	border: 1px solid var(--line);
	padding: 1rem;
}

.widget-title {
	border-bottom: 3px solid var(--brand);
	color: var(--brand-dark);
	font-size: 1.05rem;
	font-weight: 900;
	margin: 0 0 0.8rem;
	padding-bottom: 0.45rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li + li {
	border-top: 1px solid var(--line);
	margin-top: 0.55rem;
	padding-top: 0.55rem;
}

.archive-header {
	background: var(--card);
	border: 1px solid var(--line);
	border-bottom: 4px solid var(--brand);
	margin-bottom: 1rem;
	padding: 1rem;
}

.archive-title {
	color: var(--brand-dark);
	font-size: clamp(1.7rem, 4vw, 2.7rem);
	line-height: 1.18;
	margin: 0;
}

:root[data-theme="dark"] .archive-title,
:root[data-theme="dark"] .widget-title {
	color: #e6f2f0;
}

.archive-description {
	color: var(--muted);
	margin-top: 0.45rem;
}

.article-container {
	max-width: 900px;
}

.article {
	background: var(--card);
	border: 1px solid var(--line);
	padding: clamp(1rem, 4vw, 2.4rem);
}

.article-header {
	border-bottom: 1px solid var(--line);
	margin-bottom: 1.2rem;
	padding-bottom: 1rem;
}

.article-title {
	color: var(--brand-dark);
	font-size: clamp(2rem, 5vw, 3.6rem);
	font-weight: 900;
	line-height: 1.12;
	margin: 0.45rem 0 0.8rem;
}

:root[data-theme="dark"] .article-title {
	color: #e6f2f0;
}

.share-buttons {
	align-items: center;
	background: transparent;
	border: 0;
	display: flex;
	margin-top: 1rem;
	padding: 0;
}

.share-buttons button {
	background: var(--brand);
	border: 1px solid var(--line);
	color: #fff;
	font-weight: 900;
	padding: 0.55rem 0.85rem;
}

.share-buttons button:hover {
	background: var(--brand-dark);
}

.article-image {
	margin: 0 0 1.4rem;
	overflow: hidden;
}

.article-image img {
	aspect-ratio: 16 / 9;
	background: var(--soft);
	object-fit: contain;
	width: 100%;
}

.entry-content {
	font-size: clamp(1.06rem, 1.45vw, 1.2rem);
	line-height: 1.95;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content > * + * {
	margin-block-start: 1.15em;
}

.entry-content p:empty {
	display: none;
}

.entry-content a {
	overflow-wrap: anywhere;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--brand-dark);
	font-weight: 900;
	line-height: 1.25;
	margin-block-start: 1.55em;
}

:root[data-theme="dark"] .entry-content h2,
:root[data-theme="dark"] .entry-content h3,
:root[data-theme="dark"] .entry-content h4,
:root[data-theme="dark"] .compact-card__title,
:root[data-theme="dark"] .page-numbers {
	color: #e6f2f0;
}

:root[data-theme="dark"] a {
	text-decoration-color: rgba(198, 224, 220, 0.45);
}

:root[data-theme="dark"] .post-category {
	background: #3d7b83;
	color: #ffffff;
}

.entry-content img,
.entry-content figure,
.entry-content iframe,
.entry-content video,
.entry-content table,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content img {
	height: auto;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 0.65rem;
}

.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] {
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
}

.entry-content blockquote {
	background: var(--soft);
	border-inline-start: 5px solid var(--brand);
	margin-inline: 0;
	padding: 1rem;
}

.entry-content pre {
	background: var(--soft);
	border: 1px solid var(--line);
	overflow-x: auto;
	padding: 1rem;
}

.entry-content [style*="font-size"] {
	font-size: inherit;
}

.entry-content [style*="font-family"] {
	font-family: inherit;
}

.entry-content [style*="color"] {
	color: inherit !important;
}

.entry-content [style*="background"] {
	background: transparent !important;
}

.related-posts {
	border-top: 4px solid var(--brand);
	margin-top: 2rem;
	padding-top: 1rem;
}

.article-nav {
	background: var(--card);
	border: 1px solid var(--line);
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1rem;
	padding: 1rem;
}

.article-nav a {
	color: var(--brand-dark);
	font-weight: 900;
	text-decoration: none;
}

:root[data-theme="dark"] .article-nav a {
	color: #e6f2f0;
}

.related-posts h2 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	margin: 0 0 1rem;
}

.related-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-card {
	background: var(--card);
}

.compact-card a {
	display: block;
	padding: 0.65rem;
	text-decoration: none;
}

.compact-card__media {
	aspect-ratio: 4 / 3;
	background: var(--soft);
	display: block;
	margin-bottom: 0.65rem;
	overflow: hidden;
}

.compact-card__media img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.compact-card__title {
	color: var(--brand-dark);
	display: block;
	font-weight: 900;
	line-height: 1.35;
}

.comments-area,
.empty-state {
	background: var(--card);
	border: 1px solid var(--line);
	margin-top: 1rem;
	padding: 1rem;
}

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

.navigation.pagination {
	margin-top: 1rem;
}

.page-numbers {
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--brand-dark);
	display: inline-flex;
	font-weight: 900;
	margin-top: 1rem;
	padding: 0.45rem 0.7rem;
	text-decoration: none;
}

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

.load-more-posts {
	background: var(--brand);
	border: 0;
	color: #fff;
	display: block;
	font-weight: 900;
	margin: 1rem auto 0;
	padding: 0.75rem 1.25rem;
}

.load-more-posts:hover {
	background: var(--brand-dark);
}

.load-more-posts:disabled {
	cursor: progress;
	opacity: 0.72;
}

.site-footer {
	background: var(--brand-dark);
	color: #fff;
	margin-top: clamp(2rem, 6vw, 4rem);
}

.footer-inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-height: 92px;
	padding-block: 1.25rem;
}

.footer-title {
	font-size: 1.1rem;
	font-weight: 900;
	margin: 0;
}

.footer-copy {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	margin: 0.2rem 0 0;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 1020px) {
	.grid4,
	.related-grid,
	.category-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feature2,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.feature-card {
		grid-template-columns: 1fr;
	}

	.news-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.header-main,
	.footer-inner {
		align-items: stretch;
		flex-direction: column;
	}

	.header-actions {
		min-width: 0;
		width: 100%;
	}

	.header-actions .search-form {
		max-width: none;
		width: 100%;
	}

	.site-description {
		display: none;
	}

	.custom-logo,
	.site-logo-fallback img {
		height: 46px;
		width: 46px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-navigation {
		display: none;
	}

	.site-navigation.is-open {
		display: block;
	}

	.site-navigation ul {
		display: block;
	}

	.site-navigation a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.grid4,
	.related-grid,
	.category-strip,
	.news-sidebar {
		grid-template-columns: 1fr;
	}

	.list-card {
		grid-template-columns: 112px minmax(0, 1fr);
		padding: 0.65rem;
	}

	.list-card__excerpt {
		display: none;
	}
}
