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

:root {
	--brand: #2e666d;
	--brand-dark: #16383d;
	--brand-light: #d8ece9;
	--surface: #fbfdfc;
	--surface-soft: #eff5f4;
	--surface-card: #ffffff;
	--text: #101817;
	--muted: #64736f;
	--line: rgba(22, 56, 61, 0.14);
	--shadow: 0 18px 45px rgba(22, 56, 61, 0.10);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--surface: #0d1718;
	--surface-soft: #152527;
	--surface-card: #17292b;
	--text: #f5fbf9;
	--muted: #c8d6d3;
	--line: rgba(222, 239, 235, 0.18);
	--shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--surface);
	color: var(--text);
	font-family: Alexandria, Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.85;
	margin: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration-color: rgba(46, 102, 109, 0.35);
	text-underline-offset: 0.25rem;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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: 1180px;
	padding-inline: 1rem;
	width: 100%;
}

.content-narrow {
	max-width: 780px;
}

.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;
	box-shadow: var(--shadow);
	clip: auto;
	color: var(--brand-dark);
	height: auto;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	width: auto;
	z-index: 50;
}

.site-header {
	background: rgba(251, 253, 252, 0.92);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 40;
}

:root[data-theme="dark"] .site-header {
	background: rgba(13, 23, 24, 0.9);
}

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

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

.custom-logo,
.brand-logo img {
	height: 2.5rem;
	object-fit: contain;
	width: 2.5rem;
}

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

.logo-dark,
:root[data-theme="dark"] .logo-light {
	display: none;
}

:root[data-theme="dark"] .logo-dark {
	display: block;
}

.brand-copy {
	min-width: 0;
}

.site-title {
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1;
	margin: 0;
}

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

.site-description {
	color: var(--muted);
	font-size: 0.68rem;
	margin: 0.25rem 0 0;
}

.header-actions {
	align-items: center;
	display: flex;
	gap: 0.5rem;
}

.theme-toggle,
.menu-toggle {
	align-items: center;
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	display: inline-flex;
	height: 2.1rem;
	justify-content: center;
	padding: 0;
	transition: color 0.2s ease, border-color 0.2s ease;
	width: 2.1rem;
}

.theme-toggle:hover,
.menu-toggle:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.theme-toggle::before {
	content: "☾";
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
}

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

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

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

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

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

.nav-wrap {
	border-top: 1px solid var(--line);
}

.nav-shell {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-block: 0.45rem;
}

.site-nav {
	display: none;
	min-width: 0;
}

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

