:root{color-scheme:light;--paper:#fafaf8;--ink:#20251f;--muted:#586158;--line:#d9ded5;--accent:#ac411f;--green:#283c32;--soft:#f1f3ed;font:100%/1.5 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);overflow-wrap:anywhere}
[hidden]{display:none!important}
h1,h2,h3,p,ul,ol,figure{margin:0}
button,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default;opacity:.58}
:focus-visible{outline:3px solid #aa603c;outline-offset:3px}
.mast{border-bottom:1px solid var(--line)}
.mast-inner{max-width:1032px;margin:auto;padding:16px clamp(18px,4vw,44px);display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:68px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:1.12rem;font-weight:690;letter-spacing:-.045em}
.brandmark{position:relative;display:block;width:32px;height:32px;background:var(--green);border-radius:9px}
.brandmark i{position:absolute;top:8px;left:10px;width:8px;height:17px;border-radius:6px 1px 6px 1px;background:#f3f1dd;transform:rotate(-32deg)}
.brandmark i:nth-child(2){left:14px;top:7px;transform:rotate(0deg);background:#c6d8ae}
.brandmark i:nth-child(3){left:17px;top:10px;height:15px;transform:rotate(33deg);background:#91b491}
.new{display:flex;gap:5px;align-items:center;background:none;border:1px solid var(--line);padding:7px 12px;border-radius:30px;min-height:40px;font-size:.88rem;font-weight:600}
.new span{font-size:1.15rem;line-height:1}
main{max-width:860px;margin:auto;padding:0 clamp(18px,4vw,42px) 42px}
.start{padding:clamp(38px,7vw,76px) 0 clamp(28px,5vw,48px)}
h1{font-family:"Iowan Old Style","Baskerville","Georgia",serif;font-size:clamp(2.65rem,6.3vw,4.7rem);font-weight:500;line-height:1.02;letter-spacing:-.055em}
.start h1{margin-bottom:clamp(22px,3vw,32px)}
.composer{display:flex;align-items:flex-end;gap:10px;margin:0;border:1px solid #b8c2b5;border-radius:18px;padding:12px;background:#fff;box-shadow:0 3px 9px #20281c09}
.composer:focus-within{border-color:#637761;box-shadow:0 0 0 2px #64785f20}
.composer textarea{display:block;resize:none;flex:1;min-width:0;padding:3px 3px 0;border:0;background:none;outline:none;line-height:1.45;font-size:1rem;max-height:8rem}
.composer textarea::placeholder{color:#6b7169}
.submit{border:0;background:var(--green);color:white;border-radius:12px;min-width:64px;min-height:42px;font-weight:650;padding:8px 17px}
.status{color:var(--muted);font-size:.9rem}.status:not(:empty){margin:9px 2px 0}.status.error{color:#992f1a}
#reconnect{margin-top:12px}#reconnect label{display:block;margin-bottom:5px;font-weight:600}
#reconnect div{display:flex;flex-wrap:wrap;gap:8px}#reconnect input{flex:1 1 12em;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit}
h2{font-size:clamp(1.3rem,2.5vw,1.65rem);font-weight:650;line-height:1.2;letter-spacing:-.04em}
.explore>h2{margin-bottom:16px}
.featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,2.5vw,20px)}
.journey{border:1px solid var(--line);border-radius:15px;background:white;padding:0;text-align:left;overflow:hidden;display:flex;flex-direction:column}
.journey img{width:100%;height:auto;aspect-ratio:1.92;object-fit:cover;background:var(--soft);display:block}
.journey-copy{display:flex;flex-direction:column;gap:7px;padding:clamp(12px,2.4vw,20px)}
.category{display:block;font-size:.83rem;font-weight:620;color:var(--accent)}
.journey strong{font-family:"Iowan Old Style","Baskerville","Georgia",serif;font-size:clamp(1.14rem,2.6vw,1.68rem);line-height:1.13;font-weight:530;letter-spacing:-.035em}
.other-questions{margin-top:17px;border-top:1px solid var(--line)}
.other-questions button{width:100%;min-height:68px;display:flex;align-items:center;gap:14px;padding:10px 2px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line)}
.subject-icon{display:grid;place-items:center;background:#edf0e7;border-radius:10px;width:39px;height:39px;flex-shrink:0;color:#46604a;font-size:1.55rem}
.other-questions .category{color:var(--muted);font-size:.8rem}.other-questions strong{font-size:1rem;font-weight:560;letter-spacing:-.018em}
@media(hover:hover){.journey:hover,.other-questions button:hover,.suggest:hover,.new:hover{background:#f1f3ed}.submit:hover{background:#3c5144}}
#answer{padding-top:clamp(30px,5vw,52px);padding-bottom:var(--reply-space,110px)}
.answer-question{font-size:.91rem;font-weight:570;color:var(--muted);margin-bottom:12px}
#answer h1{font-size:clamp(1.45rem,3.9vw,2.45rem);line-height:1.17;letter-spacing:-.028em;max-width:38ch}
#answer h1:focus{outline:none}
.answer-section{margin-top:clamp(26px,4.8vw,42px)}
.section-sub,.detail{color:var(--muted)}.section-sub{margin-top:5px}
.section-body{margin-top:13px}.section-body:first-child{margin-top:0}
.prose{white-space:pre-line;max-width:66ch}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 9px}
.visual-card{min-width:0;text-align:center}
.art{display:grid;place-items:center;background:var(--soft);border-radius:12px;aspect-ratio:1;overflow:hidden;margin-bottom:7px}
.art img,.tile{display:block;width:83%;height:83%;object-fit:contain}
.tile{background-image:url('/pantry.png');background-size:400% 400%;background-repeat:no-repeat}
.visual-card small{display:block;color:var(--muted);font-size:.83rem;margin-top:4px;line-height:1.28}
.rail{display:flex;gap:7px;overflow-x:auto;padding:4px 2px 8px}
.rail button{min-height:44px;min-width:44px;flex:none;background:transparent;border:1px solid var(--line);color:var(--muted);padding:5px 12px;border-radius:30px;font-size:.89rem}
.rail [aria-current=step]{background:var(--green);border-color:var(--green);color:#fff}
.track{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:5px 0 10px;scrollbar-width:thin}
.track:after{content:"";flex:0 0 max(0px,calc(100% - min(86%, 32rem) - 12px))}
.step-card{flex:0 0 min(86%,32rem);background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;scroll-snap-align:start;min-width:0}
.step-card h3,.feature-list h3{font-size:1.04rem;line-height:1.3;letter-spacing:-.02em}
.step-card .tile{width:64px;height:64px;margin-bottom:7px}.step-card p{margin-top:6px}
.highlights{color:var(--accent);font-weight:620;font-size:.88rem}
.feature-list,.checklist,.followups{display:grid;gap:0;list-style:none;padding:0}
.feature-list li,.checklist li{border-bottom:1px solid var(--line);padding:13px 0}.feature-list li:first-child,.checklist li:first-child{padding-top:0}
.feature-list p{margin-top:3px}
.suggest{display:block;width:100%;text-align:left;min-height:48px;margin-top:7px;padding:12px 14px;background:white;border:1px solid var(--line);border-radius:10px}
.checklist label{display:flex;align-items:baseline;gap:10px;cursor:pointer}.checklist input{accent-color:var(--green)}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.fact{background:var(--soft);border-radius:12px;padding:13px}.fact strong{display:block}
.budget{border:1px solid var(--line);border-radius:16px;padding:19px;background:white}
.total{display:block;font-size:clamp(2rem,5vw,3rem);font-weight:650;letter-spacing:-.055em;line-height:1.15;margin:4px 0 16px}
.chart-row{margin-top:12px}.bar-label{display:flex;justify-content:space-between;gap:8px}
.bar{background:#e8ede6;height:6px;border-radius:6px;overflow:hidden;margin-top:6px}.bar i{display:block;height:100%;background:#6a896b}
.stepper{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--soft);border-radius:13px;padding:12px 14px}
.controls{display:inline-flex;align-items:center;gap:8px}.controls button{background:white;border:1px solid var(--line);border-radius:10px;min-width:44px;height:44px;font-size:1.25rem}.controls output{min-width:2ch;text-align:center;font-weight:650;font-variant-numeric:tabular-nums}
#reply{position:fixed;z-index:3;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--line);padding:9px max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
#reply>*{max-width:776px;margin-left:auto;margin-right:auto}#reply textarea{max-height:4.5rem}#reply .composer{border-radius:15px;align-items:center;padding:7px 8px 7px 12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:680px){.card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.featured{gap:18px}.other-questions button{min-height:72px}}
@media(max-width:480px){.mast-inner{min-height:57px;padding-block:10px}.journey img{aspect-ratio:1.42}.start{padding-top:34px}.new{min-height:38px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.visual-card small{font-weight:450}
.card-grid:not(.ingredients){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px 12px}
.visual-card{border:0;background:transparent;text-align:left;padding:0;color:inherit;border-radius:12px;cursor:pointer}
.card-title{display:block;font-size:1rem;font-weight:650;line-height:1.28;letter-spacing:-.015em}
.visual-card small{font-size:.89rem;line-height:1.35}.ingredients .visual-card{text-align:center}
.visual-card:focus-visible .card-title,.visual-card:hover .card-title{text-decoration:underline;text-underline-offset:3px}
.art.photograph img{width:100%;height:100%;object-fit:cover}
.art.logo{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}.art.logo img{width:62%;height:62%;object-fit:contain}
.art.illustrated{background:#edf0e7}.art.kind-place{background:#e1ebe5}.art.kind-event{background:#f5ecdf}
.entity-symbol{font-size:clamp(2.4rem,10vw,4.2rem);line-height:1}
.entity-back{display:block;margin:0 0 18px;border:none;background:transparent;color:var(--green);padding:8px 0;text-decoration:underline;text-underline-offset:3px;font-size:.95rem}
#answer>.entity-media{margin-top:20px;max-width:42rem}
#answer>.entity-media .art{aspect-ratio:1.9}
.visual-card .tile{width:83%;height:83%}#answer>.entity-media .tile{width:auto;height:90%;aspect-ratio:1}
.photo-credit{font-size:.8rem;color:var(--muted);line-height:1.45}.photo-credit a{color:inherit}
.entity-info{max-width:62ch}.entity-info section{margin-top:23px}.entity-info .prose{margin-top:8px}
.parent-query{color:var(--muted);margin-top:8px;font-size:.94rem}
@media(min-width:680px){.card-grid:not(.ingredients){grid-template-columns:repeat(3,minmax(0,1fr))}}
a.visual-card{display:block;text-decoration:none}
.fallback .prose+.prose{margin-top:8px}
.step-art{display:block;width:min(46%,152px);aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--soft);margin-bottom:11px}
.step-art img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.step-art.drawn img{opacity:1}
.entity-lead{font-size:1.16rem;line-height:1.45;letter-spacing:-.014em;margin-top:20px}
.entity-detail>.detail{margin-top:18px}
.sources{list-style:none;padding:0;font-size:.93rem;max-width:66ch}
.sources li{border-bottom:1px solid var(--line);padding:10px 0}.sources li:first-child{padding-top:0}
.sources a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--ink);font-weight:560;text-decoration:underline;text-decoration-color:#b8c2b5;text-underline-offset:3px}
.source-site{display:block;color:var(--muted);font-size:.83rem;margin-top:2px}
@media(hover:hover){.sources a:hover{text-decoration-color:currentColor}}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:16px}
.share-button{display:inline-flex;align-items:center;background:white;border:1px solid #b8c2b5;border-radius:30px;min-height:40px;padding:7px 16px;font-size:.9rem;font-weight:620}
.share.small{margin:12px 0 0}.share.small .share-button{min-height:34px;padding:5px 12px;font-size:.84rem;font-weight:580}
.share-note{color:var(--muted);font-size:.86rem}
.shared-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;background:var(--soft);border-radius:12px;padding:10px 14px;margin-bottom:20px;font-size:.93rem;color:var(--muted)}
.ask-own{border:0;background:var(--green);color:#fff;border-radius:30px;min-height:36px;padding:6px 14px;font-size:.88rem;font-weight:620}
@media(hover:hover){.share-button:hover{background:#f1f3ed}.ask-own:hover{background:#3c5144}}
/* The waiting page: the question, a line saying what is happening and the shape of the page to come. */
main{transition:opacity .17s ease}
main.leaving{opacity:0}
main.entering{animation:enter .32s cubic-bezier(.2,.7,.3,1) backwards}
#answer.arriving>:not(.answer-question){animation:arrive .36s ease backwards}
@keyframes enter{from{opacity:0;transform:translateY(8px)}}
@keyframes arrive{from{opacity:0}}
#answer .answer-question:focus{outline:none}
.thinking{display:flex;align-items:center;gap:11px;min-height:30px;color:var(--green);font-size:.95rem;font-weight:600;letter-spacing:-.012em}
.thinking-mark{position:relative;flex:none;width:22px;height:22px;border-radius:7px;background:var(--soft)}
.thinking-mark i{position:absolute;top:5px;left:7px;width:5px;height:11px;border-radius:5px 1px 5px 1px;background:var(--green);transform:rotate(-32deg);animation:leaf 1.5s ease-in-out infinite}
.thinking-mark i:nth-child(2){left:9.5px;top:4px;transform:rotate(0deg);background:#6a896b;animation-delay:.2s}
.thinking-mark i:nth-child(3){left:12px;top:6px;height:10px;transform:rotate(33deg);background:#91b491;animation-delay:.4s}
@keyframes leaf{0%,100%{opacity:.3}40%{opacity:1}}
.step-label{display:block;animation:step-in .34s cubic-bezier(.2,.7,.3,1) backwards}
.thinking.holding .step-label{animation:step-in .34s cubic-bezier(.2,.7,.3,1) backwards,hold 2.4s ease-in-out .4s infinite}
@keyframes step-in{from{opacity:0;transform:translateY(7px)}}
@keyframes hold{50%{opacity:.5}}
.skeleton{margin-top:24px}
.skeleton i{display:block;border-radius:7px;background:#e9ece4 linear-gradient(100deg,#e9ece400 35%,#f6f7f2 50%,#e9ece400 65%) 0 0/300% 100% no-repeat;animation:shimmer 1.8s linear infinite}
@keyframes shimmer{from{background-position:100% 0}to{background-position:0 0}}
.sk-headline{max-width:38ch}
.sk-headline i{height:clamp(1.2rem,3.2vw,1.95rem);border-radius:8px}.sk-headline i+i{margin-top:11px}.sk-headline i:nth-child(2){width:86%}.sk-headline i:nth-child(3){width:48%}
.sk-section{margin-top:clamp(30px,4.8vw,42px)}
.skeleton .sk-title{height:1.25rem;width:40%}.skeleton .sk-sub{height:.8rem;width:68%;margin-top:11px}
.sk-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px;margin-top:17px}
.skeleton .sk-art{aspect-ratio:1;border-radius:12px;margin-bottom:10px}
.skeleton .sk-caption{height:.75rem;width:78%;margin:7px auto 0}.skeleton .sk-caption.short{width:50%}
.sk-lines{max-width:66ch;margin-top:6px}
.sk-lines i{height:.78rem;margin-top:12px}.sk-lines i:nth-child(2){width:94%}.sk-lines i:nth-child(3){width:97%}.sk-lines i:nth-child(4){width:58%}
.trouble{margin-top:20px;border:1px solid #e6cfc4;background:#fbf4f0;border-radius:16px;padding:16px 18px}
.trouble strong{display:block;font-size:1.06rem;font-weight:650;letter-spacing:-.02em;color:#8a2f16}
.trouble p{margin-top:4px;color:var(--ink)}
.trouble-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.retry,.go-back{border-radius:30px;min-height:44px;padding:9px 20px;font-size:.95rem;font-weight:640}
.retry{border:0;background:var(--green);color:#fff}
.go-back{background:#fff;border:1px solid #b8c2b5}
@media(hover:hover){.retry:hover{background:#3c5144}.go-back:hover{background:#f1f3ed}}
@media(prefers-reduced-motion:reduce){
  main{transition:none}
  main.entering,#answer.arriving>*,.thinking-mark i,.step-label,.thinking.holding .step-label,.skeleton i{animation:none}
  .thinking-mark i{opacity:1}
}
