/* Tokens */
:root {
	--bg: oklch(99% 0 0);
	--fg: oklch(21% 0.03 260);
	--muted: oklch(58% 0.03 250);
	--accent: oklch(60% 0.15 245);
	--card: oklch(98% 0.01 250);
	--ring: color-mix(in oklab, var(--accent) 40%, transparent);
	--space: clamp(16px, 1.6vw, 24px);

	--measure: 68ch;
	--measure-tight: 62ch;
	--leading: 1.7;
	--leading-tight: 1.32;
	--para-space: .9rem;

	--shadow-1: 0 1px 0 color-mix(in oklab, var(--fg) 12%, transparent);
	--shadow-2: 0 8px 22px color-mix(in oklab, var(--fg) 12%, transparent);
	--shadow-3: 0 12px 38px color-mix(in oklab, var(--fg) 12%, transparent);

	/* unified content column (hero + all panels) */
	--column: 800px;
}

:root[data-theme="dark"] {
	--bg: oklch(18% 0.02 260);
	--fg: oklch(95% 0.01 260);
	--muted: oklch(80% 0.02 250);
	--accent: oklch(70% 0.14 245);
	--card: oklch(22% 0.02 260);
}

@media (min-width:1100px) {
	:root {
		--measure: 62ch;
	}
}

/* Base */
* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font: 16px/var(--leading) "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	background: var(--bg);
	color: var(--fg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	color-scheme: light dark;
}

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

::selection {
	background: color-mix(in oklab, var(--accent) 35%, transparent);
}

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

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

h1,
h2,
h3 {
	font-variation-settings: "wght" 700, "slnt" 0;
	letter-spacing: -.015em;
	line-height: var(--leading-tight);
	text-wrap: balance;
	margin-block: 0 .6rem;
}

p,
ul,
ol {
	max-width: var(--measure);
}

p {
	margin-block: 0;
}

p+p {
	margin-top: var(--para-space);
}

:where(ul, ol) {
	padding-left: 1.2rem;
	margin: .5rem 0 var(--para-space);
}

:where(li) {
	margin: .25rem 0;
}

:where(li > ul, li > ol) {
	margin-top: .25rem;
}

:where(ul li)::marker {
	color: color-mix(in oklab, var(--fg) 65%, transparent);
}

.tagline {
	font-variation-settings: "wght" 450;
}

/* Layout */
.container {
	width: min(1100px, 92vw);
	margin: 0 auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--accent);
	color: white;
	padding: .5rem .75rem;
	border-radius: .375rem;
}

.skip-link:focus {
	left: .5rem;
	top: .5rem;
	z-index: 1000;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: saturate(180%) blur(8px);
	background: color-mix(in oklab, var(--bg) 65%, transparent);
	border-bottom: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
	box-shadow: 0 2px 20px color-mix(in oklab, var(--fg) 10%, transparent);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 1rem;
}

.logo {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--fg);
}

.nav-links {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
	align-items: center;
}

.nav a {
	padding: .25rem .5rem;
	border-radius: .375rem;
}

.nav a:hover,
.nav a[aria-current="true"] {
	background: color-mix(in oklab, var(--card) 85%, transparent);
}

.theme-toggle {
	border: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
	background: var(--card);
	color: var(--fg);
	padding: .4rem .6rem;
	border-radius: .5rem;
	cursor: pointer;
}

/* Hero */
.hero {
	position: relative;
	overflow: clip;
	padding: clamp(6rem, 12vw, 12rem) 0 3rem;
}

/* center the hero content and match panel width */
.hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: min(var(--column), 92vw);
	margin-inline: auto;
}

.hero h1 {
	font-size: clamp(2.4rem, 8vw, 5rem);
	margin: 0 0 .25rem;
	letter-spacing: -.02em;
}

.tagline {
	font-size: clamp(1.1rem, 1.2vw + 1rem, 1.35rem);
	color: color-mix(in oklab, var(--muted) 92%, transparent);
	max-width: 60ch;
}

#stars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .8));
}

/* Badges */
.meta-badges {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .85rem;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .9rem;
	padding: .3rem .55rem;
	border-radius: 999px;
	border: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
	background: color-mix(in oklab, var(--card) 85%, transparent);
	box-shadow: 0 1px 0 color-mix(in oklab, var(--fg) 10%, transparent);
	white-space: nowrap;
}

.badge .dot {
	width: .45rem;
	height: .45rem;
	border-radius: 999px;
	background: var(--accent);
}

/* Buttons + CTA */
.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .75rem 1rem;
	margin-top: 1.25rem;
}

.btn {
	display: inline-block;
	padding: .65rem .9rem;
	border-radius: .6rem;
	background: var(--fg);
	color: var(--bg);
	border: 1px solid var(--fg);
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-2);
}

