@font-face{font-family:"DM Sans";src:url("fonts/dm-sans.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:block}
@font-face{font-family:"DM Serif Text";src:url("fonts/dm-serif.woff2") format("woff2");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:"DM Serif Text";src:url("fonts/dm-serif-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:block}
:root{--cream:#faf7ee;--paper:#fffdf6;--ink:#392d3d;--plum:#654776;--deep:#4e355d;--muted:#675f67;--line:#ddd5dd;--lavender:#f1ebf3;--serif:"DM Serif Text",Georgia,serif;--sans:"DM Sans",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55}button,a{font:inherit}a{color:inherit;text-decoration:none}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #8753a1;outline-offset:4px}button{border:0}button:disabled{cursor:default}h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3,h4{font-family:var(--serif);font-weight:400}::selection{background:#dfcee6;color:var(--deep)}
.wrap{width:min(1200px,calc(100% - 112px));margin-inline:auto}.symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.ico,.brand-mark,.sprig-icon,.tag-icon svg,.guide-icon svg,.support-emblem svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex:none}.ico{width:19px;height:19px}.skip-link{position:fixed;inset-inline-start:15px;top:-70px;z-index:10;background:var(--deep);color:white;padding:12px 20px}.skip-link:focus{top:10px}
.topbar{border-bottom:1px solid #ded9d0;background:var(--cream);position:relative;z-index:5}.nav-wrap{display:flex;align-items:center;justify-content:space-between;min-height:80px;gap:24px}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--deep);font-family:var(--serif);font-size:clamp(23px,2.3vw,32px);letter-spacing:-1.1px;white-space:nowrap;line-height:1.15}.brand-mark{width:40px;height:40px;stroke-width:2}.nav-links,.nav-actions{display:flex;align-items:center}.nav-links{gap:32px}.nav-links a,.story-link,.back-top{font-weight:600;font-size:14px}.nav-links a:hover,.story-link:hover,.back-top:hover{color:var(--plum);text-decoration:underline;text-underline-offset:5px}.nav-actions{gap:20px}.lang-btn,.menu-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;padding:7px 0;color:#5a465f;font-weight:600}.lang-btn .ico{width:15px;height:15px}.lang-btn{font-size:14px}.support-link,.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;color:#fffafc;background:var(--plum);border:1px solid var(--plum);border-radius:999px;font-size:14px;font-weight:600;transition:background .2s,transform .2s}.support-link{padding:10px 19px;gap:9px}.support-link .ico{width:16px;height:16px}.button{padding:14px 22px}.support-link:hover,.button:hover{background:var(--deep);transform:translateY(-1px)}.menu-btn{display:none}
.hero{overflow:hidden;background:var(--cream)}.hero-layout{display:grid;grid-template-columns:1.02fr 1fr;align-items:center;gap:clamp(40px,5vw,86px);padding-block:52px 57px}.hero-copy{padding-block:14px}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--plum);font-weight:700;font-size:11px;text-transform:uppercase;line-height:1.4;letter-spacing:2px}.eyebrow-rule{width:27px;height:1.5px;background:#9d87a3;flex:none}.hero h1{font-size:clamp(67px,6.4vw,98px);line-height:1.015;letter-spacing:-.055em;margin:19px 0 21px;color:#3d2e42}.hero h1 em{font-weight:400;color:#806189}.hero-lead{font-size:clamp(16px,1.25vw,19px);line-height:1.65;max-width:465px;color:#615863}.hero-actions{display:flex;align-items:center;gap:27px;margin-top:28px}.story-link{display:inline-flex;align-items:center;gap:8px;color:var(--deep)}.story-link .ico{width:16px;height:16px}.hero-art{position:relative;isolation:isolate;margin:auto;width:min(100%,480px);height:clamp(356px,30vw,427px)}.hero-photo,.arch-back{position:absolute;border-radius:48% 48% 5% 5% / 52% 52% 6% 6%;width:calc(100% - 18px);height:calc(100% - 12px);inset-block-start:0;inset-inline-start:0}.hero-photo{object-fit:cover;object-position:50% 49%;z-index:1}.arch-back{background:#d6c8de;transform:rotate(4.5deg);inset-inline-start:16px;inset-block-start:9px}.art-sprig{position:absolute;right:-33px;top:12px;z-index:2;width:77px;height:116px;transform:rotate(11deg);color:#796184;pointer-events:none}.dish-tag{position:absolute;z-index:2;bottom:6px;inset-inline-start:-29px;display:flex;align-items:center;text-align:start;gap:11px;padding:12px 16px 12px 12px;background:#fffaf1;border:1px solid #e3d9c9;border-radius:12px;box-shadow:0 5px 14px #41304414;transition:transform .18s}.dish-tag:hover{transform:translateY(-3px)}.tag-icon{background:#eee5f1;border-radius:50%;display:grid;place-items:center;width:40px;height:40px;color:var(--plum)}.tag-icon svg{width:27px;height:27px;stroke-width:2.1}.tag-text{display:grid;gap:0}.tag-text small{color:var(--muted);font-size:10px;letter-spacing:.6px}.tag-text strong{font-family:var(--serif);font-size:18px;font-weight:400;line-height:1.45}.dish-tag>.ico{width:15px;height:15px;margin-inline-start:6px}
.band{padding-block:62px}.guides{background:var(--lavender);border-block:1px solid #e2dbe4}.section-intro{margin-bottom:26px}.section-intro h2,.story-intro h2,.support-panel h2{font-size:clamp(37px,3.6vw,56px);line-height:1.12;letter-spacing:-.045em}.section-intro h2{margin:8px 0}.section-intro p,.support-panel p{font-size:16px;color:var(--muted);max-width:720px}.sprig-icon{width:20px;height:20px;stroke-width:1.6}.guides .eyebrow{gap:7px}.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.guide-card{--tint:#eddde3;--tone:#8e596e;border:1px solid #d9d0da;background:var(--paper);border-radius:16px;text-align:start;display:flex;flex-direction:column;align-items:flex-start;padding:23px 21px 19px;min-height:225px;transition:transform .2s,border-color .2s,box-shadow .2s}.guide-card:hover,.recipe-card:hover{transform:translateY(-3px);border-color:#ad91b5;box-shadow:0 8px 18px #46344a0b}.guide-card[data-guide="diabetes"],.modal-icon.diabetes{--tint:#f5e4cf;--tone:#91673c}.guide-card[data-guide="allergy"],.modal-icon.allergy{--tint:#dfe9d8;--tone:#607450}.guide-card[data-guide="everyday"],.modal-icon.everyday{--tint:#e8deed;--tone:#7b5e85}.guide-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:var(--tint);color:var(--tone);margin-bottom:16px}.guide-icon svg{width:28px;height:28px;stroke-width:1.7}.guide-icon svg.bowl-icon{width:32px;height:32px;stroke-width:2.2}.guide-card h3{font-size:clamp(21px,1.7vw,26px);letter-spacing:-.035em;line-height:1.17;margin-bottom:8px}.guide-card p{font-size:14px;color:var(--muted);line-height:1.58;margin-bottom:16px}.card-action{margin-top:auto;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--plum)}.card-action .ico{width:15px;height:15px}
.kitchen{background:var(--cream)}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.recipe-card{display:block;position:relative;border-radius:15px;border:1px solid #ddd5cb;overflow:hidden;background:var(--paper);padding:0;text-align:start;transition:transform .2s,border-color .2s,box-shadow .2s}.recipe-card>img{display:block;width:100%;height:auto;aspect-ratio:1.75;object-fit:cover}.recipe-info{padding:17px 19px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px}.recipe-info h3{font-size:clamp(22px,2vw,30px);line-height:1.2;letter-spacing:-.04em}.recipe-info small,.recipe-meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-bottom:5px}.recipe-info small .ico,.recipe-meta .ico{height:14px;width:14px}.round-arrow{display:grid;place-items:center;border:1px solid #d7c9dc;border-radius:50%;width:34px;height:34px;color:var(--plum);flex:none}.round-arrow .ico{width:16px;height:16px}
.planner-section{background:#efe9ee;border-block:1px solid #ddd5df}.story-section{padding-block:73px 62px}.story-layout{display:grid;grid-template-columns:1fr 1.35fr;gap:12%;align-items:start}.story-intro h2{margin-top:13px;max-width:430px}.story-body p{color:var(--muted);font-size:17px;line-height:1.75}.story-body p+p{margin-top:13px}.support-section{padding-bottom:64px}.support-panel{background:#e7dcec;border:1px solid #d7c9dd;border-radius:20px;display:flex;align-items:flex-start;gap:26px;padding:36px 40px}.support-panel h2{font-size:clamp(30px,3vw,43px);margin:7px 0 11px}.support-panel p{max-width:760px}.support-emblem{flex:none;border:1px solid #c7b0d0;color:#71527e;border-radius:50%;display:grid;place-items:center;width:60px;height:60px;margin-top:4px}.support-emblem svg{width:27px;height:27px}.support-panel .fund-status{display:flex;align-items:baseline;gap:9px;font-size:13px;color:var(--deep);font-weight:600;margin-top:17px}.status-dot{width:7px;height:7px;border-radius:50%;background:#8b7393;flex:none}
footer{border-top:1px solid #dcd5cb;padding:24px 0}.footer-wrap{display:flex;gap:20px;align-items:center;justify-content:space-between}.footer-wrap .brand{font-size:22px}.footer-wrap .brand-mark{width:29px;height:29px}.footer-note{font-size:12px;color:var(--muted)}.back-top{white-space:nowrap;font-size:12px}
dialog{border:1px solid #d9cfda;border-radius:18px;color:var(--ink);padding:0;width:min(590px,calc(100% - 28px));max-height:85dvh;box-shadow:0 20px 80px #30233544;background:var(--paper)}dialog::backdrop{background:#2a202c82}body.has-dialog{overflow:hidden}.dialog-close{position:sticky;display:grid;place-items:center;float:inline-end;top:14px;margin:14px 14px -52px;z-index:2;border:1px solid #d9cddd;background:#fffdf7f7;width:36px;height:36px;border-radius:50%}#detail-body{padding:32px 34px}#detail-body .modal-icon{--tint:#eddee4;--tone:#8e596e}#detail-body .modal-icon.diabetes{--tint:#f5e4cf;--tone:#91673c}#detail-body .modal-icon.allergy{--tint:#dfe9d8;--tone:#607450}#detail-body .modal-icon.everyday{--tint:#e8deed;--tone:#7b5e85}#detail-body h2{font-size:38px;line-height:1.11;letter-spacing:-.045em;margin:7px 0 15px;padding-inline-end:8px}#detail-body p,#detail-body li{color:#5c535d;font-size:15px;line-height:1.65}#detail-body h3{margin:20px 0 6px;font-size:24px;line-height:1.2}#detail-body ul,#detail-body ol{padding-inline-start:22px;margin:8px 0}#detail-body li+li{margin-top:7px}.meal-idea{margin-block-start:21px;padding:16px 18px;background:#eee8f1;border-radius:12px}#detail-body .meal-idea h3{margin:3px 0 6px}.source-links{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}.source-links span{width:100%;font-size:12px;font-weight:700}.source-links a{color:var(--plum);text-decoration:underline;text-underline-offset:3px;font-size:13px}.detail-photo{width:calc(100% + 68px);margin:-32px -34px 20px;aspect-ratio:2.8;object-fit:cover;display:block}.allergen-note{margin-top:18px;padding:11px 14px;border-inline-start:3px solid #c6afcb;background:#efeaee}
[dir=rtl]{--sans:Tahoma,Arial,sans-serif;--serif:Georgia,"Times New Roman",serif}[dir=rtl] .eyebrow,[dir=rtl] .brand,[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3{letter-spacing:0}[dir=rtl] .hero h1{line-height:1.25}[dir=rtl] .hero h1 em{font-style:normal}[dir=rtl] .rtl-flip{transform:scaleX(-1)}[dir=rtl] .art-sprig{left:-35px;right:auto;transform:scaleX(-1)}[dir=rtl] .arch-back{transform:rotate(-4.5deg)}
@media(min-width:1500px){.hero-layout{padding-block:66px 70px}}
@media(max-width:1080px){.wrap{width:calc(100% - 72px)}.nav-links{gap:20px}.nav-actions{gap:14px}.hero-layout{gap:35px}.guide-grid{gap:12px}.guide-card{padding:19px 16px 17px}.hero-art{height:350px}.art-sprig{right:-23px;width:67px}.hero h1{font-size:clamp(59px,7vw,76px)}}
@media(max-width:800px){.wrap{width:calc(100% - 48px)}.nav-wrap{min-height:67px;gap:15px}.brand{font-size:25px;gap:8px}.brand-mark{width:33px;height:33px}.nav-links{gap:16px}.nav-links a{font-size:13px}.support-link{padding:8px 13px}.hero-layout{padding-block:36px 41px;gap:24px}.hero-art{height:305px}.hero h1{font-size:clamp(52px,7vw,65px)}.hero-lead{font-size:15px}.hero-actions{gap:15px}.button{padding:12px 16px}.dish-tag{inset-inline-start:-13px;padding:8px 10px;gap:7px}.tag-icon{width:33px;height:33px}.tag-text strong{font-size:15px}.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.guide-card{min-height:201px;padding:20px}.band{padding-block:44px}.recipe-grid{gap:12px}.recipe-info{padding:13px}.round-arrow{width:28px;height:28px}.story-layout{gap:6%}.footer-note{max-width:230px}.support-panel{padding:28px}}
@media(max-width:670px){.wrap{width:calc(100% - 38px)}.nav-actions{gap:12px}.nav-links{display:none;position:absolute;inset-inline:0;top:100%;background:var(--cream);border-bottom:1px solid var(--line);padding:12px 20px 16px;box-shadow:0 8px 10px #4732470d}.nav-links.is-open{display:flex;align-items:stretch;flex-direction:column;gap:0}.nav-links a{padding:10px 5px;font-size:15px}.menu-btn{display:grid;width:26px;min-height:36px}.brand{font-size:23px}.brand-mark{width:30px;height:30px}.hero-layout{grid-template-columns:1fr;gap:26px;padding-block:29px 36px}.hero-copy{padding:0}.hero h1{font-size:clamp(61px,12vw,78px);margin:14px 0}.hero-lead{font-size:16px;max-width:510px}.hero-actions{margin-top:20px;gap:23px}.hero-art{width:min(89%,405px);height:clamp(256px,63vw,318px)}.dish-tag{inset-inline-start:-14px;bottom:3px}.art-sprig{width:57px;height:90px;right:-20px;top:3px}.hero-photo,.arch-back{border-radius:45% 45% 5% 5% / 59% 59% 7% 7%}.band{padding-block:37px}.section-intro{margin-bottom:20px}.section-intro h2{font-size:37px}.section-intro p{font-size:15px}.eyebrow{font-size:10px;letter-spacing:1.7px}.guide-grid{gap:10px}.guide-card{padding:16px 14px;min-height:205px;border-radius:13px}.guide-card h3{font-size:21px}.guide-card p{font-size:13px}.guide-icon{width:43px;height:43px;margin-bottom:13px}.guide-icon svg{width:25px;height:25px}.recipe-grid{grid-template-columns:1fr;gap:12px}.recipe-card{display:grid;grid-template-columns:110px minmax(0,1fr)}.recipe-card>img{height:100%;min-height:100px;aspect-ratio:1}.recipe-info{padding:14px}.recipe-info h3{font-size:23px}.story-layout{grid-template-columns:1fr;gap:18px}.story-intro h2{font-size:36px}.story-body p{font-size:16px}.support-panel{padding:22px;gap:14px;display:block}.support-emblem{width:43px;height:43px;margin:0 0 15px}.support-emblem svg{width:21px;height:21px}.support-section{padding-bottom:35px}.footer-wrap{flex-wrap:wrap;gap:12px;justify-content:space-between}.footer-note{max-width:none;order:3;width:100%}.footer-wrap .brand{font-size:21px}#detail-body{padding:25px 21px}.detail-photo{width:calc(100% + 42px);margin:-25px -21px 16px}#detail-body h2{font-size:33px}}
@media(max-width:380px){.wrap{width:calc(100% - 30px)}.brand{font-size:19px}.brand-mark{width:26px}.nav-actions{gap:8px}.lang-btn .ico{display:none}.support-link{font-size:13px;padding:7px 10px;gap:5px}.guide-card{padding:14px 11px}.guide-card h3{font-size:19px}.hero h1{font-size:56px}}
@media(max-width:520px){
  .nav-wrap{gap:8px}
  .topbar .brand{font-size:21px;gap:6px}
  .topbar .brand-mark{width:27px;height:27px}
  .nav-actions{gap:9px}
  .lang-btn .ico,.support-link .ico{display:none}
  .support-link{font-size:13px;padding:7px 12px}
  .menu-btn{width:26px}
}
@media(max-width:360px){
  .topbar .brand{font-size:18px}
  .topbar .brand-mark{width:22px}
  .nav-actions{gap:6px}
  .support-link{padding-inline:9px}
}
.motion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #d8cddc;
  border-radius: 99px;
  background: transparent;
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}
.motion-button[hidden] { display: none; }
.recipe-book {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.recipe-book summary {
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
}
.recipe-book summary::-webkit-details-marker { display: none; }
.recipe-book summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 16px; }
.book-heading { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 25px; }
.book-heading .ico { width: 29px; height: 29px; }
.book-chevron { font: 22px/1 var(--sans); }
.recipe-book[open] .book-chevron { transform: rotate(180deg); }
.book-content { border-top: 1px solid var(--line); padding: 18px 22px 24px; }
.book-content label { display: block; font-weight: 600; font-size: 15px; }
#recipe-search {
  display: block;
  width: min(100%, 480px);
  font: inherit;
  padding: 10px 14px;
  margin: 6px 0 10px;
  border: 1px solid #b6aabb;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
}
#recipe-search:focus { outline: 2px solid var(--plum); outline-offset: 2px; }
#recipe-count { font-size: 13px; color: var(--muted); }
.book-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 26px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.book-recipe {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: start;
  padding: 8px 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--deep);
}
.book-recipe small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.book-recipe .ico, .inline-recipe .ico, .related-recipe .ico { width: 16px; height: 16px; }
.book-recipe:hover span, .related-recipe:hover span, .back-to-guide:hover span { text-decoration: underline; text-underline-offset: 4px; }
.inline-recipe, .related-recipe, .back-to-guide {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  color: var(--deep);
  padding: 0;
}
.inline-recipe { margin-top: 9px; padding: 0 16px; border-radius: 24px; background: var(--plum); color: white; }
.inline-recipe:hover { background: var(--deep); }
.related-recipes:empty { display: none; }
.related-recipe { display: flex; }
.back-to-guide { display: flex; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.recipe-bowl { border-radius: 50%; color: var(--plum); background: var(--lavender); width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 12px; }
.recipe-bowl .ico { width: 30px; height: 30px; }
.guide-card:has(.guide-cover) { overflow: hidden; padding: 0 0 17px; }
.guide-cover { width: 100%; height: clamp(84px, 9.3vw, 138px); object-fit: cover; display: block; }
.guide-card:has(.guide-cover) > :not(.guide-cover) { margin-inline: 17px; }
.guide-card:has(.guide-cover) .guide-icon {
  position: relative;
  margin-block: -19px 10px;
  border: 3px solid var(--paper);
}
.food-thumb { width: 70px; height: 58px; border-radius: 9px; object-fit: cover; }
.book-recipe { grid-template-columns: auto minmax(0,1fr) auto auto; }
.related-recipe { margin-block: 5px; }
.related-recipe .food-thumb { width: 46px; height: 39px; }
.guide-meal-photo {
  display: block; width: 100%; max-height: 165px; aspect-ratio: 2.7; object-fit: cover;
  margin-bottom: 14px; border-radius: 9px;
}
.plan-jump { margin-top: 16px; padding: 10px 17px; }
@media (max-width: 470px) {
  .book-recipe { gap: 8px; font-size: 14px; }
  .book-recipe .food-thumb { width: 50px; height: 48px; }
  .book-recipe .ico { width: 13px; }
  .guide-card:has(.guide-cover) > :not(.guide-cover) { margin-inline: 12px; }
}
@media (max-width: 670px) {
  .book-list { grid-template-columns: 1fr; }
  .book-content { padding-inline: 16px; }
  .recipe-book summary { padding-inline: 16px; }
}
.motion-button .ico { width: 16px; height: 16px; }
.motion-button:hover { background: var(--lavender); }
@media (min-width: 671px) and (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 12px 24px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 10px #4732470d;
  }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links a { padding: 10px 5px; font-size: 15px; }
  .menu-btn { display: grid; width: 32px; height: 38px; }
}
@media (max-width: 760px) {
  .nav-links .motion-button { align-self: flex-start; margin-top: 5px; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::after,
  html:not([data-motion="on"]) *::before { transition: none !important; animation: none !important; }
}

/* ---- Enhancements: sticky header, active section, richer hover states ---- */
html { scroll-padding-top: 96px; }
@media (max-width: 800px) { html { scroll-padding-top: 82px; } }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  transition: box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}
.topbar.is-scrolled {
  border-bottom-color: #e4dce3;
  box-shadow: 0 6px 22px #3d2e420f;
}
@media (max-width: 760px) { .topbar .nav-links { background: var(--cream); } }

/* Nav links: an underline that grows in, and marks the section you are reading. */
@media (min-width: 761px) {
  .nav-links a { position: relative; padding-block: 6px; }
  .nav-links a:hover { text-decoration: none; }
  .nav-links a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--plum);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 280ms cubic-bezier(.2,.75,.25,1);
  }
  [dir="rtl"] .nav-links a::after { transform-origin: right; }
  .nav-links a:hover::after,
  .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
}
.nav-links a[aria-current="true"] { color: var(--plum); }

/* Cards: deeper, softer shadow and a calm photo zoom instead of a jump. */
.guide-card, .recipe-card { will-change: auto; }
.guide-card:hover, .recipe-card:hover { box-shadow: 0 14px 30px #46344a17, 0 2px 6px #46344a0d; }
.guide-cover, .recipe-card > img { transition: filter 400ms ease; }
@media (hover: hover) { .guide-card:hover .guide-cover, .recipe-card:hover > img { filter: brightness(1.04) saturate(1.06); } }

/* Pressed states give touch users clear feedback. */
.button, .support-link, .guide-card, .recipe-card, .dish-tag, .inline-recipe, .lang-btn, .motion-button {
  transition-property: background-color, border-color, box-shadow, scale, color;
  transition-duration: 200ms;
}
.button:active, .support-link:active, .inline-recipe:active { scale: .97; }
/* Cards never scale: resizing the small photos makes them look pixelated. */
.guide-card:active, .recipe-card:active, .dish-tag:active { border-color: var(--plum); box-shadow: 0 0 0 3px #9777a438; }

.book-chevron { display: inline-block; transition: transform 320ms cubic-bezier(.2,.75,.25,1); }
.recipe-book summary:hover .book-heading { color: var(--plum); }
.book-recipe { border-radius: 6px; transition: background-color 180ms; }
.book-recipe:hover { background: #f6f1f7; }

.status-dot { position: relative; }
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #8b7393;
  opacity: 0;
}

/* Pop-up photos: show the whole round bowl at a size the photo can fill sharply,
   instead of stretching a small square photo into a wide banner. */
#detail-body:has(> .detail-photo) {
  background: linear-gradient(#efe6f2, #efe6f2) top / 100% 150px no-repeat;
}
#detail-body .detail-photo {
  display: block;
  width: min(220px, 58%);
  height: auto;
  aspect-ratio: 1;
  margin: 6px auto 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px #d9c8de, 0 16px 32px #3d2e4224;
}
#detail-body .guide-meal-photo {
  float: inline-end;
  width: 112px;
  height: 112px;
  max-height: none;
  aspect-ratio: 1;
  margin: 0 0 10px 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fffdf6, 0 0 0 5px #d9c8de;
}
[dir="rtl"] #detail-body .guide-meal-photo { margin: 0 16px 10px 0; }
#detail-body .meal-idea { display: flow-root; }
@media (max-width: 670px) {
  #detail-body:has(> .detail-photo) { background-size: 100% 128px; }
  #detail-body .detail-photo { width: min(190px, 60%); margin-top: 4px; }
  #detail-body .guide-meal-photo { width: 88px; height: 88px; }
}

/* ---- Finishing touches ---- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html { scrollbar-color: #bca8c4 var(--cream); }

/* Hero quick facts */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid #e4dbe3;
  max-width: 500px;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #5d4b63; }
.hero-facts .ico { width: 18px; height: 18px; color: var(--plum); }
@media (max-width: 670px) { .hero-facts { margin-top: 24px; gap: 8px 16px; } }

/* "Something sweet" now has its label like the other sections */
.dessert-intro { margin: 46px 0 22px; }
.dessert-intro h2 { margin: 8px 0; font-size: clamp(32px, 3vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
.dessert-intro p { color: var(--muted); max-width: 720px; }

/* Recipe cards show more of the bowl */
@media (min-width: 671px) { .recipe-card > img { aspect-ratio: 1.5; } }

/* Recipe count in the book heading */
.book-total {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--plum);
  font: 700 12px/1 var(--sans);
}
.book-total:empty { display: none; }

/* Story signature */
.story-body { position: relative; padding-inline-start: 26px; border-inline-start: 2px solid #ddd0e2; }
.story-body::before {
  content: "\201C";
  position: absolute;
  top: -38px;
  inset-inline-start: 10px;
  font: 92px/1 var(--serif);
  color: #d6c5dc;
  pointer-events: none;
}
[dir="rtl"] .story-body::before { content: "\201D"; }
.story-sign {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px !important;
  color: var(--plum) !important;
}
[dir="rtl"] .story-sign { font-style: normal; }
.story-sign .ico { width: 18px; height: 18px; flex: none; }

/* Fuller footer */
footer { padding: 0; background: #f3eef3; border-top: 1px solid #e2d9e3; }
footer .footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px 48px;
  padding-block: 40px 28px;
}
.footer-tagline { margin-top: 10px; max-width: 340px; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; padding-top: 8px; }
.footer-nav a { font-size: 14px; font-weight: 600; color: var(--deep); }
.footer-nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 16px 22px;
  border-top: 1px solid #e2d9e3;
}
.footer-bottom .footer-note { order: 0; width: auto; max-width: none; }
@media (max-width: 670px) {
  footer .footer-wrap { grid-template-columns: 1fr; padding-block: 30px 18px; }
  .footer-nav { justify-content: flex-start; gap: 4px 18px; }
  .footer-nav a { padding-block: 8px; }
}

/* Floating back-to-top button */
.to-top {
  position: fixed;
  z-index: 15;
  inset-inline-end: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  box-shadow: 0 8px 22px #4e355d40;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 260ms ease, translate 260ms cubic-bezier(.2,.75,.25,1), visibility 0s 260ms, background-color 200ms;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.to-top .ico { width: 20px; height: 20px; rotate: 180deg; }
.to-top:hover { background: var(--deep); }
body.has-dialog .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 670px) {
  .story-body { padding-top: 34px; }
  .story-body::before { top: -6px; font-size: 66px; }
}

/* ---- From our dietitian ---- */
.dietitian { background: #f6f1e7; border-block: 1px solid #e6dccb; }
.diet-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.diet-tips, .diet-guide { background: var(--paper); border: 1px solid #e3d9cc; border-radius: 18px; padding: 26px 26px 24px; }
.diet-tips h3, .diet-guide h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.03em; margin-bottom: 14px; }
.diet-tip-list { list-style: none; margin: 0; padding: 0; counter-reset: tip; display: grid; gap: 12px; }
.diet-tip-list li {
  counter-increment: tip;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.6;
  color: #514855;
}
.diet-tip-list li::before {
  content: counter(tip);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--plum);
  font: 700 13px/1 var(--sans);
}
[dir="rtl"] .diet-tip-list li::before { content: counter(tip, arabic-indic); }
.diet-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fbeee9;
  border-inline-start: 4px solid #c0563c;
  color: #6b2f22;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.diet-alert .ico { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #c0563c; }

.diet-meal { border-top: 1px solid var(--line); }
.diet-meal:first-of-type { border-top: 0; }
.diet-meal summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 56px;
  padding: 10px 2px;
  cursor: pointer;
  list-style: none;
}
.diet-meal summary::-webkit-details-marker { display: none; }
.diet-meal summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
.diet-meal-name { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.diet-meal-rule { padding: 3px 10px; border-radius: 999px; background: var(--lavender); color: var(--plum); font-size: 12px; font-weight: 700; }
.diet-meal-chevron {
  margin-inline-start: auto;
  width: 9px;
  height: 9px;
  border: solid var(--plum);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 300ms cubic-bezier(.2,.75,.25,1), translate 300ms;
}
.diet-meal[open] .diet-meal-chevron { rotate: 225deg; translate: 0 2px; }
.diet-meal-body { padding: 0 2px 18px; }
.diet-meal-body h4 { margin: 16px 0 6px; font: 700 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
[dir="rtl"] .diet-meal-body h4 { letter-spacing: 0; }
.diet-lead { margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.diet-list { list-style: none; margin: 0; padding: 0; }
.diet-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #e4dbe4;
  font-size: 15px;
  line-height: 1.55;
  color: #4b4250;
}
.diet-list li:last-child { border-bottom: 0; }
.diet-recipe {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 200ms, color 200ms;
}
.diet-recipe .ico { width: 14px; height: 14px; }
.diet-recipe:hover { background: var(--plum); color: #fff; }
.diet-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #f6f1e7; color: #5c4f3d; font-size: 14px; }
@media (max-width: 860px) { .diet-layout { grid-template-columns: 1fr; } }
@media (max-width: 670px) {
  .diet-tips, .diet-guide { padding: 20px 16px 18px; border-radius: 15px; }
  .diet-list li { align-items: flex-start; flex-direction: column; gap: 6px; }
  .diet-recipe { min-height: 40px; }
}
/* A highlighted line in the story */
.story-body p.story-pull { font: 400 clamp(20px, 1.9vw, 24px)/1.45 var(--serif); color: var(--deep); margin-top: 18px; }
[dir="rtl"] .story-body p.story-pull { line-height: 1.7; }

/* ---- Trial: honey-yellow accent for the thick lines (was dark purple). ----
   To go back to purple, set --accent: var(--plum) below. */
:root { --accent: #d9a320; }
@media (min-width: 761px) { .nav-links a::after { background: var(--accent); height: 3px; } }
.story-body { border-inline-start: 3px solid var(--accent); }
.allergen-note { border-inline-start-color: var(--accent); }

/* No grey/blue flash when tapping links and buttons on phones. */
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
