@font-face{font-family:"Work Sans";src:url("fonts/work-sans-regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Merchant;src:local("Merchant Black"),local("Merchant-Black");font-weight:900;font-display:swap}
:root{color-scheme:light;--ink:#522517;--muted:#684943;--paper:#fffcf6;--back:#f6f5ec;--line:#e3d8cd;--accent:#f6f5ec;--brown:#522517;--rose:#8d464b}
*{box-sizing:border-box}body{margin:0;background:var(--back);color:var(--ink);font:16px/1.65 "Work Sans",system-ui,-apple-system,sans-serif}
.wrap{width:min(1080px,calc(100% - 38px));margin-inline:auto}.site-header{border-bottom:1px solid var(--line)}.header-inner{height:67px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:1.3rem;font-weight:800}.mark{display:grid;place-items:center;background:var(--brown);color:#f6f5ec;width:34px;height:34px;border-radius:10px}.device{font-size:.78rem;letter-spacing:.04em;color:var(--muted);border:1px solid var(--line);padding:3px 10px;border-radius:20px;white-space:nowrap}
.hero{margin:16px 0 14px;padding:16px 23px;background:var(--brown);color:#f6f5ec;display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:14px;align-items:center;border-radius:22px;overflow:hidden}.art{width:100%;height:98px;stroke:#e1b9b5;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;opacity:.82}.eyebrow,.kicker{margin:0 0 4px;font-size:.8rem;font-weight:750;letter-spacing:.04em}.eyebrow{color:var(--accent)}h1{font-size:clamp(1.55rem,4vw,2.3rem);line-height:1.12;margin:3px 0 5px;letter-spacing:-.035em}.intro{color:#f6f5ec;margin:0;max-width:590px;font-size:.9rem;line-height:1.45}
.grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;align-items:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:21px 24px}.kicker{color:var(--rose)}h2{font-size:1.5rem;line-height:1.3;margin:0 0 12px}.description,.technique,.footnote,footer{color:var(--muted);font-size:.87rem}.description{margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:11px 12px;margin:14px 0 18px}label,legend{font-weight:650;font-size:.9rem}fieldset{border:0;padding:0;margin:0}legend{margin-bottom:5px}.segments{display:flex;gap:8px}.segments label{border:1px solid var(--line);border-radius:8px;padding:5px 12px;cursor:pointer}.segments label:has(input:checked){background:#f4e5e3;border-color:#bd8988}.segments input{accent-color:var(--rose);margin-inline:0 3px}input[type=text],input[type=number]{display:block;width:100%;margin-top:4px;background:#fff;color:var(--ink);border:1px solid #bda69d;border-radius:8px;font:inherit;padding:6px;min-height:41px}button{font:inherit;border:1px solid #bda69d;color:var(--brown);background:#fbf1ec;padding:6px 13px;border-radius:8px;font-weight:700;cursor:pointer}.primary{background:var(--brown);border-color:var(--brown);color:#fff;padding:9px 16px;display:flex;gap:14px;align-items:center}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:13px 0}.stats div{background:#f6f5ec;padding:5px 8px;border-radius:7px}.stats dt{font-size:.72rem;color:var(--muted)}.stats dd{margin:0;font-weight:730}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:start;border-bottom:1px solid var(--line);padding:6px 3px}th{color:var(--muted)}.technique,.footnote{margin:9px 0}.actions{display:flex;gap:7px;flex-wrap:wrap}.footnote{border-top:1px solid var(--line);padding-top:10px;margin-bottom:0}#status,#form-error{margin:7px 0;font-size:.85rem}#status:empty,#form-error:empty{display:none}#form-error{color:#962e20}footer{margin:14px 0 26px}.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}:focus-visible{outline:3px solid #8d464b;outline-offset:3px}
@media(max-width:670px){.wrap{width:calc(100% - 24px)}.hero{margin-top:12px;padding:13px 16px;grid-template-columns:minmax(0,1fr) 70px}.art{height:65px}.intro{font-size:.88rem}.grid{grid-template-columns:1fr}.card{padding:17px}.site-header .header-inner{height:55px}}@media print{.site-header,.hero,.input-card,.actions,footer{display:none}.grid{display:block}.card{border:0}body{background:white}}
.share-link{display:inline-block;margin-top:9px;padding:6px 12px;border-radius:0;background:#000;color:#fff;font-weight:750;text-decoration:none}.share-link[hidden]{display:none}button:disabled{opacity:.65;cursor:wait}
.brew-feedback{margin-top:20px}
.brew-feedback h3{font-size:1rem;margin:0 0 8px}
.brew-feedback select,.brew-feedback textarea{display:block;width:100%;margin:4px 0 10px;background:#fff;color:var(--ink);border:1px solid #bda69d;border-radius:8px;font:inherit;padding:7px;min-height:41px}
.brew-feedback textarea{resize:vertical}
.brew-feedback .description:not(:empty){margin-top:8px}
@media print{.brew-feedback{display:none}}
.brand-name{display:grid;line-height:1.1;font-size:1.05rem;white-space:nowrap}.brand-name small{font-size:.72rem;font-weight:650;color:var(--muted);text-align:start;margin-top:3px}

.scan{margin:0 0 16px;padding:13px;border:1px dashed #bda69d;border-radius:11px;background:#fbf1ec}.scan h3{font-size:1rem;margin:0 0 3px}.photo-actions{margin-top:9px}.photo-button{position:relative;display:inline-block;overflow:hidden;padding:5px 11px;border:1px solid #bd8988;border-radius:8px;background:#f4e5e3;cursor:pointer}.photo-button:focus-within{outline:3px solid #8d464b}.photo-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.scan img{display:block;max-width:100%;max-height:145px;margin-top:9px;border-radius:8px}.scan [hidden]{display:none}#scan-status,#roast-age{margin:7px 0;color:var(--rose);font-size:.85rem}#scan-status:empty,#roast-age:empty{display:none}.scan pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.8rem;margin:4px 0}input[type=date]{display:block;width:100%;margin-top:4px;background:#fff;color:var(--ink);border:1px solid #bda69d;border-radius:8px;font:inherit;padding:6px;min-height:41px}label small{color:var(--muted);font-weight:400}

.header-tools,.languages{display:flex;align-items:center;gap:8px}
.languages{gap:2px;padding:2px;border:1px solid var(--line);border-radius:10px}
.languages button{font-size:.8rem;min-height:34px;border:0;background:transparent;padding:3px 8px}
.languages button[aria-pressed=true]{background:var(--brown);color:var(--back)}
.brand-name{white-space:nowrap;font-family:Merchant,Georgia,serif;font-weight:900}
.brand-name small{font:400 .73rem "Work Sans",system-ui,sans-serif}
html[lang=en] h1,html[lang=en] h2{font-family:Merchant,Georgia,serif;font-weight:900}
h1{max-width:530px}
#recipe-assumptions{margin-top:8px;color:var(--rose)}
[dir=ltr] .primary span[aria-hidden]{transform:scaleX(-1)}
@media(max-width:530px){.hero{grid-template-columns:1fr}.art{display:none}.header-tools .device:not(a){display:none}.fields{grid-template-columns:1fr}.header-inner{gap:6px}.brand{gap:6px}}

.search-field{position:relative;min-width:0}
.suggestions{position:absolute;z-index:2;inset-inline:0;top:100%;margin:3px 0 0;padding:4px;list-style:none;max-height:180px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 15px #52251722}
.suggestions button{display:block;width:100%;min-height:36px;padding:5px 8px;border:0;border-radius:4px;background:transparent;text-align:start;font-size:.9rem;font-weight:400;touch-action:manipulation}
.suggestions button:hover,.suggestions [aria-selected=true]{background:#f4e5e3}
@media(pointer:coarse){.suggestions button{min-height:44px}}
.pour-technique{display:block;color:var(--muted);font-size:.74rem}
