@font-face {
	font-family: 'Semplicita Pro';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('/fonts/SemplicitaPro-Light.otf') format('opentype');
}

:root {
	--paper: #f4f1e9;
	--ink: #1f1d18;
	--ink-soft: #56524a;
	--line: #dcd6ca;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: 'Newsreader', Georgia, serif;
	font-optical-sizing: auto;
	line-height: 1.65;
	margin: 0;
}

.wrap {
	max-width: 78rem;
	margin: 0 auto;
	padding: 0 2.4rem;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2.2rem 0;
	border-bottom: 1px solid var(--line);
}

.wordmark {
	font-family: 'Semplicita Pro', sans-serif;
	font-weight: 300;
	font-size: 1.06rem;
	letter-spacing: 0.3em;
	color: var(--ink);
	text-decoration: none;
}

header nav,
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

header a:not(.wordmark),
footer a {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
	text-decoration: none;
}

header a:hover,
footer a:hover {
	text-decoration: underline;
}

article {
	max-width: 47rem;
	margin: 0 auto;
	padding: 5rem 0 7rem;
}

article h1 {
	font-family: 'Semplicita Pro', sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
}

article h2 {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.35;
	margin: 3rem 0 1rem;
}

article p,
article li {
	font-size: 1.05rem;
}

article li + li {
	margin-top: 0.5rem;
}

article a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

article a[id] {
	display: block;
	position: relative;
	top: -2rem;
	visibility: hidden;
}

.terms {
	counter-reset: legal-section;
}

.terms > ol {
	list-style: none;
	padding-left: 0;
}

.terms > ol > li {
	counter-increment: legal-section;
	padding-left: 2rem;
	position: relative;
}

.terms > ol > li::before {
	content: counter(legal-section) '.';
	font-weight: 600;
	left: 0;
	position: absolute;
}

footer {
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 3rem 0 4rem;
}

.copyright {
	font-family: 'Fragment Mono', monospace;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}

@media (max-width: 680px) {
	.wrap {
		padding: 0 1.5rem;
	}

	header {
		align-items: flex-start;
	}

	header nav {
		justify-content: flex-end;
	}

	article {
		padding: 3.5rem 0 5rem;
	}

	article p,
	article li {
		font-size: 1rem;
	}
}
