/* Biblianza PWA — tokens from plan/brand.md §3 (palette), §4 (type) and §6 (spacing, buttons).
   White page, graphite text, oxblood as the only colour a primary button is ever painted, highlighter for
   emphasis. No GDIST blue or mint, no cream/olive/clay (that is Orandi, account 1), no purple, no
   metallic gold, no halo. Contrast pairs are the ones computed in brand.md §3, all AA or better. */

:root{
  --page:#FFFFFF; --margin:#F4F2EE; --rule-line:#DCD6CC;
  --graphite:#1F2329; --slate:#565D66;
  --oxblood:#7B2332; --oxblood-dark:#5E1A26;
  --highlight:#FFE27A; --highlight-soft:#FFF4C7;
  --night:#1A1C21; --white:#FFFFFF;
  /* Self-hosted, never fonts.googleapis.com: loading from Google would send the reader's IP to a vendor
     the privacy policy does not list (plan/brand.md §4). Files in site/assets/fonts, copied to
     /biblianza/assets/fonts by app/scripts/build.mjs. */
  --font-display:"Literata",Georgia,"Times New Roman",serif;
  --font-body:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;

  --bg:var(--page); --surface:var(--margin); --text:var(--graphite); --muted:var(--slate);
  --rule:var(--rule-line); --accent:var(--oxblood); --action:var(--oxblood); --action-hover:var(--oxblood-dark);
  --line-strong:var(--slate); --mist:var(--margin);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text);
  font:400 1.125rem/1.6 var(--font-body);
  -webkit-font-smoothing:antialiased;
  padding-bottom:5.5rem;
  transition:background-color .2s ease;
}
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.2;margin:0 0 .5rem}
h1{font-size:1.75rem}
h2{font-size:1.375rem}
h3{font-size:1.0625rem;font-family:var(--font-body);font-weight:600}
p{margin:0 0 1rem}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--graphite);outline-offset:2px}

.wrap{max-width:44rem;margin:0 auto;padding:0 1.125rem}
.muted{color:var(--muted)}
.small{font-size:.9375rem}
.eyebrow{font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;color:var(--oxblood);font-weight:600;margin:0 0 .35rem}
.stack>*+*{margin-top:1rem}
.row{display:flex;align-items:center;gap:.75rem}
.collection-head{display:flex;align-items:center;gap:1rem;margin:0 0 1rem}
.collection-head h1{margin:0 0 .25rem}
.collection-head p{margin:0}
.collection-head .art{flex:none;width:4.5rem;height:4.5rem;border-radius:50%}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.hidden{display:none!important}

/* header */
header.bar{
  position:sticky;top:0;z-index:10;background:var(--bg);
  border-bottom:1px solid var(--rule);
}
header.bar .wrap{display:flex;align-items:center;justify-content:space-between;height:3.5rem}
.word{font-family:var(--font-display);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-size:1.0625rem;text-decoration:none}
.streak{font-size:.875rem;color:var(--muted);white-space:nowrap}

main{padding:1.25rem 0 1rem}

/* cards */
.card{
  background:var(--white);border:1px solid var(--rule);border-radius:8px;
  padding:1.125rem;margin:0 0 1rem;box-shadow:0 1px 2px rgba(31,35,41,.08);
}
.card h2,.card h3{margin-top:0}
.card.locked{background:transparent;border-style:dashed}
.meta{font-size:.9375rem;color:var(--muted)}
.list{list-style:none;margin:0;padding:0}
.list li{border-top:1px solid var(--rule)}
.list li:first-child{border-top:0}
.item{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  width:100%;background:none;border:0;padding:.9rem 0;text-align:left;
  color:var(--text);font:inherit;cursor:pointer;
}
.item:hover .item-title{text-decoration:underline}
.item-title{font-weight:500}
.item-meta{font-size:.875rem;color:var(--muted);white-space:nowrap}
.done{color:var(--oxblood);font-weight:600}

