@import"https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap";:root{--bg: #F5F5F0;--surface: #FFFFFF;--surface-2: #EEEEE9;--text: #111111;--text-muted: #999999;--accent: #D4603A;--accent-light: rgba(212, 96, 58, .1);--border: #E5E5E0;--top-nav-h: 52px;--bottom-nav-h: 60px;--radius: 12px;--ease-out: cubic-bezier(.22, 1, .36, 1);--font-serif: "DM Serif Display", Georgia, serif;--font-sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif}[data-theme=dark]{--bg: #141413;--surface: #1D1D1B;--surface-2: #252523;--text: #EDECEA;--text-muted: #666660;--accent: #E07050;--accent-light: rgba(224, 112, 80, .12);--border: #2D2D2A}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #141413;--surface: #1D1D1B;--surface-2: #252523;--text: #EDECEA;--text-muted: #666660;--accent: #E07050;--accent-light: rgba(224, 112, 80, .12);--border: #2D2D2A}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100dvh;transition:background .25s ease,color .25s ease}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer;border:none;background:none}.top-nav{position:sticky;top:0;z-index:100;height:calc(var(--top-nav-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);display:flex;align-items:center;justify-content:space-between;padding-left:20px;padding-right:12px;background:var(--bg);border-bottom:1px solid transparent;transition:border-color .2s,background .2s}.top-nav.scrolled{border-color:var(--border);background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.nav-title{font-family:var(--font-serif);font-style:italic;font-size:1.15rem}.back-btn{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;font-weight:500;color:var(--text-muted);transition:color .15s;padding:4px 0}.back-btn:hover{color:var(--text)}.theme-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:var(--text-muted);transition:color .15s,background .15s;flex-shrink:0}.theme-btn:hover{color:var(--text);background:var(--surface-2)}.theme-btn .icon-sun{display:none}.theme-btn .icon-moon,[data-theme=dark] .theme-btn .icon-sun{display:block}[data-theme=dark] .theme-btn .icon-moon{display:none}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .theme-btn .icon-sun{display:block}:root:not([data-theme=light]) .theme-btn .icon-moon{display:none}}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr);align-items:center;z-index:100;transition:background .25s}.bottom-tab{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;color:var(--text-muted);font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;transition:color .15s}.bottom-tab.active{color:var(--text)}.bottom-tab-icon{width:26px;height:26px;display:flex;align-items:center;justify-content:center;transition:transform .15s var(--ease-out)}.bottom-tab:active .bottom-tab-icon{transform:scale(.85)}.bottom-tab-add .bottom-tab-icon{width:38px;height:38px;background:var(--text);color:var(--bg);border-radius:50%;box-shadow:0 2px 8px #0000002e;transition:transform .15s var(--ease-out),box-shadow .15s}.bottom-tab-add:active .bottom-tab-icon{transform:scale(.9);box-shadow:0 1px 4px #0000001f}.tab-badge{position:absolute;top:4px;right:4px;width:16px;height:16px;background:var(--accent);color:#fff;border-radius:50%;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;display:none}.tab-badge.visible{display:flex}.bottom-tab{position:relative}.page{max-width:720px;margin:0 auto;padding:0 20px;padding-bottom:calc(env(safe-area-inset-bottom) + var(--bottom-nav-h) + 24px)}.page-heading{font-family:var(--font-serif);font-size:clamp(2rem,8vw,3.2rem);font-weight:400;letter-spacing:-.02em;line-height:1.1;margin-top:32px;margin-bottom:6px}.page-subheading{font-size:.8rem;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin-bottom:28px}.filter-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;margin-bottom:4px}.filter-tabs::-webkit-scrollbar{display:none}.filter-tab{flex-shrink:0;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:7px 16px;border-radius:100px;border:1.5px solid var(--border);color:var(--text-muted);background:transparent;transition:all .15s;white-space:nowrap;cursor:pointer}.filter-tab:hover{border-color:var(--text-muted);color:var(--text)}.filter-tab.active{background:var(--text);border-color:var(--text);color:var(--bg)}.recipe-list{margin-top:12px}.recipe-item{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--border);opacity:0;transform:translateY(18px);transition:opacity .45s var(--ease-out),transform .45s var(--ease-out)}.recipe-item:first-child{border-top:1px solid var(--border)}.recipe-item.visible{opacity:1;transform:translateY(0)}.recipe-item-thumb{flex-shrink:0;width:60px;height:60px;border-radius:10px;overflow:hidden;background:var(--surface-2)}.recipe-item-thumb img{width:100%;height:100%;object-fit:cover;display:block}.recipe-item-info{flex:1;min-width:0}.recipe-item-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:3px 9px;border-radius:100px;margin-bottom:5px}.recipe-item-title{font-family:var(--font-serif);font-size:1.25rem;font-weight:400;line-height:1.2;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-item-serves{font-size:.78rem;color:var(--text-muted)}.recipe-item-arrow{flex-shrink:0;font-size:1rem;color:var(--text-muted);transition:transform .2s,color .2s}.recipe-item:hover .recipe-item-arrow{transform:translate(4px);color:var(--accent)}.empty-state{text-align:center;padding:64px 0;color:var(--text-muted)}.empty-state p{font-size:.88rem;margin-top:12px}.recipe-photo-header{position:relative;width:100%;height:300px;overflow:hidden;background:var(--surface-2)}@media(min-width:760px){.recipe-photo-header{max-width:680px;margin:16px auto 0;height:380px;border-radius:var(--radius)}}.recipe-photo-header img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .5s ease}.recipe-photo-header img.loaded{opacity:1}.recipe-photo-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.08) 55%,transparent 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:24px 20px}.recipe-photo-overlay .recipe-tag{align-self:flex-start;margin-bottom:10px}.recipe-photo-overlay .recipe-title{color:#fff;margin-bottom:6px;font-size:clamp(1.8rem,6vw,2.6rem)}.recipe-photo-overlay .recipe-serves{color:#ffffffa6}.recipe-header{padding-top:28px;padding-bottom:4px}.recipe-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:4px 11px;border-radius:100px;margin-bottom:12px}.recipe-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.recipe-title{font-family:var(--font-serif);font-size:clamp(2rem,7vw,2.8rem);font-weight:400;letter-spacing:-.02em;line-height:1.1;flex:1}.recipe-serves{font-size:.8rem;color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase}.edit-pill{flex-shrink:0;font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:7px 14px;border-radius:100px;border:1.5px solid var(--border);color:var(--text-muted);transition:border-color .15s,color .15s;margin-top:6px;white-space:nowrap}.edit-pill:hover{border-color:var(--text);color:var(--text)}.recipe-edit-row{display:flex;justify-content:flex-end;padding:16px 0 0}.recipe-divider{border:none;border-top:1px solid var(--border);margin:24px 0}.scaling-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 20px;border-bottom:1px solid var(--border);margin-bottom:24px}.scaling-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}.scaling-controls{display:flex;align-items:center;gap:0;background:var(--surface);border:1.5px solid var(--border);border-radius:100px;overflow:hidden}.scaling-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:var(--text-muted);transition:background .12s,color .12s;cursor:pointer;line-height:1}.scaling-btn:hover{background:var(--surface-2);color:var(--text)}.scaling-value{min-width:36px;text-align:center;font-size:.9rem;font-weight:700;color:var(--text);padding:0 4px}.recipe-actions{display:flex;gap:10px;margin-bottom:8px;flex-wrap:wrap}.action-btn{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700;letter-spacing:.04em;padding:9px 16px;border-radius:100px;border:1.5px solid var(--border);color:var(--text-muted);background:transparent;transition:all .15s;white-space:nowrap;cursor:pointer;font-family:inherit;text-decoration:none}.action-btn:hover{border-color:var(--text);color:var(--text)}.action-btn.success{border-color:#2d9b6f;color:#2d9b6f}.recipe-body{display:grid;gap:40px}@media(min-width:640px){.recipe-body{grid-template-columns:1fr 1.6fr;align-items:start}}.section-label{font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-bottom:16px}.ingredient-group+.ingredient-group{margin-top:20px}.ingredient-group-name{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin-bottom:8px}.ingredient-list{list-style:none;display:flex;flex-direction:column;gap:8px}.ingredient-item{display:flex;gap:10px;font-size:.95rem;line-height:1.4;opacity:0;transform:translate(-8px);transition:opacity .35s var(--ease-out),transform .35s var(--ease-out)}.ingredient-item.visible{opacity:1;transform:translate(0)}.ingredient-bullet{flex-shrink:0;margin-top:8px;width:4px;height:4px;border-radius:50%;background:var(--accent)}.step-list{list-style:none;display:flex;flex-direction:column;gap:20px}.step-item{display:flex;gap:16px;opacity:0;transform:translateY(12px);transition:opacity .45s var(--ease-out),transform .45s var(--ease-out)}.step-item.visible{opacity:1;transform:translateY(0)}.step-number{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:700;color:var(--text-muted);margin-top:1px}.step-text{font-size:.95rem;line-height:1.7;padding-top:3px}.notes-section{margin-top:48px;padding-top:32px;border-top:1px solid var(--border)}.notes-heading{font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px}.notes-textarea{width:100%;min-height:88px;padding:12px 14px;border:1.5px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-family:var(--font-sans);font-size:15px;line-height:1.65;resize:vertical;outline:none;transition:border-color .15s,background .25s}.notes-textarea:focus{border-color:var(--text)}.notes-textarea::placeholder{color:var(--text-muted)}.notes-status{font-size:.72rem;color:var(--text-muted);margin-top:6px;min-height:16px;opacity:0;transition:opacity .3s}.notes-status.show{opacity:1}.cook-shell{min-height:100dvh;display:flex;flex-direction:column;background:#0f0f0d;color:#edecea;padding-top:env(safe-area-inset-top)}.cook-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0;flex-shrink:0}.cook-close{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600;color:#ffffff73;letter-spacing:.04em;transition:color .15s}.cook-close:hover{color:#ffffffd9}.cook-counter{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ffffff4d}.cook-bar{height:2px;background:#ffffff14;margin:20px 20px 0;border-radius:2px;overflow:hidden;flex-shrink:0}.cook-bar-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .4s var(--ease-out)}.cook-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 32px;text-align:center;min-height:0}.cook-step-label{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ffffff4d;margin-bottom:24px}.cook-step-text{font-family:var(--font-serif);font-size:clamp(1.4rem,4.5vw,2rem);line-height:1.55;color:#edecea;max-width:520px}.cook-ingredients{text-align:left;width:100%;max-width:400px;display:flex;flex-direction:column;gap:10px}.cook-ingredient{display:flex;gap:12px;font-size:.95rem;color:#fffc;line-height:1.4}.cook-ingredient-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:8px}.cook-footer{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 20px calc(env(safe-area-inset-bottom) + 24px);flex-shrink:0}.cook-btn{padding:16px;border-radius:12px;font-size:.9rem;font-weight:700;letter-spacing:.03em;cursor:pointer;border:none;font-family:inherit;transition:opacity .15s,transform .15s}.cook-btn:active{transform:scale(.97)}.cook-btn-prev{background:#ffffff14;color:#fff9}.cook-btn-prev:disabled{opacity:.3;cursor:not-allowed}.cook-btn-next{background:#fff;color:#0f0f0d}.cook-btn-next.done{background:var(--accent);color:#fff}.grocery-group-title{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin:28px 0 8px}.grocery-group-title:first-child{margin-top:12px}.grocery-item{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--border)}.grocery-check{flex-shrink:0;width:24px;height:24px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .18s;color:transparent}.grocery-check.checked{background:var(--text);border-color:var(--text);color:var(--bg)}.grocery-text{flex:1;font-size:.95rem;line-height:1.4;transition:color .18s}.grocery-item.checked .grocery-text{text-decoration:line-through;color:var(--text-muted)}.grocery-actions{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}.letter-page{max-width:580px;margin:0 auto;padding:40px 24px;padding-bottom:calc(env(safe-area-inset-bottom) + var(--bottom-nav-h) + 40px)}.letter-salutation{font-family:var(--font-serif);font-style:italic;font-size:1.4rem;margin-bottom:28px;color:var(--text-muted)}.letter-body{font-size:1rem;line-height:1.9}.letter-body p+p{margin-top:20px}.letter-quote{margin:32px 0;padding-left:20px;border-left:2px solid var(--accent);font-style:italic;color:var(--text-muted);font-size:.95rem;line-height:1.8}.letter-signoff{margin-top:40px;font-family:var(--font-serif);font-style:italic;font-size:1.15rem;color:var(--text-muted)}.letter-animate{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}.letter-animate.visible{opacity:1;transform:translateY(0)}.form-page{padding-top:24px}.form-heading{font-family:var(--font-serif);font-size:clamp(1.6rem,6vw,2.2rem);font-weight:400;letter-spacing:-.01em;margin-bottom:32px}.form-group{margin-bottom:24px}.form-label{display:block;font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:8px}.form-hint{font-size:.78rem;color:var(--text-muted);margin-bottom:8px;line-height:1.5}.form-input,.form-select,.form-textarea{width:100%;padding:12px 14px;border:1.5px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.5;appearance:none;-webkit-appearance:none;transition:border-color .15s,box-shadow .15s,background .25s;outline:none}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--text);box-shadow:0 0 0 3px #1111110f}.form-textarea{resize:vertical;min-height:140px}.form-select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;flex-direction:column;gap:12px;margin-top:40px}.btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 24px;border-radius:8px;font-size:.88rem;font-weight:700;letter-spacing:.03em;transition:all .15s;cursor:pointer;border:none;font-family:inherit}.btn-primary{background:var(--text);color:var(--bg)}.btn-primary:hover{opacity:.88}.btn-primary:active{transform:scale(.98)}.btn-ghost{background:transparent;color:var(--text-muted);border:1.5px solid var(--border)}.btn-ghost:hover{border-color:var(--text-muted);color:var(--text)}.btn-danger{background:transparent;color:#c0392b;border:1.5px solid #FADBD8}.btn-danger:hover{background:#fadbd8}.photo-upload-label{display:block;cursor:pointer;border-radius:var(--radius);overflow:hidden;border:2px dashed var(--border);transition:border-color .15s;user-select:none;-webkit-user-select:none}.photo-upload-label:hover,.photo-upload-label:active{border-color:var(--text-muted)}.photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 24px;color:var(--text-muted);font-size:.85rem}.photo-preview-img{width:100%;height:220px;object-fit:cover;display:block}.photo-remove-btn{display:none;margin-top:8px;font-size:.78rem;color:#c0392b;text-decoration:underline;padding:0;font-family:inherit;cursor:pointer}.photo-remove-btn.visible{display:block}.upload-overlay{position:fixed;inset:0;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;gap:16px;font-size:.88rem;color:var(--text-muted)}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--text);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}.skeleton{background:linear-gradient(90deg,var(--border) 25%,var(--surface-2) 50%,var(--border) 75%);background-size:800px 100%;animation:shimmer 1.4s infinite linear;border-radius:6px}@keyframes fadeUp{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-up{animation:fadeUp .5s var(--ease-out) both}.fade-in{animation:fadeIn .4s var(--ease-out) both}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;animation-timing-function:var(--ease-out)}::view-transition-old(root){animation-name:fadeIn;animation-direction:reverse}::view-transition-new(root){animation-name:fadeIn}.top-nav-left{display:flex;align-items:center;min-width:0;flex:1}.bottom-tab-icon-wrap{position:relative;display:flex;align-items:center;justify-content:center}.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.action-btn.added{border-color:#2d9b6f;color:#2d9b6f}.grocery-page-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:0}.grocery-page-header .form-heading{margin-bottom:0}.grocery-header-actions{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--text-muted)}.grocery-header-sep{opacity:.4}.grocery-action-link{font-size:.78rem;color:var(--text-muted);font-weight:500;padding:4px 0;text-decoration:underline;text-underline-offset:2px;cursor:pointer;font-family:inherit;transition:color .15s}.grocery-action-link:hover{color:var(--text)}.grocery-group{margin-top:28px}.grocery-group:first-child{margin-top:20px}.grocery-group-items{list-style:none}.grocery-remove{flex-shrink:0;margin-left:auto;color:var(--text-muted);opacity:0;transition:opacity .15s,color .15s;padding:4px}.grocery-item:hover .grocery-remove{opacity:1}.grocery-remove:hover{color:#c0392b}#cook-content{transition:opacity .3s,transform .3s}
