:root {
	/* Non-color design tokens */
	--font-body: 'Space Grotesk', sans-serif;
	--content-width: 1200px;
	--reading-width: 760px;
	--bp-mobile: 480px;
	--bp-small: 600px;
	--bp-medium: 782px;
	--bp-large: 960px;
	--bp-wide: 1280px;
	--bp-huge: 1440px;
}

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

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

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 1.6;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	-webkit-text-stroke: 0.4px currentColor;
	text-stroke: 0.4px currentColor;
	line-height: 1.08;
	letter-spacing: -0.022em;
	margin: 0 0 0.5em;
}

body h1 {
	font-size: clamp(42px, 6.2vw, 76px);
}

body h2,
.sctn h2 {
	font-size: clamp(28px, 3.5vw, 44px);
}

body h3,
.sctn h3 {
	font-size: clamp(22px, 2.5vw, 28px);
}

body h4,
.sctn h4 {
	font-size: clamp(18px, 2vw, 22px);
}

.sctn {
	transition: opacity 0.6s ease, filter 0.6s ease;
}

.sctn.is-covered {
	opacity: 0.1;
	filter: blur(8px);
}

p {
	margin: 0 0 1em;
}

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

.skip-link:focus {
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--color-card);
	border: 1px solid var(--color-border);
}

.site-footer {
	background: var(--color-card);
	border: none;
}



.site-footer__inner,
.content-wrap {
	width: min(100% - 2rem, var(--content-width));
	margin-inline: auto;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}

.site-main {
	min-height: 60vh;
}

.content-wrap {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.entry {
	max-width: var(--reading-width);
}

.single .entry {
	max-width: var(--content-width);
}

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

.single .entry-cta {
	max-width: 100%;
	background: linear-gradient(135deg, var(--color-ink) 0%, rgba(var(--color-violet-rgb), 0.12) 100%);
	border-color: rgba(255, 255, 255, 0.08);
}

.single .entry-cta__text {
	color: #fff;
}

.single .site-main,
.blog .site-main,
.archive .site-main {
	background: var(--color-ink);
	color: #fff;
}

.single .breadcrumbs,
.single .breadcrumbs a,
.blog .breadcrumbs,
.blog .breadcrumbs a,
.archive .breadcrumbs,
.archive .breadcrumbs a {
	color: rgba(255, 255, 255, 0.55);
}

.single .breadcrumbs__current,
.blog .breadcrumbs__current,
.archive .breadcrumbs__current {
	color: #fff;
}

.single .entry-meta,
.blog .archive-description,
.archive .archive-description {
	color: rgba(255, 255, 255, 0.55);
}

.entry--centered {
	text-align: center;
}

.entry-title,
.archive-title {
	margin: 0;
	line-height: 1.05;
}

.entry-title,
.archive-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.entry-header,
.archive-header {
	margin-bottom: 2rem;
}

.entry-meta,
.archive-description {
	color: var(--color-mut);
}

.post-card__excerpt {
	color: rgba(255, 255, 255, 0.6);
}

.entry-content > * {
	max-width: var(--reading-width);
}

.entry-content > .alignwide {
	max-width: var(--content-width);
}

.entry-content > .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 1.5rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, var(--color-ink) 0%, rgba(var(--color-violet-rgb), 0.12) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: background 0.3s ease, box-shadow 0.2s ease, translate 0.2s ease;
}

.post-card:hover {
	background: linear-gradient(135deg, rgba(var(--color-violet-rgb), 0.22) 0%, var(--color-ink) 100%);
	box-shadow: 0 8px 30px rgba(var(--color-violet-rgb), 0.15);
	translate: 0 -2px;
}

.post-card__image {
	display: block;
	overflow: hidden;
}

.post-card__image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: scale 0.3s ease;
}

.post-card:hover .post-card__image img {
	scale: 1.05;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1.25rem 1.5rem;
	flex: 1;
}

.post-card__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.post-card__title a {
	color: #fff;
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--color-accent);
}

.post-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__link {
	margin-top: auto;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.post-card__link:hover {
	text-decoration: underline;
}

.blog-header {
	margin-bottom: 3rem;
}

.blog-title {
	font-size: clamp(3rem, 8vw, 5.5rem);
	line-height: 1.05;
	margin: 0;
}

.breadcrumbs {
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
	color: var(--color-mut);
}

.breadcrumbs a {
	color: var(--color-mut);
	text-decoration: none;
}

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

.breadcrumbs__sep {
	margin: 0 0.5em;
}

.breadcrumbs__current {
	color: var(--color-ink);
	font-weight: 500;
}

.entry-cta {
	margin-top: 3rem;
	padding: 2rem;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	text-align: center;
	max-width: var(--reading-width);
}

.entry-cta__text {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 1rem;
	color: var(--color-ink);
}

.entry-cta__btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: var(--color-accent);
	color: var(--color-card);
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.entry-cta__btn:hover {
	background: var(--color-accent);
}

.nav-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 2rem;
}

.nav-links a,
.nav-links span {
	display: inline-flex;
	min-width: 2.5rem;
	min-height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	text-decoration: none;
}

/* ── Planes expander ── */
.planes-toggle {
	background: transparent;
	cursor: pointer;
}
.planes-toggle__arrow {
	display: inline-block;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 0.7em;
}
.planes-toggle[aria-expanded="true"] .planes-toggle__arrow {
	transform: rotate(180deg);
}
.planes-expander {
	overflow: hidden;
	height: 0;
	transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 960px) {
	.planes-toggle {
		display: none !important;
	}
	.planes-expander {
		height: auto !important;
		overflow: visible;
	}
}

/* ── Bio flipper ── */
.bio-flipper-dots {
	display: none;
}

@media (max-width: 767px) {
	.bio-flipper-grid {
		display: block;
		position: relative;
		overflow: hidden;
	}

	[data-bio-card] {
		transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		width: 100%;
		cursor: pointer;
	}

	[data-bio-card]:not(.is-active) {
		opacity: 0;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		pointer-events: none;
		transform: translateX(20px);
	}

	[data-bio-card].is-active {
		opacity: 1;
		transform: translateX(0);
		position: relative;
	}

	.bio-flipper-dots {
		display: flex;
		justify-content: center;
		gap: 0.5rem;
		margin-top: 1.25rem;
	}

	.bio-flipper-dot {
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: var(--color-border);
		border: none;
		cursor: pointer;
		padding: 0;
		transition: background 0.2s ease, transform 0.2s ease;
	}

	.bio-flipper-dot:hover {
		transform: scale(1.3);
	}

	.bio-flipper-dot.is-active {
		background: var(--color-violet);
		transform: scale(1.3);
	}
}

@media (max-width: 782px) {
	.site-footer__inner {
		display: block;
	}

	.site-footer__navigation {
		margin-top: 1rem;
	}
}
