:root{--parch:#F4EBD6;--parch2:#EADBB8;--olive:#5E6B3A;--olivedk:#424B27;--gold:#B08A3E;--ink:#2F2A1E;--muted:#6E6450;--card:rgba(255,252,243,.66);--line:rgba(176,138,62,.35)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:#EFE3C7}
body{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:3rem 1.25rem 2.5rem;
background:radial-gradient(ellipse at 50% 0%,#FBF6EA 0%,var(--parch) 50%,var(--parch2) 100%);color:var(--ink);
font-family:"EB Garamond",Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.6}
body:before{content:"";position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 140px rgba(120,90,40,.16);z-index:-1}
main{max-width:720px;width:100%}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.intro{text-align:center}
.mark{width:64px;height:64px;margin:0 auto 1.3rem;border-radius:50%;display:grid;place-items:center;
background:radial-gradient(circle,#FFF9EC 0%,#F1E3C2 70%);border:1.5px solid var(--gold);
box-shadow:0 0 0 7px rgba(176,138,62,.10),0 0 0 16px rgba(176,138,62,.05);animation:glow 6s ease-in-out infinite}
.mark svg{width:25px;height:35px}
@keyframes glow{50%{box-shadow:0 0 0 10px rgba(176,138,62,.14),0 0 0 22px rgba(176,138,62,.05)}}
.eyebrow{font-size:.78rem;letter-spacing:.42em;text-transform:uppercase;color:var(--gold);margin-bottom:.6rem;font-weight:500}
.eyebrow.small{font-size:.72rem;letter-spacing:.32em;margin:0 0 .7rem}
h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;font-size:clamp(2.3rem,7vw,3.8rem);line-height:1.1;color:var(--olivedk)}
.rule{width:150px;height:12px;margin:1.1rem auto;position:relative}
.rule:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.rule:after{content:"";position:absolute;left:50%;top:50%;width:7px;height:7px;background:var(--gold);transform:translate(-50%,-50%) rotate(45deg)}
.lead{text-wrap:balance;font-size:clamp(1.05rem,2.5vw,1.22rem);max-width:580px;margin:0 auto}

.ask{margin:2rem auto 0;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:.9rem .9rem .7rem;box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 6px 24px rgba(120,90,40,.08)}
.ask textarea{width:100%;border:0;background:transparent;resize:vertical;min-height:3.2rem;font:inherit;font-size:1.18rem;color:var(--ink);outline:none;line-height:1.45}
.ask textarea::placeholder{color:#9A8E73;font-style:italic}
.ask:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px rgba(176,138,62,.18)}
.ask-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.35rem}
.count{font-size:.82rem;color:var(--muted)}
.count.warn{color:#9A3B1E}
button{font:inherit;cursor:pointer}
#go{background:var(--olive);color:#FBF6EA;border:1px solid var(--olivedk);border-radius:4px;padding:.45rem 1.6rem;font-size:1rem;letter-spacing:.14em;text-transform:uppercase;font-weight:500;transition:background .15s}
#go:hover{background:var(--olivedk)}
#go:disabled{opacity:.6;cursor:wait}
.examples{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:1rem auto 0}
.chip{background:rgba(255,252,243,.5);border:1px solid var(--line);color:var(--olivedk);border-radius:999px;padding:.28rem .9rem;font-size:.95rem;font-style:italic;transition:all .15s}
.chip:hover,.chip:focus-visible{border-color:var(--gold);background:#FFF9EC}

.status{margin:2.2rem auto 0;text-align:center;color:var(--muted)}
.status .spin{width:34px;height:34px;margin:0 auto .7rem;border-radius:50%;border:2px solid var(--line);border-top-color:var(--gold);animation:spin 1.1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.status.error{background:var(--card);border:1px solid var(--line);border-left:3px solid #9A3B1E;border-radius:4px;padding:1rem 1.2rem;color:var(--ink);font-style:italic}

.result{margin-top:2.2rem}
.asked{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.55rem;font-style:italic;color:var(--olivedk);text-align:center;margin-bottom:1.1rem;text-wrap:balance}
.notice{background:rgba(255,248,230,.8);border:1px solid var(--line);border-radius:4px;padding:.7rem 1rem;margin-bottom:1rem;font-size:.98rem}
.notice.crisis{border-left:3px solid #9A3B1E}
.summary{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:1.3rem 1.5rem;margin-bottom:1.8rem}
.answer p{margin-bottom:.8rem}
.answer p:last-child{margin-bottom:0}
.answer q{font-style:italic;color:var(--olivedk);quotes:"\201C" "\201D"}
.cite{display:inline;background:none;border:0;border-bottom:1px dotted var(--gold);color:var(--olive);font-size:.92em;font-weight:500;padding:0 .05em;white-space:nowrap}
.cite:hover,.cite:focus-visible{color:var(--olivedk);border-bottom-style:solid;outline:none}
.cites{white-space:nowrap}.cites .br{color:var(--gold)}
.flag{font-size:.85em;color:#9A3B1E;font-style:italic}
.checked{margin-top:.9rem;padding-top:.7rem;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}
.passages-h{text-align:center}
.passages{display:grid;gap:1rem}
.card{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:4px;padding:1.05rem 1.3rem;scroll-margin-top:1.5rem;transition:box-shadow .3s,background .3s}
.card.flash{background:#FFF7E2;box-shadow:0 0 0 3px rgba(176,138,62,.35)}
.card-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .7rem;margin-bottom:.45rem}
.card-h cite{font-style:normal;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:1.2rem;color:var(--olivedk);letter-spacing:.01em}
.badge{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:#7A2E1E;border:1px solid rgba(122,46,30,.35);border-radius:999px;padding:.05rem .55rem;background:rgba(255,240,232,.6)}
.scripture{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.24rem;line-height:1.5;color:var(--ink)}
.scripture sup{font-family:"EB Garamond",serif;font-size:.62em;color:var(--gold);margin-right:.15em;font-weight:500}
.scripture .j{color:#6B2A1C}
details{margin-top:.7rem;border-top:1px dashed var(--line);padding-top:.5rem}
summary{cursor:pointer;font-size:.86rem;color:var(--muted);letter-spacing:.03em;list-style:none}
summary::-webkit-details-marker{display:none}
summary:before{content:"\25B8";display:inline-block;margin-right:.4rem;transition:transform .15s;color:var(--gold)}
details[open] summary:before{transform:rotate(90deg)}
.note{font-size:.95rem;margin-top:.5rem;color:#3F3828}
.note b{font-weight:500;color:var(--olive);font-size:.85rem}
footer{text-wrap:balance;margin-top:3rem;font-size:.85rem;color:var(--muted);max-width:600px;padding:0 1rem;text-align:center}
@media (max-width:480px){body{padding:2rem .9rem 2rem;font-size:1.02rem}.summary{padding:1rem 1.05rem}.card{padding:.9rem 1rem}.scripture{font-size:1.15rem}.asked{font-size:1.35rem}.chip{font-size:.9rem}}
@media (prefers-reduced-motion:reduce){.mark,.status .spin{animation:none}html{scroll-behavior:auto}}
