/**
 * ONE Systemics — main styles
 * Premium · minimal · responsive
 */

:root {
	--ink: #111111;
	--ink-soft: #3a3a3a;
	--muted: #6e6e6e;
	--line: rgba(17, 17, 17, 0.12);
	--surface: #f0f0f0;
	--surface-2: #e6e6e6;
	--paper: #f0f0f0;
	--accent: #1a1a1a;
	--accent-hover: #000000;
	--accent-mist: rgba(17, 17, 17, 0.06);
	--hero-glow: rgba(17, 17, 17, 0.06);
	--hero-wash: #f0f0f0;

	--font-display: "Syne", system-ui, sans-serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--space-9: 7rem;

	--radius: 2px;
	--max: 72rem;
	--narrow: 42rem;
	--header-h: 4.25rem;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow-soft: 0 1px 0 rgba(17, 17, 17, 0.05);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--surface);
	min-height: 100vh;
	text-rendering: optimizeLegibility;
}

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

img,
video,
.wp-block-image img,
.wp-post-image {
	filter: grayscale(1);
}

.custom-logo,
.site-branding .custom-logo,
.product__pack-image {
	filter: none;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--ease);
}

a:hover,
a:focus-visible {
	color: var(--accent-hover);
}

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: var(--space-4);
	top: var(--space-4);
	z-index: 100000;
	background: var(--ink);
	color: var(--paper);
	padding: var(--space-3) var(--space-4);
	text-decoration: none;
}

/* —— Layout —— */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

.content-wrap {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
	padding-block: var(--space-7);
}

.content-wrap--narrow {
	width: min(100% - 2rem, var(--narrow));
}

/* —— Header —— */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	background: rgba(240, 240, 240, 0.92);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.site-branding .site-title,
.site-branding .custom-logo-link {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.site-branding a {
	color: var(--ink);
	text-decoration: none;
}

.site-branding a:hover {
	color: var(--accent);
}

.custom-logo {
	max-height: 2.25rem;
	width: auto;
}

.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.65rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ink);
	transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
	transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type {
	transform: translateY(-4px) rotate(-45deg);
}

.primary-navigation {
	position: fixed;
	inset: var(--header-h) 0 auto 0;
	background: rgba(240, 240, 240, 0.97);
	border-bottom: 1px solid var(--line);
	padding: var(--space-5) var(--space-4);
	transform: translateY(-0.5rem);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.primary-navigation.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.primary-menu a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}

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

.primary-menu .sub-menu {
	list-style: none;
	margin: var(--space-2) 0 0 var(--space-4);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.primary-navigation {
		position: static;
		inset: auto;
		background: transparent;
		border: 0;
		padding: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.primary-menu {
		flex-direction: row;
		align-items: center;
		gap: var(--space-5);
	}

	.primary-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 12rem;
		margin: 0;
		padding: var(--space-3);
		background: var(--paper);
		border: 1px solid var(--line);
		box-shadow: var(--shadow-soft);
	}

	.primary-menu > .menu-item-has-children {
		position: relative;
	}

	.primary-menu > .menu-item-has-children:hover > .sub-menu,
	.primary-menu > .menu-item-has-children:focus-within > .sub-menu {
		display: flex;
	}
}

/* —— Hero —— */

/* Front page: let the hero fill the first screen (mobile Safari ignores nested min-height alone). */
body.home .site-main,
body.front-page .site-main {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
}

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	flex: 1 0 auto;
	width: 100%;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	min-height: calc(100dvh - var(--header-h));
	overflow: hidden;
	padding: var(--space-8) 0 var(--space-7);
	border-bottom: 1px solid var(--line);
}

.admin-bar.home .site-main,
.admin-bar.front-page .site-main,
.admin-bar .hero {
	min-height: calc(100vh - var(--header-h) - 32px);
	min-height: calc(100svh - var(--header-h) - 32px);
	min-height: calc(100dvh - var(--header-h) - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar.home .site-main,
	.admin-bar.front-page .site-main,
	.admin-bar .hero {
		min-height: calc(100vh - var(--header-h) - 46px);
		min-height: calc(100svh - var(--header-h) - 46px);
		min-height: calc(100dvh - var(--header-h) - 46px);
	}
}

/* Mobile: set an explicit height — min-height alone often collapses under sticky chrome. */
@media (max-width: 767px) {
	body.home .site-main,
	body.front-page .site-main {
		min-height: calc(100svh - var(--header-h));
	}

	.hero {
		min-height: calc(100svh - var(--header-h));
		height: calc(100svh - var(--header-h));
		padding: var(--space-6) 0 var(--space-6);
	}

	.admin-bar .hero {
		min-height: calc(100svh - var(--header-h) - 46px);
		height: calc(100svh - var(--header-h) - 46px);
	}
}

.hero__atmosphere {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--surface);
}

@keyframes onesys-wash {
	from {
		transform: scale(1) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.04) translate3d(-1.5%, 1%, 0);
	}
}

.hero__content {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
	max-width: 36rem;
	animation: onesys-rise 0.9s var(--ease) both;
}

