:root {
	--color-ink: #f8fbff;
	--color-muted: #b6c0c8;
	--color-soft: #e8eef3;
	--color-night: #07100f;
	--color-forest: #0d2924;
	--color-teal: #22d3c5;
	--color-coral: #ff725c;
	--color-gold: #f7c85f;
	--color-plum: #7a4cff;
	--surface: rgba(255, 255, 255, 0.08);
	--surface-strong: rgba(255, 255, 255, 0.14);
	--border: rgba(255, 255, 255, 0.18);
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	--max-width: 1180px;
	--radius: 8px;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 18% 12%, rgba(34, 211, 197, 0.28), transparent 28rem),
		linear-gradient(135deg, #07100f 0%, #112c28 44%, #20122d 100%);
	color: var(--color-ink);
	font-family: "Inter", system-ui, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.skip-link:focus {
	background: #fff;
	clip: auto;
	color: #07100f;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 20;
}

.site-header {
	backdrop-filter: blur(18px);
	background: rgba(7, 16, 15, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	left: 0;
	position: sticky;
	right: 0;
	top: 0;
	z-index: 10;
}

.site-header__inner,
.site-footer__inner,
.content-shell,
.feature-band,
.post-preview-band,
.showcase-strip {
	margin-inline: auto;
	max-width: var(--max-width);
	width: min(calc(100% - 2rem), var(--max-width));
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-height: 76px;
}

.site-logo-text {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.primary-nav ul,
.footer-nav ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a,
.footer-nav a {
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--color-muted);
	display: inline-flex;
	font-size: 0.93rem;
	font-weight: 600;
	padding: 0.5rem 0.8rem;
}

.primary-nav a:hover,
.footer-nav a:hover {
	border-color: var(--border);
	color: var(--color-ink);
}

.hero-3d {
	align-items: end;
	display: grid;
	isolation: isolate;
	min-height: calc(100vh - 76px);
	overflow: hidden;
	padding: clamp(5rem, 10vw, 8rem) 1rem 2rem;
	position: relative;
}

.hero-3d::after {
	background: linear-gradient(180deg, rgba(7, 16, 15, 0.04), rgba(7, 16, 15, 0.88));
	bottom: 0;
	content: "";
	height: 28%;
	left: 0;
	position: absolute;
	right: 0;
	z-index: -1;
}

.hero-3d__canvas,
.hero-3d__art,
.hero-3d__aura {
	inset: 0;
	position: absolute;
	z-index: -3;
}

.hero-3d__canvas {
	height: 100%;
	width: 100%;
}

.hero-3d__art {
	filter: saturate(1.08) contrast(1.05);
	height: 100%;
	object-fit: cover;
	opacity: 0.42;
	transform: scale(1.04);
	width: 100%;
}

.hero-3d__aura {
	background:
		radial-gradient(circle at 72% 30%, rgba(247, 200, 95, 0.22), transparent 22rem),
		radial-gradient(circle at 18% 70%, rgba(255, 114, 92, 0.18), transparent 20rem),
		linear-gradient(90deg, rgba(7, 16, 15, 0.92), rgba(7, 16, 15, 0.32) 58%, rgba(32, 18, 45, 0.54));
	z-index: -2;
}

.hero-3d__content {
	margin: 0 auto;
	max-width: var(--max-width);
	padding-bottom: clamp(2rem, 6vw, 5rem);
	width: min(calc(100% - 2rem), var(--max-width));
}

.eyebrow,
.entry-meta,
.site-footer__eyebrow {
	color: var(--color-teal);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
}

.hero-3d h1 {
	font-size: clamp(2.9rem, 7vw, 6.4rem);
	letter-spacing: 0;
	line-height: 0.94;
	margin: 0;
	max-width: 900px;
	text-wrap: balance;
}

.hero-3d__lede {
	color: var(--color-soft);
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	margin: 1.6rem 0 0;
	max-width: 720px;
}

.hero-3d__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.button,
button,
input[type="submit"] {
	align-items: center;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1rem;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	transform: translateY(-2px);
}

.button--primary,
input[type="submit"] {
	background: linear-gradient(135deg, var(--color-teal), var(--color-gold));
	color: #06100f;
}

.button--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-ink);
}

.hero-3d__metrics {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto;
	max-width: var(--max-width);
	width: min(calc(100% - 2rem), var(--max-width));
}

.hero-3d__metrics div {
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1rem;
}

.hero-3d__metrics strong,
.hero-3d__metrics span {
	display: block;
}

.hero-3d__metrics strong {
	font-size: clamp(1.35rem, 3vw, 2.3rem);
	line-height: 1;
}

.hero-3d__metrics span {
	color: var(--color-muted);
	font-size: 0.88rem;
	margin-top: 0.3rem;
}

.feature-band,
.post-preview-band,
.content-shell {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	margin-bottom: 2rem;
}

.section-heading h2,
.archive-header h1,
.entry-header h1 {
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	line-height: 1;
	margin: 0;
	text-wrap: balance;
}

