@import url("https://fonts.googleapis.com/css2?family=Young+Serif&family=Outfit:wght@100..900&display=swap");

@layer theme, global, modules;

@layer theme {
	:root {
		--White: hsl(0, 0%, 100%);
		--Stone-100: hsl(30, 54%, 90%);
		--Stone-150: hsl(30, 18%, 87%);
		--Stone-600: hsl(30, 10%, 34%);
		--Stone-900: hsl(24, 5%, 18%);
		--Brown-800: hsl(14, 45%, 36%);
		--Rose-50: hsl(330, 100%, 98%);
	}
}

@layer global {
	* {
		box-sizing: border-box;
	}

	body {
		margin: 0;
		background-color: var(--Stone-100);
		font-family: "Outfit", sans-serif;
		color: var(--Stone-600);
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		min-height: 100vh;
	}

	p {
		font-size: 16px;
	}

	main {
		max-width: 675px;
		width: 90%;
		padding: 1.5rem;
		background-color: var(--White);
		border-radius: 1rem;
	}

	img {
		width: 100%;
		border-radius: 0.5rem;
	}

	h1,
	h3 {
		font-family: "Young Serif", serif;
		color: var(--Brown-800);
	}

	h1 {
		font-size: 1.5rem;
		color: var(--Stone-900);
	}

	ul {
		padding-left: 1rem;
	}
	ol {
		padding-left: 1rem;
	}

	ol li {
		padding-left: 0.5rem;
		margin-bottom: 0.5rem;
	}

	table {
		width: 100%;
		border-collapse: collapse;
		table-layout: fixed;
	}

	table th {
		text-align: left;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--Stone-150);
		font-weight: normal;
	}

	table td {
		text-align: right;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--Stone-150);
		color: var(--Brown-800);
		font-weight: 600;
		text-align: left;
	}
}

@layer modules {
	.preparation {
		background-color: var(--Rose-50);
		padding: 1rem;
		border-radius: 0.5rem;
	}

	.attribution {
		text-align: center;
		margin-top: 1rem;
		font-family: "Outfit", sans-serif;
		font-weight: 400;
		color: var(--Stone-600);
	}

	.logo {
		width: 20px;
		vertical-align: middle;
		margin: 0 0.2rem;
	}

	.attribution a {
		font-weight: 600;
		color: var(--Brown-800);
		font-family: "Young serif", sans-serif;
		text-decoration: none;
	}

	.attribution a:hover {
		color: purple;
	}

	.attribution a:active {
		color: orangered;
	}
}