@keyframes onesys-rise {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__brand {
	margin: 0 0 var(--space-5);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.75rem, 9vw, 5.5rem);
	line-height: 0.95;
	letter-spacing: -0.045em;
	color: var(--ink);
}

.hero__headline {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--ink-soft);
}

.hero__lede {
	margin: 0 0 var(--space-6);
	font-size: 1.125rem;
	color: var(--muted);
	max-width: 28ch;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

/* —— Buttons —— */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: 0.7rem 1.25rem;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
	border-radius: var(--radius);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:active {
	transform: translateY(1px);
}

.button--primary {
	background: var(--accent);
	color: #fafafa;
}

.button--primary:hover,
.button--primary:focus-visible {
	background: var(--accent-hover);
	color: #ffffff;
}

.button--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.button--ghost:hover,
.button--ghost:focus-visible {
	border-color: var(--ink);
	color: var(--ink);
}

/* —— Sections —— */

.section {
	padding-block: var(--space-8);
}

.section--work,
.section--factory {
	border-bottom: 1px solid var(--line);
}

/* —— Products (The Factory) —— */

.product-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.product {
	display: grid;
	gap: var(--space-5);
	padding-block: var(--space-6);
	border-top: 1px solid var(--line);
}

.product:last-child {
	border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
	.product {
		grid-template-columns: 1.4fr 1fr;
		align-items: start;
		gap: var(--space-7);
	}

	.product:not(:has(.product__pack)) {
		grid-template-columns: 1fr;
		max-width: 40rem;
	}
}

.product__name {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.product__tagline {
	margin: 0 0 var(--space-3);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: -0.015em;
	color: var(--ink-soft);
}

.product__blurb {
	margin: 0 0 var(--space-4);
	color: var(--muted);
	max-width: 42ch;
}

.product__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-4);
}

.product__links a {
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--accent);
}

.product__links a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

/* —— Pack carousel —— */

.pack-carousel {
	width: min(100%, 15.5rem);
	margin-inline: auto;
	perspective: 900px;
}

@media (min-width: 800px) {
	.pack-carousel {
		margin-inline: 0 0 auto;
	}
}

.pack-carousel__stage {
	position: relative;
	/* Extra room below so ghost cards don’t sit on the arrows */
	margin-bottom: var(--space-6);
}

.pack-carousel__depth {
	position: absolute;
	inset: 0.55rem 0.4rem -0.55rem;
	pointer-events: none;
	z-index: 0;
}

.pack-carousel__ghost {
	position: absolute;
	inset: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
}

.pack-carousel__ghost:nth-child(1) {
	transform: translate(0.45rem, 0.45rem) rotate(2.5deg);
	opacity: 0.85;
}

.pack-carousel__ghost:nth-child(2) {
	transform: translate(0.9rem, 0.85rem) rotate(5deg);
	opacity: 0.55;
}

.pack-carousel__viewport {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: var(--radius);
}

