:root {
  background: #fff6dd;
  color: #272417;
  font:
    16px/1.5 system-ui,
    sans-serif;
  --rust: #a73624;
  --line: #d7c8a4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(1100px, calc(100% - 36px));
  margin: auto;
  padding-bottom: 70px;
}
a {
  color: inherit;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 0.85rem;
}
header span {
  letter-spacing: 0.12em;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 0 32px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    700 clamp(65px, 12vw, 155px)/0.79 Georgia,
    serif;
  letter-spacing: -0.09em;
}
h1 em {
  color: var(--rust);
}
.hero p {
  margin-top: 24px;
  font-size: 1.1rem;
}
.plate {
  width: clamp(90px, 30vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(-16deg);
  background: repeating-radial-gradient(
    circle,
    #f4e2b1 0 9%,
    #f7ebc7 9.3% 10%,
    #f4e2b1 10.4% 12%
  );
  box-shadow: 10px 15px 0 #a7362425;
}
.plate span {
  color: var(--rust);
  font-size: clamp(47px, 12vw, 145px);
  line-height: 1;
}
form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 14px;
  padding: 20px;
  background: #f1e4c0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 650;
}
input,
select,
button {
  font: inherit;
  min-height: 44px;
  border: 1px solid #a69773;
  border-radius: 7px;
  background: #fff9ea;
  color: inherit;
  padding: 8px 10px;
  min-width: 0;
}
button {
  cursor: pointer;
}
button:hover {
  border-color: var(--rust);
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}
.toolbar {
  margin: 32px 0 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar h2 {
  font:
    700 clamp(30px, 5vw, 52px) Georgia,
    serif;
}
.toolbar button + button {
  margin-left: 4px;
}
#spin {
  background: var(--rust);
  color: white;
  border-color: var(--rust);
}
#spin:disabled {
  opacity: 0.55;
  cursor: default;
}
#favorites[aria-pressed="true"] {
  background: #3b301b;
  color: white;
}
#results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 15px;
  align-items: start;
}
.recipe {
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 12px;
  padding: 18px;
}
.recipe[data-picked] {
  outline: 2px solid var(--rust);
}
.recipe h3 {
  font:
    700 26px Georgia,
    serif;
  margin: 8px 0;
}
.recipe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.meta,
.missing,
#count {
  font-size: 0.88rem;
  color: #695943;
}
.save {
  padding: 4px 10px;
}
.save[aria-pressed="true"] {
  background: #f4dec0;
}
details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 36px;
}
h4 {
  margin-bottom: 0;
}
ul,
ol {
  padding-left: 22px;
}
#notice:not(:empty) {
  margin-bottom: 12px;
  color: var(--rust);
}
@media (max-width: 730px) {
  form {
    grid-template-columns: 1fr 1fr;
  }
  .pantry {
    grid-column: 1/-1;
  }
}
@media (max-width: 460px) {
  .hero {
    gap: 4px;
  }
  .plate {
    width: 92px;
  }
  .hero p {
    font-size: 0.93rem;
  }
  form {
    padding: 12px;
  }
}

#exclusion-note {
  margin-top: 8px;
  color: #695943;
  font-size: 0.81rem;
}