.btn:active {
	transform: translateY(0);
}

.btn.secondary {
	background: transparent;
	color: var(--fg);
	border-color: color-mix(in oklab, var(--fg) 25%, transparent);
}

/* Social icon bar (compact) */
.socials {
	display: flex;
	gap: .75rem;
	align-items: center;
}

.icon-link {
	inline-size: 40px;
	block-size: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 8px;
	background: transparent;
	outline: none;
}

.icon-link svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	color: var(--muted);
	opacity: .85;
	transition: opacity .15s ease, transform .15s ease, color .15s ease;
}

.icon-link:hover svg,
.icon-link:focus-visible svg {
	color: var(--fg);
	opacity: 1;
	transform: translateY(-1px);
}

/* Simple Icons via CSS mask */
.si {
	width: 22px;
	height: 22px;
	display: inline-block;
	background-color: var(--muted);
	mask: no-repeat center / contain;
	-webkit-mask: no-repeat center / contain;
}

/* Fiverr glyph from Simple Icons CDN */
.si-fiverr {
	mask-image: url("https://cdn.simpleicons.org/fiverr");
	-webkit-mask-image: url("https://cdn.simpleicons.org/fiverr");
}

/* hover/focus matches your SVG behavior */
.icon-link:hover .si,
.icon-link:focus-visible .si {
	background-color: var(--fg);
}


/* Sections (homepage/sections remain centered) */
.section {
	padding: clamp(2.5rem, 6vw, 5rem) 0;
}

/* center section headings and inner content column */
.section .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section h2 {
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	margin: 0 0 1rem;
	text-align: center;
}

.section .container>p {
	text-align: center;
}

/* Panel + Card list (now unified width & centered) */
.panel {
	background: color-mix(in oklab, var(--card) 90%, transparent);
	border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
	border-radius: 1rem;
	box-shadow: var(--shadow-1);
	padding: .75rem;
	max-width: min(var(--column), 92vw);
	margin-inline: auto;
	width: 100%;
}

.card-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	width: 100%;
}

.card-item {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	align-items: center;
	gap: .9rem;
	padding: .7rem .6rem;
	border-radius: .75rem;
}

.card-item:hover {
	background: color-mix(in oklab, var(--card) 70%, transparent);
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: oklch(95% .03 var(--avatar-h, 230));
	border: 1px solid color-mix(in oklab, var(--fg) 14%, transparent);
	display: grid;
	place-items: center;
	font-weight: 700;
	color: oklch(25% .03 var(--avatar-h, 230));
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 9999px;
	display: block;
}

.card-item .content {
	min-width: 0;
}

.card-item .title {
	font-weight: 600;
	line-height: 1.3;
}

.card-item .subtitle {
	color: var(--muted);
	font-size: .92rem;
	line-height: 1.35;
}

.card-item .meta {
	color: var(--muted);
	font-size: .92rem;
	white-space: nowrap;
}

/* Panel CTA */
.panel-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: .5rem;
	padding: .75rem;
	border-radius: .7rem;
	background: color-mix(in oklab, var(--card) 75%, transparent);
	border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
	color: var(--fg);
	width: 100%;
}

.panel-cta:hover {
	background: color-mix(in oklab, var(--card) 85%, transparent);
}

.exp-inline-summary {
	margin: 0 0 1rem;
}

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

.site-footer {
	padding: 2rem 0 4rem;
	border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
}

/* Responsive / a11y bits */
@media (max-width:640px) {
	.nav-links {
		display: none;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@supports (animation-timeline: view()) {
	.reveal {
		opacity: 0;
		transform: translateY(12px);
		animation: fadeUp both linear;
		animation-timeline: view();
		animation-range: entry 0% cover 30%;
	}

	@keyframes fadeUp {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

@media (max-width:380px) {
	body {
		font-size: 15px;
	}
}

@media (min-width:920px) {
	body {
		font-size: 17px;
	}
}

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

	.btn {
		transition: none;
	}
}

/* Article layout */
.article {
	padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.article .container {
	display: block;
	text-align: left;
	padding: 0 1.25rem;
}

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

.article .prose :where(h1, h2, h3, p, ul, ol) {
	text-align: left;
}

.article .prose h1 {
	margin-top: 0.2rem;
}

.article .prose h2 {
	margin-top: 2rem;
}

.article .prose hr {
	border: 0;
	height: 1px;
	background: color-mix(in oklab, var(--fg) 18%, transparent);
	margin: 1.5rem 0;
}

.article .prose img,
.article .prose figure {
	max-width: 100%;
	margin: 1.25rem 0;
}

.article .container.prose {
  width: auto;
  max-width: var(--measure);
  margin-inline: auto;
}