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

html {
  font-family: "Nunito";
  font-size: 18px;
  background-color: var(--cream);
  display: flex;
  justify-content: center;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 700px);
  padding: 0 0.5rem 0 0.5rem;
  gap: 3rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;

  border-radius: 50px;
  box-shadow: 0 0 0 0.75px var(--cast-iron) inset;
  border-color: var(--cast-iron);
  background: var(--paper);
  color: var(--cast-iron);
  list-style: none;

  gap: 2rem;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.show-hide-input {
  display: flex;
  flex-direction: row;
  justify-content:space-between;
  align-items: stretch;
  gap: 1rem;
}

.buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 1rem;
  gap: 1rem;
}

nav {
  display: flex;
  flex-direction: row;
  gap: 1em;
}
nav li {
  list-style: none;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

header div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.25em;
  border-bottom: var(--cast-iron) solid 2px;
}
header nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.25rem;
  gap: 0.25em;
}

.image-description textarea{
flex-grow: 1;
}

header form {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.metadata {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.pfp {
  width: 6rem;
  height: 6rem;
}

.profile-header{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
}

header form * {
  padding: 0.25rem;
}

header nav ul {
  display: flex;
  flex-direction: row;
  gap: 1em;
}
.logo {
  font-size: 125%;
  font-family: "Playwrite US Trad";
  font-weight: 400;
  color: var(--cacao);
  text-decoration: none;
}
input {
  padding: 0.25rem;
}

a {
  color: var(--cacao);
  text-decoration: none;
}

h2,
h3 {
  font-family: "Playwrite US Trad";
  color: var(--cacao);
}

h1 {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 1rem;
  color: var(--cacao);
  font-family: "Playwrite US Trad";
  font-size: 1.8rem;
}
h1 input {
  max-width: 90%;
  color: var(--cacao);
  font-family: "Playwrite US Trad";
  font-size: 1.8rem;
}
h1 button {
  padding: 0.25rem;
}

h2 {
  font-size: 125%;
}

.login-form {
  font-size: 125%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.login-form div{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: flex-start;
  gap: 0rem;
}
.login-form input {
  width: 100%;
  font-size: 100%;
}
.login-form button{
  font-size: 1.25rem;
  width: 50%;
  padding: 0.25rem;
}

.ingredients,
.steps,
.description {
  line-height: 1.25;
}

.buttons a {
  background: var(--oak);
  color: var(--white);
  border-radius: 16px;
  border-width: 0;
  padding: 0.5em 1em;
  font-size: 18px;
}
.buttons a:hover {
  background: var(--cacao);
  color: var(--paper);
}


.image-description {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
}

.image-description img {
  border: solid 0.25rem var(--white);
  max-width: 12rem;
  max-height: 12rem;
  transform: rotate(2deg);
}

.image-description div{
  display: flex;
  flex-direction: column;
  gap:0;
  flex-grow: 1;
}

.form-errors { color: red; }

.image-description textarea{
flex-grow: 1;
}


.ingredients-steps {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}


.steps ol{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.steps ul{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


input [type=number] {
   width: 5rem;
  }

.steps textarea{
  width: 100%;
}

.cards-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.card {
  max-width: 30%;
  max-height: fit-content;
  border-radius: 12px;
  background: var(--cardstock);
  color: var(--white);
  box-shadow:
    0 1px 2px var(--cast-iron),
    0 4px 12px rgba(0,0,0,.12);
  margin-bottom: 1em;
  padding: 0.5em 1em;
  list-style: none;
  
}
.card img {
  max-width: 100%;
  height: auto;
}
.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5em;
}

.tags li {
  text-wrap: nowrap;
  width: max-content;
  box-shadow: none;
  list-style: none;
}
.tags a {
  color: var(--cacao);
}
.search-form input{
  width: 100%;
  font-size: 1rem;
  padding: .25rem;
}


.recipe-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5 0.25rem;
}

.recipe-times dl {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.recipe-times dt {
  width: 15%;  
  font-weight: 600;
}

.recipe-times dd {
  width: 85%;
}

.visually-hidden {
  display: none;
}

:root {
  --cream: #f7f1e8;
  --cast-iron: #2e261c;
  --cacao: #a8570c;
  --paper: #fff9f1;
  --ash: #888888;
  --oak: #8b5e34;
  --cardstock: #fffdfa;
  --white: #ffffff;
}

.ingredients li {
  list-style: none;
}
