:root {
	--color-bg: #ffffff;
	--color-surface: #f5f7fa;
	--color-border: #dbe4ea;
	--color-text: #081d33;
	--color-muted: #5f6f80;
	--color-teal: #0e8a93;
	--color-teal-dark: #07666d;
	--color-teal-soft: #e5f6f7;
	--color-green: #22c55e;
	--color-warning: #f59e0b;
	--shadow-card: 0 10px 24px rgba(8, 29, 51, 0.06);
	--radius: 16px;
	--container: 1180px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(14, 138, 147, 0.35);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.55em;
	color: var(--color-text);
	line-height: 1.35;
	letter-spacing: 0;
}

p {
	margin: 0 0 1em;
}

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

.narrow {
	width: min(100% - 40px, 860px);
}

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

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

.site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	border-bottom: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(14px);
}

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

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

.site-description {
	margin: 2px 0 0;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.primary-menu,
.footer-menu {
	display: flex;
	gap: 22px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	color: var(--color-text);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--color-teal-dark);
}

.header-search .search-form {
	display: flex;
	overflow: hidden;
	width: 220px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
}

.search-field {
	min-width: 0;
	width: 100%;
	border: 0;
	padding: 10px 12px;
	color: var(--color-text);
	font: inherit;
}

.search-submit {
	border: 0;
	padding: 10px 12px;
	background: var(--color-teal);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: var(--color-text);
}

.hero {
	overflow: hidden;
	border-bottom: 1px solid var(--color-border);
	background:
		linear-gradient(90deg, rgba(229, 246, 247, 0.85), rgba(255, 255, 255, 0.9)),
		radial-gradient(circle at 80% 20%, rgba(14, 138, 147, 0.14), transparent 32%);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
	gap: 48px;
	align-items: center;
	min-height: 460px;
	padding-block: 78px;
}

