/* Mastery of Faith - "candlelight in the scriptorium"
   Charcoal + graphite with gold, from the TikTok's chiaroscuro art. One file, no build step.
   Contrast checked: gold text #f0cf83 on #0b0b0b = 13.1:1; muted #b3a993 on #0b0b0b = 8.4:1;
   light theme ink #1d1a14 on #f1efe9 = 15.6:1; gold-dark #7a560f on #f1efe9 = 6.3:1. */

@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-italic.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #141210;
  --panel: #1d1a14;
  --panel-2: #26221a;
  --ink: #f5f2ec;
  --ink-2: #ded6c6;
  --muted: #b3a993;
  --gold: #f0cf83;
  --gold-2: #d9b25a;
  --gold-deep: #a8781e;
  --rule: rgba(240, 207, 131, 0.22);
  --rule-soft: rgba(245, 242, 236, 0.09);
  --glow: rgba(217, 178, 90, 0.10);
  --focus: #ffe3a3;
  --danger: #ff9b8a;
  --ok: #b9d9a0;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: 1.22rem;
  --measure: 40rem;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1efe9;
  --bg-2: #ebe7de;
  --panel: #fbf9f4;
  --panel-2: #f3efe5;
  --ink: #1d1a14;
  --ink-2: #3a342a;
  --muted: #5e5546;
  --gold: #7a560f;
  --gold-2: #8c6516;
  --gold-deep: #a8781e;
  --rule: rgba(122, 86, 15, 0.28);
  --rule-soft: rgba(29, 26, 20, 0.10);
  --glow: rgba(168, 120, 30, 0.10);
  --focus: #8c6516;
  --shadow: 0 14px 40px rgba(60, 45, 20, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  background-image: radial-gradient(ellipse 70% 45% at 50% -8%, var(--glow), transparent 70%), var(--grain);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; font-family: var(--ui); }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
[hidden] { display: none !important; }
.narrow { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }
main { padding-bottom: 5rem; }
.stack > * + * { margin-top: 1rem; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--rule), 0 0 18px var(--glow); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.brand span small { display: block; font-family: var(--ui); font-size: .62rem; letter-spacing: .28em; color: var(--muted); margin-top: .2rem; }
.nav { margin-left: auto; display: flex; gap: .2rem; align-items: center; font-family: var(--ui); font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .7rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); background: var(--panel); }
.nav .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; }
@media (max-width: 720px) {
  .nav .hide-s { display: none; }
  .brand span small { display: none; }
}
@media (max-width: 440px) {
  .site-head .wrap { gap: .4rem; }
  .brand { gap: .45rem; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 1rem; letter-spacing: .03em; }
  .nav { gap: 0; font-size: .88rem; }
  .nav a { padding: .45rem .5rem; }
  .nav .icon-btn { width: 2.2rem; height: 2.2rem; }
}


/* buttons, inputs */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ui); font-weight: 600; font-size: .95rem; padding: .72rem 1.15rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; line-height: 1.1; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.gold { background: linear-gradient(180deg, #f3d892, #d6ad53); color: #1a1408; border-color: transparent; box-shadow: 0 6px 22px rgba(217, 178, 90, .25); }
.btn.gold:hover { filter: brightness(1.05); color: #1a1408; }
.btn.small { padding: .45rem .8rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; font-family: var(--ui); font-size: 1rem; color: var(--ink); background: var(--panel); border: 1px solid var(--rule-soft); border-radius: 12px; padding: .8rem 1rem;
}
textarea { font-family: var(--text); font-size: 1.12rem; line-height: 1.55; min-height: 6rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--glow); }
label { font-family: var(--ui); font-size: .9rem; color: var(--ink-2); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--ui); font-size: .92rem; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--gold-2); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.35rem; }
.eyebrow { font-family: var(--ui); text-transform: uppercase; letter-spacing: .26em; font-size: .72rem; color: var(--gold); margin: 0 0 .6rem; }
.lede { font-size: 1.25rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.ui { font-family: var(--ui); }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--rule), transparent); margin: 2.4rem 0; }
.ornament { text-align: center; color: var(--gold); letter-spacing: .6em; font-size: .8rem; margin: 2rem 0; }

