:root {
	--ink: #111827;
	--muted: #5f6b7a;
	--paper: #ffffff;
	--soft: #f4f7fb;
	--line: #dce3ec;
	--navy: #0d1f3c;
	--blue: #175cd3;
	--blue-dark: #1248a5;
	--cyan: #2dd4bf;
	--radius: 18px;
	--shadow: 0 18px 50px rgba(13, 31, 60, 0.09);
	--wrap: 1180px;
	--content: 760px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.68;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	z-index: -1;
	inset: 0 0 auto;
	height: 500px;
	background:
		radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.13), transparent 35%),
		radial-gradient(circle at 90% 12%, rgba(23, 92, 211, 0.12), transparent 35%);
	pointer-events: none;
}

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

a {
	color: var(--blue);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--blue-dark);
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

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

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

.skip-link {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--paper);
	transform: translateY(-150%);
	box-shadow: var(--shadow);
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid rgba(220, 227, 236, 0.82);
	background: rgba(255, 255, 255, 0.93);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 78px;
	gap: 28px;
}

.brand,
.custom-logo-link {
	display: flex;
	align-items: center;
}

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

.brand__name,
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	font-weight: 850;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.brand__name {
	font-size: 1.22rem;
}

.brand__mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 13px;
	background: var(--navy);
	color: white;
	font-size: 1.1rem;
	letter-spacing: -0.08em;
}

.site-nav {
	justify-self: end;
}

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

.site-nav li {
	position: relative;
}

.site-nav a {
	display: block;
	padding: 9px 13px;
	border-radius: 9px;
	color: var(--ink);
	font-size: 0.94rem;
	font-weight: 680;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	background: var(--soft);
	color: var(--blue);
}

.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	display: none;
	width: 230px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	box-shadow: var(--shadow);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	display: block;
}

.search-toggle,
.menu-toggle {
	display: inline-grid;
	width: 43px;
	height: 43px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--navy);
	cursor: pointer;
	place-items: center;
}

.search-toggle {
	font-size: 1.45rem;
	line-height: 1;
}

.menu-toggle {
	display: none;
}

.menu-toggle__bars {
	display: grid;
	gap: 4px;
}

.menu-toggle__bars i {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

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

.header-search[hidden] {
	display: none;
}

.search-form {
	display: flex;
	width: min(100%, 640px);
	min-width: 0;
	gap: 8px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.search-field {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--paper);
	color: var(--ink);
}

.search-form button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 11px;
	background: var(--blue);
	color: white;
	font-weight: 760;
	text-decoration: none;
	cursor: pointer;
}

.search-form button:hover,
.button:hover {
	background: var(--blue-dark);
	color: white;
}

.breadcrumbs {
	padding-top: 22px;
	color: var(--muted);
	font-size: 0.82rem;
}

.breadcrumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 7px;
	color: #a5afbc;
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs span {
	display: inline-block;
	max-width: 50ch;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

.home-hero {
	padding: clamp(54px, 8vw, 100px) 0 clamp(58px, 8vw, 92px);
	overflow: hidden;
	background: linear-gradient(155deg, var(--navy), #102e5c 60%, #174b83);
	color: white;
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
	align-items: center;
	gap: clamp(40px, 7vw, 92px);
}

.home-hero__inner > *,
.post-grid > *,
.post-card__body {
	min-width: 0;
}

.kicker,
.eyebrow {
	margin: 0 0 10px;
	color: var(--blue);
	font-size: 0.76rem;
	font-weight: 820;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-hero .kicker {
	color: #7fe8d9;
}

.home-hero h1 {
	max-width: 790px;
	margin: 0 0 22px;
	font-size: clamp(2.55rem, 6vw, 5rem);
	line-height: 0.99;
	letter-spacing: -0.06em;
}

.home-hero p:not(.kicker) {
	max-width: 680px;
	margin: 0 0 30px;
	color: #cbd8eb;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.home-hero .search-field {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.11);
	color: white;
}

.home-hero .search-field::placeholder {
	color: #b9c7d9;
}

.home-hero .search-form button {
	background: var(--cyan);
	color: var(--navy);
}

.home-hero__panel {
	position: relative;
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.home-hero__panel::before {
	content: "";
	position: absolute;
	width: 120px;
	height: 120px;
	top: -45px;
	right: -35px;
	border-radius: 50%;
	background: var(--cyan);
	filter: blur(2px);
	opacity: 0.2;
}

.home-hero__panel > span {
	display: block;
	margin-bottom: 12px;
	color: #93a9c4;
	font-size: 0.78rem;
	font-weight: 760;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

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

.home-hero__panel li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__panel a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 0;
	color: white;
	font-weight: 720;
	text-decoration: none;
}

.home-hero__panel a::after {
	content: "→";
	color: var(--cyan);
}

.archive-section {
	padding-top: clamp(55px, 7vw, 88px);
	padding-bottom: clamp(70px, 8vw, 110px);
}

.section-heading,
.archive-header {
	margin-bottom: 32px;
}

.section-heading h2,
.archive-header h1 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.archive-description {
	max-width: 720px;
	color: var(--muted);
}

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

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

.post-card {
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: 0 4px 18px rgba(13, 31, 60, 0.04);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
	border-color: #c2cede;
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.post-card__media {
	display: block;
	min-height: 100%;
	overflow: hidden;
	background: #e8eef7;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.025);
}

.post-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 260px;
	place-items: center;
	background: linear-gradient(145deg, var(--navy), #1a4d83);
	color: rgba(255, 255, 255, 0.82);
	font-size: 3rem;
	font-weight: 900;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	padding: 25px;
}

.eyebrow {
	align-self: flex-start;
	text-decoration: none;
}

.post-card__title {
	margin: 2px 0 12px;
	font-size: clamp(1.16rem, 2vw, 1.43rem);
	line-height: 1.23;
	letter-spacing: -0.025em;
}

.post-card__title a {
	color: var(--navy);
	text-decoration: none;
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 0.94rem;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__meta,
.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 19px;
	color: var(--muted);
	font-size: 0.79rem;
}

.meta-item + .meta-item {
	padding-left: 16px;
	border-left: 1px solid var(--line);
}

.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	place-items: center;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--blue);
	background: var(--blue);
	color: white;
}

.content-layout {
	padding-top: clamp(42px, 6vw, 76px);
	padding-bottom: clamp(70px, 8vw, 110px);
}

.article {
	max-width: var(--content);
	margin-inline: auto;
}

.article-header {
	margin-bottom: 32px;
	text-align: center;
}

.article-header .eyebrow {
	display: inline-block;
}

.article-header h1 {
	margin: 8px auto 18px;
	color: var(--navy);
	font-size: clamp(2.25rem, 5vw, 4.35rem);
	line-height: 1.04;
	letter-spacing: -0.055em;
	text-wrap: balance;
}

.article-meta {
	justify-content: center;
	margin-top: 0;
	padding-top: 0;
}

.article-hero {
	width: min(100vw - 40px, 980px);
	margin: 0 50% 42px;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transform: translateX(-50%);
}

.article-hero img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.article-content {
	color: #293343;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.08rem, 2vw, 1.2rem);
	line-height: 1.82;
}

.article-content > p:first-of-type {
	color: var(--ink);
	font-size: 1.18em;
	line-height: 1.7;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	color: var(--navy);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	line-height: 1.18;
	letter-spacing: -0.035em;
}

.article-content h2 {
	margin: 2.2em 0 0.75em;
	font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.article-content h3 {
	margin: 1.8em 0 0.65em;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.article-content h4 {
	margin: 1.7em 0 0.6em;
	font-size: 1.2rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content figure,
.article-content blockquote,
.article-content pre {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.article-content a {
	font-weight: 620;
}

.article-content ul,
.article-content ol {
	padding-left: 1.35em;
}

.article-content li {
	margin-bottom: 0.45em;
}

.article-content img {
	border-radius: 12px;
}

.article-content blockquote {
	padding: 3px 0 3px 24px;
	border-left: 4px solid var(--cyan);
	color: var(--muted);
	font-style: italic;
}

.article-content pre {
	max-width: 100%;
	padding: 20px;
	overflow: auto;
	border-radius: 12px;
	background: var(--navy);
	color: #e6edf8;
	font-size: 0.88rem;
}

.article-content code {
	padding: 0.1em 0.3em;
	border-radius: 5px;
	background: var(--soft);
	font-size: 0.88em;
}

.article-content pre code {
	padding: 0;
	background: transparent;
}

.article-content table {
	display: block;
	max-width: 100%;
	margin: 1.5em 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.92rem;
}

.article-content th,
.article-content td {
	padding: 11px 14px;
	border: 1px solid var(--line);
	text-align: left;
}

.article-content th {
	background: var(--soft);
}

.article-toc {
	margin: 0 0 38px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--soft);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.94rem;
}

.article-toc__toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--navy);
	font-weight: 820;
	cursor: pointer;
}

.article-toc ol {
	padding-left: 1.2em;
	margin: 15px 0 0;
}

.article-toc li {
	margin: 6px 0;
}

.article-toc .toc-level-3 {
	margin-left: 18px;
}

.article-toc a {
	color: var(--ink);
	font-weight: 590;
	text-decoration: none;
}

.article-footer {
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--muted);
	font-size: 0.82rem;
}

.tag-list a {
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--soft);
	color: var(--ink);
	text-decoration: none;
}

.article-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	width: min(100%, 960px);
	gap: 36px;
	padding: 32px;
	margin: 64px auto;
	border-radius: 20px;
	background: var(--navy);
	color: white;
}

.article-cta h2 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.16;
}

