/* Skins & Typography */
html {
	--xxs: 8rem;
	--xs: 16rem;
	--sm: 32rem;
	--md: 48rem;
	--lg: 64rem;
	--xl: 72rem;

	--size: 1rem;
	--size-0-2-5: calc(var(--size) / 4);
	--size-0-5: calc(var(--size) / 2);
	--size-0-7-5: calc(var(--size) * 0.75);
	--size-1-2-5: calc(var(--size) * 1.25);
	--size-1-5: calc(var(--size) * 1.5);
	--size-2: calc(var(--size) * 2);
	--size-2-5: calc(var(--size) * 2.5);
	--size-3: calc(var(--size) * 3);
	--size-4: calc(var(--size) * 4);
	--size-5: calc(var(--size) * 5);
	--size-6: calc(var(--size) * 6);

	--text: var(--stone-800);
	--text-heading: var(--stone-900);
	--text-muted: var(--stone-500);
	--text-inverse: var(--stone-100);
	--text-inverse-hover: var(--stone-200);
	--text-disabled: var(--stone-300);
	
  --text-max-width: 65ch;

	--heading-font: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto,
		sans-serif;

	/* --bg: #fff; */
	--bg-alt: var(--stone-100);
	--bg-alt-2: var(--stone-200);
	--bg-disabled: var(--stone-600);
	--bg-dark: var(--stone-900);

	--border: var(--stone-300);
	--border-dark: var(--stone-600);

	--accent: var(--red-600);
	--accent-hover: var(--red-700);
}

/* 🌊 Blue-Slate (cool, modern) */
html.theme-blue {
	--text: var(--slate-800);
	--text-heading: var(--slate-900);
	--text-muted: var(--slate-500);
	--text-inverse: var(--slate-50);
	--text-inverse-hover: var(--slate-200);
	--text-disabled: var(--slate-400);

	--bg: #fff;
	--bg-alt: var(--slate-100);
	--bg-alt-2: var(--slate-200);
	--bg-disabled: var(--slate-600);
	--bg-dark: var(--slate-900);

	--border: var(--slate-300);
	--border-dark: var(--slate-600);

	--accent: var(--blue-500);
	--accent-hover: var(--blue-600);
}

/* 🌞 Amber-Warm (energetic, welcoming) */
html.theme-amber {
	--text: var(--stone-800);
	--text-heading: var(--stone-900);
	--text-muted: var(--stone-500);
	--text-inverse: var(--stone-50);
	--text-inverse-hover: var(--stone-200);
	--text-disabled: var(--stone-400);

	--bg: #fff;
	--bg-alt: var(--amber-50);
	--bg-alt-2: var(--amber-100);
	--bg-disabled: var(--stone-600);
	--bg-dark: var(--stone-900);

	--border: var(--amber-200);
	--border-dark: var(--amber-600);

	--accent: var(--amber-500);
	--accent-hover: var(--amber-600);
}

/* 🌲 Forest-Green (earthy, calm) */
html.theme-green {
	--text: var(--zinc-800);
	--text-heading: var(--zinc-900);
	--text-muted: var(--zinc-500);
	--text-inverse: var(--zinc-50);
	--text-inverse-hover: var(--zinc-200);
	--text-disabled: var(--zinc-400);

	--bg: #fff;
	--bg-alt: var(--green-50);
	--bg-alt-2: var(--green-100);
	--bg-disabled: var(--zinc-600);
	--bg-dark: var(--zinc-900);

	--border: var(--green-200);
	--border-dark: var(--green-600);

	--accent: var(--green-600);
	--accent-hover: var(--green-700);
}

body {
	color: var(--text);
	line-height: 1.6;
}

h1,
.h1 {
	font-size: var(--size-2-5);
	font-weight: bold;
}

.h1,
h1,
.h2,
h2,
.h3,
h3 {
	color: var(--text-heading);
	font-family: var(--heading-font);
	font-weight: 750;
	letter-spacing: -0.015em;
	line-height: 1.2;
	text-wrap: balance;
	margin: 0 0 0.5em;
}

.kicker {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

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

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

main h2 {
	margin-block-start: var(--size-1-5);
}

button,
.button {
	padding-block: var(--size-0-5);
	padding-inline: var(--size-1-5);
}

blockquote {
	margin: 0;
	padding-block: var(--size);
	padding-inline: var(--size-1-5);
	background-color: var(--text-inverse);
}

.bg-white {
	background-color: white;
}

button,
.button {
	display: inline-flex;
	justify-content: center;
	margin-block-start: var(--size-0-2-5);
	padding: 0.6em 1.2em;
	appearance: none;
	background-color: var(--bg-dark);
	color: var(--text-inverse);
	border: none;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover,
.button:hover {
	color: var(--text-inverse-hover);
	text-decoration: none;
}

button:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--text-dark);
	outline-offset: 2px;
	color: var(--text-inverse-hover);
}

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

/* Disabled state */
button:disabled,
.button[aria-disabled='true'] {
	background-color: var(--bg-disabled);
	color: var(--text-disabled);
	cursor: not-allowed;
	opacity: 0.7;
}

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

	&:hover {
		text-decoration: underline;
	}
}

.content figure {
	margin: 0;
	padding: var(--size-0-7-5);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
}

.content figure img {
	display: block;
	max-width: 100%;
	border-radius: var(--size-0-2-5);
}

main :is(ul, ol) li {
	margin-block-start: var(--size-0-5);
	line-height: 1.3;
}
