:root { --ink:#18372b; --muted:#6c7a72; --line:#dfe8df; --cream:#f7f6ef; --paper:#fffefa; --green:#236345; --green-dark:#174934; --sage:#e5eee3; --peach:#f8ddc5; --shadow:0 14px 36px rgba(35,70,50,.09); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:radial-gradient(circle at 90% 5%, #e3efdc 0, transparent 25rem), var(--cream); }
button, input, select { font:inherit; }
button { cursor:pointer; }
.app-shell { width:min(1040px, calc(100% - 32px)); margin:0 auto; padding:48px 0 64px; }
.hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 4px 34px; }
.eyebrow { margin:0 0 8px; color:var(--green); font-size:.72rem; font-weight:800; letter-spacing:.13em; }
h1,h2,h3,p { margin-top:0; } h1 { margin-bottom:6px; font-family:Georgia,serif; font-size:clamp(3rem,8vw,5.4rem); font-weight:500; line-height:.86; letter-spacing:-.065em; } .subtitle { margin:0; color:var(--muted); font-size:1.04rem; }
.remaining-card { min-width:124px; padding:17px 20px; border:1px solid #d8e7d6; border-radius:18px; background:#edf5e9; text-align:center; } .remaining-card strong { display:block; color:var(--green); font-family:Georgia,serif; font-size:2rem; line-height:1; } .remaining-card span { color:var(--muted); font-size:.78rem; }
.card, .list-panel { border:1px solid var(--line); border-radius:22px; background:rgba(255,254,250,.9); box-shadow:var(--shadow); }
.composer { padding:25px; }.section-heading,.list-toolbar,.controls,.dialog-heading,.dialog-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; }.section-heading h2,.list-toolbar h2 { margin:0; font-size:1.1rem; letter-spacing:-.02em; }.hint { color:var(--muted); font-size:.77rem; }
#itemForm { display:grid; grid-template-columns:2fr .9fr 1.25fr auto; gap:12px; margin-top:20px; }.field { display:grid; gap:6px; color:var(--muted); font-size:.76rem; font-weight:700; }.field input,.field select,.search-field input { min-height:45px; width:100%; border:1px solid #cfdcd0; border-radius:10px; padding:0 12px; color:var(--ink); background:white; outline:none; }.field input:focus,.field select:focus,.search-field input:focus { border-color:var(--green); box-shadow:0 0 0 3px #dcebdc; }.add-button { min-height:45px; align-self:end; border:0; border-radius:10px; padding:0 16px; color:white; background:var(--green); font-weight:750; white-space:nowrap; }.add-button:hover { background:var(--green-dark); }.add-button span { font-size:1.2rem; margin-left:5px; }
.list-panel { margin-top:20px; padding:26px; }.text-button,.mini-button,.filter,.secondary-button,.icon-button { border:0; background:transparent; color:var(--muted); font-weight:700; }.text-button:hover,.mini-button:hover { color:var(--green); }.controls { margin:22px 0 12px; }.filters { display:flex; gap:4px; padding:4px; border-radius:11px; background:#edf0ea; }.filter { border-radius:8px; padding:7px 10px; font-size:.82rem; }.filter.active { color:var(--ink); background:white; box-shadow:0 2px 5px rgba(30,60,40,.1); }.filter span { color:var(--muted); font-size:.72rem; }.search-field { width:225px; }.search-field input { min-height:38px; font-size:.85rem; }
.grocery-list { display:grid; gap:9px; }.grocery-item { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; min-height:75px; padding:12px 10px; border-bottom:1px solid #edf1ec; }.check-button { width:24px; height:24px; border:2px solid #9caf9f; border-radius:50%; background:white; }.grocery-item.purchased .check-button { border-color:var(--green); background:var(--green); box-shadow:inset 0 0 0 4px white; }.item-topline { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }.item-topline h3 { margin:0; font-size:1rem; }.quantity { color:var(--muted); font-size:.85rem; }.category { display:inline-block; margin-top:4px; border-radius:99px; padding:3px 8px; color:#4c6655; background:var(--sage); font-size:.68rem; font-weight:800; }.item-actions { display:flex; gap:3px; opacity:.65; }.grocery-item:hover .item-actions { opacity:1; }.mini-button { padding:7px; font-size:.77rem; }.grocery-item.purchased h3,.grocery-item.purchased .quantity { color:#98a49b; text-decoration:line-through; }.empty-state { padding:58px 20px 32px; text-align:center; }.empty-icon { width:52px; height:52px; display:grid; place-items:center; margin:auto auto 14px; border-radius:50%; color:var(--green); background:var(--sage); font-size:2rem; }.empty-state h3 { margin-bottom:6px; }.empty-state p { max-width:310px; margin:0 auto; color:var(--muted); font-size:.9rem; }
dialog { width:min(450px, calc(100% - 32px)); border:0; border-radius:20px; padding:0; color:var(--ink); box-shadow:0 20px 80px rgba(10,30,18,.28); }dialog::backdrop { background:rgba(18,42,29,.43); }dialog form { display:grid; gap:18px; padding:25px; }.dialog-heading h2 { margin:0; }.icon-button { font-size:1.7rem; line-height:1; }.dialog-row { display:grid; grid-template-columns:1fr 1.3fr; gap:12px; }.secondary-button { padding:10px 12px; }.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:700px) { .app-shell { width:min(100% - 22px, 600px); padding-top:28px; }.hero { margin-bottom:24px; }.remaining-card { min-width:100px; padding:12px; }.composer,.list-panel { padding:18px; border-radius:17px; }#itemForm { grid-template-columns:1fr 1fr; }.field-name,.field-category { grid-column:span 2; }.add-button { grid-column:span 2; }.controls { align-items:stretch; flex-direction:column; }.filters { width:100%; justify-content:space-between; }.filter { flex:1; }.search-field { width:100%; }.item-actions { opacity:1; }.dialog-row { grid-template-columns:1fr; } }
@media (max-width:420px) { h1 { font-size:3.25rem; }.hero { align-items:center; }.remaining-card { min-width:82px; }.remaining-card strong { font-size:1.55rem; }.section-heading { align-items:flex-start; flex-direction:column; gap:4px; }.grocery-item { grid-template-columns:auto 1fr; }.item-actions { grid-column:2; justify-content:flex-start; margin-top:-10px; }.filters { gap:0; }.filter { padding:7px 4px; font-size:.73rem; } }
