:root{color-scheme:light;--paper:#fbf8f2;--surface:#fffdf9;--tint:#f3eee5;--ink:#30231c;--muted:#6c6057;--accent:#a74628;--border:#dfd6c9;--serif:"DM Serif Text","Iowan Old Style","Palatino Linotype",Georgia,serif;--sans:"DM Sans","Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--sans);font-size:1rem;line-height:1.52}
h1,h2,h3,h4,p,figure{margin:0}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button,select{cursor:pointer}
button{border:0}
a,button,input,select{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b66142;outline-offset:3px}
[hidden]{display:none!important}
.ic,.chev,svg.brand-mark{display:inline-block;flex:none;width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}
.wrap,.head-inner{max-width:1216px;width:calc(100% - clamp(48px,10vw,160px));margin-inline:auto}
.skip{position:fixed;left:1rem;top:-100px;z-index:9;background:white;padding:.7rem}
.skip:focus{top:8px}
.site-head{background:var(--paper);border-bottom:1px solid var(--border)}
.head-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font:700 2.04rem/.95 var(--serif);letter-spacing:-.065em;white-space:nowrap}
.brand .brand-mark{width:36px;height:36px;color:var(--accent);stroke:none}
.brand-dot,.brand>span:not(.brand-name){color:var(--accent)}
.nav-links{display:flex;align-items:center;gap:32px;font-size:.91rem;font-weight:600}
.nav-links a:hover,.footer a:not(.brand):hover{color:var(--accent)}
.nav-links .nav-current{color:var(--accent)}
.product-link{display:inline-flex;align-items:center;gap:9px;border:1px solid #bfae9d;border-radius:8px;padding:9px 15px}
.product-link .ic{width:17px;height:17px}
.hero{display:grid;grid-template-columns:.99fr 1.05fr;gap:clamp(24px,5vw,70px);align-items:center;padding-top:40px;padding-bottom:42px}
.eyebrow{color:var(--accent);font-size:.725rem;line-height:1.3;font-weight:750;letter-spacing:.155em;text-transform:uppercase;display:flex;align-items:center;gap:11px}
.eyebrow i{display:block;height:2px;width:25px;background:var(--accent)}
h1,h2,.card-title h3,.explain h3,.modal-body h3,.receipt-heading h3{font-family:var(--serif);font-weight:600}
.hero h1{font-size:clamp(3.05rem,5.65vw,5.25rem);line-height:.99;letter-spacing:-.063em;margin:17px 0 17px}
h1 em,.explain em{color:var(--accent);font-weight:500}
.hero-desc{color:var(--muted);font-size:clamp(1rem,1.15vw,1.12rem);max-width:460px;line-height:1.55}
.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 18px;border-radius:8px;font-size:.91rem;font-weight:650;line-height:1.35}
.primary{background:var(--accent);color:white;box-shadow:0 2px 3px #6b2f1612}
.primary:hover{background:#89391f}
.hero .btn{margin-top:24px}
.hero-image{position:relative;overflow:hidden;border-radius:16px;width:100%;height:clamp(286px,26.1vw,360px);isolation:isolate;background:#422716}
.hero-image img{height:100%;width:100%;object-fit:cover;object-position:center 48%;display:block}
.hero-image:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(28,14,6,.68));z-index:0}
.hero-image figcaption{position:absolute;bottom:19px;left:22px;z-index:1;color:#fffaf2;display:flex;flex-direction:column;gap:2px;font:500 1.25rem/1.25 var(--serif)}
.photo-label{display:flex;align-items:center;gap:7px;font:600 .7rem/1.4 var(--sans);letter-spacing:.085em;text-transform:uppercase}
.photo-label .ic{width:14px;height:14px}
.calc-zone{background:var(--tint);border-block:1px solid var(--border);padding:38px 0 48px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:24px}
h2{font-size:clamp(2.14rem,3.15vw,3.1rem);line-height:1.12;letter-spacing:-.05em}
.section-head h2{margin-top:8px}
.template-control{display:flex;gap:9px;align-items:center}
.template-control>label{color:var(--muted);font-size:.85rem;font-weight:550}
.select-wrap{position:relative;border:1px solid #cbbfaf;background:var(--surface);border-radius:7px;display:inline-flex;align-items:center;min-height:42px}
.select-wrap>.ic{position:absolute;left:11px;width:16px;height:16px;color:var(--accent);pointer-events:none}
.select-wrap .chev{position:absolute;right:10px;width:15px;height:15px;pointer-events:none}
select{appearance:none}
.select-wrap select{border:0;background:transparent;border-radius:6px;font-size:.87rem;font-weight:600;padding:10px 30px 10px 35px;width:100%}
.calc-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr);gap:22px;align-items:start}
.form-card{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:clamp(19px,2vw,29px)}
.card-title{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.circle{display:grid;place-items:center;width:43px;height:43px;background:#f4e6d9;color:var(--accent);border-radius:12px}
.circle .ic{width:25px;height:25px}
.card-title h3{font-size:1.68rem;line-height:1.1;letter-spacing:-.035em}
.card-title p,.help{color:var(--muted);font-size:.88rem;line-height:1.5}
.card-title p{margin-top:3px}
.identity-row{display:grid;grid-template-columns:2.4fr 1fr;gap:14px}
.field{display:block;font-size:.87rem;font-weight:620;min-width:0}
.input-wrap{display:flex;align-items:center;width:100%;margin-top:6px;border:1px solid #d8cfc2;border-radius:7px;background:#fffdf9;min-height:42px}
.input-wrap:focus-within{border-color:var(--accent)}
.input-wrap input{border:0;background:transparent;padding:9px 11px;width:100%;min-width:0;font-weight:480;font-variant-numeric:tabular-nums;font-size:.93rem;border-radius:7px}
.input-wrap .suffix{padding-right:12px;color:var(--muted);font-weight:450;white-space:nowrap;font-size:.8rem}
.rule{height:1px;background:var(--border);margin:25px 0 21px}
.block-title{display:flex;gap:8px;align-items:baseline}
.block-title h4{font:600 1.26rem/1.4 var(--serif);letter-spacing:-.02em}
#linecount{font-size:.8rem;color:var(--muted)}
.help{margin-top:4px}
#ingredients{margin-top:15px}
.ingredient-grid{display:grid;grid-template-columns:minmax(105px,2.25fr) minmax(55px,.8fr) minmax(58px,1fr) minmax(58px,1fr) minmax(60px,1.05fr) 28px;gap:7px;align-items:center}
.ingredients-head{font-size:.76rem;font-weight:600;color:var(--muted);margin-bottom:5px}
.ingredient{margin-bottom:8px}
.ingredient input,.ingredient select{width:100%;min-width:0;border:1px solid #d8cfc2;border-radius:6px;background:var(--surface);font-size:.88rem;height:38px;padding:5px 8px}
.ingredient .unit-wrap{position:relative;display:block}
.unit-wrap select{padding-right:19px}
.unit-wrap .chev{width:12px;position:absolute;right:6px;top:9px;pointer-events:none}
.ingredient-field{min-width:0;display:block}
.mobile-lbl{display:none}
.remove{background:transparent;padding:6px 2px;color:#88695c;width:28px;height:34px;border-radius:5px}
.remove:hover{background:#f6e6de}
.remove .ic{width:15px;height:15px}
.more{background:transparent;color:var(--accent);min-height:36px;font-size:.86rem;padding:5px 0}
.more:hover{text-decoration:underline}
.more .ic{width:16px;height:16px}
.extra-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px}
.local-note{margin-top:22px;color:var(--muted);font-size:.79rem}
.summary{position:sticky;top:20px}
.receipt{background:#33261f;color:#fbf1e5;padding:clamp(21px,2.25vw,33px);border-radius:13px;position:relative;overflow:hidden}
.receipt-heading{display:flex;align-items:center;gap:10px}
.receipt-heading h3{font-size:1.56rem;line-height:1.3;letter-spacing:-.035em}
.receipt-heading .ic{color:#e5ac87;width:23px;height:23px}
.result-main{margin:20px 0 18px;padding:18px 0 20px;border-top:1px dashed #766354;border-bottom:1px dashed #766354}
.result-main p{font-size:.88rem;color:#e1d2c6}
.result-main output{display:block;font:500 clamp(3rem,4.6vw,4.55rem)/1.1 var(--serif);letter-spacing:-.055em;color:#fff2df;margin:4px 0}
.price-basis{font-size:.79rem;color:#dcc3b1}
.receipt-lines>div,.batch-summary{display:flex;align-items:baseline;justify-content:space-between;gap:7px;font-size:.88rem}
.receipt-lines>div{margin:9px 0}
.receipt-lines span{color:#e2d2c5}
.receipt-lines b,.batch-summary b{font-weight:600;color:#fff7ee;font-variant-numeric:tabular-nums}
.receipt-lines .profit span,.receipt-lines .profit b{color:#f0be93}
.batch-summary{border-top:1px dashed #766354;padding-top:15px;margin-top:15px;font-weight:600}
.print-btn{display:flex;justify-content:center;gap:8px;align-items:center;width:100%;background:transparent;border:1px solid #856e60;border-radius:7px;color:#fff3e7;padding:9px;margin-top:21px;font-size:.85rem}
.print-btn:hover{background:#49372d}
.print-btn:disabled{opacity:.5;cursor:default}
.print-btn .ic{width:16px;height:16px}
.errors{color:#ffe1c0;font-size:.84rem;margin-top:12px}
.side-product{display:flex;align-items:center;gap:13px;padding:16px 18px;margin-top:13px;border:1px solid #d5c3ae;border-radius:9px;background:#f8f1e7}
.side-product>.ic{color:var(--accent);width:24px;height:24px}
.side-product strong,.side-product small{display:block}
.side-product strong{font-size:.95rem}
.side-product small{font-size:.82rem;color:var(--muted)}
.side-product .offer-label{display:block;color:var(--accent);font-size:.75rem;font-weight:650;margin-bottom:3px}
.side-product .offer-link{display:block;font-size:.85rem;font-weight:650;color:var(--accent);margin-top:6px;text-decoration:underline;text-underline-offset:.2em}
.footer nav,.product-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-left:auto;color:var(--muted);font-size:.85rem}
.consent-settings{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:.2em;background:none;padding:0;text-align:left}
.privacy-main{width:min(calc(100% - 36px),750px);margin:clamp(32px,6vw,80px) auto}
.privacy-main h1{font:600 clamp(2.5rem,6vw,4rem)/1.1 var(--serif);letter-spacing:-.05em}
.privacy-main h2{font-size:1.55rem;margin:1.8rem 0 .4rem}
.privacy-main a{text-decoration:underline;text-underline-offset:.2em;color:var(--accent)}
.side-product:hover{border-color:var(--accent)}
.explain{display:grid;grid-template-columns:.8fr 1.25fr;gap:42px;padding-block:60px}
.explain h2{font-size:clamp(2.6rem,4.4vw,4.3rem);margin-top:13px}
.explain h3{font-size:1.4rem;line-height:1.2;letter-spacing:-.025em;margin-bottom:6px}
.explain-body>p{color:var(--muted)}
.explain-body>h3:not(:first-child){margin-top:21px}
.formula{border-left:3px solid var(--accent);padding:9px 13px;margin-top:12px;background:var(--tint);font-weight:600}
.footer{border-top:1px solid var(--border);padding:20px 0}
.footer .wrap{display:flex;align-items:center;gap:20px}
.footer .brand{font-size:1.57rem}
.footer .brand-mark{width:28px;height:28px}
.footer .wrap>span,.footer .wrap>a:last-child{font-size:.85rem;color:var(--muted)}
.footer .wrap>a:last-child{margin-left:auto}
dialog{max-width:min(460px,calc(100% - 28px));border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);padding:0;box-shadow:0 18px 70px #24180d30}
dialog::backdrop{background:#2e211b77}
.modal-body{padding:26px}
.modal-body h3{font-size:1.65rem;margin-bottom:9px}
.modal-body p{color:var(--muted)}
.dialog-actions{margin-top:22px;display:flex;gap:9px;flex-wrap:wrap}
.subtle{background:var(--tint)}
#print-report{display:none}
@media(max-width:1020px){.ingredient-grid{grid-template-columns:minmax(95px,1.6fr) 47px 1fr 1fr 1fr 22px;gap:5px}.wrap,.head-inner{width:calc(100% - 56px)}.hero{gap:30px}.calc-grid{grid-template-columns:minmax(0,1.75fr) minmax(242px,1fr);gap:15px}.form-card{padding:20px}.nav-links{gap:21px}}
@media(max-width:820px){.calc-grid{grid-template-columns:minmax(0,1.6fr) minmax(218px,1fr)}.ingredient-grid.ingredient{border-top:1px solid var(--border);padding:12px 0;grid-template-columns:repeat(3,minmax(0,1fr)) 27px;gap:6px}.ingredient-field[data-col="name"]{grid-column:span 2}.ingredient-field[data-col="unit"]{grid-column:3}.ingredient-field[data-col="pack"],.ingredient-field[data-col="price"],.ingredient-field[data-col="used"]{grid-row:2}.remove{grid-column:4;grid-row:1}.ingredients-head{display:none}.mobile-lbl{display:block;color:var(--muted);font-size:.76rem;margin-bottom:3px}.section-head{align-items:flex-start}.template-control{display:block}.template-control>label{display:block;margin-bottom:3px}.hero h1{font-size:3.65rem}.hero-image{height:290px}.receipt{padding:19px}}
@media(max-width:680px){.head-inner,.wrap{width:calc(100% - 36px)}.head-inner{height:63px;gap:8px}.brand{font-size:1.72rem;gap:5px}.brand .brand-mark{width:30px;height:30px}.nav-links{gap:10px;font-size:.8rem}.nav-links>a:not(.product-link){display:none}.product-link{padding:7px 10px}.hero{grid-template-columns:1fr;gap:21px;padding:27px 0}.hero-copy{max-width:520px}.hero h1{font-size:clamp(3.2rem,11.5vw,4.2rem);margin:11px 0 13px}.hero .btn{margin-top:17px}.hero-desc{max-width:475px}.hero-image{height:clamp(175px,48vw,245px);border-radius:12px}.hero-image img{object-position:center 48%}.hero-image figcaption{bottom:13px;left:15px}.section-head{flex-direction:column;gap:13px;align-items:flex-start;margin-bottom:16px}.template-control{display:flex}.template-control>label{margin:0}.calc-grid{grid-template-columns:minmax(0,1fr)}.summary{position:static}.receipt{padding:23px}.calc-zone{padding:26px 0}.form-card{padding:17px}.identity-row{grid-template-columns:minmax(0,1.8fr) minmax(80px,1fr);gap:9px}.explain{grid-template-columns:1fr;gap:16px;padding-block:34px}.explain h2 br{display:none}.explain h2 em:before{content:" "}.explain h2{margin-top:7px;font-size:2.25rem}.footer .wrap{gap:12px;flex-wrap:wrap}.footer .wrap>span{display:none}.eyebrow{font-size:.7rem}.field{font-size:.85rem}.extra-fields{column-gap:10px}.card-title{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
@media print{body>*{display:none!important}body>#print-report{display:block!important;color:#231b16;font:11pt/1.45 Georgia,serif}#print-report h1{font-size:25pt}#print-report h2{font-size:16pt;margin:16pt 0 4pt}#print-report table{width:100%;border-collapse:collapse;margin:10pt 0}#print-report th,#print-report td{text-align:left;padding:5pt;border-bottom:1px solid #ccc}#print-report td:last-child{text-align:right}#print-report p{margin:4pt 0}@page{margin:18mm}}
.recipe-actions{display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem 1rem;margin-top:.4rem;font-size:.9rem}
.recipe-actions a,.recipe-actions button{padding:.2rem 0;background:transparent;color:var(--accent);font:inherit;text-decoration:underline;text-underline-offset:.17em}
.recipe-actions [role=status]{color:var(--muted)}
.quote-result{display:block;text-align:center;margin-top:.7rem;padding:.3rem;color:#fff3e7;font-size:.9rem;text-decoration:underline;text-underline-offset:.17em}
