:root {
	--bg: #fbfbf8;
	--surface: #ffffff;
	--ink: #171717;
	--muted: #5f6368;
	--line: #e2e0da;
	--accent: #0f766e;
	--accent-dark: #134e4a;
	--gold: #b88414;
	--max: 1180px;
	--narrow: 760px;
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

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

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

.container {
	width: min(100% - 32px, var(--max));
	margin-inline: auto;
}

.narrow {
	width: min(100% - 32px, var(--narrow));
}

.skip-link,
.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;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--ink);
	color: #fff;
}

.site-header {
	position: sticky;
	z-index: 30;
	top: 0;
	background: rgba(251, 251, 248, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.brand {
	min-width: 190px;
}

.site-title {
	color: var(--ink);
	font-size: 1.35rem;
	font-weight: 800;
	text-decoration: none;
}

.site-tagline {
	margin: 0;
	color: var(--muted);
	font-size: 0.84rem;
	line-height: 1.3;
}

.custom-logo {
	max-width: 210px;
	height: auto;
}

.primary-nav ul,
.site-footer ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 650;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	background: #eef7f5;
	color: var(--accent-dark);
}

.menu-toggle {
	display: none;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink);
	padding: 8px 12px;
	font: inherit;
	font-weight: 700;
}

.home-hero,
.archive-header,
.single-header {
	padding: 58px 0 44px;
	border-bottom: 1px solid var(--line);
	background: #f5f4ef;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	gap: 40px;
	align-items: end;
}

.home-hero h1,
.archive-header h1,
.single-header h1 {
	max-width: 980px;
	margin: 0;
	font-size: clamp(2.1rem, 4vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: 0;
}

.home-hero p,
.archive-header p {
	max-width: 760px;
	color: var(--muted);
	font-size: 1.08rem;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.featured-story,
.post-card,
.widget,
.aside-box,
.empty-state {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.featured-story {
	padding: 24px;
}

.featured-story h2,
.post-card h2 {
	margin: 0;
	line-height: 1.2;
}

.featured-story h2 a,
.post-card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.text-link {
	font-weight: 750;
}

.search-form {
	display: flex;
	gap: 8px;
	width: min(100%, 620px);
	margin-top: 24px;
}

.search-field {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink);
	padding: 0 13px;
	font: inherit;
}

.search-form button {
	min-height: 46px;
	border: 0;
	border-radius: 6px;
	background: var(--accent-dark);
	color: #fff;
	padding: 0 18px;
	font: inherit;
	font-weight: 800;
}

.section-block {
	padding: 42px 0;
}

.section-title {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-title h2 {
	margin: 0;
	font-size: 1.65rem;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	padding: 34px 0 52px;
}

.card-grid,
.post-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.post-list {
	grid-template-columns: 1fr;
}

.post-card {
	overflow: hidden;
}

.card-image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #ece9df;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	padding: 18px;
}

.card-body p {
	color: var(--muted);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 14px;
	color: var(--muted);
	font-size: 0.9rem;
}

.single-header {
	padding-bottom: 34px;
}

.featured-image {
	margin-top: 28px;
}

.featured-image img {
	width: 100%;
	border-radius: var(--radius);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--narrow)) 300px;
	gap: 42px;
	align-items: start;
	padding: 38px 0 58px;
}

.article-body {
	font-size: 1.06rem;
}

.article-body h2 {
	margin: 2.1em 0 0.55em;
	font-size: 1.65rem;
	line-height: 1.22;
}

.article-body h3 {
	margin: 1.6em 0 0.4em;
	font-size: 1.2rem;
	line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol {
	margin: 0 0 1.05em;
}

.article-body li + li {
	margin-top: 0.25em;
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: var(--surface);
}

.article-body th,
.article-body td {
	border: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.article-body blockquote {
	margin: 1.5em 0;
	border-left: 4px solid var(--accent);
	padding-left: 18px;
	color: var(--muted);
}

.article-aside {
	position: sticky;
	top: 104px;
	display: grid;
	gap: 16px;
}

.aside-box,
.widget,
.empty-state {
	padding: 18px;
}

.aside-box h2,
.widget-title {
	margin: 0 0 10px;
	font-size: 1rem;
}

.aside-box ul,
.widget ul {
	margin: 0;
	padding-left: 18px;
}

.sidebar {
	display: grid;
	align-content: start;
	gap: 16px;
}

.navigation.pagination {
	grid-column: 1 / -1;
}

.nav-links {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.page-numbers {
	min-width: 38px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	padding: 6px 10px;
	text-align: center;
	text-decoration: none;
}

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

.site-footer {
	border-top: 1px solid var(--line);
	background: #171717;
	color: #f7f7f2;
	padding: 32px 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}

.site-footer p {
	max-width: 520px;
	margin: 4px 0 0;
	color: #c9c7bf;
}

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

@media (max-width: 900px) {
	.menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: absolute;
		top: 76px;
		right: 16px;
		left: 16px;
		display: none;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--surface);
		padding: 8px;
	}

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

	.primary-nav ul,
	.site-footer ul,
	.footer-inner,
	.search-form {
		display: grid;
	}

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

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

	.article-aside {
		position: static;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 16px;
	}

	.header-inner {
		min-height: 68px;
	}

	.home-hero,
	.archive-header,
	.single-header {
		padding: 38px 0 30px;
	}

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

	.content-layout {
		padding-top: 28px;
	}
}

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