/* panels + cards */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow); }
.panel.gold-edge { border-color: var(--rule); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.card { display: block; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--rule); color: var(--ink); }
.card .card-body { padding: 1rem 1.1rem 1.2rem; }
.card h3, .card .card-title { margin-bottom: .25rem; }
.card-title { font-size: 1.35rem; }
.card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: saturate(.95) contrast(1.02); }
.chip { display: inline-block; font-family: var(--ui); font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--gold); text-decoration: none; }
.badge { font-family: var(--ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #1a1408; background: var(--gold-2); padding: .2rem .5rem; border-radius: 6px; }

/* hero */
.hero { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 5vw, 4rem) 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.hero-art { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--rule-soft); max-width: 30rem; justify-self: center; }
.hero-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(0, 0, 0, .55)); pointer-events: none; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero .verse-quote { font-family: var(--text); font-style: italic; font-size: 1.3rem; color: var(--ink-2); border-left: 2px solid var(--gold-deep); padding-left: 1rem; margin: 1.4rem 0; }
.hero .verse-quote cite { display: block; font-style: normal; font-family: var(--ui); font-size: .8rem; color: var(--muted); margin-top: .4rem; letter-spacing: .08em; }
.search-big { display: flex; gap: .5rem; margin-top: 1.4rem; }
.search-big input { font-size: 1.05rem; padding: .95rem 1.1rem; border-radius: 999px; }
.search-big .btn { flex-shrink: 0; }

/* fade-up reveal on load */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .7s ease forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; } .reveal.d3 { animation-delay: .3s; } .reveal.d4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* today panel */
.today { position: relative; overflow: hidden; }
.today::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 18rem; height: 18rem; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.today .when { display: flex; align-items: center; gap: .6rem; font-family: var(--ui); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.today .when svg { width: 22px; height: 22px; }
.prayer { font-family: var(--text); font-size: 1.22rem; line-height: 1.65; }
.prayer .kjv { color: var(--ink); }
.prayer .kjv-ref { font-family: var(--ui); font-size: .78rem; color: var(--muted); letter-spacing: .05em; margin-left: .3rem; white-space: nowrap; }
.prayer .formula { color: var(--ink-2); font-style: italic; }
.prayer p { margin: 0 0 .8rem; }
.carry { text-align: center; padding: 1.6rem 1rem; margin: 1.4rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.carry .verse { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--gold); line-height: 1.3; }
.carry .ref { font-family: var(--ui); font-size: .82rem; color: var(--muted); margin-top: .6rem; letter-spacing: .1em; }
.questions { counter-reset: q; list-style: none; padding: 0; margin: 1rem 0; }
.questions li { counter-increment: q; position: relative; padding: .7rem 0 .7rem 2.4rem; font-size: 1.2rem; border-bottom: 1px solid var(--rule-soft); }
.questions li::before { content: counter(q); position: absolute; left: 0; top: .55rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--rule); color: var(--gold); font-family: var(--display); font-size: 1.1rem; display: grid; place-items: center; }

