@import url("fonts.css");
@import url("reset.css");

: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%);
}

* {
	box-sizing: border-box;
}

body {
	font-family: Outfit, sans-serif;
	background-color: var(--stone-100);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	gap: 1.5rem;
	padding: 8rem 2rem;
}

header {
	display: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Young Serif", serif;
}

h1 {
	font-size: 2.5rem;
	color: var(--stone-900);
}

h3 {
	font-size: 1.75rem;
	color: var(--brown-800);
}

a {
	color: #0000ff;
}

p {
	line-height: 1.5rem;
	color: var(--stone-600);
}

main {
	background-color: var(--white);
	display: flex;
	flex-direction: column;
	border-radius: 1.5rem;
	margin: 0 auto;
	padding: 2.5rem;
	gap: 2.5rem;
	max-width: 740px;
}

section {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

footer {
	margin-bottom: 1rem;
	padding: 0 2rem;
}

footer p {
	text-align: center;
}

.recipe-photo {
	border-radius: 1rem;
	max-width: 100%;
}

.recipe-intro {}

.prep-time {
	padding: 2rem;
	background-color: var(--rose-50);
	border-radius: 1rem;
}

ul, ol {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

ul {
	list-style: disc;
}

ol {
	list-style: numbers;
}

li::marker {
	font-weight: 700;
}

.prep-time .label {
	color: var(--rose-800);
}

li {
	margin-left: 1.75rem;
	color: var(--stone-600);
	padding-left: 1rem;
	line-height: 1.5rem;
}

.bold {
	font-weight: 700;
}

.label {
	font-weight: 600;
	font-size: 1.25rem;
	font-family: Outfit, sans-serif;
}

hr {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	height: 1px;
	background-color: var(--stone-150);
}

tbody {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

th, tr {
	padding: 0 1rem;
}

tr {
	justify-content: space-between;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--stone-150);
    padding-bottom: 1rem;
}

tr:last-of-type {
	border-bottom: none;
}

td {
	text-align: left;
    width: 50%;
    font-weight: 700;
    color: var(--brown-800);
}

th {
	text-align: left;
	width: 50%;
	color: var(--stone-600);
}

@media (max-width: 500px) {
  body {
  	padding: 0;
  }

  main {
  	border-radius: 0;
  	padding: 0;
  	padding-bottom: 2.5rem;
  }

  section {
  	padding: 0 2rem;
  }

  .recipe-photo {
  	border-radius: 0;
  }

  .prep-time {
  	margin: 0 2rem;
  }

  hr {
  	margin: 0 auto;
  	width: calc(100% - 4rem);
  }

  h1 {
  	font-size: 2.25rem;
  }
}