* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  /* base font size */
  color: #2e261c;
  /* cast iron */
  background-color: #f7f1e8;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
  gap: 3rem;
}

h1,
h2,
h3 {
  font-family: "Playwrite US Trad", sans-serif;
  font-size: 1.25rem;
  /* 25% bigger */
  color: #a8570c;
  /* cacao */
}

h1 {
  font-size: 1.8rem;
  /* 80% bigger */
}

a {
  color: #8b5e34;
  /* oak */
  text-decoration: none;
}

a:hover {
  color: #a8570c;
  /* cacao */
  text-decoration: underline;
}

header {
  display: flex;
  flex-direction: column;
  width: calc(min(100%, 700px));
}

header nav {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem;
}

header nav ul {
  display: flex;
  gap: 1rem;
}

header nav form {
  display: flex;
  gap: 0.25rem;
}

main {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  width: calc(min(100%, 700px));
  border: solid 1px black;
  border-radius: 20px;
  background-color: #fff9f1;
}

main form.login {
  font-size: 23px;
}

main form input {
  width: 100%;
  padding: 0.25rem;
}

main form.login input[type="checkbox"] {
  width: auto;
  display: inline-block;
}

main form.login button {
  width: 100%;
  padding: 1rem;
}

ul {
  list-style-type: none;
}

img {
  width: 100%;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
}

.grid-container > li {
  display: flex;
  flex: 1 1 calc(33% - 1rem);
  flex-direction: column;
  gap: 0.5rem;
  background-color: #fffdfa;
}

.grid-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.grid-item li {
  text-wrap: nowrap;
}

.main-links {
  display: flex;
  justify-content: center;
  padding: 1rem;
  gap: 1rem;
}

.main-links a {
  color: #f7f1e8;
  background-color: #8b5e34;
  padding: 0.5em 1em;
  border-radius: 1rem;
}

.main-links a:hover {
  color: #fff9f1;
  background-color: #a8570c;
  /* paper */
}

.recipe-data dt {
  font-weight: 600;
}

.recipe-data dl {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recipe-data dl div {
  display: flex;
  gap: 0.5rem;
}

.recipe-data img {
  width: 100%;
  padding: 0 0 0.5rem 0;
}

.recipe-info {
  line-height: 1.25;
}

.recipe-info img {
  transform: rotate(2deg);
  border: solid 5px #fff;
  border-radius: 3px;
}

.header-first-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: solid 2px #8b5e34;
}

.recipe-description {
  display: flex;
  margin-bottom: 2rem;
}

.recipe-metadata {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.recipe-metadata ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipe-ingredients {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  text-indent: -1rem;
}

.recipe-steps {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
}

.ingredients-recipe-container {
  display: flex;
}

.profile-metadata {
  display: flex;
  justify-content: space-between;
}

.profile-image {
  width: 5rem;
  height: 5rem;
}

.visually-hidden {
  display: none;
}

.recipe-steps ul {
  list-style-type: circle;
}

.step-ingredients {
  list-style-type: disc;
  padding-left: 2rem;
}

.step-ingredients li {
  display: flex;
  padding: 0.25rem 0;
  gap: 0.25rem;
}

.step-ingredients li input[type="number"] {
  width: 4rem;
}

.recipe-data input[type="number"] {
  width: 4rem;
}

.step-ingredients li input.ing-unit {
  width: 6rem;
}

textarea {
  width: 100%;
  resize: vertical;
  vertical-align: top;
}

input[name="title"] {
  font-family: "Playwrite US Trad", serif;
  font-size: 2rem;
}

.title-css {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.title-css button {
  padding: 0.25rem;
}

output {
  color: red;
}
