*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #faf6ef;
  color: #1c1a17;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

main,
.container,
.wrapper,
#app,
.page {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 20px 56px;
  width: 100%;
}

h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1c1a17;
}

h2,
h3 {
  line-height: 1.3;
  color: #1c1a17;
}

p {
  margin: 0 0 16px;
}

a {
  color: #a03a2a;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1c1a17;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

form {
  background-color: #ffffff;
  border: 1px solid #e5dccb;
  border-radius: 12px;
  padding: 24px 20px;
  margin: 0 0 32px;
}

form > div,
.field,
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1rem;
}

input[type="text"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="email"],
input:not([type]),
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.5;
  color: #1c1a17;
  background-color: #ffffff;
  border: 1px solid #8a8076;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 44px;
}

textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

select {
  width: 100%;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.button {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #57504a;
  background-color: #ffffff;
  color: #1c1a17;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

form button[type="submit"],
form input[type="submit"],
button.primary,
.btn-primary,
.button-primary,
.add-btn,
#add-recipe,
#addRecipe,
#add {
  background-color: #a03a2a;
  border-color: #a03a2a;
  color: #ffffff;
}

button.delete,
.delete-btn,
.btn-delete,
.button-delete,
.delete-button,
#clear-all,
#clearAll,
.clear-all,
.clear-btn,
.btn-clear,
button[class*="delete" i],
button[class*="clear" i],
input[class*="delete" i],
input[class*="clear" i],
button[id*="delete" i],
button[id*="clear" i],
input[id*="delete" i],
input[id*="clear" i] {
  background-color: #ffffff;
  border: 2px solid #b3402e;
  color: #b3402e;
}

.recipe,
.recipe-card,
.card,
article,
#recipes > *,
#recipe-list > *,
.recipes > *,
.recipe-list > * {
  background-color: #ffffff;
  border: 1px solid #e5dccb;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}

.recipe h2,
.recipe-card h2,
.card h2,
article h2,
.recipe h3,
.recipe-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1c1a17;
}

.recipe ul,
.recipe ol,
.recipe-card ul,
.recipe-card ol,
.card ul,
.card ol,
article ul,
article ol {
  font-size: 1rem;
  margin: 0 0 16px;
  padding-left: 24px;
}

.recipe li,
.recipe-card li,
.card li,
article li {
  margin-bottom: 8px;
}

.recipe button,
.recipe-card button,
.card button,
article button,
.recipe .delete,
.recipe-card .delete {
  margin-top: 12px;
}

ul,
ol {
  max-width: 100%;
}

form button + button,
form button + input,
form input + button {
  margin-left: 0;
  margin-top: 12px;
}

@media (max-width: 600px) {
  main,
  .container,
  .wrapper,
  #app,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 1.9rem;
  }

  form {
    padding: 20px 16px;
  }

  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .btn,
  .button {
    width: 100%;
    display: block;
  }

  .recipe,
  .recipe-card,
  .card,
  article {
    padding: 18px 16px;
  }
}
