body {
	line-height: 1.5;
	color: var(--ink); /* Ensure body text uses the readable text color */
	background-color: var(--background); /* Explicitly set background color */
}

@media (min-width: 48rem) {
	body {
		font-size: 1.125rem;
	}
}

@media (min-width: 80rem) {
	body {
		font-size: 1.25rem;
	}
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 4.5rem 0 1rem;
	line-height: 1.1;
	font-family: var(--accentFont);
	font-weight: bold;
	color: var(--white); /* Use a light color for headings */
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, calc(2.5rem + 1vw), 3.5rem);
	margin: 0 0 2rem;
	position: relative;
	overflow: hidden;
}

h2 {
	font-size: clamp(1.8rem, calc(1.8rem + 1vw), 2.5rem);
}

h3 {
	font-size: clamp(1.6rem, calc(1.6rem + 1vw), 2rem);
}

h4 {
	font-size: clamp(1.5rem, calc(1.5rem + 1vw), 1.8rem);
}

h5 {
	font-size: clamp(1.35rem, calc(1.35rem + 1vw), 1.5rem);
}

h6 {
	font-size: clamp(1.1rem, calc(1.1rem + 1vw), 1.25rem);
}

a {
	color: var(--accent); /* Use the bright accent color for links */
	text-decoration-thickness: 2px;
	text-decoration-color: var(--accent);
}

a:hover,
a:focus {
	color: var(--slate); /* Slightly lighter color on hover */
	text-decoration-thickness: 3px;
	text-decoration-color: var(--slate);
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

ul {
	list-style-type: square;
	padding-left: 1.5rem;
	color: var(--ink); /* Ensure list items are legible */
}

ul ul {
	list-style-type: circle;
}

ul::marker {
	color: var(--accent); /* Keep accent color for markers */
}