.feature-grid,
.post-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.post-card,
.entry-card,
.no-results,
.comments-area {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.feature-card {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
	overflow: hidden;
	padding: 0;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 220ms ease, background 220ms ease;
}

.feature-card:hover {
	background: var(--surface-strong);
	transform: perspective(800px) rotateX(4deg) rotateY(-5deg) translateY(-5px);
}

.feature-card__index {
	color: var(--color-coral);
	display: block;
	font-size: 0.85rem;
	font-weight: 900;
	padding: 1.1rem 1.1rem 0;
}

.feature-card img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.feature-card h3,
.post-card h3,
.entry-card h2 {
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.08;
	margin: 0.9rem 1.1rem 0.8rem;
}

.feature-card p,
.post-card p,
.entry-summary,
.archive-description,
.entry-content,
.no-results p,
.comments-area {
	color: var(--color-muted);
}

.feature-card p {
	margin: 0 1.1rem 1.2rem;
}

.showcase-strip {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-block: 1rem 4rem;
	perspective: 1000px;
}

.showcase-strip__panel {
	aspect-ratio: 1.25;
	background:
		linear-gradient(180deg, transparent 0%, rgba(7, 16, 15, 0.84) 100%),
		var(--panel-image),
		rgba(255, 255, 255, 0.1);
	background-position: center;
	background-size: cover;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	justify-content: end;
	padding: 1rem;
	transform: rotateX(8deg) rotateY(-12deg);
	transform-style: preserve-3d;
}

.showcase-strip__panel:nth-child(2) {
	transform: rotateX(3deg) rotateY(6deg) translateY(2rem);
}

.showcase-strip__panel:nth-child(3) {
	transform: rotateX(8deg) rotateY(12deg);
}

.showcase-strip__panel--portal {
	--panel-image: url("../img/ai-portal.png");
}

.showcase-strip__panel--liquid {
	--panel-image: url("../img/ai-liquid-ui.png");
}

.showcase-strip__panel--orbit {
	--panel-image: url("../img/ai-studio-orbit.png");
}

.showcase-strip__panel p {
	color: var(--color-muted);
	margin: 0;
}

.showcase-strip__panel strong {
	font-size: clamp(1.4rem, 3vw, 2.5rem);
	line-height: 1;
	margin-top: 0.4rem;
}

.post-card {
	overflow: hidden;
}

.post-card__media img,
.entry-card__media img,
.entry-hero-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.post-card__body,
.entry-card__body {
	padding: 1rem;
}

.post-card h3,
.entry-card h2 {
	margin-top: 0;
}

.post-list {
	display: grid;
	gap: 1rem;
}

.content-with-sidebar {
	align-items: start;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.widget-area {
	display: grid;
	gap: 1rem;
}

.sidebar-widget,
.error-404 {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1rem;
}

.sidebar-widget__title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.sidebar-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-widget li + li {
	margin-top: 0.5rem;
}

.search-form {
	display: flex;
	gap: 0.6rem;
	margin-top: 1rem;
	max-width: 640px;
}

.search-form label {
	flex: 1;
}

.error-404 {
	margin-inline: auto;
	max-width: 760px;
}

.error-404 h1 {
	font-size: clamp(2.4rem, 6vw, 5.4rem);
	line-height: 1;
	margin: 0 0 1rem;
	text-wrap: balance;
}

.error-404 .button {
	margin-top: 1rem;
}

.entry-card {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	overflow: hidden;
}

.entry-card:not(:has(.entry-card__media)) {
	grid-template-columns: 1fr;
}

.entry-title a:hover,
.text-link:hover {
	color: var(--color-gold);
}

.text-link {
	color: var(--color-teal);
	font-weight: 800;
}

.archive-header,
.entry-header {
	margin-bottom: 2rem;
	max-width: 860px;
}

.entry-full {
	margin-inline: auto;
	max-width: 900px;
}

.entry-hero-image {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 2rem;
	overflow: hidden;
}

.entry-content {
	font-size: 1.08rem;
}

.entry-content a {
	color: var(--color-teal);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.entry-content h2,
.entry-content h3 {
	color: var(--color-ink);
	line-height: 1.1;
	margin-top: 2rem;
}

.entry-content blockquote {
	border-left: 3px solid var(--color-coral);
	color: var(--color-soft);
	font-size: 1.25rem;
	margin: 2rem 0;
	padding-left: 1rem;
}

.page-links,
.entry-footer,
.nav-links {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.nav-links a {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: block;
	padding: 1rem;
}

.comments-area,
.no-results {
	margin-top: 3rem;
	padding: 1rem;
}

.comment-list {
	padding-left: 1.2rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea,
.search-field {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--color-ink);
	display: block;
	max-width: 100%;
	padding: 0.85rem;
	width: 100%;
}

.site-footer {
	background: rgba(0, 0, 0, 0.24);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 3rem;
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1.4fr 1fr;
}

.site-footer__headline {
	font-size: clamp(1.7rem, 4vw, 3.1rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
	max-width: 620px;
}

.site-footer__meta {
	color: var(--color-muted);
	grid-column: 1 / -1;
	margin: 0;
}

@media (max-width: 820px) {
	body.admin-bar .site-header {
		top: 0;
	}

	.site-header__inner,
	.section-heading,
	.entry-card,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 1rem;
	}

	.hero-3d {
		min-height: auto;
		padding-top: 4rem;
	}

	.hero-3d h1 {
		font-size: clamp(2.8rem, 14vw, 4.8rem);
	}

	.hero-3d__metrics,
	.feature-grid,
	.post-grid,
	.showcase-strip,
	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.search-form {
		flex-direction: column;
	}

	.showcase-strip__panel,
	.showcase-strip__panel:nth-child(2),
	.showcase-strip__panel:nth-child(3) {
		aspect-ratio: 16 / 9;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