.pack-carousel__track {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.pack-carousel__slide {
	display: none;
	transform-origin: center center;
}

.pack-carousel__slide.is-active {
	display: block;
	animation: onesys-pack-flip 0.45s var(--ease) both;
}

.pack-carousel__slide.is-exit {
	display: block;
	position: absolute;
	inset: 0;
	animation: onesys-pack-flip-out 0.35s var(--ease) both;
	pointer-events: none;
}

@keyframes onesys-pack-flip {
	from {
		opacity: 0;
		transform: rotateY(-72deg) scale(0.94);
	}
	to {
		opacity: 1;
		transform: rotateY(0) scale(1);
	}
}

@keyframes onesys-pack-flip-out {
	from {
		opacity: 1;
		transform: rotateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: rotateY(72deg) scale(0.94);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pack-carousel__slide.is-active,
	.pack-carousel__slide.is-exit {
		animation: none;
	}
}

.product__pack {
	padding: var(--space-3);
	background: linear-gradient(160deg, rgba(17, 17, 17, 0.05), rgba(240, 240, 240, 0.96));
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.product__pack--soon {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: repeating-linear-gradient(
		-45deg,
		rgba(17, 17, 17, 0.03),
		rgba(17, 17, 17, 0.03) 6px,
		rgba(240, 240, 240, 0.9) 6px,
		rgba(240, 240, 240, 0.9) 12px
	);
}

.product__pack-soon-art {
	aspect-ratio: 1 / 1;
	margin: 0 0 var(--space-3);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
}

.product__pack-media {
	margin: 0 0 var(--space-3);
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: #111;
}

.product__pack-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.product__pack-label {
	margin: 0 0 var(--space-1);
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.product__pack-name {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.product__pack-version {
	margin-left: var(--space-2);
	font-weight: 600;
	font-size: 0.78rem;
	color: var(--muted);
}

.product__pack-blurb {
	margin: 0 0 var(--space-3);
	color: var(--ink-soft);
	font-size: 0.88rem;
	line-height: 1.45;
}

.product__pack .button {
	width: 100%;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	font-size: 0.85rem;
}

.pack-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	position: relative;
	z-index: 2;
	margin-top: var(--space-2);
	padding-top: var(--space-1);
}

.pack-carousel__btn {
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.pack-carousel__btn:hover,
.pack-carousel__btn:focus-visible {
	border-color: var(--ink);
}

.pack-carousel__dots {
	display: flex;
	gap: 0.35rem;
}

.pack-carousel__dot {
	width: 0.45rem;
	height: 0.45rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--line);
	cursor: pointer;
}

.pack-carousel__dot.is-active {
	background: var(--ink);
}

/* —— Contact / legal —— */

.legal-meta {
	margin-top: var(--space-6);
	color: var(--muted);
	font-size: 0.9rem;
}

.section-header {
	margin-bottom: var(--space-6);
	max-width: 28rem;
}

.section-title {
	margin: 0 0 var(--space-3);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.section-lede {
	margin: 0;
	color: var(--muted);
}

.page-header {
	margin-bottom: var(--space-6);
}

.page-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.archive-description {
	margin-top: var(--space-3);
	color: var(--muted);
}

.empty-note {
	color: var(--muted);
}

/* —— Posts —— */

.posts-feed {
	display: grid;
	gap: var(--space-6);
}

@media (min-width: 720px) {
	.posts-feed--home {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-5);
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-bottom: var(--space-5);
	border-bottom: 1px solid var(--line);
}

.posts-feed--home .post-card {
	border-bottom: 0;
	padding-bottom: 0;
}

.post-thumbnail {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-2);
}

.post-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

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

.entry-title {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-weight: 650;
	font-size: 1.35rem;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.entry-title a {
	color: var(--ink);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--accent);
}

.single .entry-title,
.page .entry-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: var(--space-4);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	font-size: 0.875rem;
	color: var(--muted);
}

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

.entry-meta a:hover {
	color: var(--accent);
}

.entry-summary {
	color: var(--ink-soft);
}

.entry-content {
	font-size: 1.125rem;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-top: 1.75em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-block: 1em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding-left: var(--space-5);
	border-left: 2px solid var(--accent);
	color: var(--ink-soft);
	font-style: italic;
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	overflow-x: auto;
	padding: var(--space-4);
	background: var(--ink);
	color: #e8e8e8;
	border-radius: var(--radius);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-footer {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	font-size: 0.9rem;
	color: var(--muted);
}

/* —— Navigation / pagination —— */

.navigation.pagination,
.post-navigation {
	margin-top: var(--space-7);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.nav-subtitle {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: var(--space-1);
}

.nav-title {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--space-2);
	margin-right: var(--space-1);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 0.875rem;
}

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

/* —— Forms —— */

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-5) 0;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}

.search-form .search-field {
	flex: 1 1 12rem;
}

.comment-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.comment-form label {
	display: block;
	margin-bottom: var(--space-2);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url,
.comment-form .comment-form-comment {
	margin-bottom: var(--space-4);
}

.comments-area {
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--line);
}

.comment-list {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: var(--space-4) 0 0 var(--space-4);
	padding: 0;
}

.comment-body {
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	font-family: var(--font-display);
	font-weight: 600;
}

/* —— 404 —— */

.error-404 {
	text-align: left;
	padding-block: var(--space-7);
}

.error-404__code {
	margin: 0 0 var(--space-3);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(4rem, 14vw, 7rem);
	letter-spacing: -0.06em;
	line-height: 0.9;
	color: var(--accent);
	opacity: 0.35;
}

.error-404__text {
	color: var(--muted);
	margin-bottom: var(--space-5);
}

/* —— Footer —— */

.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--line);
	background: rgba(230, 230, 230, 0.55);
	padding-block: var(--space-7);
}

.site-footer__inner {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
	display: grid;
	gap: var(--space-5);
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.footer-menu a {
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--accent);
}

.social-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

.social-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius);
	color: var(--ink-soft);
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease;
}

.social-nav__link:hover,
.social-nav__link:focus-visible {
	color: var(--accent);
	background: rgba(17, 17, 17, 0.06);
}

.social-nav__icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.social-nav__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.site-info {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted);
}

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

.widget-title {
	font-family: var(--font-display);
	font-size: 0.95rem;
	margin: 0 0 var(--space-3);
}

.widget ul {
	margin: 0;
	padding-left: 1.1rem;
}

/* —— Align / WP blocks —— */

.alignwide {
	margin-left: calc(50% - min(50vw - 1rem, var(--max) / 2));
	margin-right: calc(50% - min(50vw - 1rem, var(--max) / 2));
	max-width: var(--max);
	width: auto;
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-block-image figcaption,
.wp-caption-text {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: var(--space-2);
}

/* —— Motion: subtle reveal for feed —— */

@media (prefers-reduced-motion: no-preference) {
	.posts-feed .post-card {
		animation: onesys-rise 0.7s var(--ease) both;
	}

	.posts-feed .post-card:nth-child(2) {
		animation-delay: 0.08s;
	}

	.posts-feed .post-card:nth-child(3) {
		animation-delay: 0.16s;
	}
}
