@font-face {
	font-family: "Garamond";
	src: url("/assets/typefaces/EB_Garamond/EBGaramond-VariableFont_wght.woff2") format("woff2");
	font-weight: 400 800;
	font-display: fallback;
	size-adjust: 110%;
}

body {
	font-family: var(--gh-font-body, Garamond), serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-size-adjust: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--gh-font-heading, Garamond), serif;
	text-wrap: balance;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 1.1;
}

h1 {
	font-size: 3rem;
	font-variant-ligatures: discretionary-ligatures;
}

h2 {
	font-size: 1.8rem;
}

h3 {
	font-size: 1.2rem;
}

h4 {
	font-size: 1rem;
}

h5 {
	font-size: 0.8rem;
}

h6 {
	font-size: 0.6rem;
}

a {
	color: inherit;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	word-break: break-word;

	&:hover {
		opacity: 0.5;
	}
}

.readable,
blockquote {
	max-width: 80ch;
	font-variant-numeric: oldstyle-nums proportional-nums;

	* + h2,
	* + h3,
	* + h4,
	* + h5,
	* + h6 {
		margin-block-start: 2rem;
	}

	> * + * {
		margin-block-start: 1rem;
	}
}

blockquote {
	padding: 0.5rem 1rem;
	background: light-dark(oklch(from var(--white) l c h / 0.3), oklch(from var(--dark_grey) l c h / 0.3));
	border: 0.05rem solid light-dark(transparent, var(--grey));
	border-left: 0.3rem solid var(--grey);
}

sup,
sub {
	line-height: 100%;
}

hr {
	all: unset;
	display: block;
	height: 2px;
	background: var(--bright_grey);
	margin-bottom: 1rem;
}

mark {
	background: var(--yellow);
}
