/* AICTO — editorial design system. UI SDK supplies the behaviour; this file supplies the look. */

:root {
	--bg: #f5f6f8;
	--surface: #ffffff;
	--ink: #16171a;
	--muted: #656a75;
	--line: #e4e4e0;
	--accent: #2c4ec9;
	--accent-ink: #2c4ec9;
	--accent-soft: rgba(44, 78, 201, 0.07);
	--shadow: 0 1px 2px rgba(17, 17, 20, 0.03), 0 10px 30px rgba(17, 17, 20, 0.05);
	--radius: 14px;
	--display: "Philosopher", "Iowan Old Style", Georgia, serif;
	--text: "Work Sans", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--measure: 68ch;
	--grid-line: light-dark(rgba(44, 78, 201, 0.045), rgba(143, 168, 255, 0.05));
}

:root[data-theme="dark"] {
	--bg: #0c0e14;
	--surface: #141820;
	--ink: #e9e6db;
	--muted: #9c9a90;
	--line: #2b2c26;
	--accent: #8fa8ff;
	--accent-ink: #a9bcff;
	--accent-soft: rgba(143, 168, 255, 0.10);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px rgba(0, 0, 0, 0.32);
}

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

html {
	background: var(--bg);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background-color: var(--bg);
	/* Fine engineering grid — this blog's own ground, deliberately not the microsite's pencil paper. */
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 56px 56px;
	font: 400 17px/1.65 var(--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (prefers-contrast: more), print {
	body { background-image: none; }
}

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

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

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

/* ---------------------------------------------------------------- shell */

.shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: saturate(180%) blur(12px);
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	border-bottom: 1px solid var(--line);
	margin: 0 -24px;
	padding: 0 24px;
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-size: 1.05rem;
	color: var(--ink);
	white-space: nowrap;
}

.wordmark:hover {
	text-decoration: none;
	color: var(--ink);
}

.wordmark-mark {
	width: 9px;
	height: 9px;
	border-radius: 3px;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav-links {
	display: flex;
	gap: 18px;
	margin-left: 8px;
	font-size: 0.92rem;
	color: var(--muted);
}

.nav-links a {
	color: var(--muted);
	padding: 4px 0;
	border-bottom: 1px solid transparent;
}

.nav-links a:hover {
	color: var(--ink);
	text-decoration: none;
}

.nav-links a.active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.nav-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.site-main {
	padding: 56px 0 72px;
	min-height: 60vh;
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 28px 0 56px;
	color: var(--muted);
	font-size: 0.85rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: baseline;
	justify-content: space-between;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-links a {
	color: var(--muted);
}

.footer-links a:hover {
	color: var(--ink);
}

/* ---------------------------------------------------------------- hero */

.hero {
	padding: 8px 0 56px;
	position: relative;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -2rem -4rem auto -4rem;
	height: 320px;
	background: radial-gradient(42rem 18rem at 20% 30%, var(--accent-soft), transparent 70%);
	pointer-events: none;
	z-index: -1;
}

.eyebrow {
	margin: 0 0 18px;
	font: 0.72rem/1 var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero-kicker {
	margin: 0 0 10px;
	font: 0.8rem/1 var(--mono);
	letter-spacing: 0.04em;
	color: var(--accent-ink);
}

.hero h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.9rem, 7vw, 4.8rem);
	line-height: 1;
	letter-spacing: -0.025em;
}

.hero-sub {
	margin: 22px 0 0;
	max-width: 48ch;
	font-size: 1.12rem;
	line-height: 1.55;
	color: var(--muted);
}

.hero-meta,
.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font: 0.78rem/1.4 var(--mono);
	letter-spacing: 0.02em;
	color: var(--muted);
}

.hero-meta a {
	color: var(--muted);
}

.dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
}

/* ---------------------------------------------------------------- featured + cards */

.feature {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	align-items: stretch;
	margin: 8px 0 56px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	box-shadow: var(--shadow);
}

.feature:hover {
	text-decoration: none;
	border-color: color-mix(in srgb, var(--line) 60%, var(--accent));
}

.feature-media {
	min-height: 300px;
	background: var(--bg);
}

.feature-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.feature-body {
	padding: 34px 36px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
}

.feature-body h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.feature-body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.pill {
	align-self: flex-start;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font: 0.68rem/1.6 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: color-mix(in srgb, var(--line) 60%, var(--accent));
}

.card-media {
	aspect-ratio: 16 / 9;
	background: var(--bg);
	overflow: hidden;
}

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

.card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.card-body h3 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: 1.22rem;
	line-height: 1.25;
}

.card-body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-tags,
.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--muted);
	font: 0.68rem/1.6 var(--mono);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.more,
