@font-face {
	font-family: 'Libre Caslon Display';
	font-style: normal;
	font-weight: 400;
	src: 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: 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: url(/assets/fonts/manrope-vs.woff2) format('woff2');
	font-display: swap;
}

:root {
	--primary: #fcf6f3;
	--primary-light: #fffcfa;
	--primary-dark: #f6edea;
	--secondary: #442e5b;
	--secondary-light: #91799e;

	--r1: 16px;
	--r2: 32px;
	--ri: 99vmax;
	--navbar-h: 64px;

	color-scheme: light;
	background-color: var(--primary-light);
	scrollbar-color: var(--secondary-light) var(--primary);
	scrollbar-gutter: stable;
}

@media (height < 640px) {
	:root {
		--navbar-h: 56px;
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--primary);
	color: var(--secondary);
	display: flex;
	flex-direction: column;
	font: 1rem 'Manrope', sans-serif;
	letter-spacing: .02rem;
	line-height: 1.5;
	margin: auto;
	max-width: 1920px;
	min-height: 100svh;
	scrollbar-gutter: stable;
}

main {
	animation: reveal .5s cubic-bezier(0, 0, 0, 1);
	margin-block-end: 48px;
}
@keyframes reveal {
	from {
		opacity: 0;
		transform: translateY(64px);
	}
}

h1, h2, h3 {
	font-family: 'Libre Caslon Text', serif;
	font-weight: 400;
	line-height: 1;
	margin-block-end: 32px;
	text-wrap-style: balance;
}
:where(h1, h2, h3):not(:first-child) {
	margin-block-start: 32px;
}
:where(section, article) > h1 {
	font-family: 'Libre Caslon Display', serif;
	font-size: 4.5rem;
	letter-spacing: -.0625rem;
	line-height: 0.888em;
	text-shadow: 0 0;
}
:where(section, article) > h2 {
	font-size: 2rem;
	letter-spacing: -.03rem;
	line-height: 1.25;
}
:where(section, article) > h3 {
	font-size: 1.5rem;
	letter-spacing: -.01rem;
	line-height: 1.25;
}

a {
	color: currentColor;
	text-decoration: none;
}

p {
	line-height: 1.75em;
}

p + p, ul + p, ol + p {
	margin-block-start: 24px;
}

p, li {
	text-wrap-style: pretty;
}

img {
	color: #0000; /* thx firefox */
	margin: 0 auto;
	min-height: 420px;
	object-fit: cover;
	user-select: none;
	width: auto;
}

img.loaded {
	animation: image-in .5s forwards;
}

@keyframes image-in {
	from {
		opacity: 0;
		transform: scale(.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

section {
	margin: auto;
	max-width: 1280px;
	padding: 48px 32px;
	scroll-margin-block-start: var(--navbar-h);
}

article {
	container-type: inline-size;
	margin: auto;
	max-width: calc(60ch + 32px);
	padding-inline: 16px;
	width: 100%;
}

article > :last-child {
	margin-block-end: 0;
}

article + article {
	margin-block-start: 48px;
}

hr {
	border: none;
	border-block-end: 1px solid #0002;
	margin: 24px 0;
}

.list {
	list-style: none;
	padding-left: 16px;
}

* + ul {
	margin-block-start: 8px;
}

.list li {
	position: relative;
}

.list li + li {
	margin-block-start: 8px;
}

.list li::before {
	content: '•';
	position: absolute;
	left: -16px;
}

ol > li {
	margin-left: 20px;
}

.button {
	background: var(--secondary);
	border: none;
	border-radius: 8px;
	color: var(--primary);
	display: block;
	font: inherit;
	font-weight: 600;
	margin-block-start: 32px;
	padding: 16px 32px;
	transition: filter .1s;
	width: fit-content;
}

.button:hover {
	filter: brightness(1.2) contrast(.9);
}

@media (width < 60rem) {
	section {
		padding: 48px 16px;
	}
}

a[href="#"] {
	opacity: .6;
	pointer-events: none;
}