.article-cta .kicker {
	color: var(--cyan);
}

.article-cta .search-field {
	border-color: rgba(255, 255, 255, 0.16);
	background: white;
}

.related {
	width: min(100%, var(--wrap));
	margin-inline: auto;
}

.related .post-card {
	display: flex;
	flex-direction: column;
}

.related .post-card__media {
	min-height: 190px;
	max-height: 190px;
}

.related .post-card__media img,
.related .post-card__placeholder {
	min-height: 190px;
}

.related .post-card__excerpt {
	display: none;
}

.empty-state,
.not-found {
	max-width: 690px;
	padding-top: clamp(70px, 10vw, 140px);
	padding-bottom: clamp(90px, 12vw, 160px);
	text-align: center;
}

.empty-state {
	margin-inline: auto;
}

.empty-state h2,
.not-found h1 {
	margin: 0 0 16px;
	color: var(--navy);
	font-size: clamp(2rem, 5vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -0.05em;
}

.empty-state .search-form,
.not-found .search-form {
	margin: 28px auto;
}

.not-found__code {
	margin: 0;
	color: #dce5f2;
	font-size: clamp(6rem, 25vw, 14rem);
	font-weight: 900;
	line-height: 0.75;
	letter-spacing: -0.1em;
}

.site-footer {
	padding: 62px 0 20px;
	background: var(--navy);
	color: #aebdd1;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 0.7fr 0.7fr;
	gap: 60px;
	padding-bottom: 46px;
}

.footer-brand {
	color: white;
	font-size: 1.45rem;
}

.site-footer p {
	max-width: 440px;
}

.site-footer h2 {
	margin: 2px 0 15px;
	color: white;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

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

.site-footer li + li {
	margin-top: 8px;
}

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

.site-footer a:hover {
	color: white;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.82rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 1020px) {
	.post-grid {
		grid-template-columns: 1fr;
	}

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

	.home-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-hero__panel {
		display: none;
	}
}

@media (max-width: 820px) {
	.site-header__inner {
		grid-template-columns: 1fr auto auto;
		gap: 10px;
		min-height: 70px;
	}

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

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		padding: 10px 20px 20px;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
		box-shadow: 0 20px 30px rgba(13, 31, 60, 0.08);
	}

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

	.site-nav__list,
	.site-nav ul {
		display: block;
	}

	.site-nav a {
		padding: 12px;
	}

	.site-nav .sub-menu {
		position: static;
		display: block;
		width: auto;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}

	.article-cta {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__grid > :first-child {
		grid-column: 1 / -1;
	}
}

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

	.wrap {
		width: min(calc(100% - 28px), var(--wrap));
	}

	.custom-logo {
		max-width: 190px;
		max-height: 42px;
	}

	.home-hero {
		padding-top: 56px;
	}

	.home-hero h1 {
		font-size: clamp(2.35rem, 12vw, 3.35rem);
		overflow-wrap: break-word;
	}

	.search-form {
		flex-direction: column;
	}

	.post-card {
		display: flex;
		flex-direction: column;
	}

	.post-card__media {
		min-height: 210px;
		max-height: 230px;
	}

	.post-card__media img,
	.post-card__placeholder {
		min-height: 210px;
	}

	.post-card__body {
		padding: 22px;
	}

	.breadcrumbs span {
		max-width: 28ch;
	}

	.article-header {
		text-align: left;
	}

	.article-header .eyebrow {
		display: inline;
	}

	.article-header h1 {
		font-size: clamp(2.15rem, 11vw, 3.2rem);
		text-wrap: initial;
	}

	.article-meta {
		justify-content: flex-start;
	}

	.article-hero {
		width: calc(100vw - 28px);
		margin-bottom: 30px;
		border-radius: 14px;
	}

	.article-content {
		font-size: 1.06rem;
		line-height: 1.75;
	}

	.article-toc {
		padding: 18px;
	}

	.article-cta {
		padding: 24px;
	}

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

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.site-footer__grid > :first-child {
		grid-column: auto;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.breadcrumbs,
	.article-cta,
	.related,
	.article-toc__toggle {
		display: none !important;
	}

	.article,
	.article-content {
		max-width: none;
		color: black;
		font-size: 11pt;
	}

	a {
		color: black;
		text-decoration: underline;
	}
}