.back {
	margin-top: 40px;
	font: 0.82rem/1 var(--mono);
	letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- posts index */

.page-head {
	margin-bottom: 28px;
}

.page-head h1 {
	margin: 0 0 8px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.8rem);
	letter-spacing: -0.015em;
}

.page-head p {
	margin: 0;
	color: var(--muted);
}

.tag-filter {
	margin: 0 0 32px;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.post-list li {
	border-bottom: 1px solid var(--line);
}

.row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	padding: 24px 0;
	align-items: center;
	color: var(--ink);
}

.row:hover {
	text-decoration: none;
}

.row h2 a:hover {
	color: var(--accent-ink);
}

.row-media {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
}

.row-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.row-body h2 {
	margin: 6px 0 8px;
	font-family: var(--display);
	font-weight: 400;
	font-size: 1.4rem;
	line-height: 1.25;
}

.row-body p {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.95rem;
}

.row-body .meta-row {
	margin-top: 0;
}

/* ---------------------------------------------------------------- article */

.progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(var(--p, 0));
	transform-origin: 0 50%;
	z-index: 60;
}

.article {
	max-width: var(--measure);
	margin: 0 auto;
}

.article-head {
	margin-bottom: 32px;
}

.article-head h1 {
	margin: 14px 0 16px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.1rem, 4.6vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.dek {
	margin: 0;
	font-size: 1.1rem;
	color: var(--muted);
}

.byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.byline-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
	background: var(--surface);
	border: 1px solid var(--line);
}

.byline-avatar img,
.byline-avatar [data-slot="avatar-image"] {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.byline-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	font-size: 0.9rem;
	color: var(--muted);
}

.byline-text strong {
	color: var(--ink);
	font-weight: 600;
}

.article-media {
	margin: 32px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
}

.article-media img {
	width: 100%;
}

.prose {
	font-size: 1.055rem;
	line-height: 1.75;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.2;
	margin-top: 2em;
	letter-spacing: -0.01em;
}

.prose h2 {
	font-size: 1.7rem;
}

.prose h3 {
	font-size: 1.35rem;
}

