/* Layout: one phone-width column, bottom tab bar, full-screen readers slide over it */
:root{
  --ground:#F1EEE2; --card:#FFFDF7; --ink:#2E2822; --muted:#766C61; --line:#E2DACA;
  --heart:#BE4E2C; --heart-soft:#F6DFD3; --honey:#D9962E; --honey-soft:#F7E8C8; --sage:#566F4D; --sage-soft:#DEE6D5;
  --display:"Yeseva One", Georgia, "Times New Roman", serif;
  --body:"Mulish", "Segoe UI", system-ui, sans-serif;
  --r:18px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --ground:#1C1915; --card:#27221D; --ink:#F2E9D8; --muted:#B2A693; --line:#3A332B;
  --heart:#E57A55; --heart-soft:#4A2B20; --honey:#EDB65A; --honey-soft:#43361E; --sage:#9DBA90; --sage-soft:#2B3427; color-scheme:dark}}
:root[data-theme="dark"]{
  --ground:#1C1915; --card:#27221D; --ink:#F2E9D8; --muted:#B2A693; --line:#3A332B;
  --heart:#E57A55; --heart-soft:#4A2B20; --honey:#EDB65A; --honey-soft:#43361E; --sage:#9DBA90; --sage-soft:#2B3427; color-scheme:dark}
html,body{height:100%}
body{background:var(--ground);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.55}
*{box-sizing:border-box}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid var(--honey);outline-offset:2px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.15;text-wrap:balance;margin:0}
p{margin:0}
.app{max-width:460px;margin:0 auto;min-height:100%;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:20px 110px;display:flex;flex-direction:column;gap:22px}


.eyebrow{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.view{display:flex;flex-direction:column;gap:22px}
.greet h1{font-size:34px}
.greet p{color:var(--muted);margin-top:6px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.today-dev{display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:center;background:var(--heart-soft);border:0}
.today-dev img{width:96px;height:120px;object-fit:cover;border-radius:14px}
.today-dev h2{font-size:22px;margin-top:4px}
.today-dev .theme{color:var(--muted);font-size:14px;margin-top:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:11px 18px;font-weight:800;font-size:15px;background:var(--heart);color:#FFF8F1;text-decoration:none}
.btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn.small{padding:8px 14px;font-size:14px}
.checkin h3{font-size:20px}
.moods{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.mood{border:1.5px solid var(--line);background:transparent;border-radius:14px;padding:10px 12px;text-align:left;font-weight:700;font-size:15px}
.mood small{display:block;font-weight:400;color:var(--muted);font-size:12.5px}
.mood[aria-pressed="true"]{border-color:var(--sage);background:var(--sage-soft)}
.mood-reply{margin-top:12px;font-size:14.5px;color:var(--sage);font-weight:700}
.row{display:flex;gap:10px;align-items:center;justify-content:space-between}
.progress{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.progress i{display:block;height:100%;background:var(--honey);border-radius:99px}
.sec-h{display:flex;justify-content:space-between;align-items:baseline}
.sec-h h2{font-size:22px}
.link{background:none;border:0;padding:0;color:var(--heart);font-weight:800;font-size:14px}
.heart-strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.heart-strip button{flex:0 0 78px;border:0;background:none;padding:0;text-align:center;font-size:12.5px;font-weight:700}
.heart-strip img{width:78px;height:96px;object-fit:cover;border-radius:14px;display:block;margin-bottom:4px;background:var(--honey-soft)}
/* journeys */
.stage{display:grid;grid-template-columns:34px 1fr;gap:14px;text-align:left;width:100%;border:1px solid var(--line);background:var(--card);border-radius:var(--r);padding:16px}
.stage .dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-size:16px;background:var(--honey-soft);color:var(--ink)}
.stage h3{font-size:19px}
.stage p{color:var(--muted);font-size:14.5px;margin-top:3px}
.chip{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.04em;padding:3px 9px;border-radius:99px;margin-top:8px;text-transform:uppercase}
.chip.open{background:var(--sage-soft);color:var(--sage)}
.chip.soon{background:var(--honey-soft);color:var(--ink)}
.chip.later{background:var(--line);color:var(--muted)}
.path-line{display:flex;flex-direction:column;gap:10px;position:relative}
/* hearts grid */
.hearts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.hcard{border:0;padding:0;background:var(--card);border-radius:var(--r);overflow:hidden;text-align:left;border:1px solid var(--line)}
.hcard img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;background:var(--honey-soft)}
.hcard div{padding:10px 12px 12px}
.hcard h3{font-size:18px}
.hcard p{font-size:13px;color:var(--muted);line-height:1.4;margin-top:2px}
/* journal */
.entry{border-bottom:1px solid var(--line);padding-block:14px;display:flex;flex-direction:column;gap:6px}
.entry:last-child{border-bottom:0}
.entry .q{font-size:13.5px;color:var(--muted);font-style:italic}
.entry .a{white-space:pre-wrap;overflow-wrap:anywhere}
.empty{color:var(--muted);text-align:center;padding:26px 10px}
/* connect */
.conn{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.conn h3{font-size:18px}
.conn p{font-size:14px;color:var(--muted)}
.miriam{background:var(--sage-soft);border:0}
.miriam h2{font-size:24px}
.miriam p{margin-top:6px}
/* tab bar */
.tabs{position:fixed;left:0;right:0;bottom:0;background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px));z-index:5}
.tabs nav{max-width:460px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr)}
.tab{border:0;background:none;padding:10px 0 12px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:700;color:var(--muted)}
.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab[aria-current="page"]{color:var(--heart)}
/* reader sheet */
.sheet{position:fixed;inset:0;background:var(--ground);z-index:20;overflow-y:auto;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);animation:up .28s ease-out}
@keyframes up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet{animation:none}}
.sheet-in{max-width:620px;margin:0 auto;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));padding-block:14px 60px;display:flex;flex-direction:column;gap:22px}
.sheet-top{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--ground);padding-block:8px;z-index:2}
.back{border:0;background:var(--card);border:1px solid var(--line);border-radius:99px;padding:7px 14px;font-weight:800;font-size:14px}
.day-hero{display:grid;grid-template-columns:1fr 110px;gap:14px;align-items:end}
.day-hero img{width:110px;height:140px;object-fit:cover;border-radius:16px}
.day-hero h1{font-size:30px;margin-top:6px}
.day-hero .theme{color:var(--muted);margin-top:6px}
.prose{display:flex;flex-direction:column;gap:12px;font-size:17px;line-height:1.65;max-width:62ch}
.block-h{font-family:var(--display);font-size:20px;color:var(--heart)}
.prompt{display:flex;flex-direction:column;gap:8px}
.prompt label{font-weight:700;font-size:16px;line-height:1.45}
textarea{width:100%;min-height:92px;resize:vertical;border:1.5px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);padding:12px;font:inherit;font-size:16px;line-height:1.5}
.saved{font-size:12.5px;color:var(--sage);font-weight:700;min-height:1em}
.pause{background:var(--honey-soft);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:10px}
.prayer{font-style:italic;font-size:17px;line-height:1.7}
.scripture{border-left:3px solid var(--honey);padding-left:14px;font-family:var(--display);font-size:19px;line-height:1.4}
.daynav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.daylist{display:flex;flex-direction:column;gap:8px}
.dayrow{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--card);border-radius:14px;padding:12px 14px;width:100%}
.dayrow .n{font-family:var(--display);font-size:20px;color:var(--heart);text-align:center}
.dayrow strong{display:block;font-size:15.5px}
.dayrow span{font-size:13px;color:var(--muted)}
.tick{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center}
.tick.on{background:var(--sage);border-color:var(--sage);color:var(--card)}
.tick svg{width:14px;height:14px;stroke:currentColor;stroke-width:3;fill:none}
ol.plain{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.hd-img{width:100%;max-width:320px;aspect-ratio:4/5;object-fit:cover;border-radius:22px;align-self:center;background:var(--honey-soft)}
.note{font-size:13px;color:var(--muted);border-top:1px dashed var(--line);padding-top:12px}
/* ---- live app additions (3 Nov 2026) ---- */
html,body{overflow-x:clip}
body{margin:0}
[hidden]{display:none!important}
.app.solo{padding-bottom:40px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-size:18px}
.brand img{width:40px;height:40px;border-radius:12px;object-fit:cover}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:700;font-size:15px}
input[type=email],input[type=text],input[inputmode=numeric]{width:100%;border:1.5px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);padding:12px 14px;font:inherit;font-size:16px;min-height:48px}
input.code{letter-spacing:.35em;font-size:22px;text-align:center;font-weight:800}
.btn{min-height:44px}
.btn[disabled]{opacity:.6}
.btn.wide{width:100%}
.btn.danger{background:transparent;color:var(--heart);border:1.5px solid var(--heart)}
.msg{font-size:14.5px;min-height:1.2em}
.msg.err{color:var(--heart);font-weight:700}
.msg.ok{color:var(--sage);font-weight:700}
.stack{display:flex;flex-direction:column;gap:14px}
.muted{color:var(--muted)}
.small{font-size:14px}
.loading{color:var(--muted);text-align:center;padding:40px 10px}
.link{min-height:32px}
.saved.err{color:var(--heart)}
.miriam-card{background:var(--honey-soft);border:0}
.mlist{display:flex;flex-direction:column}
.mrow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding-block:12px;border-bottom:1px solid var(--line)}
.mrow:last-child{border-bottom:0}
.mrow strong{display:block;overflow-wrap:anywhere}
.mrow span{font-size:13.5px;color:var(--muted);overflow-wrap:anywhere}
.mrow .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pill{display:inline-block;font-size:12px;font-weight:800;padding:2px 9px;border-radius:99px;background:var(--sage-soft);color:var(--sage)}
.pill.off{background:var(--line);color:var(--muted)}
.lock{font-size:13px;color:var(--muted)}
.stage[disabled]{opacity:1}
