/* ----- Fonts ----- */
@font-face {
	font-family: "Young Serif";
	src: url(../assets/fonts/young-serif/YoungSerif-Regular.ttf)
		format(truetype);
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Outfit";
	src: url(../assets/fonts/outfit/Outfit-VariableFont_wght.ttf)
		format(truetype);
	font-weight: 400 700;
	font-style: normal;
}

:root {
	/* Colors */
	--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-800: hsl(332, 51%, 32%);
	--rose-50: hsl(330, 100%, 98%);
}
/* ----- General Styles ----- */
body {
	max-width: 100svw;
	font-family: "Outfit";
	color: var(--stone-600); 
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

table {
    border-collapse: separate;
    border-spacing: 2px;
    text-indent: initial;
}

td {
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
}

.container {
	position: relative;
	background: var(--white);
}

.recipe-image {
	width: 100%;
}

.recipe-header-text {
	margin: 2.5rem 2rem 0;
}

.prep-time-section {
	padding: 1.25rem;
	border-radius: 0.75rem;
}

.prep-time-section .ul .li::before {
    color: var(--rose-800);
}

.main-content-area{
	margin: 0 2rem 2.5rem
}

.h2-prep {
	color: var(--rose-800);
	font-size: 1.25rem;
}

.h1, 
.h2 {
	font-family: "Young Serif";
	color: var(--stone-900);
	line-height: 1;
}

.h1 {
	text-wrap: auto;
	margin-block-end: 1.5rem; /* 24px */
	font-size: 2.15rem; /* 34.56px */
}

.h2 {
	font-size: 1.75rem; 
	color: var(--brown-800);
	margin-block-end: 1.5rem; 
	font-weight: 400;
}

.h2-ingredients {
    font-size: 1.75rem;
    color: var(--brown-800);
    margin-block-end: 1rem;
    font-weight: 400;
}

.ul {
	list-style: none;
	padding-inline-start: 0;
}

.ul .li {
    position: relative;
    display: flex;
    align-items: center;
    margin-inline-start: 2rem;
    margin-inline-end: 0.75rem;
    margin-block-start: 0.375rem;
    margin-block-end: 0.375rem;
}

.ul .li::before {
    content: "•";
    position: absolute;
    left: -1.75rem;
    font-size: 1.5rem;
    color: var(--brown-800);
}

.ol .li::before {
    content: counter(list-item) ".";
    position: absolute;
    left: -2rem;
    font-weight: 700;
    color: var(--brown-800);
}

.ol .li {
    position: relative;
    margin-block-end: 0.375rem;
}

.ol {
    list-style: none;
}

.table {
    width: 100%;
}

.td {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--stone-150);
}

.td.unit {
    padding-inline-end: 5rem;
    color: var(--brown-800);
    font-weight: 700;
}

.nutrition-section {
    overflow: hidden;
}

.bold {
	font-weight: 700;
}

.section {
	margin: 2rem 0;
}

.attribution {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: -2rem;
	font-size: 1rem;
	text-align: center;
}

.attribution a {
    color: var(--rose-800);
}


/* ----- Desktop ----- */
@media (min-width: 992px) {
	body {
		background-image: linear-gradient(var(--stone-100));
	}

	.container {
		margin: 8rem 25%; /* 128px */
		border-radius: 1.25rem; /* 20px */
		padding: 2.5rem 2rem; /* 40px  32px */
	}

	.header-text-area,
	.main-content-area {
		margin-inline-start: 0;
		margin-inline-end: 0;
	}

	.main-content-area {
		margin-block-end: 0;
	}

	.section:last-child {
		margin-block-end: 0;
	}

	.tr:last-child .td {
		padding-block-end: 0;
	}

	/* --- Adjust sizing for content sections --- */
	.recipe-image {
		border-radius: 0.75rem; 
	}

	.h1 {
		font-size: 2.375rem; 
	}

	.prep-section {
		padding-inline-start: 1.75rem; 
	}

	.ul {
		padding: 0.5rem; 
	}

	.ul .li {
		margin-block-start: 0.375rem; 
		margin-block-end: 0.375rem; 
	}

	.ul .li::before {
		left: -2rem; 
	}

	.attribution {
		bottom: -4rem;
		font-size: 1.5rem;
	}
}
