html {
	font-family: var(--font-a);
	background: var(--bg-b);
	color: var(--fg-a);
	font-size: 1rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* scroll-behavior: smooth; */
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
}

p {
	width: clamp(20ch, 42rem, 100%);
	margin: auto;

	font-variation-settings: 'wght' 300;
	font-size: var(--font);
	text-wrap: balance;
	text-align: center;
	line-height: 1.5;
}

em {
	color: var(--fg-d);
	font-variation-settings: 'wght' 300;
}

main,
section {
	position: relative;
	display: flex;
	flex-direction: column;

	width: 800px;
	max-width: calc(100vw - 2rem);
	margin: auto;

	color: white;

	z-index: 1;
}

section {
	gap: 1.5rem;
	contain: layout;
}

h1 {
	font-family: var(--font-b);
	font-size: 4rem;
	font-weight: 00;
	line-height: 1;
	text-align: center;
	margin-top: 1rem;
}

h2 {
	scroll-margin-top: 2rem;

	z-index: 1;

	width: fit-content;
	margin-top: 4rem;
	margin-right: auto;
	margin-bottom: 0rem;
	margin-left: auto;

	font-size: 3rem;
	text-align: center;
	font-weight: 500;
	font-variation-settings: 'wght' 100;

	a {
		text-decoration: transparent solid underline;
		transition: 0.2s;
		&:hover {
			text-decoration-color: var(--bg-d);
		}
	}

	&:not(:first-of-type) {
		margin-top: 8rem;
	}
}

h3 {
	scroll-margin-top: 2rem;

	position: relative;

	margin: 0 auto;

	font-size: 2rem;
	font-family: var(--font-b);
	font-variation-settings: 'wght' 100;
	text-align: center;

	&::before {
		content: '#';
		color: var(--bg-d);
		font-size: 1rem;
		position: absolute;
		left: -0.75rem;
		top: 0.5rem;
	}
	&:hover::before {
		color: color-mix(in lch, var(--bg-d), var(--fg-d));
	}

	a {
		text-decoration: transparent solid underline;
		text-decoration-thickness: 1px;

		transition: 0.1s;
		&:hover {
			text-decoration-color: color-mix(in lch, var(--bg-d), var(--fg-d));
		}
	}
}

a {
	color: var(--fg-c);
	text-decoration: var(--fg-d) dotted underline;
	text-decoration-thickness: 1px;
}

button,
.btn {
	min-width: 6rem;
	width: fit-content;
	margin: auto;
	padding: 0.5rem 1rem;

	border: none;
	border-radius: 0.75rem;

	font-family: var(--font-a);
	font-variation-settings: 'wght' 500;
	font-size: 1rem;

	cursor: pointer;
}

.btn {
	position: relative;
	color: var(--fg-a);
	outline: var(--outline);

	--theme-a: var(--bg-a);
	--theme-b: var(--bg-a);

	background: radial-gradient(
			in lch circle at -25% 50%,
			var(--bg-a) -50%,
			var(--theme-b, #a269cb),
			var(--theme-a, #33c5f4) 80%,
			var(--bg-a) 120%
		)
		top right / 200% 200%;

	transition:
		background-position 2s cubic-bezier(0.23, 1, 0.32, 1),
		background 2s cubic-bezier(0.23, 1, 0.32, 1),
		--theme-a 0.5s,
		--theme-b 0.5s,
		opacity 0.15s,
		filter 0.15s;

	font-weight: 900;

	&.active {
		--theme-a: #ff0051;
		--theme-b: #ff833b;
		background-position: 60% 50%;
		outline-color: var(--bg-a);
		outline-width: 2px;
	}

	&:hover {
		background-position: 50% 50%;
		color: var(--fg-a);

		&:not(.active) {
			background-position: 0% 50%;
			--theme-a: #33c5f4;
			--theme-b: #a269cb;
		}
	}

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		display: inline-block;
		z-index: -1;
		border-radius: inherit;
		width: 100%;
		height: 100%;
		padding: 1px;
		left: -1px;
		top: -1px;

		background-image: var(--gradient);
	}
}

br {
	user-select: none;
	pointer-events: none;
}

br {
	height: 1rem;
}
br-md {
	height: 2rem;
}
br-lg {
	height: 3rem;
}
br-xl {
	height: 5rem;
}
