/* styles.css — palettes/type tokens measured from the prototype (PARITY.md). */
:root{
  --bg:#fbf6ee; --surface:#fffdf8; --surface-alt:#f4ecdd; --text:#2b211a; --dim:#8a7b6b;
  --border:#e7dcc8; --accent:#c14a21; --accent-soft:#f9e8df; --olive:#5f7247; --olive-soft:#ebf0e1;
  --radius:14px;
  --font-display:"DM Serif Display",Georgia,"Times New Roman",serif;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#1d1712; --surface:#2a211a; --surface-alt:#362a20; --text:#f3e9dc; --dim:#b3a08c;
    --border:#4a3a2c; --accent:#e87c4f; --accent-soft:#472b1e; --olive:#a3b884; --olive-soft:#33402a; }
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:24px}
#app{max-width:640px;margin:0 auto;padding:16px 16px 48px}
h1{font-family:var(--font-display);font-size:30px;line-height:36px;margin:8px 0 4px}
h2{font-family:var(--font-display);font-size:24px;line-height:32px;margin:24px 0 8px}
h3{font-size:18px;line-height:28px;margin:16px 0 6px}
.dim{color:var(--dim)} .small{font-size:12px;line-height:16px} .sm{font-size:14px;line-height:20px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin:10px 0}
button{font:inherit;color:var(--text);background:var(--surface-alt);border:1px solid var(--border);
  border-radius:999px;padding:8px 16px;cursor:pointer}
button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
button.linklike{background:none;border:none;color:var(--accent);text-decoration:underline;font-weight:500;padding:4px}
input,textarea,select{font:inherit;width:100%;padding:10px;border:1px solid var(--border);
  border-radius:10px;background:var(--surface);color:var(--text);margin:4px 0 10px}
label{font-size:14px;font-weight:600;display:block;margin-top:8px}
.row{display:flex;gap:8px;align-items:center} .row.wrap{flex-wrap:wrap}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden}
.seg button{border:none;border-radius:0;background:var(--surface)}
.seg button.on{background:var(--accent);color:#fff}
.daystrip{display:flex;gap:6px;margin:10px 0}
.daystrip button{flex:1;padding:8px 2px;border-radius:12px;font-size:14px;position:relative}
.daystrip button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.dot{position:absolute;left:50%;transform:translateX(-50%);bottom:4px;width:6px;height:6px;border-radius:50%;background:var(--olive)}
.daystrip button.on .dot{background:#fff}
.flag{background:var(--accent-soft);border-radius:10px;padding:8px 10px;margin:6px 0;font-size:14px}
.meal-link{color:var(--accent);text-decoration:underline;font-weight:500;background:none;border:none;padding:0;cursor:pointer;font-size:16px}
.cook-row{margin-top:6px}
.cook-row label{margin-top:0}
.cook-row select{flex:1;margin:0}
/* Recipe-match dropdown: INVERTED dark floating card (PARITY rows 5/21) —
   never styled like a text input; may fully cover the Notes field. */
.suggest{background:var(--text);color:var(--bg);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.35);
  outline:2px solid var(--border);margin-top:6px;overflow:hidden;position:relative;z-index:5}
.suggest .suggest-head{font-size:12px;padding:8px 12px;opacity:.75}
.suggest button{display:block;width:100%;text-align:left;background:none;border:none;color:var(--bg);
  padding:14px 12px;min-height:48px;border-top:1px solid rgba(128,128,128,.25);border-radius:0}
.suggest button .cat{opacity:.7;font-size:12px}
.picker{min-height:80vh;display:flex;flex-direction:column;justify-content:center;gap:14px;text-align:center}
.picker button{font-size:20px;padding:18px;border-radius:16px}
.update-banner{position:fixed;left:12px;right:12px;bottom:12px;background:var(--text);color:var(--bg);
  border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;z-index:50}
.update-banner button{background:var(--accent);color:#fff;border:none}
.progress{height:8px;background:var(--surface-alt);border-radius:99px;overflow:hidden}
.progress>div{height:100%;background:var(--accent)}
.check{width:20px;height:20px;accent-color:#c14a21}
footer{margin-top:32px;text-align:center}
.warn{background:var(--accent-soft);border-radius:10px;padding:8px 10px;font-size:14px}
iframe.pdf{width:100%;height:70vh;border:1px solid var(--border);border-radius:10px}