.primary-menu,
.trending-cats,
.footer-menu {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a,
.trending-cats a {
	background: var(--surface-soft);
	border-radius: 0.5rem;
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	padding: 0.32rem 0.72rem;
	text-decoration: none;
}

.primary-menu a:hover,
.trending-cats a:hover {
	background: var(--brand);
	color: #fff;
}

.search-form {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 999px;
	display: flex;
	max-width: none;
	overflow: hidden;
}

.search-form label {
	flex: 1;
}

.search-field {
	background: transparent;
	border: 0;
	color: var(--text);
	min-height: 2.75rem;
	outline: 0;
	padding-inline: 1rem;
	width: 100%;
}

.search-submit {
	background: var(--brand);
	border: 0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 800;
	padding-inline: 1.25rem;
}

.site-main {
	padding-block: 2rem;
}

.page-head {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.35rem;
}

.eyebrow {
	color: var(--brand);
	font-size: 0.875rem;
	font-weight: 800;
	margin: 0;
}

.page-head h1,
.article-header h1 {
	font-size: clamp(1.75rem, 4vw, 2.55rem);
	font-weight: 900;
	line-height: 1.25;
	margin: 0;
	max-width: 64rem;
}

.archive-description {
	color: var(--muted);
	font-size: 0.875rem;
	max-width: 48rem;
}

.author-head {
	align-items: center;
	flex-direction: row;
}

.author-head .avatar {
	border: 3px solid var(--brand-light);
	border-radius: 999px;
	flex: 0 0 auto;
}

.posts-section {
	padding-bottom: 3rem;
}

.posts-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

.post-card {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card-media {
	aspect-ratio: 16 / 10;
	background: var(--brand-light);
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.card-media img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	width: 100%;
}

.post-card:hover .card-media img {
	transform: scale(1.035);
}

.media-placeholder {
	background:
		radial-gradient(circle at 30% 25%, rgba(46, 102, 109, 0.28), transparent 28%),
		linear-gradient(135deg, #d8ece9, #ffffff);
	display: block;
	height: 100%;
	width: 100%;
}

:root[data-theme="dark"] .media-placeholder {
	background:
		radial-gradient(circle at 30% 25%, rgba(216, 236, 233, 0.18), transparent 28%),
		linear-gradient(135deg, #16383d, #0d1718);
}

.card-body {
	padding: 1.25rem;
}

.post-category {
	background: var(--brand-light);
	border-radius: 999px;
	color: var(--brand);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
}

:root[data-theme="dark"] .post-category {
	background: rgba(216, 236, 233, 0.11);
	color: #d8ece9;
}

.card-title {
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.45;
	margin: 0.75rem 0;
}

.card-title a {
	text-decoration: none;
}

.post-meta {
	align-items: center;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.75rem;
	font-weight: 600;
	gap: 0.5rem;
}

.post-meta span + span::before {
	content: "•";
	margin-inline-end: 0.5rem;
}

.card-excerpt {
	color: var(--muted);
	font-size: 0.875rem;
	margin-top: 0.75rem;
}

.card-excerpt p {
	margin: 0;
}

.load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2.25rem;
}

.load-more-posts,
.share-button,
.form-submit .submit {
	background: var(--brand);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
	padding: 0.75rem 1.75rem;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.load-more-posts:hover,
.share-button:hover,
.form-submit .submit:hover {
	background: var(--brand-dark);
}

.load-more-posts:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.single-article {
	padding-bottom: 3rem;
}

.article-header {
	padding-block: 1.75rem;
}

.article-header .post-category {
	margin-bottom: 1rem;
}

.article-header .post-meta {
	margin-top: 1rem;
}

.article-feature {
	margin-bottom: 2rem;
}

.article-feature img {
	border-radius: 0.5rem;
	object-fit: cover;
	width: 100%;
}

.article-feature figcaption,
.wp-caption-text,
.wp-element-caption {
	color: var(--muted);
	font-size: 0.75rem;
	margin-top: 0.5rem;
	text-align: center;
}

.entry-content {
	font-size: 1.08rem;
}

.entry-content > * {
	margin-bottom: 1.5rem;
}

.entry-content h2 {
	font-size: 1.875rem;
	font-weight: 900;
	line-height: 1.35;
	margin-top: 2.5rem;
}

.entry-content h3 {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.35;
	margin-top: 2rem;
}

.entry-content h4 {
	font-size: 1.25rem;
	font-weight: 800;
	margin-top: 1.75rem;
}

.entry-content p {
	margin: 0 0 1.5rem;
}

.entry-content a {
	color: var(--brand);
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.5rem;
}

.entry-content li + li {
	margin-top: 0.5rem;
}

.entry-content blockquote,
.wp-block-quote,
.wp-block-pullquote {
	background: var(--surface-soft);
	border: 0;
	border-inline-start: 4px solid var(--brand);
	border-radius: 0.5rem;
	padding: 1.25rem;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.wp-block-table {
	overflow-x: auto;
}

.entry-content table,
.wp-block-table table {
	border-collapse: collapse;
	font-size: 1rem;
	width: 100%;
}

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

.entry-content pre,
.entry-content code {
	background: var(--surface-soft);
	border-radius: 0.375rem;
	font-size: 0.875rem;
}

.entry-content pre {
	overflow-x: auto;
	padding: 1rem;
}

.entry-content iframe,
.wp-block-embed__wrapper iframe {
	aspect-ratio: 16 / 9;
	border-radius: 0.5rem;
	height: auto;
	width: 100%;
}

.alignwide {
	margin-block: 2rem;
	margin-inline: calc((780px - min(1180px, calc(100vw - 2rem))) / 2);
	max-width: min(1180px, calc(100vw - 2rem));
	width: min(1180px, calc(100vw - 2rem));
}

.alignfull {
	margin-block: 2rem;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-block-button__link {
	background: var(--brand);
	border-radius: 999px;
	color: #fff;
	font-weight: 900;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
}

.wp-block-image img,
.wp-block-gallery img,
.wp-block-cover,
.wp-block-media-text {
	border-radius: 0.5rem;
}

.article-footer {
	align-items: center;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1.5rem;
}

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

.tag-links a {
	background: var(--surface-soft);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
}

.related-posts {
	border-top: 1px solid var(--line);
	margin-top: 0.75rem;
	padding-block: 2rem 2.5rem;
}

.related-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.related-head h2 {
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.3;
	margin: 0;
}

.related-list {
	display: grid;
	gap: 0.75rem;
}

.related-item {
	align-items: center;
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 5.75rem minmax(0, 1fr);
	padding: 0.6rem;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
	border-color: rgba(46, 102, 109, 0.42);
	color: var(--text);
	transform: translateY(-1px);
}

.related-thumb {
	aspect-ratio: 16 / 10;
	background: var(--brand-light);
	border-radius: 0.4rem;
	display: block;
	overflow: hidden;
}

.related-thumb img,
.related-thumb .media-placeholder {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.related-content {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.related-title {
	font-size: 0.94rem;
	font-weight: 900;
	line-height: 1.55;
}

.related-meta {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
}

.comments-area {
	border-top: 1px solid var(--line);
	padding-block: 2rem;
}

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

.comment-body {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	padding: 1rem;
}

.comment-form input,
.comment-form textarea {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	color: var(--text);
	outline: 0;
	padding: 0.75rem 1rem;
	width: 100%;
}

.site-footer {
	background: var(--surface-soft);
	border-top: 1px solid var(--line);
	padding-block: 2rem;
}

.footer-shell {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.footer-shell p {
	color: var(--muted);
	font-size: 0.875rem;
	margin: 0.25rem 0 0;
}

.footer-menu a {
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.empty-state {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	margin-inline: auto;
	max-width: 42rem;
	padding: 2rem;
	text-align: center;
}

.empty-state h1,
.empty-state h2 {
	font-size: 1.875rem;
	font-weight: 900;
	margin: 0 0 0.75rem;
}

.empty-state p {
	color: var(--muted);
}

.wide-search {
	max-width: 28rem;
}

@media (min-width: 640px) {
	.container {
		padding-inline: 1.5rem;
	}

	.custom-logo,
	.brand-logo img {
		height: 2.75rem;
		width: 2.75rem;
	}

	.site-title {
		font-size: 1.25rem;
	}

	.site-description {
		font-size: 0.75rem;
	}

	.site-main {
		padding-block: 2.5rem;
	}

	.page-head {
		margin-bottom: 1.8rem;
	}

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

	.article-header {
		padding-block: 2.5rem;
	}
}

@media (min-width: 768px) {
	.menu-toggle {
		display: none;
	}

	.nav-shell {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}

	.site-nav {
		display: block;
		flex: 1;
	}

	.primary-menu,
	.trending-cats,
	.footer-menu {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.trending-cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		white-space: nowrap;
	}

	.trending-cats::-webkit-scrollbar {
		display: none;
	}

	.primary-menu a,
	.trending-cats a {
		border-radius: 999px;
	}

	.search-form {
		max-width: 24rem;
	}

	.home-head {
		align-items: end;
		flex-direction: row;
		justify-content: space-between;
	}

	.footer-shell {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.container {
		padding-inline: 2rem;
	}

	.posts-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
