:root {
  font-family: "DM Sans", sans-serif;
  color: #283d30;
  background: #f9f6ee;
  font-synthesis: none;
  line-height: 1.6;
  --muted: #5f6958;
  --line: #d9ddcd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid #984a39;
  outline-offset: 4px;
}
[hidden],
.js-only {
  display: none !important;
}
.enhanced .js-only {
  display: revert !important;
}
.page {
  max-width: 840px;
  padding: 0 28px 48px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.wordmark,
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}
.wordmark {
  font-size: 30px;
  text-decoration: none;
  line-height: 1;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
nav a {
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  padding: 8px 14px;
  min-height: 42px;
}
h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 30px 0 8px;
}
h2 {
  font-size: 29px;
  line-height: 1.3;
  margin: 0;
}
h3,
p {
  margin: 0;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
}
.portion-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 680px;
}
.weights {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.day-panel h2 {
  margin: 22px 0 3px;
}
.day-panel h2 span {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.meal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.meal-label {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.meal h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ingredients {
  font-size: 13px;
}
.method {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.notes {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.notes summary {
  color: #283d30;
  cursor: pointer;
  padding: 8px 0;
  width: fit-content;
}
.notes p {
  margin: 6px 0 10px;
  max-width: 700px;
}
.notes ul {
  padding-left: 18px;
}
.notes li {
  margin: 6px 0;
}
#shopping {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.shopping-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 7px;
}
#reset-shopping {
  border: none;
  padding-right: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.shopping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 20px;
}
.shopping-group h3 {
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.shopping-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  min-height: 44px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.shopping-group input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #536b46;
}
.shopping-group input:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}
.shopping-group small {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
  font-size: 11px;
  flex-shrink: 0;
}
.sources {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 30px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #283d30;
  color: white;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 600px) {
  .page {
    padding: 0 20px 32px;
  }
  header {
    padding: 18px 0;
  }
  nav {
    font-size: 12px;
    gap: 16px;
  }
  h1 {
    font-size: 34px;
    margin-top: 25px;
  }
  h2 {
    font-size: 27px;
  }
  .meal {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 0;
  }
  .meal-label {
    font-size: 11px;
    padding: 0;
  }
  .ingredients {
    line-height: 1.7;
  }
  .shopping-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  :root {
    background: white;
    color: black;
  }
  .page {
    max-width: none;
    padding: 0;
  }
  .enhanced .js-only,
  nav,
  .skip-link {
    display: none !important;
  }
  .day-panel[hidden],
  .shop-panel[hidden] {
    display: block !important;
  }
  .day-panel + .day-panel,
  #shopping,
  .shop-panel + .shop-panel {
    break-before: page;
  }
  .meal,
  .shopping-group {
    break-inside: avoid;
  }
  h1 {
    margin-top: 15px;
    font-size: 30px;
  }
  .meal {
    padding: 14px 0;
  }
  .notes p,
  .notes ul {
    display: block;
  }
  .notes::details-content {
    display: block;
  }
}

.enhanced .date-controls {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}
.date-controls label,
.shop-controls label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf8;
  color: #283d30;
  padding: 9px 12px;
  font-size: 14px;
}
.date-controls button {
  min-height: 44px;
  padding: 8px;
  font-size: 18px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
.day-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 5px;
}
.shop-controls {
  margin-top: 16px;
  max-width: 300px;
}
.shop-date {
  font-size: 15px;
  font-weight: 500;
  margin-top: 20px;
}
@media print {
  .enhanced .date-controls {
    display: none !important;
  }
}
