:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #22392e;
  background: #f7f6f0;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 86px;
  border-bottom: 1px solid #dce0d5;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  gap: 24px;
}
header span {
  color: #6d786e;
  font-size: 13px;
}
header button {
  margin-left: auto;
}
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 5vw 70px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 10px 0 16px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 17px;
  margin: 26px 0 16px;
}
p {
  line-height: 1.6;
  color: #697368;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #547057;
}
.login {
  max-width: 460px;
  margin: 55px auto;
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: #22392e;
  padding: 12px;
  border: 1px solid #ccd3c5;
  border-radius: 10px;
  background: #fffefa;
  min-height: 44px;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #244c3b;
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #e7eddf;
  color: #244c3b;
}
.danger {
  color: #914b36;
  background: #f3e3d7;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #d18853;
  outline-offset: 2px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-top: 30px;
}
aside {
  align-self: start;
  position: sticky;
  top: 20px;
  max-height: 85vh;
  overflow: auto;
  padding: 2px 4px;
}
#list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
#list button {
  text-align: left;
  background: #ebeede;
  color: #244c3b;
}
#list button[aria-current="true"] {
  background: #244c3b;
  color: white;
}
#list small {
  display: block;
  opacity: 0.75;
  font-size: 11px;
  margin-top: 5px;
}
#editor {
  padding: 26px;
  background: #fffefa;
  border: 1px solid #dce0d5;
  border-radius: 20px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.check input {
  width: 20px;
  min-height: 20px;
  accent-color: #244c3b;
}
fieldset {
  border: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}
legend {
  font-size: 12px;
  margin-bottom: 10px;
}
.ingredient {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
  align-items: end;
}
.step {
  padding: 16px;
  background: #f7f6f0;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.step .top {
  align-items: end;
}
.review {
  padding: 20px;
  background: #eef1e6;
  border-radius: 14px;
  display: grid;
  gap: 14px;
}
.review h3 {
  margin: 0;
}
.hint {
  font-size: 12px;
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  background: #e5ecdb;
  border-radius: 20px;
  padding: 8px 12px;
  white-space: nowrap;
}
#message:not(:empty) {
  background: #e7eddf;
  padding: 14px 18px;
  border-radius: 12px;
  color: #244c3b;
}
#message.error {
  background: #f6e5df;
  color: #853c2d;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    max-height: 270px;
  }
  h1 {
    font-size: 30px;
  }
  #editor {
    padding: 18px;
  }
  .ingredient {
    grid-template-columns: 2fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  header span {
    display: none;
  }
}
