:root{--bg: #faf7f2;--surface: #ffffff;--surface-2: #f2ede4;--text: #2a2620;--muted: #7a7266;--line: #e6dfd3;--brand: #2f5d3a;--brand-soft: #e3ece4;--accent: #d98a1f;--danger: #b4412f;--radius: 14px;--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #171512;--surface: #221f1b;--surface-2: #2c2823;--text: #efe9df;--muted: #a59c8e;--line: #3a352e;--brand: #8fc39b;--brand-soft: #24342a;--accent: #f0a845;--danger: #e0715f;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 var(--sans);-webkit-tap-highlight-color:transparent}a{color:var(--brand)}h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.2;margin:0}h1{font-size:1.75rem}h2{font-size:1.25rem;margin:1.75rem 0 .75rem}button,input,textarea,select{font:inherit;color:inherit}.page{max-width:720px;margin:0 auto;padding:calc(16px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom))}.center{text-align:center;padding:3rem 1rem}.muted{color:var(--muted)}.small{font-size:.875rem}.row{display:flex;gap:8px;align-items:center}.spread{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack>*+*{margin-top:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;text-decoration:none;color:var(--text);font-weight:500;white-space:nowrap}.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--bg)}.btn.ghost{background:transparent;border-color:transparent;color:var(--brand);padding:0 8px}.btn.danger{color:var(--danger)}.btn.block{width:100%}.btn:disabled{opacity:.5}.icon-btn{width:44px;height:44px;border-radius:999px;border:none;background:transparent;display:inline-grid;place-items:center;cursor:pointer;color:var(--muted);flex:none}.input,.textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);outline:none}.input:focus,.textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.textarea{min-height:140px;resize:vertical;line-height:1.5}label.field{display:block}label.field>span{display:block;font-size:.875rem;color:var(--muted);margin-bottom:4px}.header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.header h1{flex:1}.brand{color:var(--brand)}.brand small{display:block;font:500 .8rem var(--sans);color:var(--muted);letter-spacing:.02em}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.card{display:block;background:var(--surface);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:inherit;border:1px solid var(--line)}.card .thumb{aspect-ratio:4 / 3;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}.card .body{padding:10px 12px 12px}.card .title{font-family:var(--serif);font-weight:600;line-height:1.25}.card .meta{font-size:.8rem;color:var(--muted);margin-top:4px}.placeholder-emoji{font-size:2.5rem;opacity:.6}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:4px 10px;border-radius:999px;background:var(--surface-2);font-size:.8rem;border:1px solid transparent;cursor:pointer}.chip.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}.hero{margin:-16px -16px 16px;aspect-ratio:16 / 10;max-height:360px;overflow:hidden;background:var(--surface-2);position:relative}.hero img{width:100%;height:100%;object-fit:cover;display:block}.hero .back{position:absolute;top:calc(10px + env(safe-area-inset-top));left:10px;background:color-mix(in srgb,var(--bg) 85%,transparent);color:var(--text)}.meta-row{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font-size:.9rem;margin:8px 0 4px}.meta-row a{color:var(--muted)}.stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:var(--surface)}.stepper button{width:36px;height:36px;border:none;background:none;cursor:pointer;font-size:1.1rem;color:var(--brand)}.stepper span{min-width:92px;text-align:center;font-weight:500}.ingredients{list-style:none;padding:0;margin:0}.ingredients li{padding:8px 0;border-bottom:1px solid var(--line)}.ingredients li.section,.steps li.section{border:none;font-weight:600;padding-top:16px;color:var(--brand);list-style:none}.ingredients .amt{font-weight:600}.steps{padding:0;margin:0;list-style:none;counter-reset:step}.steps li{position:relative;padding:10px 0 10px 44px;cursor:pointer;border-radius:10px}.steps li:not(.section):before{counter-increment:step;content:counter(step);position:absolute;left:0;top:10px;width:30px;height:30px;border-radius:999px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:600;font-size:.9rem}.steps li.done{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line)}.steps li.done:before{content:"✓";background:var(--surface-2);color:var(--muted)}details.more{margin-top:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px}details.more summary{cursor:pointer;font-weight:500;color:var(--brand)}details.more p{white-space:pre-wrap}.notes{background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-radius:var(--radius);padding:12px 16px;white-space:pre-wrap}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:20;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:720px;max-height:85vh;overflow:auto;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.check-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}.check-row input{width:22px;height:22px;accent-color:var(--brand);flex:none}.add-bar{display:flex;gap:8px;position:sticky;top:0;background:var(--bg);padding:8px 0 12px;z-index:5}.aisle{margin-top:18px}.aisle h3{font:600 .8rem var(--sans);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:4px}.items{list-style:none;padding:0;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.item{display:flex;align-items:center;gap:4px;padding-left:12px;border-bottom:1px solid var(--line);min-height:52px}.item:last-child{border-bottom:none}.item .tick{width:26px;height:26px;border-radius:999px;border:2px solid var(--line);flex:none;display:grid;place-items:center;background:none;cursor:pointer;padding:0;color:transparent}.item.checked .tick{background:var(--brand);border-color:var(--brand);color:var(--bg)}.item .label{flex:1;padding:10px 8px;cursor:pointer;min-width:0}.item .from{display:block;font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item.checked .text{text-decoration:line-through;color:var(--muted)}.item select{border:none;background:transparent;color:var(--muted);max-width:44px;height:44px;cursor:pointer}.empty{text-align:center;padding:48px 16px;color:var(--muted)}.empty .big{font-size:3rem}.banner{padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--text);font-size:.9rem}.banner.info{background:var(--brand-soft)}.segmented{display:flex;background:var(--surface-2);border-radius:999px;padding:4px;gap:4px}.segmented button{flex:1;border:none;background:none;border-radius:999px;min-height:38px;cursor:pointer;color:var(--muted);font-weight:500}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000014}.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:center;gap:8px;background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 16px calc(6px + env(safe-area-inset-bottom))}.tabbar a{flex:1;max-width:200px;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:var(--muted);font-size:.75rem;padding:6px 0;border-radius:12px}.tabbar a.active{color:var(--brand);font-weight:600}.icon-wrap{position:relative;display:inline-flex}.badge{position:absolute;top:-4px;right:-10px;background:var(--accent);color:#fff;border-radius:999px;font-size:.7rem;font-weight:700;min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px}
