/* Faithful stand-alone web adaptation of the first, single-column recipe guide. */
:root{color-scheme:light;--background:#F5EBDC;--panel:#FFF9EE;--ink:#392A1E;--text:#57412D;--muted:#795A35;--accent:#694728;--warm:#E7D5B8;--soft:#F2E7D5;--progress:#7C4E27;--stroke:#E5D6BF;--focus:#B27237}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:#ECE7DE;margin:0;color:var(--ink);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.recipe{max-width:790px;margin:24px auto;background:var(--background);border-radius:20px;padding:12px;box-shadow:0 7px 40px #2b170c1b;display:flex;flex-direction:column;gap:12px}
.cover{border-radius:14px;overflow:hidden;line-height:0}
.cover img{display:block;width:100%;aspect-ratio:5/3;object-fit:cover;object-position:center 46%;height:auto}
.intro{text-align:center;padding:8px 17px 0;display:flex;flex-direction:column;align-items:center;gap:5px}
.intro p,.intro h1{margin:0}
.eyebrow{font-size:11px;letter-spacing:.055em;color:var(--muted);font-weight:600}
h1{font-size:clamp(25px,4.4vw,34px);line-height:1.18;letter-spacing:-.035em;font-weight:710;max-width:640px;text-wrap:balance;color:var(--ink)}
.tagline{font-size:14px;color:var(--muted)}
.intro-rule{height:1px;background:#C6AA82;width:100%;margin:8px 0}
.intro-description{font-size:14px;color:var(--text);line-height:1.55;max-width:570px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat{background:var(--warm);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px 4px;gap:4px;min-width:0}
.stat svg,.callout svg,.copy-button svg{height:22px;width:22px;stroke:var(--accent);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.stat strong{font-size:15px;line-height:1.2;font-weight:650}
.stat span{color:var(--muted);font-size:11px;line-height:1.2}
.panel{background:var(--panel);border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:13px}
h2{font-size:21px;font-weight:700;letter-spacing:-.025em;line-height:1.25;margin:0}h3{font-size:15px;font-weight:650;margin:0}
.segmented{display:grid;grid-template-columns:1fr 1fr;background:#E7E4DC;border-radius:12px;padding:4px;gap:3px}
.segment{border:0;background:transparent;border-radius:9px;padding:10px 6px;color:var(--text);font-size:13px;font-weight:550;line-height:1.25;transition:background-color .18s,box-shadow .18s}
.segment.active{background:var(--panel);box-shadow:0 1px 5px #392A1E27;color:var(--ink);font-weight:700}
.variation-image{aspect-ratio:16/9;object-fit:cover;display:block;width:100%;height:auto;border-radius:10px;object-position:center 50%}
.variant-description{font-size:14px;line-height:1.5;color:var(--text);margin:0}
.choice-section{display:flex;flex-direction:column;gap:8px;margin-top:1px}
.radio-stack{display:flex;flex-direction:column;gap:10px}
.radio-stack label{display:flex;align-items:center;gap:10px;cursor:pointer;color:var(--ink);min-height:25px}
.radio-stack input{margin:0;width:18px;height:18px;accent-color:var(--progress);cursor:pointer}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.counter{font-size:11px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.progress-track{height:6px;background:#E9DCC7;border-radius:99px;overflow:hidden}
.progress-track span{display:block;height:100%;background:var(--progress);width:0%;border-radius:99px;transition:width .25s}
.ingredient-list{display:flex;flex-direction:column;gap:0}
.ingredient{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:44px;padding:9px 0;border-bottom:1px solid var(--stroke)}
.ingredient:last-child{border-bottom:0}
.ingredient label{display:flex;align-items:center;gap:10px;cursor:pointer;min-width:0;flex:1}
.ingredient input{accent-color:#7C4E27;width:18px;height:18px;flex:none;margin:0;cursor:pointer}
.ingredient-name{font-size:14px;line-height:1.35}
.ingredient.checked .ingredient-name{text-decoration:line-through;opacity:.5}
.ingredient-qty{font-size:13px;text-align:right;color:var(--accent);font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.ingredients-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:3px}
.ingredients-footer small{color:var(--muted);font-size:11px}
.secondary{border:1px solid #D9C7AD;border-radius:9px;background:transparent;color:var(--ink);padding:10px 15px;font-size:14px;font-weight:600}
.secondary:disabled{opacity:.4;cursor:default}
.secondary.small{font-size:12px;padding:8px 10px}
.callout{background:var(--warm);border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:8px}
.callout-heading{display:flex;align-items:center;gap:9px;color:var(--ink)}
.callout strong{font-size:15px}
.callout p{margin:0;color:var(--text);font-size:14px;line-height:1.5}
.step-progress{display:flex;gap:3px;width:100%}
.step-progress button{flex:1;height:7px;border:0;padding:0;border-radius:99px;background:#E9DCC7;transition:background .2s}
.step-progress button.active{background:#80502B}
.step-progress button:focus-visible{outline-offset:4px}
.step-image{border-radius:10px;overflow:hidden;line-height:0}
.step-image img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;object-position:center}
.step-title-line{display:flex;justify-content:space-between;gap:12px;align-items:center}
.step-title-line h3{font-size:21px;letter-spacing:-.025em;line-height:1.25}
.step-title-line span{font-size:12px;color:var(--muted);white-space:nowrap}
.step-text{margin:0;font-size:15px;line-height:1.58;color:var(--ink)}
.tip{padding:13px;background:var(--soft);border-radius:10px;display:flex;flex-direction:column;gap:4px}
.tip strong{font-size:11px;color:var(--accent);letter-spacing:.02em}
.tip p{margin:0;color:var(--text);font-size:14px;line-height:1.5}
.step-actions{display:flex;justify-content:space-between;gap:10px}
.step-actions button{display:flex;align-items:center;justify-content:center;gap:7px}
.primary{border-radius:9px;background:var(--accent);padding:10px 15px;border:1px solid var(--accent);color:white;font-weight:600;font-size:14px}
.primary span,.secondary span{font-size:20px;line-height:1}
.tips-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:16px}
.rule{min-width:0;display:flex;flex-direction:column;gap:4px}
.rule img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block;margin-bottom:4px}
.rule strong{font-size:14px;color:var(--ink)}
.rule p{font-size:12px;line-height:1.45;color:var(--muted);margin:0}
.family{gap:11px}
.family>p{font-size:14px;line-height:1.5;color:var(--text);margin:0}
.stars{display:flex;justify-content:center;align-items:center;gap:9px;padding:0 0 4px}
.star{border:0;padding:4px;background:transparent;font-size:33px;line-height:1;color:#A7947D;transition:transform .15s}
.star.active{color:#9C6627}
.star:hover{transform:translateY(-2px)}
textarea{width:100%;min-height:90px;resize:vertical;background:#FFFDF7;border:1px solid #D8C6AB;border-radius:10px;padding:12px;line-height:1.5;color:var(--ink);font-size:14px}
textarea::placeholder{color:#927B61}
.copy-button{width:100%;background:var(--soft);border:1px solid #DAC6A6;border-radius:10px;padding:12px;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:650}
.copy-button svg{width:17px;height:17px}
.copy-status{min-height:0;font-size:12px!important;text-align:center}
footer{display:flex;flex-direction:column;gap:9px;text-align:center;padding:4px 8px 9px;color:var(--muted);font-size:11px}
footer p{margin:0}details{text-align:left}summary{cursor:pointer;text-align:center}details p{font-size:12px;line-height:1.55;margin-top:9px}details a{color:#725131}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:810px){.recipe{margin:0 auto;border-radius:0;box-shadow:none}}
@media(max-width:520px){.recipe{padding:12px;gap:12px}.panel,.callout{padding:14px}.intro{padding:8px 2px 0}.eyebrow{font-size:10px}h1{font-size:25px}.tagline{font-size:13px}.intro-description{font-size:13px}.stats{gap:7px}.stat{padding:11px 3px}.stat strong{font-size:14px}.stat span{font-size:10px}.panel h2{font-size:20px}.step-title-line h3{font-size:20px}.radio-stack label{font-size:14px}.segment{font-size:12px}.tips-grid{gap:12px}.ingredient-name{font-size:13px}.ingredient-qty{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
