@font-face {
	font-family: 'Libre Caslon Display';
	font-style: normal;
	font-weight: 400;
	src: local('Libre Caslon Display Regular'), local('LibreCaslonDisplay-Regular'), url(/assets/fonts/libre-caslon-display-s.woff2) format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'Libre Caslon Text';
	font-style: normal;
	font-weight: 400;
	src: local('Libre Caslon Text Regular'), local('LibreCaslonText-Regular'), url(/assets/fonts/libre-caslon-text-s.woff2) format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	src: local('Manrope'), url(/assets/fonts/manrope-vs.woff2) format('woff2');
	font-display: swap;
}

:root {
	--margin: 10px;
	background-color: #282828;
	font-size: 11pt;
}
body {
	margin: auto;
	width: fit-content;
}
main {
	box-shadow: 0 2px 5px #000a;
	box-sizing: border-box;
	background-color: #fff;
	color: #000;
	font: 1rem / 1.5em 'Manrope', sans-serif;
	letter-spacing: .02rem;
	margin: var(--margin);
	max-width: 21cm;
	min-height: 29.7cm;
	padding: clamp(2rem, calc(15vw - 1cm), 1.8cm);
	padding-right: clamp(1rem, calc(15vw - 1cm), 2cm);
	text-wrap: pretty;
	width: calc(100% - 2 * var(--margin));
}
h1, h2 {
	font: 400 20pt / 1.3em 'Libre Caslon Text', serif;
	margin: 0 0 20px;
	text-wrap: balance;
}
h2 {
	break-after: avoid-page;
	font-size: 13pt;
}
* + h2 {
	margin-block: 20px 0;
}
h2 + p {
	margin-top: 10px;
}
p:has(+ ul) {
	margin-bottom: 0;
}
ul {
	list-style: none;
	margin-top: 0;
	padding-left: 1rem;
}
li {
	position: relative;
}
ul li::before {
	content: '•';
	position: absolute;
	left: -1rem;
}
ol {
	list-style: none;
	padding-left: 0;
	margin-left: 7mm;
}
ol > li {
	counter-increment: section;
	margin-bottom: 20px;
}
ol > li::before {
	content: counter(section) '. ';
	font-weight: bold;
	left: -7mm;
	position: absolute;
}
ol > li > ol {
	counter-reset: subsection;
	margin-top: 10px;
	padding-left: 2mm;
}
ol > li > ol > li {
	counter-increment: subsection;
	margin-bottom: 10px;
}
ol > li > ol > li::before {
	content: counter(section) '.' counter(subsection) '. ';
	font-weight: normal;
	left: -9mm;
}

@media print {
	main {
		box-shadow: none;
		margin: 0;
		min-height: 0;
		padding: 0;
	}
	strong + ol,
	li:last-child {
		break-before: avoid-page;
	}
	a {
		text-decoration: none;
		color: inherit;
	}
}
@media screen and (width < 20.5cm) {
	:root { --margin: 0 }
}
@page {
	size: A4;
	margin: 1.8cm;
	margin-right: 1.5cm;
}