:root {
  font:
    16px/1.55 'DM Sans',
    system-ui,
    sans-serif;
  color: #243b32;
  background: #f8f6ef;
  --green: #284f40;
  --line: #d8d9cb;
  --paper: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar,
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 5%;
}
.bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}
.bar strong {
  font:
    600 1.45rem Georgia,
    serif;
}
.bar nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.bar nav button {
  border: 0;
  background: transparent;
  color: var(--green);
}
.bar nav button[aria-current] {
  background: #e5ecdf;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border-radius: 7px;
  padding: 0.45rem 0.85rem;
  border: 1px solid #b3bbab;
  background: var(--paper);
  color: var(--green);
  font-weight: 600;
}
button:hover {
  background: #eef2e7;
}
button:disabled {
  opacity: 0.52;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #38674f;
}
input,
select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #aeb6a8;
  border-radius: 6px;
  color: inherit;
  background: #fff;
}
input:focus-visible,
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #a86936;
  outline-offset: 2px;
}
main {
  padding-top: 26px;
  padding-bottom: 64px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0.4rem 0 1rem;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.4rem;
}
.lead,
.muted,
small {
  color: #526359;
}
.controls,
.actions,
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.controls {
  margin: 1rem 0 1.5rem;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  gap: 1.25rem;
  align-items: start;
}
article,
aside,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
}
aside {
  background: #edf1e5;
}
article h2 {
  margin: 0.3rem 0 0.45rem;
}
article .actions,
aside p,
.panel p {
  margin-top: 0.6rem;
}
label {
  display: inline-grid;
  gap: 0.25rem;
}
label.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.kind {
  font-size: 0.83rem;
  font-weight: 700;
  color: #8d462c;
}
.editor {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}
.editor label {
  width: 100%;
}
.editor input {
  width: 100%;
  margin-bottom: 0.5rem;
}
.candidate {
  background: #f0f4e9;
  border-left: 3px solid var(--green);
  padding: 1rem;
  margin-top: 1rem;
}
.food-image {
  margin: 0.75rem 0;
}
.food-image img {
  width: min(100%, 400px);
  border-radius: 10px;
  display: block;
}
.food-image figcaption {
  font-size: 0.85rem;
  color: #526359;
}
.shop {
  list-style: none;
  padding: 0;
}
.shop li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
a {
  color: #2e624b;
}
details {
  margin-top: 0.8rem;
}
summary {
  cursor: pointer;
}
#notice:not(:empty) {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: #f3e5cf;
  margin-bottom: 0.8rem;
}
.bar small {
  display: block;
}
#account button {
  font-size: 0.88rem;
}
.panel + .panel {
  margin-top: 1rem;
}
.row input[type='number'] {
  width: 7rem;
}
@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.65rem;
  }
  .bar nav {
    order: 3;
    flex-basis: 100%;
  }
  .bar nav button {
    flex: 1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 1rem;
  }
  .controls {
    align-items: end;
  }
  article,
  aside,
  .panel {
    padding: 1rem;
  }
  .bar strong {
    font-size: 1.25rem;
  }
}
.editor label.inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}
.editor label.inline input {
  width: auto;
  margin: 0;
}
textarea {
  font: inherit;
  resize: vertical;
  width: 100%;
  border: 1px solid #aeb6a8;
  border-radius: 7px;
  padding: 0.65rem 0.8rem;
  color: inherit;
  margin-bottom: 0.5rem;
}
.devices,
fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
fieldset {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
fieldset input {
  max-width: 100%;
  min-width: 0;
}
aside h3 {
  margin-top: 1.2rem;
}
