@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  --paper: #faf8f1;
  --ink: #244c3c;
  --muted: #667167;
  --line: #dedfd3;
  --orange: #c75832;
  --sage: #e8ecdf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 "DM Sans",
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
header,
main,
footer {
  max-width: 1180px;
  margin: auto;
}
header {
  height: 105px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font:
    700 46px Georgia,
    serif;
  letter-spacing: -3px;
}
.brand span {
  color: var(--orange);
  font: 35px Georgia;
  display: inline-block;
  margin-left: 4px;
  vertical-align: top;
}
.tagline {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.household {
  margin-left: auto;
  font-size: 12px;
}
.household span {
  margin-left: 20px;
}
nav {
  display: flex;
  gap: 35px;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--line);
}
nav a {
  padding: 21px 0 16px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
nav a[aria-current="page"] {
  border-color: var(--orange);
}
nav a span {
  font-size: 11px;
  margin-left: 10px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1 {
  font:
    64px/1.08 "Libre Caslon Display",
    Georgia,
    serif;
  letter-spacing: -1.6px;
  margin-bottom: 22px;
}
h1 em {
  color: var(--orange);
  font-weight: 400;
}
h2 {
  font:
    32px/1.2 "Libre Caslon Display",
    Georgia,
    serif;
  margin-bottom: 8px;
}
h3 {
  font:
    28px/1.1 "Libre Caslon Display",
    Georgia,
    serif;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 38px;
}
.hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
}
.hero-art {
  position: relative;
  width: 330px;
  height: 245px;
  display: grid;
  place-items: center;
}
.plate {
  width: 220px;
  height: 220px;
  background: #e6e9d6;
  border: 13px solid #eef0e3;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #d7dccb,
    0 15px 30px #244c3c0b;
  display: grid;
  place-items: center;
  font-size: 95px;
  transform: rotate(-15deg);
}
.plate span {
  position: absolute;
  font-size: 65px;
  right: 0;
  bottom: 15px;
  transform: rotate(35deg);
}
.sticker {
  position: absolute;
  right: 2px;
  bottom: 0;
  background: var(--orange);
  color: var(--paper);
  border-radius: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-content: center;
  text-align: center;
  font: italic 21px/1.15 Georgia;
  transform: rotate(12deg);
  border: 5px double #faf8f180;
}
.collection-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 15px 0 22px;
}
.collection-bar p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.search {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 7px;
  width: 300px;
}
.search span {
  font-size: 25px;
  line-height: 1;
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: none;
  padding: 7px 15px;
  font-size: 11px;
  color: var(--ink);
}
.filters button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.recipe-card {
  text-align: left;
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
  background: #fffdf7;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px #244c3c0c;
}
.food-art {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  position: relative;
}
.food-art .food {
  font-size: 80px;
  filter: drop-shadow(0 9px 6px #3c311618);
  transform: rotate(-9deg);
}
.food-art .sprig {
  font-size: 40px;
  position: absolute;
  left: calc(50% + 30px);
  bottom: 26px;
  transform: rotate(25deg);
}
.food-art .number {
  position: absolute;
  top: 12px;
  left: 16px;
  font: italic 19px Georgia;
  color: #244c3c80;
}
.food-art .label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 4px;
  background: var(--paper);
  padding: 3px 8px;
  font-size: 10px;
}
.card-body {
  padding: 19px;
}
.card-body h3 {
  font-size: 27px;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 12px;
  color: var(--muted);
  min-height: 39px;
  margin-bottom: 17px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.card-bottom span:last-child {
  font-size: 21px;
  line-height: 1;
}
.tip {
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin: 35px 0;
}
.tip > span {
  font-size: 35px;
  color: var(--orange);
}
.tip strong {
  font-size: 14px;
  font-weight: 600;
}
.tip p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.tip a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 60px;
  padding: 25px 0 35px;
}
footer .brand {
  font-size: 28px;
}
footer .brand span {
  font-size: 23px;
}
footer p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
footer > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.intro {
  color: var(--muted);
  margin-bottom: 34px;
}
.accent {
  color: var(--orange);
}
.shopping-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 65px;
  align-items: start;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 20px;
}
.shop-toolbar label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.add-item {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
}
.add-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
.add-item form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}
.add-item label {
  flex: 1 1 180px;
  font-size: 12px;
}
.add-item label span {
  color: var(--muted);
}
.add-item input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.add-item button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 5px;
  padding: 12px 16px;
}
#add-item-status {
  margin: 12px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#add-item-status:empty {
  display: none;
}
.shopping-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.shopping-row .shop-item {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}
.shopping-row .item-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shopping-row .quantity {
  max-width: 35%;
  overflow-wrap: anywhere;
}
.remove-item {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--orange);
  font-size: 24px;
}
.text-button {
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 10px;
}
.shop-group {
  margin-bottom: 27px;
}
.group-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sage);
  padding: 12px 16px;
  border-radius: 5px;
}
.group-heading h2 {
  font:
    600 14px "DM Sans",
    sans-serif;
  margin: 0;
}
.group-heading span {
  font-size: 11px;
  color: var(--muted);
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-height: 59px;
}
.shop-item input,
.shop-toolbar input {
  accent-color: var(--ink);
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.shop-item .item-info {
  flex: 1;
}
.shop-item strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.shop-item small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.shop-item .quantity {
  font-size: 12px;
  text-align: right;
}
.shop-item:has(input:checked) {
  opacity: 0.55;
}
.shop-item:has(input:checked) strong {
  text-decoration: line-through;
}
.shop-summary {
  position: sticky;
  top: 25px;
  background: var(--sage);
  border-radius: 9px;
  padding: 25px;
}
.progress-number {
  font:
    60px/1.2 "Libre Caslon Display",
    Georgia;
  margin: 14px 0 0;
}
.shop-summary p:not(.progress-number) {
  font-size: 12px;
  color: var(--muted);
}
.shop-summary strong {
  font-size: 14px;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
progress::-webkit-progress-bar {
  background: #d3d9c9;
}
progress::-webkit-progress-value {
  background: var(--ink);
}
progress::-moz-progress-bar {
  background: var(--ink);
}
hr {
  border: 0;
  border-top: 1px solid #cdd5c5;
  margin: 24px 0;
}
.save-note {
  margin-top: 25px;
}
.pantry {
  padding: 25px;
  border: 1px dashed #bfcbbb;
  border-radius: 8px;
}
.pantry .eyebrow {
  margin-bottom: 12px;
}
.pantry h3 {
  margin-bottom: 12px;
}
.pantry h3 span {
  float: right;
}
.pantry p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.day {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
.day h2 {
  font-size: 32px;
}
.meal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  background: #fffdf7;
  color: var(--ink);
}
.meal small {
  display: block;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.meal strong {
  display: block;
  font:
    26px/1.2 "Libre Caslon Display",
    Georgia;
  margin-bottom: 10px;
}
.meal span {
  font-size: 12px;
  color: var(--muted);
}
.storage {
  font-size: 13px;
  max-width: 750px;
}
.storage summary {
  cursor: pointer;
  padding: 10px 0;
}
.storage p {
  color: var(--muted);
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(760px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #152c24a6;
  backdrop-filter: blur(3px);
}
#close-dialog {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -54px 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
}
.detail-head {
  padding: 35px 38px 25px;
  background: var(--card-bg);
}
.detail-head h2 {
  font-size: 44px;
  max-width: 90%;
  margin-bottom: 15px;
}
.detail-head .eyebrow {
  margin-bottom: 12px;
}
.detail-head p:last-child {
  margin: 0;
  font-size: 12px;
}
.detail-content {
  padding: 28px 38px;
}
.source-note {
  font-size: 12px;
  color: var(--muted);
  border-left: 3px solid var(--orange);
  padding-left: 14px;
  margin-bottom: 25px;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 35px;
}
.detail-columns h3 {
  font-size: 28px;
  margin-bottom: 16px;
}
.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ingredients li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}
.steps {
  padding-left: 22px;
  font-size: 13px;
}
.steps li {
  padding: 0 0 17px 5px;
}
.steps li::marker {
  color: var(--orange);
  font-weight: 700;
}
.leftovers {
  font-size: 12px;
  background: var(--sage);
  padding: 17px;
  border-radius: 5px;
  margin: 25px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.empty {
  padding: 45px 20px;
  border: 1px dashed var(--line);
  grid-column: 1/-1;
  text-align: center;
}
.empty h3 {
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  header,
  main,
  footer {
    max-width: 1180px;
  }
}
@media (max-width: 1250px) {
  header,
  main,
  footer {
    margin-left: 40px;
    margin-right: 40px;
  }
}
@media (max-width: 800px) {
  header,
  main,
  footer {
    margin-left: 24px;
    margin-right: 24px;
  }
  .hero-art {
    width: 220px;
    transform: scale(0.85);
    transform-origin: right center;
  }
  h1 {
    font-size: 51px;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shopping-layout {
    grid-template-columns: 1fr 230px;
    gap: 25px;
  }
  .tip {
    flex-wrap: wrap;
  }
  .tip a {
    margin-left: 55px;
  }
  .collection-bar {
    align-items: start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .day {
    grid-template-columns: 1fr 1fr;
  }
  .day h2 {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 560px) {
  header,
  main,
  footer {
    margin-left: 20px;
    margin-right: 20px;
  }
  header {
    height: 82px;
  }
  .brand {
    font-size: 41px;
  }
  .tagline {
    display: none;
  }
  .household {
    font-size: 11px;
  }
  nav {
    gap: 24px;
    margin-bottom: 29px;
    justify-content: space-between;
  }
  nav a {
    font-size: 12px;
    padding: 18px 0 14px;
  }
  nav a span {
    margin-left: 4px;
    font-size: 10px;
  }
  .hero {
    padding: 0 0 15px;
  }
  .hero-art {
    display: none;
  }
  h1 {
    font-size: 47px;
    letter-spacing: -1px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  .hero p:not(.eyebrow) {
    font-size: 13px;
  }
  .desktop {
    display: none;
  }
  .collection-bar {
    margin-top: 15px;
  }
  h2 {
    font-size: 30px;
  }
  .collection-bar p {
    font-size: 11px;
  }
  .filters {
    gap: 7px;
  }
  .filters button {
    font-size: 10px;
    padding: 7px 11px;
  }
  .recipe-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .recipe-card {
    display: grid;
    grid-template-columns: 115px 1fr;
  }
  .food-art {
    height: 100%;
    min-height: 180px;
  }
  .food-art .food {
    font-size: 60px;
  }
  .food-art .sprig {
    font-size: 26px;
    left: 60px;
    bottom: 35px;
  }
  .food-art .number {
    font-size: 15px;
    left: 12px;
    top: 9px;
  }
  .food-art .label {
    font-size: 9px;
    bottom: 10px;
    right: 7px;
    padding: 2px 6px;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 26px;
  }
  .card-body p {
    font-size: 11px;
    min-height: 0;
    margin-bottom: 12px;
  }
  .card-bottom {
    font-size: 10px;
    padding-top: 9px;
  }
  .tip {
    padding: 20px;
    gap: 13px;
  }
  .tip > span {
    font-size: 28px;
  }
  .tip > div {
    flex: 1;
  }
  .tip a {
    margin-left: 40px;
  }
  .tip p {
    font-size: 11px;
  }
  footer {
    gap: 18px;
    margin-top: 40px;
  }
  .shopping-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .shopping-layout > div {
    width: 100%;
  }
  .shop-summary {
    order: -1;
    position: static;
    width: 100%;
    padding: 18px 20px;
  }
  .shop-summary .eyebrow,
  .shop-summary hr,
  .shop-summary strong,
  .shop-summary > p:not(.progress-number):not(#progress-text):not(.save-note) {
    display: none;
  }
  .progress-number {
    font-size: 40px;
    margin: 0;
    float: right;
  }
  #progress-text {
    margin: 8px 0 12px;
  }
  .shop-summary progress {
    display: block;
    margin: 0;
  }
  .shop-summary .save-note {
    margin: 12px 0 0;
    font-size: 10px;
  }
  .save-note br {
    display: none;
  }
  .intro {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .shop-toolbar {
    padding-bottom: 15px;
  }
  .shop-item {
    gap: 10px;
    padding-left: 3px;
    padding-right: 3px;
  }
  .shop-item strong {
    font-size: 13px;
  }
  .shop-item .quantity {
    font-size: 11px;
    max-width: 90px;
  }
  .day {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .day h2 {
    margin-bottom: 5px;
  }
  .detail-head {
    padding: 35px 24px 24px;
  }
  .detail-head h2 {
    font-size: 36px;
  }
  .detail-content {
    padding: 24px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  dialog {
    max-height: 92vh;
  }
  .detail-head h2 {
    max-width: 88%;
  }
}
