@import "https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Special+Elite&display=swap";:root{--ink:#2b3e50;--ink-muted:#2b3e50bf;--bg:#e8dcc8;--surface:#f4efe0;--rule:#cbd5e0;--accent:#b8392e;--accent-ink:#fff;--measure:60ch;--shadow:#2b3e5026;--shadow-deep:#2b3e5040;scrollbar-color:var(--rule) transparent;scrollbar-width:thin;caret-color:var(--ink)}@media (prefers-color-scheme:dark){:root{--ink:#e8dcc8;--ink-muted:#e8dcc8bf;--bg:#1c2128;--surface:#2b3137;--rule:#3d454d;--accent:#d84a3d;--accent-ink:#1c2128;--shadow:#0000004d;--shadow-deep:#00000080}}*,:before,:after{box-sizing:border-box}html{overflow-x:clip}body{-webkit-font-smoothing:antialiased;color:var(--ink);background:var(--bg);margin:0;font-family:Special Elite,Courier New,monospace;line-height:1.6}.screen{min-height:100vh}p{text-wrap:pretty}h1,h2,h3{text-wrap:balance}::selection{background:var(--accent);color:var(--accent-ink)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent);text-underline-offset:.18em}.num{font-variant-numeric:tabular-nums}button,[role=button],summary,select,input[type=checkbox],input[type=radio]{min-height:44px}button{min-width:44px}input,select,textarea{font:inherit;font-size:max(1rem,16px)}img,video,canvas,svg{max-width:100%;height:auto}pre{overflow-x:auto}@media (width<=480px){.screen{padding-inline:1rem}}@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}.tab-nav{background:var(--bg);gap:.5rem;padding:1.5rem 2rem 0;display:flex}.tab{background:var(--accent);color:var(--accent-ink);letter-spacing:.03em;box-shadow:0 2px 4px var(--shadow);border:none;border-radius:8px 8px 0 0;padding:.75rem 2rem;font-size:.95rem;font-weight:400;transition:all .18s cubic-bezier(.19,1,.22,1);position:relative;top:0}.tab:hover{box-shadow:0 4px 8px var(--shadow-deep);background:#9f2f25;transform:translateY(-2px)}.tab.active{background:var(--surface);color:var(--ink);box-shadow:0 -2px 8px var(--shadow);font-weight:700;top:2px}.controls{background:var(--surface);border-bottom:2px solid var(--rule);flex-wrap:wrap;align-items:center;gap:1rem;padding:1.5rem 2rem;display:flex}.search-box{flex:1;min-width:280px;position:relative}.search-icon{color:var(--ink);opacity:.6;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}.search-input{border:none;border-bottom:2px solid var(--rule);width:100%;color:var(--ink);background:0 0;outline:none;padding:.75rem 1rem .75rem 2.75rem;transition:border-color .18s ease-out}.search-input:focus{border-bottom-color:var(--ink)}.search-input::placeholder{color:var(--ink-muted)}.add-recipe-btn{background:var(--surface);border:2px solid var(--ink);color:var(--ink);box-shadow:2px 2px 0 var(--ink);align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.95rem;font-weight:400;transition:all .18s cubic-bezier(.19,1,.22,1);display:flex}.add-recipe-btn:hover{box-shadow:4px 4px 0 var(--ink);transform:translate(-2px,-2px)}.add-recipe-btn:active{box-shadow:1px 1px 0 var(--ink);transform:translate(0)}.recipes-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;max-width:1400px;margin:0 auto;padding:2rem;display:grid}.recipe-card{background:var(--surface);box-shadow:2px 2px 4px var(--shadow), 0 4px 12px var(--shadow);border-radius:2px;padding:1.5rem;transition:all .24s cubic-bezier(.19,1,.22,1);position:relative;overflow:hidden}.recipe-card:before{content:"";background:var(--accent);border-radius:2px 2px 0 0;height:32px;position:absolute;top:0;left:0;right:0}.recipe-card:hover{box-shadow:4px 4px 8px var(--shadow), 0 8px 24px var(--shadow-deep);transform:translateY(-4px)}.cuisine-tag{background:var(--accent);color:var(--accent-ink);letter-spacing:.05em;z-index:1;border-radius:2px 0 8px;padding:.4rem 1rem;font-size:.8rem;font-weight:400;position:absolute;top:0;left:0}.recipe-title{color:var(--ink);word-wrap:break-word;margin:2.5rem 0 .75rem;font-family:Kalam,cursive;font-size:1.75rem;font-weight:700;line-height:1.3}.recipe-meta{color:var(--ink-muted);margin-bottom:1rem;font-size:.85rem;line-height:1.8}.recipe-description{color:var(--ink);opacity:.85;margin-bottom:1.25rem;font-size:.9rem;line-height:1.7}.recipe-actions{border-top:1px solid var(--rule);gap:.75rem;margin-top:auto;padding-top:1rem;display:flex}.btn{border:1.5px solid var(--ink);color:var(--ink);cursor:pointer;background:0 0;flex:1;padding:.5rem 1rem;font-size:.85rem;font-weight:400;transition:all .15s cubic-bezier(.19,1,.22,1)}.btn:hover{background:var(--ink);color:var(--surface)}.btn-delete{border-color:var(--accent);color:var(--accent)}.btn-delete:hover{background:var(--accent);color:var(--accent-ink)}.empty-state{text-align:center;background:var(--surface);border:2px dashed var(--rule);border-radius:2px;grid-column:1/-1;max-width:500px;margin:2rem auto;padding:4rem 2rem}.empty-icon{opacity:.3;margin-bottom:1rem;font-size:4rem}.empty-message{color:var(--ink);margin-bottom:.5rem;font-size:1rem}.empty-hint{color:var(--ink-muted);font-size:.9rem}.form-container{max-width:700px;margin:2rem auto;padding:2rem}.form-card{background:var(--surface);box-shadow:4px 4px 8px var(--shadow), 0 8px 24px var(--shadow-deep);border-radius:2px;padding:2.5rem}.form-title{color:var(--ink);border-bottom:2px solid var(--rule);margin-bottom:2rem;padding-bottom:1rem;font-family:Kalam,cursive;font-size:2.25rem}.form-group{margin-bottom:1.75rem}.form-label{color:var(--ink);letter-spacing:.02em;margin-bottom:.5rem;font-size:.9rem;font-weight:400;display:block}.form-input,.form-textarea{border:none;border-bottom:2px solid var(--rule);width:100%;color:var(--ink);resize:vertical;background:0 0;outline:none;padding:.75rem;font-size:.95rem;transition:border-color .18s ease-out}.form-input:focus,.form-textarea:focus{border-bottom-color:var(--ink)}.form-textarea{min-height:120px;line-height:1.6}.list-input-group{gap:.5rem;margin-bottom:.5rem;display:flex}.list-input-group input{flex:1}.btn-small{border:1.5px solid var(--ink);color:var(--ink);cursor:pointer;background:0 0;padding:.5rem .75rem;font-size:.85rem;transition:all .15s ease-out}.btn-small:hover{background:var(--ink);color:var(--surface)}.list-items{margin-top:.75rem}.list-item{border-bottom:1px solid var(--rule);align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.list-item-text{color:var(--ink);flex:1;font-size:.9rem}.btn-remove{border:1px solid var(--accent);color:var(--accent);cursor:pointer;background:0 0;padding:.25rem .5rem;font-size:.75rem;transition:all .15s ease-out}.btn-remove:hover{background:var(--accent);color:var(--accent-ink)}.form-actions{border-top:2px solid var(--rule);gap:1rem;margin-top:2rem;padding-top:2rem;display:flex}.btn-primary{border:2px solid var(--ink);background:var(--ink);color:var(--surface);cursor:pointer;box-shadow:3px 3px 0 var(--shadow-deep);flex:1;padding:.875rem 2rem;font-size:1rem;font-weight:400;transition:all .18s cubic-bezier(.19,1,.22,1)}.btn-primary:hover{box-shadow:5px 5px 0 var(--shadow-deep);transform:translate(-2px,-2px)}.btn-primary:active{box-shadow:1px 1px 0 var(--shadow-deep);transform:translate(0)}.btn-secondary{border:2px solid var(--ink);color:var(--ink);cursor:pointer;background:0 0;flex:1;padding:.875rem 2rem;font-size:1rem;font-weight:400;transition:all .15s ease-out}.btn-secondary:hover{background:var(--ink);color:var(--surface)}.detail-container{max-width:800px;margin:2rem auto;padding:0 2rem}.detail-card{background:var(--surface);box-shadow:4px 4px 12px var(--shadow), 0 8px 32px var(--shadow-deep);border-radius:2px;padding:3rem;position:relative}.detail-card:before{content:"";background:var(--accent);border-radius:2px 2px 0 0;height:48px;position:absolute;top:0;left:0;right:0}.detail-header{padding-top:1rem;position:relative}.back-btn{border:1.5px solid var(--ink);color:var(--ink);cursor:pointer;background:0 0;align-items:center;gap:.5rem;margin-bottom:1.5rem;padding:.5rem 1rem;font-size:.85rem;transition:all .15s ease-out;display:inline-flex}.back-btn:hover{background:var(--ink);color:var(--surface)}.detail-title{color:var(--ink);margin-bottom:1rem;font-family:Kalam,cursive;font-size:2.75rem;line-height:1.2}.detail-meta{border-bottom:2px solid var(--rule);color:var(--ink-muted);gap:2rem;margin-bottom:2rem;padding-bottom:1.5rem;font-size:.9rem;display:flex}.detail-description{color:var(--ink);opacity:.85;margin-bottom:2.5rem;font-size:1.05rem;line-height:1.8}.detail-section{margin-bottom:2.5rem}.detail-section-title{color:var(--ink);border-bottom:1px solid var(--rule);margin-bottom:1rem;padding-bottom:.5rem;font-family:Kalam,cursive;font-size:1.5rem}.detail-list{counter-reset:item;list-style:none}.detail-list li{border-bottom:1px solid var(--rule);padding:.75rem 0 .75rem 2.5rem;font-size:.95rem;line-height:1.7;position:relative}.detail-list li:last-child{border-bottom:none}.detail-list li:before{content:counter(item);counter-increment:item;background:var(--accent);width:1.75rem;height:1.75rem;color:var(--accent-ink);border-radius:50%;justify-content:center;align-items:center;font-size:.8rem;font-weight:700;display:flex;position:absolute;top:.75rem;left:0}.cuisine-tags{flex-wrap:wrap;gap:.5rem;margin-bottom:2rem;display:flex}.cuisine-badge{background:var(--accent);color:var(--accent-ink);letter-spacing:.05em;border-radius:2px;padding:.4rem 1rem;font-size:.85rem}.detail-actions{border-top:2px solid var(--rule);gap:1rem;margin-top:2.5rem;padding-top:2rem;display:flex}@media (width<=768px){.tab-nav{padding:1rem 1rem 0}.tab{padding:.6rem 1.25rem;font-size:.85rem}.controls{padding:1rem}.recipes-grid{grid-template-columns:1fr;padding:1rem}.recipe-card{padding:1.25rem}.recipe-title{font-size:1.5rem}.form-container,.detail-container{padding:0 1rem}.form-card,.detail-card{padding:1.75rem}.detail-title{font-size:2rem}.detail-meta{flex-direction:column;gap:.5rem}}@media (prefers-reduced-motion:no-preference){.recipe-card,.tab,.btn,.btn-primary,.add-recipe-btn{transition-duration:.24s}}@media (width<=480px){body,.container,[class*=container],section,header,footer,nav,main,article{padding-inline:max(1rem,16px)}}p,li,dt,dd,blockquote,figcaption,td,th{max-width:min(75ch,100%)}
