:root {
  --paper: #fbf8f2;
  --surface: #fffdf9;
  --ink: #2e2a27;
  --muted: #736d67;
  --terracotta: #a95f43;
  --terracotta-soft: #ecd0bf;
  --sage: #dde4d7;
  --blue: #dce8eb;
  --yellow: #f1e4bd;
  --line: #ded7ce;
  --content: 1120px;
  --text: 800px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 215, 206, 0.85);
  background: rgba(251, 248, 242, 0.93);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover, .nav a[aria-current="page"] {
  background: var(--sage);
  color: var(--ink);
}

.page {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 { margin: 0; font-size: clamp(3.2rem, 7.5vw, 6.8rem); }
h2 { margin: 0 0 26px; font-size: clamp(2.25rem, 4.5vw, 3.7rem); }
h3 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); }

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero__image {
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #eee7df;
}

.hero__image img { aspect-ratio: 1 / 1; object-fit: cover; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.week-hero__copy {
  min-width: 0;
  container-type: inline-size;
}

.week-hero__copy h1 {
  font-size: clamp(1.8rem, 13.6cqi, 5.1rem);
  overflow-wrap: anywhere;
}

.prep-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  overflow-wrap: anywhere;
}

.button {
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button--ghost { background: transparent; color: var(--ink); }
.button:hover { transform: translateY(-1px); }

.section { margin-top: 96px; }
.section__intro { max-width: var(--text); margin: -10px 0 34px; color: var(--muted); font-size: 1.08rem; }
.principles-label { margin: 40px 0 18px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
  align-items: baseline;
}

.principle:nth-child(3n + 1) { background: var(--terracotta-soft); }
.principle:nth-child(3n + 2) { background: var(--sage); }
.principle:nth-child(3n + 3) { background: var(--blue); }

.principle__number {
  display: block;
  margin: 0;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.principle h3 { margin: 0; }
.principle p { grid-column: 1 / -1; margin: 22px 0 0; line-height: 1.52; }

.menu-list { display: grid; gap: 16px; }

.menu-card {
  position: relative;
  min-height: 150px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  text-decoration: none;
}

a.menu-card { transition: transform 160ms ease, border-color 160ms ease; }
a.menu-card:hover { transform: translateY(-2px); border-color: var(--terracotta); }

.menu-card__day {
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.menu-card p { margin: 10px 0 0; color: var(--muted); }
.menu-card__meta { display: grid; gap: 7px; justify-items: end; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.menu-card__status { padding: 6px 10px; border-radius: 999px; background: var(--sage); color: var(--ink); font-weight: 750; }
.menu-card--pending .menu-card__status { background: #ece8e1; color: var(--muted); }

.menu-card--recipe {
  grid-template-columns: 70px 150px minmax(0, 1fr);
}

.menu-card__thumb {
  width: 150px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
}

.menu-card__copy { min-width: 0; }
.menu-card--recipe .menu-card__meta { margin-top: 16px; justify-items: start; white-space: normal; }

.overview-tabs {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.overview-tabs a {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.overview-tabs a:nth-child(1) { background: var(--terracotta-soft); }
.overview-tabs a:nth-child(2) { background: var(--yellow); }
.overview-tabs a:nth-child(3) { background: var(--sage); }
.overview-tabs a:hover { transform: translateY(-2px); border-color: var(--terracotta); }
.overview-tabs span { color: var(--terracotta); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.overview-tabs strong { margin-top: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.15; }
.overview-tabs small { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.45; }

.overview-note {
  margin: -10px 0 28px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: italic;
}

.overview-note a { text-underline-offset: 3px; }

.step-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.step-figure {
  margin: 26px 0 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
}

.step-gallery .step-figure { margin: 0; }
.step-figure img { aspect-ratio: 16 / 10; object-fit: cover; }
.step-figure--portrait { max-width: 620px; }
.step-figure--portrait img { aspect-ratio: 4 / 3; object-position: center 42%; }
.step-figure figcaption { padding: 14px 18px 17px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-style: italic; }

.prep-summary {
  position: relative;
  margin: 30px 0 34px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid #e2d2a5;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #f5e9c5 0%, #efe0b4 100%);
  box-shadow: 0 18px 42px rgba(91, 68, 34, 0.08);
}

.prep-summary__header {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 40px;
  align-items: end;
}

.prep-summary__header h3 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); }
.prep-summary__header h3 a { text-decoration-thickness: 2px; text-underline-offset: 7px; }
.prep-summary__header > p { max-width: 560px; margin: 0; color: #5f5549; font-size: 1.04rem; }

.prep-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.prep-card {
  border: 1px solid rgba(105, 77, 44, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.prep-card:hover {
  transform: translateY(-2px);
  border-color: var(--terracotta);
  background: rgba(255, 253, 249, 0.94);
}

.prep-card__heading {
  min-height: 104px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.prep-card__number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--terracotta-soft);
  color: #87482f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.prep-card h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2vw, 1.52rem);
  line-height: 1.22;
}

.prep-card__content {
  padding: 0 24px 24px 82px;
  border-top: 1px solid rgba(105, 77, 44, 0.12);
}

.prep-card__times {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.prep-card__link {
  margin-top: 18px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.prep-card__link:hover { background: var(--ink); color: white; }

.time-badge {
  min-width: 138px;
  padding: 9px 12px 10px;
  border-radius: 14px;
  display: grid;
  gap: 1px;
  background: var(--sage);
  line-height: 1.25;
}

.time-badge--passive { background: var(--blue); }
.time-badge small { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.time-badge strong { font-size: 0.92rem; }

.prep-summary__note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(105, 77, 44, 0.18);
  color: #5f5549;
}

.source-note {
  max-width: var(--text);
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-note a { text-underline-offset: 3px; }

/* Project collection */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  max-width: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.collection-card:hover { transform: translateY(-3px); border-color: var(--terracotta); }
.collection-card > img { height: 100%; min-height: 360px; object-fit: cover; }
.collection-card__body { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.collection-card__body .eyebrow { margin-bottom: 14px; }
.collection-card__body > strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.collection-card__body > span:not(.eyebrow, .collection-card__action) { margin-top: 20px; color: var(--muted); }
.collection-card__action { margin-top: auto; padding: 9px 14px; border-radius: 999px; background: var(--sage); font-size: 0.9rem; font-weight: 750; }

/* Shopping list */
.shopping-hero { grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); }

.progress-card {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--sage);
}

.progress-card__line { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(46,42,39,0.12); }
.progress-card__bar { height: 100%; width: 0; border-radius: inherit; background: var(--terracotta); transition: width 180ms ease; }

.shopping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
  align-items: start;
}

.checklist { display: grid; gap: 22px; }

.checklist-group {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.checklist-group h2 { margin-bottom: 20px; font-size: clamp(1.65rem, 3vw, 2.25rem); }

.check-row {
  position: relative;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid rgba(222, 215, 206, 0.72);
  cursor: pointer;
}

.check-row:first-of-type { border-top: 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }

.check-row__box {
  width: 25px;
  height: 25px;
  margin-top: 2px;
  border: 1.5px solid var(--terracotta);
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.check-row input:checked + .check-row__box { background: var(--terracotta); }
.check-row input:checked + .check-row__box::after { content: "✓"; color: white; font-weight: 900; line-height: 1; }
.check-row input:focus-visible + .check-row__box { outline: 3px solid rgba(169,95,67,0.25); outline-offset: 2px; }
.check-row input:checked ~ .check-row__text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.shopping-aside { position: sticky; top: 98px; display: grid; gap: 18px; }

.aside-card { padding: 26px; border-radius: 26px; background: var(--blue); }
.aside-card:nth-child(2) { background: var(--terracotta-soft); }
.aside-card h2 { font-size: 1.8rem; }
.aside-card ul { margin: 0; padding-left: 1.15em; }
.aside-card li { margin-bottom: 0.75em; }

.reset-button { width: 100%; border-color: var(--line); }

.site-footer {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero, .shopping-hero, .shopping-layout { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopping-aside { position: static; grid-template-columns: 1fr 1fr; }
  .reset-button { grid-column: 1 / -1; }
  .overview-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  body { font-size: 17px; }
  .site-header__inner, .page, .site-footer { width: min(100% - 28px, var(--content)); }
  .site-header__inner { min-height: 64px; padding: 10px 0; flex-wrap: wrap; }
  .nav { width: 100%; overflow-x: auto; }
  .nav a { flex: 0 0 auto; }
  .nav a { padding: 8px 10px; font-size: 0.8rem; }
  .page { padding-top: 38px; }
  .hero { gap: 28px; }
  .hero__image { border-radius: 24px; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  .principle__number { margin-bottom: 0; }
  .menu-card { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
  .menu-card__day { width: 44px; height: 44px; font-size: 1rem; }
  .menu-card__meta { grid-column: 2; justify-items: start; white-space: normal; }
  .menu-card--recipe { grid-template-columns: 44px minmax(0, 1fr); }
  .menu-card--recipe .menu-card__thumb { grid-column: 2; width: 120px; height: 90px; border-radius: 15px; }
  .menu-card--recipe .menu-card__copy { grid-column: 2; }
  .menu-card--recipe .menu-card__meta { grid-column: auto; }
  .prep-summary__header, .prep-summary__grid { grid-template-columns: 1fr; }
  .prep-summary__header { gap: 14px; }
  .prep-card__heading { min-height: 92px; padding: 18px; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .prep-card__number { width: 38px; height: 38px; }
  .prep-card__content { padding: 0 18px 20px; }
  .shopping-aside { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { grid-template-columns: 1fr; }
  .collection-card > img { min-height: 0; aspect-ratio: 4 / 3; }
  .reset-button { grid-column: auto; }
  .checklist-group { padding: 24px 20px; border-radius: 22px; }
  .step-gallery { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .hero__actions, .shopping-aside .reset-button, .site-footer { display: none; }
  body { background: white; font-size: 12pt; }
  .page { width: 100%; padding: 0; }
  .shopping-layout { display: block; }
  .checklist-group { break-inside: avoid; }
}