/* reader */
.reader-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 2.2rem 0 1rem; }
.reader-head h1 { margin: 0; }
.reader-head .ch-num { font-family: var(--display); font-size: clamp(3.5rem, 12vw, 6rem); line-height: .8; color: var(--gold); font-weight: 500; }
.reader-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.6rem; font-family: var(--ui); }
.seg { display: inline-flex; border: 1px solid var(--rule-soft); border-radius: 999px; overflow: hidden; }
.seg a, .seg span { padding: .42rem .8rem; font-size: .85rem; text-decoration: none; color: var(--ink-2); }
.seg a[aria-current="true"], .seg span[aria-current="true"] { background: var(--panel-2); color: var(--gold); }
.scripture { font-family: var(--text); font-size: var(--read); line-height: 1.75; max-width: var(--measure); }
.scripture p { margin: 0 0 1.05rem; }
.scripture .psalm-title { font-style: italic; color: var(--muted); font-size: 1.02rem; margin-bottom: .6rem; }
.scripture .v { scroll-margin-top: 5rem; border-radius: 6px; transition: background .3s; }
.scripture .v:target, .scripture .v.speaking { background: var(--glow); box-shadow: 0 0 0 4px var(--glow); }
.scripture .vn { font-family: var(--ui); font-size: .62em; font-weight: 600; color: var(--gold-2); vertical-align: super; line-height: 0; margin-right: .18em; text-decoration: none; padding: .1em .15em; border-radius: 4px; cursor: pointer; background: none; border: 0; }
.scripture .vn:hover, .scripture .vn:focus-visible { background: var(--panel-2); }
.scripture .wj { color: var(--gold); }
.scripture .nd { font-variant: small-caps; letter-spacing: .04em; }
.scripture i { color: var(--ink-2); }
.scripture .drop::first-letter { float: left; font-family: var(--display); font-size: 3.6em; line-height: .85; padding: .06em .12em 0 0; color: var(--gold); }
.verse-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; padding: .6rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; font-family: var(--ui); }
.parallel { display: grid; gap: 1.2rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .parallel { grid-template-columns: 1fr 1fr; } }
.parallel .col h2 { font-family: var(--ui); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.parallel-row { display: grid; gap: .3rem 2rem; grid-template-columns: 1fr; padding: .5rem 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 900px) { .parallel-row { grid-template-columns: 1fr 1fr; } }
.chapter-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; font-family: var(--ui); }
.picker { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); font-family: var(--ui); }
.picker a { display: grid; place-items: center; height: 2.8rem; border: 1px solid var(--rule-soft); border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.picker a:hover { border-color: var(--gold); color: var(--gold); }
.books { columns: 2 12rem; column-gap: 2rem; font-family: var(--ui); }
.books a { display: block; padding: .3rem 0; text-decoration: none; color: var(--ink-2); break-inside: avoid; }
.books a:hover { color: var(--gold); }
.notice { font-family: var(--ui); font-size: .82rem; color: var(--muted); border-top: 1px solid var(--rule-soft); margin-top: 2rem; padding-top: 1rem; }

/* search */
.results { list-style: none; padding: 0; margin: 1rem 0; }
.results li { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.results .ref { font-family: var(--ui); font-weight: 600; font-size: .92rem; text-decoration: none; }
.results .text { font-size: 1.15rem; margin: .3rem 0 0; }
.results mark { background: none; color: var(--gold); border-bottom: 1px solid var(--gold-deep); }
.results .note { font-family: var(--ui); font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* lessons */
.slides { display: grid; gap: .8rem; grid-auto-flow: column; grid-auto-columns: min(78%, 22rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .2rem 1rem; }
.slides img { scroll-snap-align: center; border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: var(--panel); }
.honest { margin: 1.4rem 0; }
.honest .saved { font-family: var(--ui); font-size: .82rem; color: var(--ok); min-height: 1.2em; }
.warn { font-family: var(--ui); font-size: .85rem; color: var(--ink-2); background: color-mix(in srgb, var(--gold-deep) 18%, var(--panel)); border: 1px solid var(--rule); border-radius: 10px; padding: .7rem .9rem; }

/* read-aloud bar */
.listen-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; display: none; align-items: center; gap: .5rem; padding: .5rem .6rem .5rem 1rem; background: var(--panel-2); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); font-family: var(--ui); font-size: .88rem; max-width: calc(100% - 2rem); }
.listen-bar.on { display: flex; }
body.listening main { padding-bottom: 7rem; }

/* footer */
.site-foot { border-top: 1px solid var(--rule-soft); padding: 2.5rem 0 3rem; font-family: var(--ui); font-size: .88rem; color: var(--muted); }
.site-foot .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-foot a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: .15rem 0; }
.site-foot a:hover { color: var(--gold); }
.site-foot h2 { font-family: var(--ui); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.announce { background: linear-gradient(90deg, var(--gold-deep), #7a560f); color: #fff8e6; font-family: var(--ui); font-size: .88rem; text-align: center; padding: .5rem 1rem; }
.announce a { color: #fff; }

/* forms + flash */
.form { display: grid; gap: .9rem; max-width: 30rem; }
.flash { font-family: var(--ui); padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); }
.flash.err { border-color: var(--danger); color: var(--danger); }
.code-input { letter-spacing: .5em; font-size: 1.6rem !important; text-align: center; font-family: var(--ui); }

/* prose pages */
.prose { max-width: var(--measure); font-size: 1.12rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }

/* reader extras */
.scripture .dropcap { float: left; font-family: var(--display); font-size: 3.5em; line-height: .8; padding: .06em .1em 0 0; color: var(--gold); }
.verse-page .verse-text { font-family: var(--text); font-size: clamp(1.4rem, 3.6vw, 1.85rem); line-height: 1.5; }
.verse-page .tr-label { font-family: var(--ui); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .3rem; }
.crumbs { font-family: var(--ui); font-size: .85rem; color: var(--muted); margin-top: 1.4rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* prayer library */
.prayer-list { list-style: none; padding: 0; margin: 1rem auto 2rem; }
.prayer-list li { border-bottom: 1px solid var(--rule-soft); }
.prayer-list a { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .2rem; text-decoration: none; color: var(--ink); }
.prayer-list a:hover .t, .prayer-list a:focus-visible .t { color: var(--gold); }
.prayer-list .t { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.filters .chip[aria-current="true"] { background: var(--gold-2); color: #1a1408; border-color: var(--gold-2); }
.prayer-page .prayer { font-family: var(--text); font-size: var(--read); line-height: 1.7; }
.prayer .classic { margin: 0 0 1rem; }
.prayer-page .credit { margin-top: .8rem; }
.crisis { border-color: var(--gold-2); margin: 1rem 0 1.4rem; }
.crisis h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.crisis ul { margin: .4rem 0 0; padding-left: 1.1rem; font-family: var(--ui); font-size: .92rem; line-height: 1.6; }
.share-box { display: grid; gap: .5rem; margin: 1rem 0; max-width: 28rem; font-family: var(--ui); }

/* phone tab bar: the main sections stay one tap away without crowding the header */
.tabbar { display: none; }
@media (max-width: 720px) {
  .nav .nav-text { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--rule-soft);
    padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); font-family: var(--ui); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .72rem; line-height: 1.1; color: var(--ink-2); text-decoration: none; border-radius: 10px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  .listen-bar { bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
}

/* Pray for */
.pray-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.pray-form { display: grid; gap: .5rem; margin: 1rem 0; }
.pray-group { font-family: var(--ui); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 1.4rem 0 .3rem; }
.pray-items { list-style: none; padding: 0; margin: 0; }
.pray-item { border-bottom: 1px solid var(--rule-soft); padding: .7rem 0; }
.pray-name { font-family: var(--display); font-size: 1.25rem; margin: 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pray-now { margin: 1rem 0; }
.pray-now .prayer { font-family: var(--text); font-size: 1.1rem; line-height: 1.65; }
.answer-form { display: grid; gap: .4rem; margin-top: .4rem; }
.pray-cta { display: grid; gap: .3rem; text-decoration: none; color: var(--ink); margin: 1rem auto 1.4rem; }
.pray-cta strong { font-family: var(--display); font-size: 1.3rem; color: var(--gold); font-weight: 600; }

/* journal composer + days in prayer */
.composer .types { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0 0 .8rem; font-family: var(--ui); font-size: .9rem; }
.composer .types label { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.composer .types label:has(input:checked) { background: var(--gold-2); color: #1a1408; border-color: var(--gold-2); }
.composer [data-kind] { display: grid; gap: .4rem; }
.composer .composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--ui); font-size: .9rem; margin: .7rem 0 0; }
.composer .composer-foot input[type=date] { width: auto; }
.prayed-strip { padding: .5rem .8rem; border: 1px solid var(--rule-soft); border-radius: 10px; }
.days-count { font-family: var(--ui); }
.days-count strong { font-size: 1.8rem; color: var(--gold); }
.days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; max-width: 22rem; margin: .6rem 0; }
.days-grid .day { font-family: var(--ui); font-size: .72rem; text-align: center; padding: .35rem 0; border-radius: 8px; border: 1px solid var(--rule-soft); color: var(--muted); }
.days-grid .day.on { background: var(--gold-2); color: #1a1408; border-color: var(--gold-2); font-weight: 600; }
.results .gratitude { margin: .2rem 0 .4rem; padding-left: 1.2rem; }

/* Ask */
.ai-note { border-left: 3px solid var(--gold-2); padding: .4rem .8rem; color: var(--ink-2); }
.ask-form { display: grid; gap: .5rem; margin: 1.2rem 0; }
.ask-answer { font-family: var(--text); font-size: 1.1rem; line-height: 1.7; margin: 1rem 0; }
.ask-answer .ask-ref { margin: .8rem 0; padding: .6rem 1rem; border-left: 3px solid var(--gold-2); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.ask-answer .ask-ref p { margin: 0 0 .3rem; }
.ask-answer .ask-prayer { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); margin: .8rem 0; }
.ask-answer .differ { font-size: 1rem; }
.ask-foot { margin-top: 1rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font: inherit; }
.ask-withdraw { margin-top: 2rem; }