.hero h1 {
	max-width: 760px;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.hero p {
	max-width: 700px;
	color: var(--color-muted);
	font-size: 1.12rem;
}

.eyebrow {
	margin-bottom: 8px;
	color: var(--color-teal-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none;
}

.button--primary {
	background: var(--color-teal);
	color: #fff;
	box-shadow: 0 10px 22px rgba(14, 138, 147, 0.22);
}

.button--primary:hover {
	background: var(--color-teal-dark);
	color: #fff;
}

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

.hero__visual {
	position: relative;
	min-height: 280px;
}

.molecule,
.data-card {
	position: absolute;
	display: block;
	border: 1px solid rgba(14, 138, 147, 0.25);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: var(--shadow-card);
}

.molecule {
	width: 150px;
	height: 150px;
	border-radius: 50%;
}

.molecule::before,
.molecule::after {
	position: absolute;
	content: "";
	border-radius: 50%;
	background: var(--color-teal);
}

.molecule::before {
	top: 34px;
	left: 32px;
	width: 22px;
	height: 22px;
	box-shadow: 50px 28px 0 var(--color-teal), 84px 72px 0 rgba(14, 138, 147, 0.6);
}

.molecule::after {
	right: 28px;
	bottom: 34px;
	width: 2px;
	height: 80px;
	background: rgba(14, 138, 147, 0.35);
	transform: rotate(50deg);
}

.molecule--one {
	top: 16px;
	left: 12px;
}

.molecule--two {
	right: 22px;
	bottom: 16px;
	transform: scale(0.82);
}

.data-card {
	right: 52px;
	top: 34px;
	width: 170px;
	height: 112px;
	border-radius: var(--radius);
}

.data-card--chart::before,
.data-card--code::before {
	position: absolute;
	inset: 18px;
	content: "";
	border-bottom: 3px solid var(--color-teal);
	background:
		linear-gradient(to top, rgba(14, 138, 147, 0.38) 36%, transparent 36%) 10px 36px / 20px 42px no-repeat,
		linear-gradient(to top, rgba(14, 138, 147, 0.52) 68%, transparent 68%) 50px 36px / 20px 42px no-repeat,
		linear-gradient(to top, rgba(14, 138, 147, 0.28) 50%, transparent 50%) 90px 36px / 20px 42px no-repeat;
}

.data-card--code {
	top: auto;
	right: 160px;
	bottom: 26px;
	width: 150px;
	height: 90px;
}

.data-card--code::before {
	border: 0;
	background:
		linear-gradient(var(--color-teal), var(--color-teal)) 12px 10px / 52px 3px no-repeat,
		linear-gradient(var(--color-teal), var(--color-teal)) 12px 28px / 82px 3px no-repeat,
		linear-gradient(var(--color-teal), var(--color-teal)) 12px 46px / 62px 3px no-repeat;
}

.section {
	padding-block: 80px;
}

.section--compact {
	padding-block: 44px;
}

.section--tinted {
	background: var(--color-surface);
}

.section-heading {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.section-heading h2 {
	margin-bottom: 0;
}

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

.category-card,
.post-card,
.empty-state,
.article-support,
.table-of-contents,
.profile-cta__inner {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-card);
}

.category-card {
	display: grid;
	gap: 10px;
	min-height: 192px;
	padding: 24px 18px;
	text-align: center;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover {
	border-color: rgba(14, 138, 147, 0.45);
	box-shadow: 0 14px 30px rgba(8, 29, 51, 0.08);
	transform: translateY(-2px);
}

.category-card h2 {
	margin: 0;
	font-size: 1rem;
}

.category-card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

.category-card span:last-child {
	align-self: end;
	color: var(--color-teal-dark);
	font-size: 0.82rem;
	font-weight: 800;
}

.category-card__icon {
	position: relative;
	width: 48px;
	height: 48px;
	margin-inline: auto;
	border: 2px solid var(--color-teal);
	border-radius: 14px;
	background: linear-gradient(180deg, #fff, rgba(229, 246, 247, 0.45));
	color: var(--color-teal);
}

.category-card__icon::before,
.category-card__icon::after {
	position: absolute;
	content: "";
}

.category-card__icon--materials::before {
	left: 14px;
	top: 10px;
	width: 20px;
	height: 27px;
	border: 2px solid currentColor;
	border-top: 0;
	border-radius: 0 0 10px 10px;
	background:
		radial-gradient(circle at 38% 68%, currentColor 0 2px, transparent 2px),
		radial-gradient(circle at 64% 58%, currentColor 0 2px, transparent 2px),
		linear-gradient(to top, rgba(14, 138, 147, 0.18) 42%, transparent 42%);
}

.category-card__icon--materials::after {
	left: 18px;
	top: 6px;
	width: 12px;
	height: 9px;
	border-inline: 2px solid currentColor;
	border-top: 2px solid currentColor;
	border-radius: 4px 4px 0 0;
}

.category-card__icon--chemical::before {
	left: 9px;
	bottom: 10px;
	width: 30px;
	height: 19px;
	border: 2px solid currentColor;
	border-radius: 3px;
	background:
		linear-gradient(currentColor, currentColor) 6px 9px / 4px 7px no-repeat,
		linear-gradient(currentColor, currentColor) 14px 5px / 4px 11px no-repeat,
		linear-gradient(currentColor, currentColor) 23px 11px / 4px 5px no-repeat;
}

.category-card__icon--chemical::after {
	left: 13px;
	top: 9px;
	width: 22px;
	height: 11px;
	border-left: 5px solid currentColor;
	border-top: 2px solid currentColor;
	transform: skewX(-18deg);
}

.category-card__icon--ai::before {
	left: 8px;
	top: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, currentColor 0 3px, transparent 3px),
		radial-gradient(circle at 24% 30%, currentColor 0 3px, transparent 3px),
		radial-gradient(circle at 72% 28%, currentColor 0 3px, transparent 3px),
		radial-gradient(circle at 25% 72%, currentColor 0 3px, transparent 3px),
		radial-gradient(circle at 74% 72%, currentColor 0 3px, transparent 3px);
}

.category-card__icon--ai::after {
	left: 16px;
	top: 16px;
	width: 16px;
	height: 16px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	box-shadow:
		-8px -8px 0 -6px currentColor,
		8px -8px 0 -6px currentColor,
		-8px 8px 0 -6px currentColor,
		8px 8px 0 -6px currentColor;
	transform: rotate(45deg);
}

.category-card__icon--python::before {
	left: 8px;
	top: 12px;
	color: currentColor;
	content: "</>";
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
}

.category-card__icon--python::after {
	left: 12px;
	bottom: 11px;
	width: 24px;
	height: 2px;
	background: currentColor;
}

.category-card__icon--image::before {
	left: 9px;
	top: 11px;
	width: 30px;
	height: 24px;
	border: 2px solid currentColor;
	border-radius: 4px;
	background:
		radial-gradient(circle at 73% 28%, currentColor 0 3px, transparent 3px),
		linear-gradient(135deg, transparent 48%, currentColor 49% 55%, transparent 56%),
		linear-gradient(45deg, transparent 53%, rgba(14, 138, 147, 0.28) 54% 64%, transparent 65%);
}

.category-card__icon--image::after {
	left: 14px;
	bottom: 14px;
	width: 18px;
	height: 10px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: skewX(-24deg);
}

.category-card__icon--career::before {
	left: 10px;
	top: 18px;
	width: 28px;
	height: 17px;
	border: 2px solid currentColor;
	border-radius: 4px;
	background: linear-gradient(currentColor, currentColor) center 7px / 10px 2px no-repeat;
}

.category-card__icon--career::after {
	left: 18px;
	top: 10px;
	width: 12px;
	height: 8px;
	border: 2px solid currentColor;
	border-bottom: 0;
	border-radius: 5px 5px 0 0;
}

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

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

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

.post-card {
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(8, 29, 51, 0.1);
}

.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--color-teal-soft);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 28% 34%, rgba(14, 138, 147, 0.36) 0 8px, transparent 9px),
		radial-gradient(circle at 58% 56%, rgba(14, 138, 147, 0.24) 0 12px, transparent 13px),
		linear-gradient(135deg, #e5f6f7, #f5f7fa);
}

.post-card__body {
	padding: 22px;
}

.post-card__title {
	margin-top: 8px;
	font-size: 1.05rem;
}

.post-card__title a,
.latest-item h3 a {
	color: var(--color-text);
	text-decoration: none;
}

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

.category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.category-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 9px;
	border: 1px solid rgba(14, 138, 147, 0.28);
	border-radius: 999px;
	background: var(--color-teal-soft);
	color: var(--color-teal-dark);
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin-top: 14px;
	color: var(--color-muted);
	font-size: 0.82rem;
}

