:root {
  --book-paper: #fffaf0;
  --book-edge: #ead9bd;
  --berry: #a86991;
  --berry-dark: #684861;
  --apricot: #e9ad8e;
  --honey: #e8c778;
  --leaf: #93a47f;
}

.menu-page { overflow-x: hidden; background: #fbf6ef; }
.menu-header { position: relative; }
.menu-home-link {
  justify-self: end;
  min-height:48px;
  padding:6px 15px 6px 7px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(104,72,97,.12);
  border-radius: 999px;
  background:rgba(255,253,249,.82);
  color:#5b4655;
  font-size:.76rem;
  font-weight: 700;
  letter-spacing:.02em;
  text-decoration: none;
  box-shadow:0 10px 26px rgba(71,48,61,.09);
  backdrop-filter:blur(12px);
  transition: transform .25s, background .25s;
}
.menu-home-link:hover { transform: translateY(-2px); background: #fff; }
.menu-home-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#e8d8e7; color:#66485f; font-size:1rem; transition:transform .25s ease,background .25s ease; }
.menu-home-link:hover .menu-home-icon { background:#dfc9dd; transform:translateX(-2px); }

.menu-hero {
  position: relative;
  min-height: 700px;
  padding: 72px max(24px,calc((100vw - 960px)/2)) 104px;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 20%,rgba(216,196,216,.72) 0 13%,transparent 13.2%),
    radial-gradient(circle at 92% 78%,rgba(232,199,120,.2) 0 11%,transparent 11.2%),
    linear-gradient(145deg,#fbf5ee,#f6e9e7 54%,#eee4ef);
}
.menu-hero { padding-top: 34px; }
.food-doodle {
  position: absolute;
  width: clamp(42px, 5.4vw, 78px);
  aspect-ratio: 1;
  background: #9b7690;
  opacity: .22;
  pointer-events: none;
  mask: var(--food-icon) center / contain no-repeat;
  -webkit-mask: var(--food-icon) center / contain no-repeat;
}
.food-apple { --food-icon: url('../assets/food-icons/apple.svg'); left: 7%; top: 15%; transform: rotate(-14deg); }
.food-carrot { --food-icon: url('../assets/food-icons/carrot.svg'); right: 7%; top: 30%; transform: rotate(12deg); }
.food-cherry { --food-icon: url('../assets/food-icons/cherry.svg'); left: 15%; bottom: 20%; transform: rotate(10deg); }
.food-wheat { --food-icon: url('../assets/food-icons/wheat.svg'); right: 16%; bottom: 14%; transform: rotate(-16deg); }
.menu-contact::before,.menu-contact::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  background: #9b7690;
  opacity: .2;
  pointer-events: none;
}
.menu-contact::before { left: 20px; top: 25px; mask: url('../assets/food-icons/wheat.svg') center / contain no-repeat; transform: rotate(-15deg); }
.menu-contact::after { right: 20px; bottom: 24px; mask: url('../assets/food-icons/apple.svg') center / contain no-repeat; transform: rotate(12deg); }
@media (max-width: 1100px) {
  .food-doodle { width: 42px; opacity: .17; }
  .food-apple { left: 2%; top: 14%; }
  .food-carrot { right: 2%; top: 32%; }
  .food-cherry { left: 4%; bottom: 15%; }
  .food-wheat { right: 4%; bottom: 14%; }
}
@media (max-width: 600px) {
  .food-apple,.food-carrot { display: none; }
  .food-cherry,.food-wheat { bottom: 10%; width: 32px; }
  .menu-contact::before,.menu-contact::after { width: 28px; height: 28px; opacity: .17; }
}
.menu-hero::before,
.menu-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.menu-hero::before {
  z-index: -2;
  inset: 0;
  background: none;
}
.menu-hero::after {
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg,rgba(251,246,239,.7),rgba(247,234,232,.76) 55%,rgba(238,228,239,.82));
}
.menu-hero .eyebrow { margin-bottom: 16px; }
.menu-hero h1 {
  max-width: 900px;
  font: 400 clamp(4.2rem,8.5vw,7.6rem)/.79 "Cormorant Garamond",Georgia,serif;
  letter-spacing: -.045em;
}
.menu-hero h1 span { display: block; }
.menu-hero h1 em { color: #8f5478; font-weight: 300; }
.menu-lead {
  max-width: 740px;
  margin: 24px auto 20px;
  color: #61565e;
  font-size: 1.12rem;
  line-height: 1.62;
}
.menu-promises { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.menu-promises span {
  padding: 8px 13px;
  border: 1px solid rgba(111,82,107,.14);
  border-radius: 999px;
  background: rgba(255,253,249,.58);
  color: var(--berry-dark);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-bridge {
  display: grid;
  justify-items: center;
  margin-top: 30px;
}
.story-bridge-line {
  width: 1px;
  height: 28px;
  margin-bottom: 14px;
  background: linear-gradient(transparent,rgba(104,72,97,.38));
}
.story-bridge .eyebrow { margin-bottom: 12px; }
.story-bridge h2 {
  font: 400 clamp(2.6rem,4.4vw,3.9rem)/.88 "Forum",Georgia,serif;
  letter-spacing: -.04em;
}

.book-section {
  position: relative;
  padding: 0 max(24px,calc((100vw - 1360px)/2)) 100px;
  background:
    linear-gradient(rgba(255,255,255,.58),rgba(255,255,255,.58)),
    repeating-linear-gradient(0deg,transparent 0 4px,rgba(120,93,71,.025) 4px 5px);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.storybook {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  min-height: 790px;
  margin-top: -58px;
  filter: drop-shadow(0 38px 42px rgba(71,48,61,.2));
  perspective: 1600px;
}
.storybook::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15px -14px -16px;
  border-radius: 28px;
  background: var(--berry-dark);
}
.book-spine {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 11px;
  bottom: 11px;
  width: 22px;
  background: linear-gradient(90deg,rgba(84,58,73,.2),rgba(255,255,255,.72) 45%,rgba(84,58,73,.24));
  transform: translateX(-50%);
  pointer-events: none;
}
.book-ribbon {
  position: absolute;
  z-index: 9;
  left: calc(50% + 22px);
  bottom: -40px;
  width: 24px;
  height: 120px;
  background: linear-gradient(#b8799d,#8e5b7b);
  clip-path: polygon(0 0,100% 0,100% 100%,50% 82%,0 100%);
  transform: rotate(2deg);
}
.book-page {
  position: relative;
  padding: 58px 54px 46px;
  overflow: hidden;
  background:
    linear-gradient(90deg,rgba(112,78,65,.05),transparent 12%),
    repeating-linear-gradient(0deg,transparent 0 5px,rgba(110,85,64,.018) 5px 6px),
    var(--book-paper);
  box-shadow: inset 0 0 50px rgba(126,90,70,.05);
}
.book-page-left { border-radius: 28px 3px 3px 28px; transform: rotateY(1.5deg); transform-origin: right; }
.book-page-right { border-radius: 3px 28px 28px 3px; transform: rotateY(-1.5deg); transform-origin: left; }
.book-page::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(120,85,67,.1);
  border-radius: inherit;
  pointer-events: none;
}
.book-chapter {
  margin: 0 0 19px;
  color: var(--berry);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.book-page h3 { max-width: 480px; font: 400 clamp(2.8rem,4.2vw,4.2rem)/.93 "Forum",Georgia,serif; letter-spacing: -.035em; }
.book-intro { max-width: 535px; margin: 25px 0 30px; color: #655a60; font-size: .98rem; line-height: 1.72; }
.food-notes { display: grid; gap: 15px; }
.food-notes > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  align-items: start;
}
.food-notes span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecdde9;
  color: var(--berry-dark);
  font-size: .58rem;
  font-weight: 700;
}
.food-notes p { margin: 0; color: #6c6167; font-size: .79rem; line-height: 1.48; }
.food-notes strong { display: block; margin-bottom: 2px; color: #3e353b; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.weaning-note {
  margin-top: 29px;
  padding: 18px 20px;
  border-left: 3px solid var(--honey);
  border-radius: 0 12px 12px 0;
  background: #f8edcf;
}
.weaning-note small { color: #816339; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weaning-note p { margin: 5px 0 0; color: #675943; font: 1rem/1.45 "Forum",Georgia,serif; }
.page-number { position: absolute; z-index: 2; bottom: 21px; color: #a49286; font: .75rem/1 var(--sans); }
.book-page-left .page-number { left: 32px; }
.book-page-right .page-number { right: 32px; }

.planner-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.planner-head h3 { font-size: clamp(2.6rem,3.8vw,3.7rem); }
.week-dots { display: flex; gap: 8px; padding-top: 5px; }
.week-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8c5cc;
  cursor: pointer;
  transition: width .25s,background .25s;
}
.week-dots button.is-active { width: 28px; background: var(--berry); }
.weekly-menu { margin-top: 24px; transition: opacity .16s,transform .16s; }
.book-page-right.is-turning .weekly-menu { opacity: 0; transform: translateX(14px) rotateY(-5deg); }
.menu-days { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.menu-day {
  min-width: 0;
  border: 1px solid #eadfce;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.56);
}
.menu-day h4 {
  margin: 0;
  padding: 12px 6px;
  background: var(--day-color,#eadbea);
  color: #554650;
  font-size: .86rem;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}
.meal { min-height: 108px; padding: 13px 10px; border-top: 1px solid #eee3d4; }
.meal small { display: block; margin-bottom: 6px; color: var(--berry); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.meal span { display: block; color: #4f474b; font-size: .9rem; line-height: 1.42; }
.book-controls {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.book-controls button {
  min-width: 148px;
  padding: 14px 20px;
  border: 1px solid rgba(104,72,97,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--berry-dark);
  font: 700 .84rem/1 var(--sans);
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(71,48,61,.08);
  transition: transform .24s ease,box-shadow .24s ease,background .24s ease,color .24s ease,border-color .24s ease;
}
.book-controls button span {
  display: inline-block;
  font-size: 1.08em;
  transition: transform .24s ease;
}
.book-controls button:hover {
  transform: translateY(-4px);
  border-color: rgba(168,105,145,.45);
  background: linear-gradient(135deg,#fff,#f2e2ee);
  color: #8f5478;
  box-shadow: 0 13px 26px rgba(104,72,97,.16);
}
.book-controls button:first-child:hover span { transform: translateX(-5px); }
.book-controls button:last-child:hover span { transform: translateX(5px); }
.book-controls button:active { transform: translateY(-1px) scale(.97); }
.book-controls button:focus-visible { outline: 3px solid rgba(168,105,145,.3); outline-offset: 4px; }
.book-controls > span { color: #88767e; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu-footnote {
  max-width: 920px;
  margin: 54px auto 0;
  padding: 0 20px;
  color: #695b63;
  font: 400 1.08rem/1.55 "DM Sans",Arial,sans-serif;
  text-align: center;
}

.menu-contact {
  position: relative;
  max-width: 820px;
  margin: 58px auto 0;
  padding: 56px 70px 60px;
  text-align: center;
  border: 1px solid rgba(104,72,97,.13);
  border-radius: 0 0 34px 34px;
  background:
    repeating-linear-gradient(0deg,transparent 0 5px,rgba(110,85,64,.018) 5px 6px),
    rgba(255,250,240,.82);
  box-shadow: 0 20px 42px rgba(71,48,61,.1);
}
.afterword-thread {
  position: absolute;
  left: 50%;
  top: -59px;
  width: 1px;
  height: 59px;
  background: linear-gradient(rgba(168,105,145,.48),rgba(168,105,145,.12));
}
.menu-contact .eyebrow { margin-bottom: 14px; }
.menu-contact h2 { font-size: clamp(2.8rem,5vw,4.4rem); }
.menu-contact > p:not(.book-chapter) { max-width: 620px; margin: 20px auto 26px; color: #645760; line-height: 1.7; }
.menu-contact > a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--plum-dark);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s,background .25s;
}
.menu-contact > a:hover { transform: translateY(-3px); background: var(--plum); }
.menu-footer {
  min-height: 190px;
  padding: 26px max(24px,calc((100vw - 1240px)/2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #665a62;
  background: #fffdf9;
}
.menu-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #493a45;
  font: 1.24rem/1.15 "Forum",Georgia,serif;
  text-decoration: none;
}
.menu-footer img { width: 180px; height: 139px; object-fit: contain; }
.menu-footer p { text-align: center; font: 1.28rem/1.3 "Forum",Georgia,serif; }
.subpage-footer-links { justify-self:end; max-width:430px; padding:12px 15px; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px 15px; border:1px solid rgba(104,72,97,.14); border-radius:20px; background:rgba(255,255,255,.72); }
.subpage-footer-links a { padding:5px 4px; color:#5c4857; font-size:.72rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.subpage-footer-links a:hover,.subpage-footer-links a[aria-current="page"] { color:#9b668d; }
.return-home {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 13px;
  padding: 12px 17px;
  border: 1px solid rgba(104,72,97,.17);
  border-radius: 999px;
  background: #fff;
  color: var(--berry-dark);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(71,48,61,.08);
  transition: transform .25s,background .25s;
}
.return-home span { grid-column: 1; }
.return-home small { grid-column: 1; color: #9a8993; font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.return-home b { grid-column: 2; grid-row: 1 / span 2; font-size: 1.05rem; }
.return-home:hover { transform: translateY(-2px); background: #f3e8f1; }

@media (max-width: 1050px) {
  .storybook { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
  .book-spine,.book-ribbon { display: none; }
  .book-page-left { border-radius: 26px 26px 4px 4px; transform: none; }
  .book-page-right { border-radius: 4px 4px 26px 26px; transform: none; }
}
@media (max-width: 760px) {
  .menu-header nav { display: none; }
  .menu-header { grid-template-columns: 1fr auto; }
  .menu-hero { min-height: 570px; padding: 24px 22px 92px; }
  .menu-hero h1 { font-size: clamp(4rem,21vw,6.5rem); }
  .menu-lead { font-size: 1rem; }
  .book-section { padding-bottom: 82px; }
  .book-page { padding: 40px 22px 48px; }
  .menu-days { grid-template-columns: 1fr 1fr; }
  .meal { min-height: 80px; }
  .book-controls > span { display: none; }
  .book-controls button { min-width: 0; flex: 1; padding: 14px 13px; }
  .menu-footnote { margin-top: 36px; padding: 0 12px; font-size: 1rem; }
  .menu-contact { padding: 48px 24px 52px; border-radius: 0 0 26px 26px; }
  .menu-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .menu-footer-brand { flex-direction: column; }
  .return-home { justify-self: center; }
  .menu-home-link { min-height:43px; padding:5px 12px 5px 6px; gap:7px; font-size:.7rem; }
  .menu-home-icon { width:31px; height:31px; }
  .subpage-footer-links { justify-self:stretch; justify-content:center; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
  .subpage-footer-links a { text-align:center; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .book-page-right,.weekly-menu,.book-controls button,.book-controls button span { transition: none; }
}