.prose p,
.prose li {
	color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.prose img {
	border-radius: 12px;
	border: 1px solid var(--line);
	margin: 1.6em 0;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.4em 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose th,
.prose td {
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
}

.prose th {
	font-weight: 600;
}

.prose code {
	font-family: var(--mono);
	font-size: 0.88em;
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.prose pre {
	padding: 18px 20px;
	border-radius: 12px;
	overflow-x: auto;
	background: #14161c;
	border: 1px solid var(--line);
	font-size: 0.86rem;
	line-height: 1.6;
}

.prose pre code {
	background: none;
	padding: 0;
	font-size: inherit;
}

.prose .chart-wrapper {
	margin: 1.8em 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.prose iframe {
	max-width: 100%;
	border-radius: 12px;
}

/* The markdown pipeline writes an absolutely positioned iframe, so the wrapper must establish the box. */
.video-wrapper {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
	margin: 1.8em 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #000;
	z-index: 0;
}

.video-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-caption {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: var(--muted);
	text-align: center;
}

.citations {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--muted);
}

.citations h2 {
	margin: 0 0 12px;
	font: 0.7rem/1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.citations ol {
	margin: 0;
	padding-left: 1.2em;
}

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

.cite-key {
	font-family: var(--mono);
	color: var(--ink);
	margin-right: 6px;
}

.related {
	margin-top: 72px;
}

.related h2 {
	margin: 0 0 20px;
	font: 0.7rem/1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.empty {
	padding: 48px 0;
	color: var(--muted);
}

/* ---------------------------------------------------------------- SDK parts */

[data-slot="switch"] {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 38px;
	height: 22px;
	padding: 2px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

[data-slot="switch"][data-checked] {
	background: var(--accent);
	border-color: var(--accent);
}

[data-slot="switch-thumb"] {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transform: translateX(0);
	transition: transform 0.2s ease;
}

[data-slot="switch"][data-checked] [data-slot="switch-thumb"] {
	transform: translateX(16px);
}

.search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	font: 0.82rem/1 var(--text);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.search-trigger:hover {
	color: var(--ink);
	border-color: color-mix(in srgb, var(--line) 40%, var(--muted));
}

[data-slot="dialog-shortcut"] {
	font: 0.7rem/1 var(--mono);
	padding: 2px 5px;
	border: 1px solid var(--line);
	border-radius: 5px;
	color: var(--muted);
}

[data-slot="dialog-backdrop"] {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, #05060a 55%, transparent);
	backdrop-filter: blur(3px);
	z-index: 80;
}

[data-slot="dialog-content"] {
	position: fixed;
	top: 12vh;
	left: 50%;
	translate: -50% 0;
	width: min(38rem, calc(100vw - 32px));
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	z-index: 81;
}

[data-slot="dialog-title"] {
	padding: 14px 18px 0;
	font: 0.68rem/1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.palette-input {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}

[data-slot="command"] {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

[data-slot="command-input"] {
	flex: 1;
	padding: 15px 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: 1rem/1.4 var(--text);
	outline: none;
}

[data-slot="command-list"] {
	overflow-y: auto;
	padding: 6px 8px 10px;
}

[data-slot="command-group-label"] {
	display: block;
	padding: 10px 10px 4px;
	font: 0.64rem/1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

[data-slot="command-item"] {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--ink);
	font-size: 0.94rem;
	cursor: default;
}

[data-slot="command-item"][data-highlighted] {
	background: var(--accent-soft);
	color: var(--accent-ink);
}

[data-slot="command-item"][data-disabled] {
	opacity: 0.5;
}

.cmd-label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cmd-hint {
	font: 0.72rem/1 var(--mono);
	color: var(--muted);
}

[data-slot="command-empty"] {
	padding: 18px 12px;
	color: var(--muted);
	font-size: 0.9rem;
}

[data-slot="segmented-control"] {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
}

[data-slot="segmented-control-indicator"] {
	position: absolute;
	z-index: 0;
	top: var(--segmented-control-indicator-top);
	left: var(--segmented-control-indicator-left);
	width: var(--segmented-control-indicator-width);
	height: var(--segmented-control-indicator-height);
	border-radius: 999px;
	background: var(--accent-soft);
	transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

[data-slot="segmented-control-item"] {
	position: relative;
	z-index: 1;
	border: 0;
	background: none;
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--muted);
	font: 0.8rem/1.2 var(--text);
	cursor: pointer;
}

[data-slot="segmented-control-item"][data-checked] {
	color: var(--accent-ink);
	font-weight: 600;
}

[data-slot="segmented-control-item"]:hover {
	color: var(--ink);
}

[data-slot="avatar"] {
	position: relative;
	display: inline-flex;
}

/* Hover card: post previews over links. Positioned by the SDK; only the frame and type are ours. */
[data-slot="hover-card-content"] {
	width: min(22rem, calc(100vw - 32px));
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 14px 16px;
	z-index: 70;
}

.hover-preview {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hover-preview h4 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.3;
}

.hover-preview p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hover-preview .hover-meta {
	font: 0.7rem/1 var(--mono);
	letter-spacing: 0.06em;
	color: var(--muted);
}

.hover-preview .hover-cta {
	font: 0.72rem/1 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

/* ---------------------------------------------------------------- about page */

.about-page {
	max-width: 820px;
	margin: 0 auto;
}

.about-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
}

.profile-image-container {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
	border: 1px solid var(--line);
	background: var(--surface);
}

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

.about-header h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.8rem);
	letter-spacing: -0.015em;
}

.about-content {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.about-intro .lead {
	margin: 0;
	font-size: 1.15rem;
	color: var(--muted);
}

.about-content h2 {
	margin: 0 0 16px;
	font: 0.7rem/1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.role-card {
	display: flex;
	gap: 18px;
	padding: 16px 18px;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	margin-bottom: 12px;
}

.role-image {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	color: var(--ink);
	opacity: 0.82;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.role-card:hover .role-image {
	opacity: 1;
	color: var(--accent-ink);
}

.role-content {
	flex: 1;
}

.role-content h3,
.role-content h4 {
	margin: 0 0 3px;
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.role-content p {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.role-link {
	font: 0.82rem/1 var(--mono);
}

.about-content ul,
.about-content ol {
	padding-left: 1.2em;
	color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

/* ---------------------------------------------------------------- responsive + motion */

@media (max-width: 780px) {
	.feature {
		grid-template-columns: 1fr;
	}
	.feature-media {
		min-height: 200px;
		aspect-ratio: 16 / 9;
	}
	.row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.row-media {
		max-width: 100%;
	}
	.nav-links {
		gap: 12px;
		font-size: 0.86rem;
	}
	.nav-inner {
		gap: 14px;
	}
	.search-trigger span:not([data-slot]) {
		display: none;
	}
}

@media (max-width: 640px) {
	.nav-inner {
		flex-wrap: wrap;
		row-gap: 6px;
		padding: 10px 0;
	}
	.nav-links {
		order: 3;
		width: 100%;
		margin-left: 0;
		gap: 18px;
	}
	.site-main {
		padding-top: 36px;
	}
	.hero h1 {
		font-size: clamp(2.6rem, 12vw, 3.2rem);
	}
	.hero-meta .dot {
		display: none;
	}
	.hero-meta {
		gap: 4px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.progress,
	.related,
	.back {
		display: none;
	}
	body {
		background: #fff;
		color: #000;
	}
}