.post-meta a {
	color: var(--color-muted);
	text-decoration: none;
}

.latest-list {
	display: grid;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.latest-item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto 112px;
	gap: 22px;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--color-border);
}

.latest-item:last-child {
	border-bottom: 0;
}

.latest-item__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--color-teal-soft);
}

.latest-item__thumb img,
.latest-item__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.latest-item__placeholder {
	display: block;
	background:
		radial-gradient(circle at 32% 34%, rgba(14, 138, 147, 0.32) 0 7px, transparent 8px),
		radial-gradient(circle at 62% 58%, rgba(14, 138, 147, 0.22) 0 11px, transparent 12px),
		linear-gradient(135deg, #e5f6f7, #f5f7fa);
}

.latest-item h3 {
	margin: 0 0 2px;
	font-size: 1.06rem;
}

.latest-item p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.latest-item time {
	color: var(--color-muted);
	font-size: 0.82rem;
	text-align: right;
}

.profile-cta__inner {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 40px;
}

.profile-cta h2 {
	max-width: 720px;
}

.profile-cta p:not(.eyebrow) {
	max-width: 760px;
	color: var(--color-muted);
}

.archive-header,
.page-header,
.article-header {
	margin-bottom: 32px;
}

.archive-header {
	max-width: 780px;
}

.archive-header h1,
.page-header h1,
.article-header h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.archive-description,
.archive-header p {
	color: var(--color-muted);
}

.article-layout {
	width: min(100% - 40px, 920px);
}

.article {
	margin-inline: auto;
}

.article-header,
.article-content,
.article-footer,
.article-post-navigation {
	max-width: 780px;
	margin-inline: auto;
}

.article-meta,
.article-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin-top: 12px;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.article-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 10px;
	border: 1px solid rgba(14, 138, 147, 0.28);
	border-radius: 999px;
	background: var(--color-teal-soft);
	color: var(--color-teal-dark);
	font-weight: 800;
	text-decoration: none;
}

.article-lead {
	margin-top: 24px;
	color: var(--color-muted);
	font-size: 1.18rem;
	line-height: 1.9;
}

.article-featured-image {
	overflow: hidden;
	margin: 28px 0;
	border-radius: var(--radius);
}

.article-featured-image img {
	width: 100%;
}

.table-of-contents,
.article-support {
	margin: 28px 0;
	padding: 24px;
}

.table-of-contents,
.toc,
#toc_container,
.ez-toc-container,
.lwptoc,
.simpletoc {
	border: 1px solid rgba(14, 138, 147, 0.2);
	border-radius: var(--radius);
	background: var(--color-teal-soft);
	box-shadow: none;
}

.table-of-contents h2,
.article-support h2 {
	font-size: 1.15rem;
}

.article-content {
	font-size: 1.05rem;
}

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

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
}

.entry-content h2 {
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--color-border);
}

.entry-content pre,
.entry-content code {
	background: #0b1d30;
	color: #ecfdf5;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.entry-content pre {
	overflow-x: auto;
	margin: 28px 0;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.7;
	tab-size: 4;
}

.entry-content code {
	border-radius: 6px;
	padding: 0.12em 0.32em;
}

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

.entry-content .code-panel {
	position: relative;
	overflow: hidden;
	margin: 28px 0;
	border: 1px solid #1f3a55;
	border-radius: 14px;
	background: #0b1d30;
	box-shadow: 0 14px 30px rgba(8, 29, 51, 0.12);
}

.code-panel__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 9px 14px;
	border-bottom: 1px solid #1f3a55;
	background: #10263d;
	color: #cbd5e1;
}

