@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
	--ink: #35251d;
	--cream: #fff8e8;
	--paper: rgba(255, 248, 232, 0.94);
	--rust: #a64024;
	--pumpkin: #d9782d;
	--gold: #e5ad3d;
	--moss: #53613b;
	--line: rgba(96, 59, 36, 0.2);
}
* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background-color: #5c301f;
	background-image:
		linear-gradient(rgba(45, 23, 15, 0.36), rgba(45, 23, 15, 0.54)),
		url('images/fall-background.svg');
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
}

body {
	width: min(92%, 860px);
	margin: clamp(2rem, 6vw, 5rem) auto;
	padding: clamp(1.5rem, 5vw, 4.5rem);
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 3px;
	background: var(--paper);
	box-shadow: 0 24px 70px rgba(32, 15, 9, 0.38);
	color: var(--ink);
	font-family: 'DM Sans', sans-serif;
	font-size: 1.05rem;
	line-height: 1.75;
}

body::before {
	display: block;
	width: 4.5rem;
	height: 0.3rem;
	margin-bottom: 2rem;
	background: linear-gradient(90deg, var(--rust), var(--pumpkin), var(--gold));
	content: '';
}

h1,
h2,
h3 {
	font-family: 'Fraunces', Georgia, serif;
	line-height: 1.15;
}

h1 {
	margin: 0 0 1rem;
	color: var(--rust);
	font-size: clamp(3.2rem, 10vw, 6.8rem);
	letter-spacing: -0.055em;
}

h2 {
	margin-top: 3rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--line);
	color: var(--moss);
	font-size: clamp(1.65rem, 4vw, 2.35rem);
}

h3 {
	color: var(--rust);
	font-size: 1.35rem;
}

blockquote {
	margin: 0 0 2.5rem;
	padding: 0 0 0 1.2rem;
	border-left: 3px solid var(--gold);
	color: #795039;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(1.15rem, 3vw, 1.45rem);
	font-style: italic;
}

a {
	color: var(--rust);
	font-weight: 700;
	text-decoration-color: var(--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--moss);
}

ul {
	padding-left: 0;
	list-style: none;
}

li {
	position: relative;
	padding-left: 1.6rem;
}

li::before {
	position: absolute;
	left: 0;
	color: var(--pumpkin);
	content: '\2766';
}

hr {
	width: 5rem;
	margin: 3.5rem auto 1.5rem;
	border: 0;
	border-top: 2px solid var(--gold);
}

strong {
	color: var(--rust);
}

@media (max-width: 600px) {
	body {
		width: calc(100% - 1.5rem);
		margin: 0.75rem auto;
		padding: 2rem 1.25rem 3rem;
	}

	h1 {
		font-size: clamp(3rem, 17vw, 4.6rem);
	}
}

@media (prefers-reduced-motion: no-preference) {
	body {
		animation: arrive 700ms ease-out both;
	}

	@keyframes arrive {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
	}
}