/* buttons: one primary action per screen (brand.md §3.3) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:48px;padding:.875rem 1.5rem;border-radius:6px;border:2px solid transparent;
  font:700 1.125rem/1.2 var(--font-body);text-decoration:none;cursor:pointer;width:100%;
}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--action-hover)}
.btn-secondary{background:var(--white);color:var(--oxblood-dark);border-color:var(--slate)}
.btn-secondary:hover{background:var(--margin)}
.btn+.btn{margin-top:.6rem}
.btn-inline{width:auto}

input[type=text],input[type=email],input[type=time],textarea,select{
  width:100%;padding:.7rem .8rem;border:1px solid var(--line-strong);border-radius:8px;
  background:var(--white);color:var(--text);font:400 1rem/1.5 var(--font-body);
}
textarea{min-height:9rem;resize:vertical}
label{display:block;font-weight:500;margin:0 0 .35rem}
.field+.field{margin-top:1rem}

/* the session reader — text only in v1 (funnel-spec product_core.content_format). The audio transport
   that account 1 had here is gone, not hidden: there is no audio to play. */
.section h3{margin:1.5rem 0 .35rem;color:var(--accent)}
.section p{margin:0 0 1rem}
.section h4{margin:1.25rem 0 .3rem;font-family:var(--font-body);font-size:1.0625rem;font-weight:600;color:var(--text)}
.section ul{margin:0 0 1rem;padding-left:1.25rem}
.section li{margin:.35rem 0}
.section em{font-style:italic}
.section strong{font-weight:600}
.section blockquote{
  margin:0 0 1.25rem;padding:.5rem 0 .5rem 1.1rem;border-left:3px solid var(--accent);
  color:var(--text);font-family:var(--font-display);font-size:1.0625rem;line-height:1.7;font-style:normal;
}
/* Stage directions ([pause], [breathe]) are instructions to the reader, not prose: they are set apart so the
   eye skips them while praying, instead of reading them as part of the sentence. */
.stage,.stage-line{font-variant:small-caps;letter-spacing:.06em;color:var(--muted);font-style:normal}
.stage-line{margin:.75rem 0;text-align:center}

/* progress dots (journeys, retreats) */
.dots{display:flex;gap:.4rem;margin:.5rem 0 .25rem}
.dot{width:.85rem;height:.85rem;border-radius:50%;border:2px solid var(--line-strong)}
.dot.filled{background:var(--oxblood);border-color:var(--oxblood)}

/* bottom navigation */
nav.tabs{
  position:fixed;bottom:0;left:0;right:0;z-index:20;
  background:var(--bg);border-top:1px solid var(--rule);
  display:flex;padding:.25rem 0 env(safe-area-inset-bottom);
}
nav.tabs a{
  flex:1;text-align:center;padding:.6rem .25rem;min-height:48px;
  color:var(--muted);text-decoration:none;font-size:.8125rem;font-weight:500;
}
nav.tabs a[aria-current=page]{color:var(--accent);font-weight:600}

/* notices */
.notice{border:1px solid var(--rule);border-left:4px solid var(--oxblood);border-radius:8px;padding:.8rem 1rem;margin:0 0 1rem;background:var(--highlight-soft);color:var(--text)}

footer.legal{border-top:1px solid var(--rule);margin-top:2rem;padding:1.25rem 0 0;color:var(--muted);font-size:.9375rem}
footer.legal a{color:var(--accent)}

@media (min-width:48rem){
  h1{font-size:2.5rem}
  h2{font-size:1.75rem}
  body{font-size:1.125rem;padding-bottom:1rem}
  nav.tabs{position:static;border-top:0;border-bottom:1px solid var(--rule);max-width:44rem;margin:0 auto}
}

/* A note that was just written, echoed back under the box. The point is proof: the person sees their own words
   land somewhere, instead of watching the textarea empty itself and having to trust it (see app.js save-entry). */
.saved-entries{margin:.75rem 0 0}
.saved-label{margin:0 0 .35rem}
.saved-entry{margin:0 0 .5rem;padding:.6rem .75rem;background:var(--card,rgba(0,0,0,.03));border-left:3px solid var(--rule);white-space:pre-wrap}

/* No decorative illustrations in v1. The eight inherited SVGs were drawn in account 1's palette, and two
   of their motifs (a candle, a string of beads) are on the list plan/brand.md §7 forbids for Biblianza.
   Photography and new illustrations are a Gui decision — plan/needs-gui.md. */

/* Journal consent — two separate boxes (LGPD art. 11 I and art. 33 VIII). Big enough to hit on a phone,
   and the full text of each consent sits next to its own box, never behind a link. */
.consent{display:flex;gap:.75rem;align-items:flex-start;margin:0 0 1rem;font-weight:400}
.consent input[type=checkbox]{width:1.5rem;height:1.5rem;min-width:1.5rem;margin:.15rem 0 0;accent-color:var(--action)}
.consent span{display:block}