.code-panel__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.code-panel__label::before {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-teal);
	content: "";
	box-shadow: 14px 0 0 #22c55e, 28px 0 0 #f59e0b;
}

.code-panel__toggle {
	min-height: 30px;
	border: 1px solid #2f4f6c;
	border-radius: 999px;
	padding: 4px 10px;
	background: #0b1d30;
	color: #dbeafe;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
}

.code-panel__toggle:hover {
	border-color: var(--color-teal);
	color: #fff;
}

.entry-content .code-panel pre {
	max-height: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 3.2rem, transparent 3.2rem),
		#0b1d30;
	box-shadow: none;
}

.entry-content .code-panel pre code {
	display: block;
	min-width: max-content;
	padding-left: 1.2rem;
}

.code-panel.is-collapsed pre {
	max-height: 260px;
	overflow: hidden;
}

.code-panel.is-collapsed::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 78px;
	background: linear-gradient(to bottom, rgba(11, 29, 48, 0), #0b1d30 72%);
	content: "";
	pointer-events: none;
}

.code-token--comment {
	color: #7dd3fc;
	font-style: italic;
}

.code-token--keyword {
	color: #c084fc;
	font-weight: 700;
}

.code-token--builtin {
	color: #38bdf8;
}

.code-token--constant {
	color: #f472b6;
}

.code-token--string {
	color: #86efac;
}

.code-token--number {
	color: #fbbf24;
}

.code-token--operator {
	color: #e2e8f0;
}

.entry-content blockquote {
	margin: 28px 0;
	padding: 18px 22px;
	border-left: 4px solid var(--color-teal);
	background: var(--color-surface);
}

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

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

.entry-content th {
	background: var(--color-surface);
}

.wp-block-table,
.entry-content figure,
.entry-content .wp-caption,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content .wp-block-gallery {
	max-width: 100%;
	margin-block: 28px;
}

.entry-content figure img,
.entry-content .wp-caption img {
	height: auto;
}

.entry-content .katex-display,
.entry-content .MathJax_Display,
.entry-content mjx-container[display="true"] {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding-block: 8px;
}

.article-footer,
.related-posts,
.post-navigation {
	margin-top: 44px;
}

.related-posts {
	max-width: 100%;
}

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

.tag-list a {
	padding: 4px 10px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	text-decoration: none;
}

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

.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-card);
	color: var(--color-text);
	text-decoration: none;
}

.post-navigation span {
	display: block;
	color: var(--color-muted);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.page-content,
.empty-state {
	padding: 32px;
}

.empty-state--large {
	text-align: center;
}

.empty-state .search-form {
	display: flex;
	max-width: 460px;
	margin: 22px auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.pagination,
.nav-links {
	margin-top: 32px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	margin-right: 6px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

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

.site-footer {
	border-top: 1px solid var(--color-border);
	background: var(--color-text);
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	padding-block: 42px;
}

.site-footer__brand,
.site-footer a {
	color: #fff;
}

.site-footer p {
	margin: 8px 0 0;
}

.site-footer__bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom p {
	margin: 0;
	font-size: 0.86rem;
}

@media (max-width: 1024px) {
	.site-header__inner {
		grid-template-columns: auto auto;
	}

	.menu-toggle {
		display: block;
		justify-self: end;
	}

	.primary-navigation,
	.header-search {
		grid-column: 1 / -1;
		display: none;
	}

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

	.menu-open .header-search {
		display: block;
	}

	.primary-menu {
		display: grid;
		gap: 0;
		border-top: 1px solid var(--color-border);
	}

	.primary-menu a {
		display: block;
		padding: 13px 0;
	}

	.header-search .search-form {
		width: 100%;
		margin-bottom: 16px;
	}

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

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

	.latest-item {
		grid-template-columns: 82px minmax(0, 1fr);
	}

	.latest-item .category-pills,
	.latest-item time {
		grid-column: 2;
		text-align: left;
	}
}

@media (max-width: 760px) {
	.container,
	.narrow,
	.article-layout {
		width: min(100% - 28px, var(--container));
	}

	.hero__grid {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-block: 44px;
	}

	.hero__visual {
		min-height: 200px;
	}

	.section {
		padding-block: 44px;
	}

	.category-grid,
	.post-grid,
	.post-grid--three,
	.post-navigation .nav-links,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.section-heading,
	.profile-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.profile-cta__inner,
	.page-content,
	.empty-state,
	.table-of-contents,
	.article-support {
		padding: 22px;
	}

	.latest-item {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px;
	}

	.latest-item .category-pills,
	.latest-item time {
		grid-column: auto;
	}

	.footer-menu {
		display: grid;
		gap: 10px;
	}
}
