:root {
	--ink: #182231;
	--muted: #647083;
	--line: #dfe5ea;
	--paper: #ffffff;
	--soft: #f5f7f4;
	--red: #971f2e;
	--red-dark: #701522;
	--gold: #e2a836;
	--teal: #106b69;
	--blue: #263a63;
	--shadow: 0 16px 40px rgba(18, 28, 44, 0.12);
	--radius: 8px;
	--container: 1180px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--soft);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.68;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--red);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--red-dark);
}

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

.narrow {
	max-width: 820px;
}

.readable {
	max-width: 860px;
}

.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;
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--paper);
	border: 2px solid var(--red);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	box-shadow: 0 4px 18px rgba(20, 25, 35, 0.08);
}

.topbar {
	background: var(--ink);
	color: #f3f7f5;
	font-size: 13px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.topbar a {
	color: #fff3cb;
	font-weight: 700;
}

.masthead {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 22px;
	min-height: 84px;
}

.brand-wrap img,
.custom-logo {
	width: auto;
	height: 58px;
	max-width: 240px;
	object-fit: contain;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: block;
	padding: 10px 12px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--radius);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	background: #f5ece6;
	color: var(--red);
}

.icon-button,
.search-toggle,
.button,
.search-submit {
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	font-weight: 800;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	background: var(--ink);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle span:not(.screen-reader-text) {
	width: 20px;
	height: 2px;
	background: #fff;
}

.search-toggle {
	padding: 10px 16px;
	background: var(--red);
	color: #fff;
}

.header-search {
	border-top: 1px solid var(--line);
	background: #fbfcfb;
	padding: 14px 0;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	min-width: 0;
	flex: 1;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 12px;
	font-size: 15px;
	background: #fff;
}

.search-submit {
	height: 44px;
	padding: 0 16px;
	background: var(--ink);
	color: #fff;
}

.front-hero {
	position: relative;
	min-height: clamp(480px, 72vh, 700px);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: end;
	color: #fff;
}

.front-hero-shade {
	position: absolute;
	inset: 0;
	background: rgba(14, 20, 31, 0.62);
}

.front-hero-inner {
	position: relative;
	padding: 92px 0 72px;
}

.front-hero h1 {
	max-width: 850px;
	margin: 0;
	font-size: clamp(42px, 7vw, 82px);
	line-height: 0.98;
	letter-spacing: 0;
}

.front-lead {
	max-width: 720px;
	margin: 22px 0 0;
	font-size: clamp(18px, 2.2vw, 24px);
	color: #f3f4ee;
}

.eyebrow,
.section-heading p,
.page-hero-copy p,
.archive-hero p {
	margin: 0 0 10px;
	color: var(--red);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.front-hero .eyebrow {
	color: #fff3cb;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
}

.button.primary {
	background: var(--gold);
	color: #221b0a;
}

.button.secondary {
	background: #fff;
	color: var(--ink);
}

.front-content,
.home-latest,
.category-band,
.site-main {
	padding: 56px 0;
}

.front-content {
	background: var(--paper);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.readable h2 {
	margin: 34px 0 12px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.18;
}

.entry-content h3,
.readable h3 {
	margin: 26px 0 10px;
	font-size: 22px;
	line-height: 1.25;
}

.entry-content p,
.entry-content li {
	color: #303a49;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
}

.tm-panel,
.tm-stat,
.post-card,
.widget,
.category-card,
.no-results,
.not-found {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.tm-panel {
	padding: 24px;
	margin: 24px 0;
}

.tm-split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 28px;
	align-items: start;
}

.tm-grid,
.tm-process,
.tm-case-grid,
.tm-price-grid,
.tm-contact-grid,
.tm-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.tm-stat,
.tm-card,
.tm-step,
.tm-price {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.tm-stat strong,
.tm-card strong,
.tm-step strong,
.tm-price strong {
	display: block;
	color: var(--ink);
	font-size: 20px;
	line-height: 1.2;
}

.tm-stat span {
	display: block;
	color: var(--muted);
	font-size: 14px;
}

.tm-note {
	border-left: 4px solid var(--teal);
	padding: 14px 18px;
	background: #eef7f5;
	color: #173f3e;
	border-radius: var(--radius);
}

.section-heading {
	margin-bottom: 24px;
}

.section-heading h2,
.archive-hero h1,
.page-hero h1 {
	margin: 0;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.04;
}

.section-heading.split {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
}

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

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

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

.post-card {
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(20, 25, 35, 0.06);
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eceb;
}

.post-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.post-card:hover .post-card-image {
	transform: scale(1.03);
}

.post-card-body {
	padding: 18px;
}

.cat-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 9px;
	background: #eef7f5;
	color: var(--teal);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
}

.post-card-title {
	margin: 12px 0 8px;
	font-size: 22px;
	line-height: 1.22;
}

.post-card-title a {
	color: var(--ink);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 10px;
	color: var(--muted);
	font-size: 13px;
}

.post-card p {
	margin: 0;
	color: #475366;
}

.category-band {
	background: #eef1ea;
}

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

.category-card {
	display: block;
	padding: 18px;
	color: var(--ink);
}

.category-card span {
	display: block;
	font-size: 18px;
	font-weight: 900;
}

.category-card small {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 14px;
}

.breadcrumb a {
	color: var(--blue);
	font-weight: 800;
}

.page-hero {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 28px;
	align-items: center;
	margin-bottom: 34px;
}

.page-hero-copy {
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.page-excerpt p,
.single-excerpt {
	margin: 16px 0 0;
	color: #3c4858;
	font-size: 18px;
}

.page-hero-media {
	margin: 0;
	aspect-ratio: 14 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.page-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.archive-layout,
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.content-column {
	min-width: 0;
}

.archive-hero {
	padding: 28px;
	margin-bottom: 22px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.archive-hero.compact {
	padding: 22px;
}

.archive-description {
	margin-top: 12px;
	color: #3d4857;
}

.sidebar {
	position: sticky;
	top: 122px;
	display: grid;
	gap: 16px;
}

.widget {
	padding: 18px;
}

.widget-title,
.footer-widget-title,
.footer-column h2 {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.25;
}

.category-list,
.recent-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-list li,
.recent-list li {
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.category-list li:last-child,
.recent-list li:last-child {
	border-bottom: 0;
}

.recent-list a {
	display: block;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.35;
}

.recent-list span {
	color: var(--muted);
	font-size: 13px;
}

.note-widget {
	background: #fff9e8;
}

.single-article {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.single-header {
	padding: 30px 30px 0;
}

.single-header h1 {
	margin: 14px 0 10px;
	font-size: clamp(34px, 4.4vw, 58px);
	line-height: 1.04;
}

.single-media {
	margin: 26px 30px 0;
	aspect-ratio: 14 / 9;
	overflow: hidden;
	border-radius: var(--radius);
}

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

.single-article .entry-content {
	padding: 28px 30px 34px;
}

.single-footer {
	padding: 0 30px 30px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}

.post-navigation a {
	display: block;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 900;
}

.post-navigation span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
}

.related-posts {
	margin-top: 32px;
}

.pagination {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	background: var(--paper);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 800;
}

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

.not-found,
.no-results {
	padding: 32px;
}

.site-footer {
	background: var(--ink);
	color: #dfe6e2;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 0.8fr;
	gap: 30px;
	padding: 42px 0;
}

.footer-brand img {
	width: 220px;
	height: auto;
	margin-bottom: 14px;
	filter: brightness(0) invert(1);
}

.footer-brand p,
.footer-column p {
	margin: 0 0 8px;
	color: #d9e1dd;
}

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

.footer-column a {
	display: inline-block;
	padding: 4px 0;
	color: #fff3cb;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
	margin: 0;
	padding: 16px 0;
	color: #fff;
	font-size: 14px;
}

@media (max-width: 980px) {
	.topbar-inner {
		flex-wrap: wrap;
		justify-content: center;
		padding: 8px 0;
	}

	.masthead {
		grid-template-columns: auto auto auto;
		justify-content: space-between;
	}

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

	.main-navigation {
		grid-column: 1 / -1;
		display: none;
		width: 100%;
		border-top: 1px solid var(--line);
		padding: 12px 0;
	}

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

	.main-navigation ul {
		display: grid;
		gap: 4px;
		justify-content: stretch;
	}

	.main-navigation a {
		padding: 12px;
	}

	.archive-layout,
	.single-layout,
	.page-hero,
	.tm-split {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}

	.post-grid-3,
	.category-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-grid,
	.tm-process,
	.tm-case-grid,
	.tm-price-grid,
	.tm-contact-grid,
	.tm-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-main {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(100% - 24px, var(--container));
	}

	.brand-wrap img,
	.custom-logo {
		height: 48px;
		max-width: 190px;
	}

	.search-toggle {
		padding: 10px 12px;
	}

	.front-hero {
		min-height: 560px;
	}

	.front-hero-inner {
		padding: 84px 0 46px;
	}

	.front-hero h1 {
		font-size: 42px;
	}

	.hero-actions,
	.search-form,
	.section-heading.split {
		align-items: stretch;
		flex-direction: column;
	}

	.post-grid,
	.post-grid-3,
	.category-cards,
	.tm-grid,
	.tm-process,
	.tm-case-grid,
	.tm-price-grid,
	.tm-contact-grid,
	.tm-stat-grid,
	.post-navigation .nav-links,
	.footer-main {
		grid-template-columns: 1fr;
	}

	.page-hero-copy,
	.archive-hero,
	.single-header,
	.single-article .entry-content,
	.single-footer,
	.not-found,
	.no-results {
		padding: 22px;
	}

	.single-media {
		margin: 20px 22px 0;
	}

	.site-main,
	.front-content,
	.home-latest,
	.category-band {
		padding: 36px 0;
	}
}

