:root{color-scheme:light;--cream:#f6eddb;--paper:#fff9ed;--sand:#e9d6b6;--brown:#523523;--ink:#3c2c24;--soft:#816b57;--gold:#b58c48;--gold-deep:#89642f;--olive:#606942;--line:#ddccb0;--shadow:0 8px 25px rgba(81,51,29,.1);font-family:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c19b5d;outline-offset:2px}input,textarea,select{width:100%;padding:12px 13px;border:1px solid #cdb996;border-radius:11px;background:#fffdf7;color:var(--ink);font-size:15px}textarea{min-height:92px;resize:vertical}label{display:block;font-weight:700;font-size:14px;margin-bottom:7px}.field{margin-bottom:17px}.hint{font-size:12px;color:var(--soft);margin-top:5px;line-height:1.5}.app-wrap{max-width:790px;margin:auto;min-height:100dvh;background:#fbf5e9;box-shadow:0 0 45px rgba(62,42,27,.1)}.welcome{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:24px 21px 38px;position:relative;background:radial-gradient(circle at 50% 10%,#fffaf0 0,#f4e8d2 67%,#e9d6b4 100%)}.welcome:before,.welcome:after{content:'';position:absolute;left:19px;right:19px;height:1px;background:linear-gradient(90deg,transparent,#ae824a,transparent)}.welcome:before{top:17px}.welcome:after{bottom:17px}.brand-eyebrow{text-align:center;font-family:system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;font-size:10px;font-weight:700;color:var(--gold-deep);margin:5px 0 16px}.hero-frame{width:min(100%,500px);margin:0 auto 18px;background:#f8f0dd;box-shadow:0 12px 32px rgba(55,37,21,.22);border:7px solid #e7d4b1;outline:1px solid #aa8245;border-radius:7px;overflow:hidden}.hero-frame img{width:100%;height:auto;display:block}.intro{font-style:italic;font-size:18px;line-height:1.45;text-align:center;color:#684a32;max-width:420px;margin:2px auto 18px}.welcome-buttons{display:grid;gap:12px;width:min(100%,420px);margin:auto}.primary{background:var(--brown);color:#fffaf0;border:1px solid #573721;box-shadow:0 5px 12px #3b25152a}.primary:hover{background:#6b4328}.secondary{background:#fff9ed;color:var(--brown);border:1px solid #bb9f6e}.ghost{background:none;color:var(--brown);border:0}.button{min-height:47px;padding:11px 17px;border-radius:11px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.3;text-align:center}.button.small{font-size:13px;min-height:38px;padding:8px 12px}.button[disabled]{opacity:.5;cursor:not-allowed}.notice{text-align:center;font:12px/1.5 system-ui,sans-serif;color:#8d745d;margin:10px 0 0}.lang-row{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:14px 0}.lang-btn{padding:8px 13px;border-radius:100px;border:1px solid #c8ad81;background:#fff8ec;color:#63452d;font:600 12px system-ui,sans-serif}.lang-btn.active{background:#60412b;color:#fff;border-color:#60412b}.top-bar{position:sticky;top:0;z-index:20;background:rgba(250,242,228,.97);border-bottom:1px solid #d9c7a5;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;backdrop-filter:blur(8px)}.brand-mini{display:flex;align-items:center;gap:11px;color:var(--brown);text-align:start}.brand-mini img{height:42px;width:42px;object-fit:cover;border-radius:8px;border:1px solid #cbaa78}.brand-title{font-weight:800;font-size:18px;line-height:1}.brand-sub{font-family:system-ui,sans-serif;font-size:10px;color:#927656;margin-top:5px}.circle-button{min-width:39px;height:39px;border-radius:50%;background:#fff9eb;border:1px solid #d8be91;font-size:21px;color:#72502e}.page{min-height:calc(100dvh - 142px);padding:22px 19px 104px}.page-title{font-size:30px;color:var(--brown);line-height:1.18;margin:0 0 5px;font-weight:700}.section-title{font-size:22px;color:var(--brown);margin:22px 0 12px}.lead{color:var(--soft);font-size:14px;line-height:1.6;margin:4px 0 18px}.eyebrow{font:700 10px system-ui,sans-serif;letter-spacing:.2em;color:#9a753e;text-transform:uppercase}.feature{position:relative;overflow:hidden;border:1px solid #d6bd93;border-radius:19px;padding:23px 22px 22px;margin:14px 0 20px;background:linear-gradient(130deg,#f8e4c2,#fff7e6 65%);box-shadow:var(--shadow)}.feature:before{content:'✦';position:absolute;right:18px;top:5px;color:#d7be8c;font-size:74px;opacity:.45}.feature h2{font-size:28px;margin:9px 0 10px;color:#573a25;position:relative}.feature p{max-width:350px;color:#7b5d40;line-height:1.6;font-size:14px;position:relative}.feature .button{position:relative}.pill-row{display:flex;gap:9px;overflow:auto;padding-bottom:5px;scrollbar-width:none}.pill{border:1px solid #d6bf99;border-radius:100px;background:#fff9ee;color:#70543c;padding:10px 14px;white-space:nowrap;font-size:13px}.pill.active{background:#61452f;color:#fff;border-color:#61452f}.search{display:flex;align-items:center;gap:9px;padding:0 13px;background:#fffdf6;border:1px solid #d2bb98;border-radius:12px;margin:16px 0}.search input{border:0;background:transparent;padding:13px 0;outline:none}.search span{color:#a08765}.card{border:1px solid #dfccb0;background:var(--paper);border-radius:15px;padding:15px;margin:10px 0;box-shadow:0 3px 10px #6747280b}.card-click{cursor:pointer;transition:transform .15s}.card-click:hover{transform:translateY(-2px)}.card-title{font-size:20px;font-weight:700;color:#513626;margin-bottom:5px}.muted{color:#8b725d;font-size:13px;line-height:1.5}.tag{font:600 11px system-ui,sans-serif;color:#6c583c;background:#efe2c7;padding:6px 9px;border-radius:100px;display:inline-block}.tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.empty{text-align:center;border:1px dashed #cbae7d;border-radius:16px;padding:40px 18px;background:#fff8e9}.empty-icon{font-size:44px;margin-bottom:10px}.empty h3{font-size:23px;margin:6px 0}.empty p{color:var(--soft);line-height:1.6;font-size:14px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:790px;width:100%;z-index:21;display:flex;justify-content:space-around;background:#f9eedb;border-top:1px solid #d4be9b;padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px #49301e12}.nav-item{border:0;background:transparent;color:#8a6f53;min-width:65px;padding:6px;display:flex;align-items:center;flex-direction:column;gap:3px;font:700 10px system-ui,sans-serif}.nav-item .nav-icon{font-size:23px}.nav-item.selected{color:#542f1b}.nav-item.selected:after{content:'';height:3px;width:20px;background:#b48b4c;border-radius:5px}.divider{height:1px;background:#e0cfb2;margin:20px 0}.back{padding:0;background:none;border:0;color:#74583a;font-weight:700;margin-bottom:16px;font-size:13px}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.paper{background:#fffaf0;border:1px solid #e0cba8;border-radius:16px;padding:19px;box-shadow:var(--shadow)}.detail-cover{height:174px;background:radial-gradient(circle,#f2e2bd,#ddbd8b);border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:64px;margin-bottom:18px;overflow:hidden}.detail-cover img{width:100%;height:100%;object-fit:cover}.detail-story{font-style:italic;color:#6f523c;line-height:1.75;background:#f8edd9;border-left:3px solid #c39855;padding:16px;border-radius:0 12px 12px 0}.list-ingredients{display:grid;gap:9px;margin-top:15px}.ingredient{padding:10px 12px;background:#fbf3e3;border:1px solid #ebdabc;border-radius:9px;display:flex;align-items:center;gap:11px}.ingredient label{margin:0;font-weight:400;flex:1}.ingredient input{width:20px;height:20px;accent-color:#70512c}.step{line-height:1.7;margin:0 0 13px;padding-left:4px}.step-number{display:inline-grid;place-items:center;width:26px;height:26px;background:#e9d4b0;border-radius:50%;font-weight:700;margin-right:8px}.small-heading{font-weight:700;font-size:17px;margin:16px 0 10px}.story-card{border-left:3px solid #b99058;padding:8px 14px;margin:10px 0;background:#fff9ef}.story-card p{margin:7px 0;color:#6d513d;font-style:italic;line-height:1.6}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.detail-actions button{flex:1}.cook-screen{background:#fff9ef;min-height:calc(100dvh - 145px);border-radius:16px;padding:23px;border:1px solid #decaab}.cook-screen .cook-step{font-size:25px;line-height:1.5;color:#543922;margin:30px 0;min-height:140px}.progress{height:8px;background:#ead8bb;border-radius:99px;overflow:hidden;margin-top:12px}.progress div{background:#a77c3c;height:100%;transition:width .3s}.cook-controls{display:flex;gap:10px}.cook-controls>*{flex:1}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:30;background:#463322;color:#fff9ee;padding:12px 18px;border-radius:10px;box-shadow:0 6px 25px #27190f40;max-width:calc(100vw - 28px);font:13px system-ui,sans-serif;text-align:center}.warning{background:#fbefdf;border:1px solid #d5b88b;border-radius:11px;padding:13px;color:#805a31;font:13px/1.6 system-ui,sans-serif;margin:12px 0}.version-select{max-width:100%;font-weight:700}.footnote{font-size:11px;color:#8f7860;line-height:1.6;margin-top:14px}.footer-art{font-size:18px;text-align:center;color:#ac8a51;margin-top:24px}.load-icon{opacity:.75}.photo-input{margin-top:8px}.footer-spaced{display:flex;flex-wrap:wrap;gap:10px}.timer{font:700 30px system-ui,sans-serif;text-align:center;color:#684427;margin:10px 0}.radio-inline{display:flex;align-items:center;gap:7px;margin:8px 0}.radio-inline input{width:auto}.cook-timerbox{margin-top:23px;border-top:1px solid #e1cdaa;padding-top:15px}.ref-count{font-family:system-ui,sans-serif;font-size:11px;color:#9a7d55}.legacy{font-size:13px;color:#856547;text-align:center}.setting-grid{display:grid;gap:13px}.status-dot{height:7px;width:7px;background:#7f8958;border-radius:50%;display:inline-block;margin-right:6px}@media(min-width:600px){.welcome{padding:35px}.hero-frame{max-width:450px}.page{padding:30px 35px 105px}.top-bar{padding:12px 34px}.feature{padding:28px 30px}.input-grid{gap:18px}}@media(max-width:370px){.page-title{font-size:27px}.welcome{padding-left:14px;padding-right:14px}.hero-frame{border-width:4px}.intro{font-size:16px}.nav-item{min-width:58px}}[dir=rtl] .detail-story{border-left:0;border-right:3px solid #c39855;border-radius:12px 0 0 12px}[dir=rtl] .story-card{border-left:0;border-right:3px solid #b99058}[dir=rtl] .step-number{margin-right:0;margin-left:8px}[dir=rtl] .brand-mini{text-align:right}[dir=rtl] .back{direction:rtl}
/* Build 1 refinements */
.recipe-thumb{width:68px;height:68px;background:#ead7b7;display:grid;place-items:center;border-radius:12px;font-size:35px;flex-shrink:0}
.recipe-row{display:flex;align-items:center;gap:13px}.recipe-row .card-title{font-size:18px}.recipe-row .muted{font-family:system-ui,sans-serif}
.user-line{font:12px/1.6 system-ui,sans-serif;color:#896e4e}.user-line strong{color:#5d3e27}
.flag-lang{font-family:system-ui,sans-serif;font-size:12px}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.form-actions>*{flex:1}
.field-help{font:12px/1.5 system-ui,sans-serif;color:#806b54;margin-top:4px}
.select-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}.select-line>*{max-width:55%}
.recipe-details-top{display:grid;gap:7px;margin-bottom:18px}
.detail-cover{position:relative;background:#e8d5b6}
.recipe-photo{width:100%;height:100%;object-fit:cover;display:block}
.family-icon{font-size:34px}
.promo-panel{background:#f8ebd6;border:1px solid #dec49b;border-radius:15px;padding:18px;margin:18px 0;display:grid;gap:10px}
.promo-panel strong{color:#5b402d}.promo-panel p{color:#846a50;font-size:13px;line-height:1.6;margin:0}
.inline-buttons{display:flex;gap:9px;flex-wrap:wrap}.inline-buttons .button{flex:1}
.top-actions{display:flex;align-items:center;gap:8px}
.homesubtitle{font-family:system-ui,sans-serif;font-size:13px;color:#947452;margin-bottom:3px}
.eyebrow.bigletter{font-size:11px;letter-spacing:.13em}
.detail-step{padding:11px 0;border-bottom:1px solid #e9d9bf;line-height:1.55}
.memory-input{margin-top:10px}.memory-input textarea{min-height:80px}
.cook-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cook-screen .cook-step{min-height:130px}
.cook-sub{font-family:system-ui,sans-serif;font-size:12px;color:#977b5b}
.backlink{border:0;background:none;color:#795731;font-weight:700;padding:5px 0;font-size:14px}
.not-ready{font:13px/1.7 system-ui,sans-serif;color:#745d42}
.status-note{font:12px/1.6 system-ui,sans-serif;background:#fff4df;color:#7d5730;border:1px solid #e8ca93;padding:11px 13px;border-radius:9px}
[dir=rtl] .recipe-details-top{text-align:right}
[dir=rtl] .recipe-row{text-align:right}

.recipe-button{background:transparent;border:0;padding:0;margin:0;display:block;text-align:start;width:100%;color:inherit;cursor:pointer}
.recipe-button:focus-visible{outline:3px solid #b58c48;outline-offset:3px;border-radius:9px}


/* Build 2: the family-heirloom visual system. Approved brand artwork stays untouched. */
:root{--cream:#f4e8d4;--paper:#fff8e9;--brown:#4a291a;--ink:#382519;--gold:#b88c4d;--gold-deep:#886332;--soft:#80634c;--line:#e4cfab;--olive:#616d45;--shadow:0 14px 38px rgba(80,43,25,.10);font-family:'DM Sans',system-ui,sans-serif}
body{background:radial-gradient(ellipse at 50% -8%,#f8ecdd 0%,#ddc2a5 85%);color:var(--ink)}
h1,h2,h3,.page-title,.section-title,.brand-title,.card-title,.cook-screen .cook-step{font-family:'Playfair Display',Georgia,serif}
.app-wrap{max-width:1120px;background:#f9f1e5;box-shadow:0 0 0 1px #be9f76,0 0 100px rgba(65,35,21,.19);position:relative}
.app-wrap:before{content:"";pointer-events:none;position:absolute;inset:0;z-index:0;opacity:.29;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E")}
.app-wrap>*{position:relative}
.page{padding:32px clamp(19px,5vw,62px) 120px}
.top-bar{padding:13px clamp(18px,4vw,48px);background:rgba(255,249,237,.98);border-bottom:1px solid #dac5a3;box-shadow:0 2px 18px #67462810;min-height:82px}
.brand-button{border:0;background:transparent;cursor:pointer;padding:0}
.brand-mini img{height:55px;width:55px;border:2px solid #b8915b;border-radius:12px;box-shadow:0 3px 10px #52302125}
.brand-title{display:block;font-size:23px;line-height:1.25;letter-spacing:-.03em;color:#57301e}
.brand-sub{display:block;letter-spacing:.17em;font-size:9px;color:#927354}
.header-language{border:1px solid #d6ba8d;background:#fff9ed;color:#67442e;border-radius:99px;padding:9px 12px;font:700 12px 'DM Sans',system-ui,sans-serif;white-space:nowrap}
.top-actions{gap:11px}.circle-button{background:#f8ebd7;border-color:#c9a875}
.bottom-nav{max-width:1120px;background:rgba(255,249,237,.98);border-top:1px solid #dbc19b;box-shadow:0 -8px 25px #3e2b2018;padding:9px 13px calc(9px + env(safe-area-inset-bottom))}
.nav-item{font:600 11px 'DM Sans',system-ui,sans-serif;gap:4px;padding:5px 12px;min-width:74px}.nav-item.selected{color:#59311f}.nav-item.selected .nav-icon{background:#f1dfbc;border-radius:12px}.nav-item .nav-icon{display:grid;place-items:center;min-width:36px;height:30px;font-size:23px}.nav-item.selected:after{background:#b18244}
.home-page{padding-top:0}
.heritage-ribbon{display:flex;align-items:center;justify-content:center;gap:15px;text-align:center;padding:14px 5px;color:#815e36;font:700 10px 'DM Sans',sans-serif;letter-spacing:.14em;text-transform:uppercase;border-bottom:1px solid #e1c9a4}
.heritage-ribbon span{max-width:100%}
.home-hero{display:grid;grid-template-columns: .95fr 1.05fr;gap:34px;align-items:center;padding:42px 12px 53px;position:relative}
.home-hero:before{position:absolute;content:'❦';font-size:150px;color:#c6a67d;opacity:.12;left:-33px;bottom:-15px;transform:rotate(-23deg);pointer-events:none}
.home-hero-copy{position:relative;z-index:1;padding:9px 0 9px 10px}
.tiny-label{color:#977044;font:700 10px 'DM Sans',system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;line-height:1.5}
.home-hero h1{font-size:clamp(36px,4.3vw,59px);line-height:1.16;letter-spacing:-.027em;color:#552d1c;margin:17px 0 15px;max-width:470px;font-weight:600}
.calligraphy-rule{font:17px Georgia,serif;color:#a6783f;letter-spacing:.06em;margin:10px 0 13px}
.home-hero-copy>p{max-width:410px;font:400 16px/1.8 'DM Sans',sans-serif;color:#71543d;margin:0 0 23px}
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.button{transition:filter .14s,transform .14s;font-family:'DM Sans',system-ui,sans-serif}
.button:hover{transform:translateY(-1px)}.button.primary,.primary{background:#673b25;color:#fff6e7;border-color:#673b25;box-shadow:0 7px 18px #5b341d38;border-radius:12px}
.hero-outline{background:transparent;border:1px solid #b99969;color:#673f28;border-radius:12px}.hero-outline:hover{background:#f7e5c6}
.home-hero-art{position:relative;padding:12px 14px 8px;max-width:520px;margin:auto;width:100%}
.home-hero-art:before,.home-hero-art:after{content:'✦';position:absolute;font-size:26px;color:#b28c56;z-index:2}
.home-hero-art:before{top:-4px;left:0}.home-hero-art:after{right:0;bottom:30px}
.artframe{padding:10px;background:linear-gradient(120deg,#c59b61,#f1d9a7 32%,#a36d3d 80%,#e1bc84);border-radius:14px;transform:rotate(1.5deg);box-shadow:0 20px 45px #3f241b38;position:relative}
.artframe:before{content:'';position:absolute;inset:15px;border:1px solid rgba(255,236,195,.7);pointer-events:none;border-radius:6px}
.artframe img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px;border:1px solid #85562f}
.frame-caption{text-align:center;margin-top:16px;font:700 9px 'DM Sans',sans-serif;letter-spacing:.22em;color:#8c6740}.frame-caption span{color:#9d4332;font-size:15px;margin-inline:4px}
.ornamental-divider{height:23px;position:relative;display:grid;place-items:center;color:#ad7f45;font-size:17px}.ornamental-divider:before{content:'';position:absolute;left:7%;right:7%;top:50%;height:1px;background:linear-gradient(90deg,transparent,#c9a879 40%,#c9a879 60%,transparent)}.ornamental-divider span{position:relative;z-index:1;background:#f9f1e5;padding:0 18px}
.home-categories{padding:34px 0 45px;text-align:center}
.section-label{color:#ae844b;letter-spacing:.14em;font-size:12px;display:flex;align-items:center;justify-content:center;gap:13px}
.display-section-heading{font-size:clamp(27px,3.2vw,39px);font-weight:600;line-height:1.25;color:#562f20;letter-spacing:-.02em;margin:9px 0 10px}
.section-intro{color:#7e624a;font:15px/1.65 'DM Sans',sans-serif;margin:0 auto 24px}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.category-tile{position:relative;display:block;min-height:168px;overflow:hidden;border:1px solid #d1a56b;border-radius:16px;padding:0;text-align:start;isolation:isolate;box-shadow:0 9px 18px #76502b19;cursor:pointer;transition:transform .2s,box-shadow .2s;background:#6b4228}
.category-tile:hover{transform:translateY(-3px);box-shadow:0 15px 25px #76502b30}
.category-tile-img{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.09);transition:transform .3s;filter:saturate(.85) sepia(.13)}
.category-tile:hover .category-tile-img{transform:scale(1.18)}
.category-tile-0 .category-tile-img{background-position:30% 43%}.category-tile-1 .category-tile-img{background-position:65% 40%}.category-tile-2 .category-tile-img{background-position:40% 30%}.category-tile-3 .category-tile-img{background-position:75% 30%}.category-tile-4 .category-tile-img{background-position:12% 23%}.category-tile-5 .category-tile-img{background-position:45% 67%}
.category-tile-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 7%,#4d2c20b5 74%,#351d16e8)}
.category-tile-content{position:absolute;bottom:17px;left:17px;right:17px;z-index:2;color:#fff7e9;display:flex;align-items:center;gap:10px}
.category-tile-icon{font-size:27px;background:#fff4dd35;border:1px solid #fff7e966;border-radius:50%;width:41px;height:41px;display:grid;place-items:center;flex-shrink:0}
.category-tile-name{font:600 20px/1.25 'Playfair Display',Georgia,serif;text-shadow:0 2px 5px #1d0e0c88}
.memory-strip{background:linear-gradient(130deg,#f0ddbd,#f8ead2 53%,#f2dfbf);border:1px solid #d3ad7b;border-radius:19px;overflow:hidden;display:grid;grid-template-columns: .7fr 1.3fr;box-shadow:0 12px 30px #593b2620;position:relative;min-height:260px}
.memory-strip-art{overflow:hidden;min-height:250px}.memory-strip-art img{width:100%;height:100%;min-height:260px;object-fit:cover;object-position:50% 45%;filter:sepia(.13) saturate(.87)}
.memory-strip-content{padding:31px clamp(24px,4vw,48px);text-align:start;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.memory-strip-content h2{font-size:clamp(25px,3vw,38px);line-height:1.25;font-weight:600;color:#58321f;margin:11px 0}
.memory-strip-content p{font:15px/1.8 'DM Sans',sans-serif;color:#76583f;max-width:570px;margin:0 0 13px}
.text-action{border:0;background:none;color:#744827;padding:8px 0;font:700 13px 'DM Sans',sans-serif;border-bottom:1px solid #a57c46;text-align:start}
.text-action span{margin-inline-start:7px}
.home-collection{padding:48px 0 4px}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.collection-heading h2{margin-top:3px}.collection-heading .text-action{white-space:nowrap}
.keepsake-empty{border:1px solid #d4b384;border-radius:20px;display:grid;grid-template-columns:.8fr 1.2fr;overflow:hidden;box-shadow:0 10px 26px #68422612;background:linear-gradient(140deg,#fff6e6,#f4e1c0)}
.keepsake-empty-art{height:280px;background:#e1b983;overflow:hidden}
.keepsake-empty-art img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.92) sepia(.13)}
.keepsake-empty-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:start;padding:29px clamp(22px,4vw,45px)}
.keepsake-empty-copy h3{font-size:clamp(25px,3vw,34px);line-height:1.3;color:#57331f;margin:12px 0 10px}
.keepsake-empty-copy p{font:14px/1.8 'DM Sans',sans-serif;color:#785a42;margin:0 0 17px}
.keepsake-empty-copy .keepsake-note{color:#997850;font-style:italic;font-size:12px;margin:14px 0 0}
.heritage-footer{text-align:center;margin-top:48px;padding:20px 0 8px;border-top:1px solid #e4ccaa;font:600 12px/1.7 'DM Sans',sans-serif;color:#99744b;display:flex;align-items:center;justify-content:center;gap:10px}
.recipe-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.recipe-keepsake{background:#fff7ea;border:1px solid #ddc39c;border-radius:16px;overflow:hidden;box-shadow:0 7px 20px #6b432018}
.recipe-keepsake-art{height:148px;background-size:cover;background-position:center;position:relative;display:flex;align-items:flex-end;justify-content:flex-end;padding:12px}
.recipe-keepsake-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#522e1d00,#522e1d40)}
.recipe-illustration-icon{font-size:26px;z-index:1}
.recipe-keepsake-copy{padding:17px 18px;text-align:start}.recipe-keepsake h3{font-size:23px;color:#51311e;line-height:1.25;margin:6px 0}.recipe-keepsake p{font-size:13px;color:#85674c;margin:0 0 11px}.recipe-keepsake-bottom{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.read-more{margin-inline-start:auto;color:#77471d;font-size:22px}
.archive-page{padding-top:30px}.archive-heading{border:1px solid #d6b890;background:linear-gradient(95deg,#f6e7ca,#fffaef);border-radius:18px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:177px;overflow:hidden;margin-bottom:24px}
.archive-heading h1{font-size:clamp(29px,4vw,42px);margin:8px 0}.archive-heading p{margin-bottom:0}.archive-heading img{height:135px;width:185px;object-fit:cover;border:5px solid #e1c395;transform:rotate(5deg);box-shadow:0 6px 19px #59382644;border-radius:7px}
.archive-filter{background:#fff7e8;border:1px solid #e2caa8;border-radius:16px;padding:17px 17px 12px}
.search{margin:0 0 15px;border-radius:10px;border-color:#d5b78d;box-shadow:inset 0 1px 6px #6246210d}.search input{font-family:'DM Sans',sans-serif}.pill-row{gap:8px}.pill{font:600 12px 'DM Sans',sans-serif;border-color:#dbbb8e;padding:9px 12px}.pill.active{background:#70452d;border-color:#70452d}
.shelf-heading{margin:23px 0 16px}.shelf-heading h2{font-size:29px;color:#57301e;margin:0}
.paper{border-radius:18px;box-shadow:0 9px 22px #5c412016}.page-title{letter-spacing:-.02em}.detail-story{font-family:'Playfair Display',Georgia,serif;font-size:19px}
.welcome{background:radial-gradient(circle at 50% 11%,#fff8e9 0,#f1e0c3 73%,#e7cba6 100%)}
.welcome .hero-frame{border:7px solid #d8b47b;box-shadow:0 20px 45px #44261a36}
.welcome .intro{font-family:'Playfair Display',Georgia,serif;font-size:20px;color:#633b28}
/* Arabic has its own historically appropriate display and interface typefaces. */
html[lang="ar"]{font-family:'Cairo',Tahoma,Arial,sans-serif}
html[lang="ar"] body,html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea{font-family:'Cairo',Tahoma,Arial,sans-serif}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .page-title,html[lang="ar"] .display-section-heading,html[lang="ar"] .brand-title,html[lang="ar"] .category-tile-name,html[lang="ar"] .keepsake-empty h3,html[lang="ar"] .memory-strip h2,html[lang="ar"] .cook-screen .cook-step,html[lang="ar"] .detail-story{font-family:'Amiri','Noto Naskh Arabic',serif;font-weight:700;letter-spacing:0}
html[lang="ar"] .home-hero h1{font-size:clamp(40px,4.5vw,62px);line-height:1.25}
html[lang="ar"] .home-hero-copy>p,html[lang="ar"] .memory-strip-content p,html[lang="ar"] .keepsake-empty-copy p,html[lang="ar"] .section-intro,html[lang="ar"] .brand-sub,html[lang="ar"] .tiny-label,html[lang="ar"] .nav-item,html[lang="ar"] .heritage-ribbon,html[lang="ar"] .text-action,html[lang="ar"] .button,html[lang="ar"] .pill,html[lang="ar"] .heritage-footer{font-family:'Cairo',Tahoma,Arial,sans-serif;letter-spacing:0}
html[lang="ar"] .home-hero-copy>p{font-size:17px;line-height:2}
html[lang="ar"] .brand-title{font-size:25px}
html[lang="ar"] .memory-strip-content h2{font-size:clamp(32px,4vw,42px)}
html[lang="ar"] .category-tile-name{font-size:27px}
html[lang="ar"] .tiny-label{font-size:12px}
html[lang="ar"] .nav-item{font-size:11px}
html[lang="ar"] .keepsake-empty-copy h3{font-size:35px}
html[lang="ar"] .heritage-ribbon{font-size:12px}
html[lang="ar"] .calligraphy-rule{direction:ltr}
html[dir="rtl"] .home-hero:before{left:auto;right:-33px}
html[dir="rtl"] .home-hero-copy{padding-left:0;padding-right:10px}
html[dir="rtl"] .category-tile-content{left:17px;right:17px}
@media(min-width:700px){.page{padding-left:clamp(35px,5vw,62px);padding-right:clamp(35px,5vw,62px)}}
@media(max-width:740px){
 .page{padding:20px 19px 116px}.home-page{padding-top:0}.top-bar{padding:9px 17px;min-height:70px}.brand-mini img{height:44px;width:44px}.brand-title{font-size:19px}.home-hero{gap:20px;grid-template-columns:1fr;padding:30px 5px 35px}.home-hero-copy{padding:0 2px}.home-hero h1{font-size:clamp(37px,9vw,52px);max-width:600px;margin:11px 0}.home-hero-art{max-width:445px;margin:0 auto;padding:0 14px}.home-hero-art .artframe{transform:rotate(.7deg)}.frame-caption{margin-top:15px}.heritage-ribbon{font-size:9px;padding:12px 0;letter-spacing:.075em}.home-categories{padding:25px 0 35px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category-tile{min-height:139px}.category-tile-name{font-size:17px}.category-tile-icon{width:33px;height:33px;font-size:21px}.category-tile-content{left:10px;right:10px;bottom:13px;gap:7px}.memory-strip{grid-template-columns:1fr}.memory-strip-art{height:190px;min-height:0}.memory-strip-art img{height:100%;min-height:0}.memory-strip-content{padding:24px 23px 28px}.memory-strip-content h2{font-size:30px}.home-collection{padding:34px 0 0}.collection-heading{align-items:flex-start}.collection-heading .text-action{font-size:11px}.keepsake-empty{grid-template-columns:1fr}.keepsake-empty-art{height:168px}.keepsake-empty-copy{padding:26px}.keepsake-empty-copy h3{font-size:29px}.recipe-grid{grid-template-columns:1fr}.archive-heading{padding:18px}.archive-heading img{width:110px;height:118px}.archive-heading h1{font-size:29px}.archive-filter{padding:12px}.bottom-nav{padding-left:5px;padding-right:5px}.nav-item{min-width:0;flex:1;padding:4px 3px}.nav-item .nav-icon{font-size:22px}.hero-actions .button{min-height:47px}.page-title{font-size:31px}
}
@media(max-width:400px){.top-actions{gap:4px}.header-language{padding:7px 9px}.brand-sub{font-size:8px}.heritage-ribbon{font-size:8px}.home-hero-copy>p{font-size:14px}.hero-actions .button{font-size:13px;padding:10px}.category-tile-name{font-size:15px}.collection-heading .text-action{font-size:10px}.nav-item{font-size:10px}}
@media(prefers-reduced-motion:reduce){.category-tile,.category-tile-img,.button{transition:none}}

/* A little heirloom warmth on the forms and recipe detail pages too. */
.entry-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 22px;margin:8px 0 26px;background:linear-gradient(105deg,#f7e6ca,#fff7e8);border:1px solid #d6b589;border-radius:18px;box-shadow:0 8px 20px #5b352016;overflow:hidden}
.entry-banner .page-title{margin:7px 0 8px}.entry-banner .lead{margin:0}.entry-banner img{width:160px;height:133px;border:5px solid #e3c59a;transform:rotate(4deg);object-fit:cover;border-radius:7px;box-shadow:0 8px 18px #5a3a2445}
.entry-form{background:#fff9ed;padding:clamp(18px,3.5vw,35px);border-radius:20px;border:1px solid #dec59c;box-shadow:0 10px 28px #54321c16}
.entry-form label{font-weight:700;color:#66432c}.entry-form input,.entry-form textarea,.entry-form select,.memory-input input,.memory-input textarea{border-color:#d9bb94;background:#fffdf8;border-radius:10px}
.entry-form input:focus,.entry-form textarea:focus,.entry-form select:focus{border-color:#aa7b43;box-shadow:0 0 0 3px #efd6ad}
.detail-cover{height:260px;border:6px solid #e7d3b0;box-shadow:0 10px 24px #6040211e;border-radius:19px}
.detail-cover img{width:100%;height:100%;object-fit:cover;filter:sepia(.08);position:absolute;inset:0}.detail-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#39211666,transparent 65%)}
.detail-cover .family-icon{position:absolute;bottom:15px;right:15px;z-index:1;border-radius:50%;background:#fff1d8cc;padding:11px;font-size:33px;box-shadow:0 4px 12px #5d341930}
.detail-story{border-color:#bb8b4e;background:#f7e8cc;border-radius:0 13px 13px 0;padding:24px}
.story-card{background:#f9ecd5;border-radius:0 12px 12px 0;padding:12px 18px}
.cook-screen{background:linear-gradient(135deg,#fff8e9,#f6e8d2)}.cook-screen .cook-step{line-height:1.6}
.family-page .hero-frame{border-color:#d6b281}.settings-page .paper{background:#fdf3e2}
html[lang="ar"] .entry-form label,html[lang="ar"] .entry-form input,html[lang="ar"] .entry-form textarea{font-family:'Cairo',Tahoma,sans-serif}
@media(max-width:740px){.entry-banner{padding:20px 18px}.entry-banner img{width:96px;height:115px}.entry-banner .page-title{font-size:28px}.detail-cover{height:210px}}


/* Build 3 · One visual identity, three synchronized languages. */
:root{--display-ar:'Noto Naskh Arabic','Amiri',serif;--ui-ar:'IBM Plex Sans Arabic','Cairo',Tahoma,Arial,sans-serif;--memory-ar:'Aref Ruqaa Ink','Noto Naskh Arabic',serif}
/* The removed national names band must never leave an empty gutter. */
.heritage-ribbon,.heritage-footer{display:none!important}
/* Language switch is direct, without a page jump into Settings. */
.quick-language{display:inline-flex;align-items:center;gap:5px;border:1px solid #cfae7e;border-radius:100px;padding:0 8px 0 11px;background:#fff8eb;color:#6b472b;min-height:38px;box-shadow:0 3px 9px #59372310;white-space:nowrap}
.quick-language select{border:0;background:transparent;color:inherit;font:700 12px 'DM Sans',system-ui,sans-serif;cursor:pointer;width:auto;max-width:76px;padding:4px 13px 4px 0;appearance:auto;outline-offset:2px}
.quick-language span{font-size:15px;line-height:1}
/* Heirloom welcome note: show the tagline like a handwritten family inscription. */
.welcome-quote{display:flex;gap:14px;justify-content:center;align-items:center;margin:20px auto 24px;max-width:540px;padding:12px 20px;background:linear-gradient(105deg,#f3e3c9,#fff5e4,#f2dfc0);border-block:1px solid #d9b88b;border-radius:8px;box-shadow:0 5px 17px #53351c0e}
.welcome-quote .intro{margin:0;font:italic 20px/1.7 'Playfair Display',Georgia,serif;color:#663b29;letter-spacing:0}
.welcome-quote-decoration{font:25px Georgia,serif;color:#b18750;opacity:.7}
.brand-eyebrow{font-size:11px;letter-spacing:.14em}
/* Modern heirloom settings and family sections — no abandoned prototype layout. */
.story-inner-page{padding-top:30px;background:linear-gradient(180deg,#fff8edaa,transparent 370px)}
.inner-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(190px,.65fr);gap:18px;align-items:center;border:1px solid #d3ad80;border-radius:20px;padding:25px 27px;background:radial-gradient(circle at 12% 0%,#fff9e9,#f2ddbd);box-shadow:0 13px 30px #69412615;overflow:hidden;min-height:218px}
.inner-hero-copy h1{font-weight:600;font-size:clamp(29px,4vw,43px);line-height:1.22;color:#562f1e;margin:10px 0}
.inner-hero-copy .lead{margin:0;max-width:590px;color:#795b45;line-height:1.7}
.inner-hero-photo{height:180px;overflow:hidden;transform:rotate(3deg);box-shadow:0 10px 22px #5b3b2b29;border:5px solid #e6cba2;border-radius:9px}
.inner-hero-photo img{width:100%;height:100%;object-fit:cover;filter:sepia(.1) saturate(.9)}
.inner-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:23px 0}
.heirloom-panel{padding:28px 25px;background:#fff9ec;border:1px solid #ddbe91;border-radius:18px;box-shadow:0 8px 24px #59351b12;min-width:0}
.heirloom-panel.softly-tinted{background:linear-gradient(145deg,#f3dfbd,#fff6e5)}
.heirloom-panel h2,.next-chapter h2{font-size:clamp(22px,2.4vw,30px);line-height:1.2;color:#603721;margin:9px 0 10px;font-weight:600}
.heirloom-panel p,.next-chapter p{color:#785b42;font-size:14px;line-height:1.8;margin:0 0 15px}
.heirloom-panel .lang-row{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-top:20px}
.heirloom-panel .lang-btn{min-height:43px;padding:11px 17px;box-shadow:0 4px 10px #714b2510}
.heirloom-export{margin:10px 0 9px;max-width:100%;white-space:normal}
.heirloom-panel .heirloom-note{font-size:12px;color:#926e49;margin-top:12px}
.warm-warning{padding:16px 20px;border-left:4px solid #b9925a;background:linear-gradient(90deg,#f5e1bf,#fcf4e6);border-radius:12px;color:#765137;font-size:13px;line-height:1.75}
.next-chapter{margin:24px 0 0;padding:26px 29px;background:#f6e8d2;border:1px dashed #d5b78b;border-radius:18px;position:relative}
.next-chapter:after{content:'❧';position:absolute;right:20px;bottom:13px;color:#c5a279;font:34px Georgia,serif}
/* Ensure font scales and direction don't change the layout identity. */
html[lang="ar"] body,html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea,html[lang="ar"] .nav-item,html[lang="ar"] .tiny-label,html[lang="ar"] .text-action,html[lang="ar"] .button,html[lang="ar"] .pill,html[lang="ar"] .intro,html[lang="ar"] .lead{font-family:var(--ui-ar);letter-spacing:0}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .page-title,html[lang="ar"] .display-section-heading,html[lang="ar"] .brand-title,html[lang="ar"] .category-tile-name,html[lang="ar"] .keepsake-empty h3,html[lang="ar"] .memory-strip h2,html[lang="ar"] .cook-screen .cook-step,html[lang="ar"] .detail-story{font-family:var(--display-ar);letter-spacing:0;font-weight:600}
html[lang="ar"] .welcome-quote .intro{font:400 clamp(25px,3vw,33px)/1.8 var(--memory-ar);color:#72452b;text-align:center;letter-spacing:0}
html[lang="ar"] .welcome-quote{margin-top:18px;padding-block:8px}
html[lang="ar"] .frame-caption{font:600 17px/1.7 var(--ui-ar);letter-spacing:0}
html[lang="ar"] .home-hero h1{line-height:1.42;font-size:clamp(36px,4vw,58px)}
html[lang="ar"] .brand-title{line-height:1.6;font-size:24px}
html[lang="ar"] .heirloom-panel h2,html[lang="ar"] .next-chapter h2{font-family:var(--display-ar);font-size:31px;line-height:1.5}
html[lang="ar"] .inner-hero-copy h1{font-family:var(--display-ar);font-size:clamp(31px,4vw,46px);line-height:1.45}
html[lang="ar"] .heirloom-panel p,html[lang="ar"] .next-chapter p,html[lang="ar"] .warm-warning{font:400 14px/2 var(--ui-ar)}
html[lang="ar"] .memory-strip-content p,html[lang="ar"] .keepsake-empty-copy p,html[lang="ar"] .section-intro,html[lang="ar"] .home-hero-copy>p{font-family:var(--ui-ar)}
html[lang="ar"] .category-tile-name{line-height:1.45}
html[lang="ar"] .search input,html[lang="ar"] .pill,html[lang="ar"] .nav-item{font-family:var(--ui-ar)}
html[lang="ar"] .brand-eyebrow{font-family:var(--ui-ar);letter-spacing:0;font-size:13px}
html[lang="ar"] .quick-language select{font-family:var(--ui-ar)}
html[dir="rtl"] .warm-warning{border-left:0;border-right:4px solid #b9925a}
html[dir="rtl"] .next-chapter:after{right:auto;left:20px}
@media(max-width:700px){.inner-hero{grid-template-columns:1fr;gap:17px;padding:23px 20px}.inner-hero-photo{height:154px;width:min(100%,330px)}.inner-grid{grid-template-columns:1fr;gap:13px}.heirloom-panel{padding:22px 21px}.welcome-quote{margin-inline:5px;gap:9px;padding:8px 10px}.welcome-quote-decoration{font-size:16px}.quick-language{padding-inline:6px}.quick-language select{max-width:65px}.story-inner-page{padding-top:18px}}
@media(max-width:400px){.quick-language span{display:none}.quick-language select{max-width:63px}.inner-hero-photo{height:132px}}
