:root{--paper:#faf6ef;--ink:#342a22;--muted:#746c61;--accent:#a44f28;--accent-dark:#803a19;--sage:#59674b;--line:#ded6c9;--white:#fffdf9;--shadow:0 8px 30px #4833210c;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--accent)}img{max-width:100%;display:block}h1,h2,h3,.brand strong{font-family:Georgia,"Times New Roman",serif;font-weight:500}h1{font-size:clamp(2.5rem,5.5vw,4.5rem);line-height:1.05;letter-spacing:-.035em;margin:.6rem 0 1.1rem}h2{font-size:1.9rem;margin:.4rem 0 1rem}h3{font-size:1.4rem;line-height:1.3}p{line-height:1.7}button{color:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid #32699a;outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;top:-100px;left:10px;padding:1rem;background:white;z-index:100}.skip-link:focus{top:10px}
.site-header{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1rem clamp(1.2rem,4vw,4rem);border-bottom:1px solid var(--line);background:#fffdf9cc}.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:var(--ink);flex-shrink:0}.brand img{object-fit:contain}.brand strong{font-size:1.5rem;display:block}.brand small{display:block;font-size:.58rem;letter-spacing:.2em;color:var(--muted);margin-top:.4rem}.site-header nav{display:flex;gap:1.3rem;flex-wrap:wrap}.nav-link{padding:.65rem 0;background:none;border:none;font-size:.84rem;color:var(--muted);border-bottom:2px solid transparent}.nav-link.active{color:var(--accent);border-color:var(--accent)}.account{display:flex;align-items:center;gap:.8rem;font-size:.8rem}.account>span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{max-width:1260px;margin:auto;padding:0 clamp(1.2rem,4vw,3.2rem)}.eyebrow{font-size:.68rem;letter-spacing:.19em;font-weight:700;color:var(--accent);margin:0 0 .6rem}.hero{display:flex;align-items:center;justify-content:space-between;padding:3.5rem 1rem 3rem;gap:2rem;border-bottom:1px solid var(--line)}.hero p:not(.eyebrow){color:var(--muted);margin-bottom:0}.hero-chef{width:225px;height:225px;object-fit:contain;transform:rotate(-5deg);margin-right:4rem}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:2.5rem 0 1rem}.collection-heading h2{margin-bottom:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;border:1px solid transparent;border-radius:6px;padding:.85rem 1.15rem;font-size:.86rem;font-weight:600;line-height:1.3;transition:background .15s,transform .15s}.button-primary{background:var(--accent);color:white}.button-primary:hover{background:var(--accent-dark)}.button-quiet{background:var(--white);border-color:var(--line);color:var(--ink)}.button-quiet:hover{background:#f0e8dc}.button-small{padding:.6rem .8rem;font-size:.78rem}.button-danger{background:#a32d24;color:white}.text-button{background:none;border:none;padding:.35rem 0;color:var(--accent);font-size:.82rem;text-underline-offset:4px}.text-button:hover{text-decoration:underline}.danger{color:#a32d24}
.search-row{display:flex;align-items:center;gap:1.4rem;margin:1.1rem 0 1.4rem}.search-field{display:flex;align-items:center;gap:.8rem;border:1px solid var(--line);background:var(--white);border-radius:6px;padding:.2rem 1rem;flex:1;max-width:660px}.search-field>span:not(.sr-only){font-size:1.8rem;color:var(--muted)}.search-field input{border:0;background:none;width:100%;padding:.75rem 0;outline-offset:0;font-size:.88rem}.sort-field{display:flex;align-items:center;gap:.5rem;font-size:.82rem;margin-left:auto;color:var(--muted)}.sort-field select{background:var(--white);border:1px solid var(--line);padding:.75rem .6rem;border-radius:6px;font-size:.82rem;color:var(--ink)}.categories{display:flex;flex-wrap:wrap;gap:.5rem}.category{border:1px solid var(--line);border-radius:30px;background:transparent;padding:.6rem 1rem;font-size:.8rem}.category span{color:var(--muted);font-size:.68rem;margin-left:.5rem}.category.active{background:var(--sage);color:white;border-color:var(--sage)}.category.active span{color:#e3e8dc}.category:hover:not(.active){background:#eee7dc}.results-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 1rem;font-size:.8rem;color:var(--muted)}.results-row p{margin:0}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}.recipe-card{border:1px solid var(--line);background:var(--white);border-radius:10px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,border-color .2s}.recipe-card:hover{transform:translateY(-3px);border-color:#ba9c7e}.recipe-card.is-selected{outline:2px solid var(--accent);outline-offset:2px}.card-image{height:215px;position:relative;background:#e9e0d2}.card-image>img{width:100%;height:100%;object-fit:cover}.card-image.card-no-image{background:linear-gradient(125deg,#e4dccb,#f4eddf)}.card-image>img.card-mascot{object-fit:contain;padding:25px;opacity:.85}.card-type{position:absolute;left:1rem;bottom:1rem;background:#fffdf9ee;padding:.35rem .65rem;border-radius:4px;font-size:.65rem;color:var(--accent);font-weight:600;max-width:85%}.card-select{position:absolute;top:.8rem;right:.8rem;background:var(--white);width:32px;height:32px;border-radius:5px;display:grid;place-items:center;box-shadow:0 2px 5px #0002}.card-select input{width:18px;height:18px;accent-color:var(--accent);cursor:pointer;margin:0}.card-content{padding:1.25rem 1.4rem 1.35rem}.card-content h3{margin:0 0 .7rem}.card-content h3 button{font:inherit;letter-spacing:-.01em;border:0;background:none;padding:0;text-align:left}.card-content h3 button:hover{color:var(--accent)}.card-content>p{font-size:.8rem;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.1em;margin:0 0 1rem}.card-open{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #eee7de;padding-top:.8rem}.empty-state{text-align:center;padding:4rem 1rem}.empty-state p{color:var(--muted)}footer{max-width:1160px;margin:4rem auto 0;padding:2rem 1.3rem 6rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.76rem}footer span:first-child{font-family:Georgia,serif}
.login-panel{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:650px;padding:4rem 1rem;gap:3rem}.login-copy .intro{color:var(--muted);font-size:1.05rem;max-width:480px;line-height:1.8;margin:1.6rem 0 2rem}.login-note{font-size:.78rem;color:var(--muted);margin-top:1.4rem}.login-art{text-align:center;background:radial-gradient(ellipse at center,#eadac2 0%,#f2e8d7 42%,transparent 70%)}.login-art img{width:90%;max-width:460px;height:auto;margin:auto;transform:rotate(-5deg)}.login-art span{display:block;font-family:Georgia,serif;font-style:italic;color:var(--accent);font-size:1.4rem;margin-top:1rem}.loading-panel{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}
.selection-bar{position:fixed;bottom:1.2rem;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:1rem;background:var(--white);border:1px solid var(--line);padding:.8rem 1.2rem;border-radius:12px;box-shadow:0 6px 40px #30241b30;max-width:calc(100% - 2rem);width:max-content}.selection-bar p{font-size:.82rem;white-space:nowrap;margin:0}.selection-bar strong{color:var(--accent)}.toast{position:fixed;top:1rem;left:50%;transform:translateX(-50%);padding:1rem 1.4rem;max-width:min(90vw,600px);border-radius:8px;color:white;background:var(--ink);box-shadow:var(--shadow);z-index:20;font-size:.86rem}
dialog{border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 20px 90px #0004;max-height:90dvh;width:calc(100% - 2rem);padding:2.4rem;overscroll-behavior:contain}dialog::backdrop{background:#2c241ccc;backdrop-filter:blur(3px)}.dialog-close{position:absolute;top:.8rem;right:.8rem;border:1px solid var(--line);background:var(--white);width:38px;height:38px;border-radius:50%;font-size:1.5rem;line-height:1;z-index:2}.recipe-dialog{max-width:1000px;padding:0}.detail-cover{height:320px;background:#e9e0d2}.detail-cover img{height:100%;width:100%;object-fit:cover}.detail-body{padding:2.6rem}.detail-body h1{font-size:clamp(2rem,4vw,3rem);padding-right:1rem}.detail-description{color:var(--muted)}.detail-actions{display:flex;flex-wrap:wrap;gap:.6rem;border-bottom:1px solid var(--line);padding:1rem 0 1.8rem;margin-bottom:2rem}.cooking-columns{display:grid;grid-template-columns:.8fr 1.3fr;gap:3rem}.cooking-columns h2{font-size:1.5rem}.small-note{font-size:.78rem;color:var(--muted)}.ingredient-list,.step-list{list-style:none;margin:1rem 0 0;padding:0}.ingredient-list li{border-bottom:1px solid #eee7de;padding:.8rem 0;font-size:.88rem}.ingredient-list label{display:flex;align-items:start;gap:.75rem;line-height:1.65;cursor:pointer}.ingredient-list input,.step-list input{accent-color:var(--sage);width:17px;height:17px;flex-shrink:0;margin-top:.35rem}.ingredient-list input:checked+span,.step-list input:checked~span:last-child{text-decoration:line-through;color:var(--muted)}.step-list li{margin-bottom:1.2rem}.step-list label{display:flex;align-items:start;gap:.7rem;line-height:1.8;font-size:.88rem;cursor:pointer}.step-number{color:var(--accent);font-family:Georgia,serif;font-size:1.4rem;line-height:1.2;min-width:1.4rem;margin-top:.25rem}.recipe-notes{margin-top:2rem;padding:1.4rem 1.6rem;background:#f1ebdf;border-left:3px solid #b79a75;border-radius:0 6px 6px 0}.recipe-notes h2{font-size:1.4rem}.recipe-notes p{font-size:.88rem}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.detail-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}.detail-gallery img{border-radius:6px;width:100%;height:180px;object-fit:cover}.source-reference{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem;color:var(--muted);font-size:.75rem}.source-reference p{margin:0 0 .3rem}.source-reference button{margin-right:.7rem}
.edit-dialog{max-width:780px}.share-dialog{max-width:560px}.edit-dialog h2,.share-dialog h2{padding-right:1.5rem}form>label,fieldset{display:block;margin:1.25rem 0}form label,.form-grid label{font-size:.83rem;font-weight:600}form input:not([type=checkbox]):not([type=file]),form textarea,form select{display:block;width:100%;padding:.8rem .9rem;margin-top:.5rem;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);font-size:.9rem;font-weight:400}textarea{resize:vertical;line-height:1.6}.label-hint{display:block;font-size:.74rem;font-weight:400;color:var(--muted);line-height:1.5;margin-top:.3rem}.form-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1rem}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:.8rem;margin-top:1.8rem;flex-wrap:wrap}.form-actions>.danger{margin-right:auto}fieldset{border:1px solid var(--line);padding:1rem;border-radius:6px}legend{font-size:.83rem;font-weight:600}.edit-images{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.edit-image{width:145px}.edit-image img{width:145px;height:110px;object-fit:cover;border-radius:5px}.edit-image>span{display:block;font-size:.7rem;color:var(--muted);margin:.5rem 0}.edit-image>div{display:flex;gap:.7rem}.edit-image button{font-size:.7rem}.file-button{position:relative;overflow:hidden;cursor:pointer}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.file-button:focus-within{outline:3px solid #32699a;outline-offset:3px}.notice{background:#eee8d9;border:1px solid #ded0b4;border-radius:6px;padding:1rem;font-size:.8rem;line-height:1.7;margin-top:1.2rem}.notice-error,.form-error{color:#9b3021;background:#fcf0ec;border-color:#e4b4a7}.form-error{padding:.9rem;border-radius:5px;font-size:.83rem;line-height:1.6}#upload-status{font-size:.78rem;color:var(--muted)}
.paper-panel{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:2rem;box-shadow:var(--shadow)}.paper-panel>p{font-size:.88rem;color:var(--muted)}.section-list{display:grid;gap:1.5rem;margin-top:2rem}.section-heading{display:flex;justify-content:space-between;align-items:start;gap:1rem}.section-text{font-size:.95rem;line-height:1.85;color:var(--ink)!important}.section-image{max-height:450px;object-fit:contain;margin:1.5rem auto}.original-intro{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:2rem 0;color:var(--muted);font-size:.88rem}.original-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem}.original-card{padding:.7rem;background:var(--white);border:1px solid var(--line);border-radius:8px;text-align:center;transition:transform .2s}.original-card:hover{transform:translateY(-3px)}.original-card img{width:100%;aspect-ratio:.77;object-fit:contain;background:white}.original-card span{display:block;font-size:.76rem;margin:.7rem 0 .2rem;color:var(--muted)}.page-dialog{max-width:1000px;padding:1rem}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--white);position:sticky;top:-1rem;padding:.5rem 0 1rem}.page-toolbar h2{font-size:1rem;margin:0}.page-dialog>img{width:100%;height:auto}.access-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin:2rem 0}.invitation-panel h2{font-size:1.5rem}.invitation-list{list-style:none;padding:0;margin:0}.invitation-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--line);font-size:.84rem}.invitation-list li>div>span{display:block;color:var(--muted);font-size:.78rem;margin-top:.3rem}.invitation-state{font-size:.72rem;background:#edf0e7;color:var(--sage);padding:.4rem .6rem;border-radius:4px}#invite-result{font-size:.84rem;line-height:1.6;overflow-wrap:anywhere}
.shared-login{max-width:420px;margin-top:2rem;border-top:1px solid var(--line);padding-top:1rem}.shared-login h2{font-size:1.4rem}.shared-guest-panel{margin-top:2rem}.shared-guest-panel label{max-width:600px}
.cookbook-subsection{margin:1.5rem 0 0;padding:1.2rem 0 0 1.2rem;border-top:1px solid var(--line)}.cookbook-recipe-list{list-style:none;padding:0 0 0 1.2rem;margin:.5rem 0 1.2rem}.cookbook-recipe-list li{margin:.15rem 0}.cookbook-recipe-list button{text-align:left;font-size:.9rem;line-height:1.6;padding:.4rem 0;overflow-wrap:anywhere}.section-notes{margin-top:1rem;color:var(--muted);font-size:.8rem}.section-notes summary{cursor:pointer;padding:.4rem 0}.section-notes summary:hover{color:var(--accent)}
@media(min-width:1400px){.recipe-grid{gap:1.8rem}.card-image{height:245px}}@media(max-width:1100px){.site-header{gap:1rem;flex-wrap:wrap}.site-header nav{order:3;width:100%;justify-content:center;border-top:1px solid var(--line);padding-top:.5rem}.hero-chef{margin-right:0}.recipe-grid{gap:1rem}.card-content{padding:1rem}.card-image{height:190px}}
@media(max-width:760px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:2.5rem 0;gap:1rem}.hero-chef{width:150px;height:150px}.hero h1{font-size:2.9rem}.hero .eyebrow{font-size:.57rem}.original-grid{grid-template-columns:repeat(3,1fr);gap:.8rem}.login-panel{grid-template-columns:1fr;gap:1rem;padding:3rem 0;text-align:center;min-height:0}.login-copy .intro{margin-left:auto;margin-right:auto}.login-art{grid-row:1}.login-art img{max-width:210px}.login-art span{display:none}.login-copy h1{font-size:3.3rem}.cooking-columns{grid-template-columns:1fr;gap:2rem}.detail-body{padding:1.6rem}.detail-cover{height:250px}.access-layout{grid-template-columns:1fr}.selection-bar{gap:.5rem;padding:.65rem .8rem;flex-wrap:wrap;justify-content:center}.selection-bar .button{font-size:.75rem;padding:.65rem .8rem}.account>span{max-width:110px}.brand strong{font-size:1.3rem}.brand img{width:52px;height:52px}.brand small{font-size:.5rem}.search-row{flex-wrap:wrap;gap:.8rem}.search-field{max-width:none;flex-basis:100%}.sort-field{margin-left:0}.collection-heading h2{font-size:1.65rem}.collection-heading .button{font-size:.75rem}.detail-gallery{grid-template-columns:repeat(2,1fr)}.paper-panel{padding:1.4rem}.original-intro{align-items:start;flex-direction:column}}
@media(max-width:480px){.hero-chef{width:100px;height:100px}.hero h1{font-size:2.4rem}.hero p:not(.eyebrow){font-size:.8rem}.hero .eyebrow{font-size:.52rem;letter-spacing:.1em}.recipe-grid{gap:.8rem}.card-image{height:145px}.card-content h3{font-size:1.15rem}.card-content{padding:.85rem}.card-content>p{font-size:.73rem}.card-open{font-size:.72rem}.card-type{left:.5rem;bottom:.6rem;font-size:.56rem;padding:.3rem .45rem}.card-select{top:.5rem;right:.5rem;width:28px;height:28px}.categories{gap:.4rem}.category{font-size:.72rem;padding:.5rem .7rem}.category span{margin-left:.3rem}.site-header{padding:1rem;gap:.6rem}.account>span{display:none}.site-header nav{gap:1rem}.nav-link{font-size:.74rem}.original-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.edit-dialog,.share-dialog{padding:1.5rem}.selection-bar p{font-size:.74rem}footer{flex-direction:column}.section-heading{flex-wrap:wrap}.detail-actions .button{font-size:.75rem;padding:.7rem}.detail-cover{height:190px}.detail-gallery img{height:130px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.source-links{margin-top:1.5rem}.source-links h2{font-size:1.4rem}.source-links p{font-size:.82rem;overflow-wrap:anywhere}
.ingredient-list .ingredient-heading{font-weight:700;color:var(--accent);padding-top:1.3rem;border-bottom:0}
@media print{.site-header,footer,.selection-bar,.dialog-close,.detail-actions,.source-reference,.small-note{display:none!important}body{background:white}dialog[open]{position:static;max-height:none;width:100%;border:none;box-shadow:none;padding:0}dialog::backdrop{background:white}body:has(#recipe-dialog[open]) main{display:none}.detail-body{padding:0}.cooking-columns{display:block}.ingredient-list input,.step-list input{display:none}}
