:root{color-scheme:light;--page:#f9f8f3;--panel:#fffefa;--ink:#203327;--muted:#536256;--green:#28513c;--green-dark:#193b29;--line:#e0e2d5;--soft:#eff1e7;--paper:#f4f0e5;--serif:"Playfair Display",Georgia,serif;--sans:"DM Sans",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.5 var(--sans)}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.52;cursor:default}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid #895321;outline-offset:3px}
h1,h2,h3,p{margin:0}
.wrap{max-width:1272px;margin-inline:auto;padding-inline:38px}
.site-header{background:var(--panel);border-bottom:1px solid var(--line)}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:74px}
.brand{display:inline-flex;align-items:center;gap:11px;flex-shrink:0}
.brand strong,.brand small{display:block}
.brand strong{font:700 19px/1.15 var(--serif)}
.brand small{color:var(--muted);font-size:12px;margin-top:3px}
nav{display:flex;gap:6px;align-items:center}
nav a{padding:8px 12px;border-radius:8px;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.875rem;font-weight:700;white-space:nowrap}
nav a:hover,nav a[aria-current]{background:var(--soft);color:var(--green-dark)}
nav b{background:var(--green);color:white;border-radius:12px;padding:1px 6px;font-size:11px}
nav a>span[aria-hidden]{font-size:17px;line-height:1}
.hero{margin-top:29px;position:relative;isolation:isolate;overflow:hidden;border-radius:21px;min-height:375px;display:flex;align-items:center;background:#e7ead9 url("menemen.webp") right 52%/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#e9eddf 3%,#e9eddf 23%,#e9eddfdc 34%,#e9eddf00 66%)}
.hero-text{padding:36px 0 38px 46px;max-width:410px}
.eyebrow{text-transform:uppercase;letter-spacing:.145em;font-size:.7rem;font-weight:700;color:var(--green)}
.hero h1{font:800 clamp(3.2rem,6.2vw,5.65rem)/.99 var(--serif);letter-spacing:-.054em;margin:11px 0 18px;color:#243f2e}
.hero-text>p:nth-of-type(2){max-width:315px;color:#364c3c;font-size:.99rem}
.hero-link{display:inline-flex;align-items:center;gap:13px;margin-top:20px;background:var(--green);color:white;padding:9px 14px;border-radius:8px;font-size:.85rem;font-weight:700}
.hero-link:hover,.primary:hover:not(:disabled){background:var(--green-dark)}
.workspace{display:grid;grid-template-columns:minmax(263px,298px) minmax(0,1fr);gap:26px;align-items:start;margin-top:28px}
.panel{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:19px}
.pantry{scroll-margin-top:16px}
.pantry-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;font-size:22px}
.green{background:#e6edde;color:var(--green)}
.pantry h2,.results h2,.shopping h1,.dialog-head h2{font:700 30px/1.13 var(--serif);letter-spacing:-.025em}
.muted{color:var(--muted);font-size:.875rem}
.pantry h2+.muted{margin-top:4px}
input:not([type=checkbox]):not([type=file]),select{width:100%;appearance:auto;border:1px solid #d9ded1;border-radius:8px;background:#fffefa;padding:9px 10px;color:var(--ink);min-width:0;font-size:.875rem}
input::placeholder{color:#626d61}
input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex:0 0 17px;margin:0}
.search{margin-top:15px}
#pantry-list{max-height:310px;overflow:auto;margin-top:6px;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#acb5a4 transparent}
#pantry-list h3,.add-form>label{font-size:.73rem;letter-spacing:.075em;text-transform:uppercase;font-weight:700;color:var(--muted);margin:10px 0 6px}
.ingredients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px}
.ingredient-row{display:flex;align-items:center;position:relative;min-width:0}
.ingredient-row label,.shopping-items label{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--ink)}
.ingredient-row label{border:1px solid transparent;background:#f6f6ee;border-radius:7px;padding:5px;min-height:37px;flex:1;font-size:.76rem;overflow-wrap:anywhere}
.ingredient-row label:has(input:checked){background:#e8f0e4;border-color:#c9d9c5;font-weight:700}
.custom-remove{border:0;background:none;color:#6d4f42;padding:0 3px}
.pantry-empty{padding:8px 0}
.add-form{margin-top:8px;padding-top:5px;border-top:1px solid var(--line)}
.add-form>label{display:block}
.input-row{display:flex;gap:7px}
.staples{display:flex;align-items:center;gap:8px;margin-top:15px;font-size:.8rem;cursor:pointer}
.count-line{font-size:.78rem;font-weight:700;color:var(--green);margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}
.results-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 15px}
.results-heading .eyebrow{margin:2px 0 4px}
.results h2{font-size:37px}
.filters{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.tabs{display:flex;gap:2px;align-items:center;flex-wrap:wrap;background:#eeefe5;padding:3px;border-radius:9px}
.tabs button{padding:6px 9px;background:none;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:.78rem;font-weight:700}
.tabs button[aria-pressed=true]{background:var(--green);color:white}
.tabs button:hover:not([aria-pressed=true]){background:#dfe7d9}
.filter-fields{display:flex;gap:7px;margin-left:auto;min-width:0;flex-wrap:wrap}
.filter-fields input{max-width:165px}
.filter-fields select{width:auto}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.recipe-card{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:14px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.recipe-card:hover{border-color:#b7c4b1;box-shadow:0 4px 14px #3045330b}
.card-top{display:flex;align-items:start;justify-content:space-between;margin-bottom:12px}
.food-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:10px;background:#f3ecd7;font-size:25px;line-height:1}
.food-ana-yemek,.food-çorba{background:#fae9d9}
.food-salata,.food-meze{background:#e8efdf}
.favorite,.icon-button{background:var(--panel);border:1px solid var(--line);display:grid;place-items:center;color:var(--green);font:24px/1 system-ui,sans-serif;width:34px;height:34px;border-radius:8px}
.favorite:hover,.icon-button:hover{background:var(--soft)}
.favorite[aria-pressed=true]{color:#a34236;background:#fcf0e9;border-color:#efd4ca}
.recipe-category{color:var(--muted);font-size:.69rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.recipe-card h3{font:700 20px/1.16 var(--serif);margin:4px 0 7px;letter-spacing:-.012em}
.recipe-meta{font-size:.78rem;color:var(--muted);display:flex;gap:6px;align-items:center}
.match-details{margin:12px 0;color:var(--muted);font-size:.78rem}
.match-details p{margin-top:6px}
.pill{display:inline-flex;align-items:center;font-size:.73rem;border-radius:20px;padding:3px 9px;font-weight:700;white-space:nowrap}
.neutral{background:#ebeee4;color:#405344}
.ready{background:#e6efdf;color:#285237}
.missing{background:#fbeddc;color:#774721}
.card-link{width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);color:var(--green);margin-top:auto;padding:9px 0 0;font-size:.85rem;font-weight:700;display:flex;justify-content:space-between}
.card-link:hover{text-decoration:underline}
.empty{grid-column:1/-1;border:1px dashed #c4cbbd;border-radius:14px;padding:32px 22px;text-align:center}
.empty h3,.dialog-body h3{font:700 22px/1.2 var(--serif)}
.empty p{margin:8px 0 16px;color:var(--muted)}
.outline,.primary{display:inline-block;border:1px solid #cbd7c8;background:#f0f4eb;color:var(--green-dark);padding:8px 11px;border-radius:8px;font-weight:700;font-size:.8rem;white-space:nowrap}
.outline:hover:not(:disabled){background:#e2ebdd}
.primary{background:var(--green);color:white;border-color:var(--green)}
.text-button{background:none;border:0;padding:4px;color:var(--green);font-size:.78rem;font-weight:700}
.text-button:hover:not(:disabled){text-decoration:underline}
.shopping{max-width:710px;margin:34px auto;min-height:260px;padding:24px}
.shopping h1{margin:12px 0 6px}
.shopping form{margin:18px 0 10px}
.shopping-items{padding:0;margin:0;list-style:none}
.shopping-items li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.shopping-items label:has(input:checked) span{text-decoration:line-through;color:var(--muted)}
.shopping-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.footer{min-height:78px;margin-top:30px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;font-size:.8rem;color:var(--muted)}
.footer span{margin:0 4px}
.import-label{cursor:pointer}
.footer div:focus-within .import-label{outline:2px solid #895321;outline-offset:1px}
dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:0;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto}
dialog::backdrop{background:#1b2e22a8}
.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line)}
.dialog-head .eyebrow{margin-bottom:3px}
.dialog-body{padding:15px 20px 20px}
.detail-meta{display:flex;gap:7px}
.servings{display:flex;gap:10px;align-items:center;margin:12px 0 16px;font-weight:700;font-size:.85rem}
.servings select{width:auto}
.details-list{list-style:none;margin:8px 0 17px;padding:0}
.details-list li{border-bottom:1px solid var(--line);padding:7px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.9rem}
.steps{padding-left:22px;margin:10px 0 20px;font-size:.9rem}
.steps li+li{margin-top:7px}
#dialog-feedback:not(:empty){margin-top:6px}
.notice{position:fixed;z-index:4;bottom:18px;right:18px;max-width:calc(100vw - 36px);padding:10px 15px;border-radius:9px;background:var(--green-dark);color:white;box-shadow:0 4px 20px #0003;opacity:0;pointer-events:none}
.notice.visible{opacity:1}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:absolute;z-index:5;background:white;padding:8px}
@media(max-width:1100px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:830px){.wrap{padding-inline:22px}.workspace{grid-template-columns:minmax(223px,260px) minmax(0,1fr);gap:15px}.hero{min-height:330px}.hero-text{padding-left:30px}.filter-fields{margin-left:0}.recipe-card{padding:11px}}
@media(max-width:625px){.wrap{padding-inline:14px}.topbar{flex-direction:column;align-items:flex-start;gap:7px;padding-top:9px;padding-bottom:7px}.brand img{width:37px;height:37px}.brand strong{font-size:18px}nav{width:100%;justify-content:space-between}nav a{padding:7px 8px}.optional{display:none}.hero{margin-top:14px;min-height:340px;align-items:end;background-position:76% 50%}.hero::before{background:linear-gradient(90deg,#e9eddf 0%,#e9eddfdf 36%,#e9eddf30 78%),linear-gradient(0deg,#e9eddfdd 0%,transparent 55%)}.hero-text{padding:19px;max-width:300px}.hero h1{font-size:clamp(2.85rem,10vw,4rem);margin-bottom:12px}.hero-text>p:nth-of-type(2){font-size:.9rem}.hero-link{margin-top:13px}.workspace{margin-top:15px;grid-template-columns:minmax(0,1fr);gap:19px}.pantry{padding:13px}#pantry-list{max-height:220px}.ingredients{grid-template-columns:repeat(3,minmax(0,1fr))}.results h2{font-size:31px}.recipe-card h3{font-size:18px}.recipe-grid{gap:8px}.filter-fields{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.filter-fields input{max-width:none;grid-column:1/-1}.filter-fields select{width:100%}.footer{justify-content:flex-start;min-height:75px;gap:4px 12px;margin-top:17px}.shopping{margin:17px auto;padding:15px}}
@media(max-width:355px){.ingredients{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-grid{grid-template-columns:minmax(0,1fr)}}
.pantry-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}
.pantry-footer .count-line{margin:0;padding:0;border:0}
#recipe-results{scroll-margin-top:14px}
