/* Faith Over Fortune. A leather Bible on a walnut table: oxblood cover, ivory paper, soot ink, gilt only as accent.
   Palette per Stitch "Sacred Heirloom" DESIGN.md. Text on paper uses --gilt-ink (5.6:1); bright --gilt only on leather (4.8:1). */
@font-face { font-family: Literata; src: url(fonts/literata.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Literata; src: url(fonts/literata-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(fonts/garamond.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
:root {
  --leather: #3B1F17; --edge: #2A140E; --table: #241A14; --gilt: #B8893A; --gilt-ink: #7E5706;
  --paper: #F5EFE3; --paper-hi: #FAF6EE; --patina: #E8DFCC; --ink: #1F1B16; --muted: #6B6052; --ribbon: #8E2A22;
  --line: #D6CBBA; --link: #7A2E1F; --ok: #2F6B3A; --wash: rgba(184,137,58,.24);
  --serif: Literata, Georgia, "Iowan Old Style", serif; --display: "EB Garamond", Garamond, Georgia, serif;
  --sans: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif; --size: 19px;
}
html[data-size="s"] { --size: 17px; } html[data-size="l"] { --size: 22px; } html[data-size="xl"] { --size: 26px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--table); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 16px/1.55 var(--sans); padding-bottom: calc(68px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, #33251C 0%, var(--table) 60%) fixed; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--paper); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Binding: header and tabs are leather; the page is the paper between them. */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top)) 14px 6px;
  background: linear-gradient(var(--leather), var(--edge)); box-shadow: inset 0 -1px 0 rgba(184,137,58,.35), 0 2px 8px rgba(0,0,0,.4); }
.brand { color: var(--gilt); text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--gilt); border-radius: 4px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(var(--edge), var(--leather)); box-shadow: inset 0 1px 0 rgba(184,137,58,.35); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #CDBFA6; text-decoration: none; }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--gilt); }

/* The page: ivory rag paper, page block beneath, spine shadow on the gutter side. */
main { position: relative; padding: 8px 8px 0; }
main, main:focus, main:focus-visible { outline: none; }
.page { position: relative; max-width: 700px; min-height: calc(100vh - 150px); margin: 0 auto; padding: 26px 22px 36px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(60,40,25,.13), rgba(60,40,25,0) 26px), var(--paper);
  box-shadow: 0 1px 0 var(--patina), 0 2px 0 #DDD2BD, 0 3px 0 var(--patina), 0 18px 40px rgba(10,6,4,.55); }
.loading { color: var(--muted); padding-top: 40px; }
h1 { font: 600 30px/1.15 var(--display); letter-spacing: .02em; margin: 4px 0 12px; }
h2 { font: 600 15px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt-ink); margin: 34px 0 12px; }
h2::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 8px; background: var(--gilt); }
h3 { font-family: var(--display); }
.eyebrow { font: 500 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow a { color: var(--muted); }
.lede { font: var(--size)/1.6 var(--serif); margin: 0 0 18px; }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* Buttons: foil-stamped primary, parchment secondary. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 4px; cursor: pointer; text-decoration: none;
  font: 500 15px/1.2 var(--sans); letter-spacing: .04em; color: var(--ink); background: var(--patina); border: 1px solid var(--line); transition: background .15s, transform .1s; }
.btn:hover { background: #E1D6C0; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--leather); color: var(--paper); border-color: var(--gilt); }
.btn.primary:hover { background: #48271D; }
.btn.block { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.voice-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 16px; }
#voice-pick { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(107,96,82,.35); border-radius: 6px; background: var(--paper-hi); color: var(--ink); font: 500 15px var(--sans); max-width: 100%; }
.link-btn[aria-pressed="true"] { font-weight: 600; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; font: 500 15px var(--sans); }

/* Today's progress: seven gilt lozenges, never a score. */
.dots { display: flex; gap: 12px; margin: 10px 2px 20px; } .dots i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gilt-ink); }
.dots i.on { background: var(--gilt-ink); }

/* Readings sit on the paper: hairline rules, not boxes. */
.reading { padding: 18px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ref { font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt-ink); margin: 0 0 10px; }
.scripture { font: var(--size)/1.65 var(--serif); margin: 0; max-width: 62ch; }
.scripture p { margin: 0 0 8px; }
.scripture .vn { font: 500 .6em var(--sans); color: var(--muted); vertical-align: super; margin-right: 3px; }
.scripture .ctx { color: var(--muted); }
.ctx-hint { font: 500 13px var(--sans); color: var(--muted); margin: 0 0 8px; }
.scripture i, .chapter i { font-style: italic; }
.label { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.note { border-left: 2px solid var(--gilt); padding: 4px 0 4px 16px; margin: 20px 0; font: italic var(--size)/1.55 var(--serif); }
.tools { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; }

.done-card { text-align: center; padding: 40px 10px 20px; }
.done-card .big { font: 600 34px/1.15 var(--display); margin: 0 0 12px; }
.done-card .big::after { content: "\2766"; display: block; margin-top: 14px; font-size: 20px; color: var(--gilt-ink); }

.list { list-style: none; padding: 0; margin: 0; display: grid; }
.card { padding: 16px 2px; border-bottom: 1px solid var(--line); }
details.card, form.card, div.card { background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.card a.stretch { text-decoration: none; color: inherit; display: block; }
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; }
.moments a { display: flex; align-items: center; min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 500 calc(var(--size) - 1px)/1.3 var(--serif); }
.crisis { background: var(--paper-hi); border: 1px solid #D8B9A4; border-left: 3px solid var(--ribbon); border-radius: 2px; padding: 14px 16px; margin: 24px 0; }
.crisis a { font-weight: 600; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.seg button, .seg a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(107,96,82,.35); background: var(--paper-hi); cursor: pointer; font: 500 14px var(--sans); text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.seg [aria-pressed="true"], .seg [aria-current="page"], .seg [aria-checked="true"] { background: var(--leather); color: var(--paper); border-color: var(--leather); }

/* Index: books in two columns, chapters as a numeral grid. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; list-style: none; padding: 0; }
.grid a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-hi); text-decoration: none; color: var(--ink); font: 500 18px var(--display); }
.books { columns: 2; column-gap: 22px; list-style: none; padding: 0; margin: 0; }
.books a { display: block; padding: 10px 2px; min-height: 44px; break-inside: avoid; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font: 500 18px/1.3 var(--display); }

/* The chapter: running head, drop numeral, text set like a printed page. */
.running { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 34px 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chapter { font: var(--size)/1.6 var(--serif); margin: 0 -4px; }
.chapter p { margin: 0 0 7px; padding: 1px 4px; border-radius: 2px; text-wrap: pretty; }
.chapter p.hl { background: linear-gradient(transparent 10%, var(--wash) 10%, var(--wash) 94%, transparent 94%); }
.chapter p.focus { box-shadow: inset 2px 0 0 var(--ribbon); }
.chapter p button.vn { background: none; border: 0; padding: 0 2px; min-width: 28px; min-height: 28px; font: 600 .62em var(--sans); color: var(--gilt-ink); vertical-align: super; cursor: pointer; }
.chapter p button.dropnum { float: left; font: 600 3.05em/.86 var(--display); color: var(--ribbon); margin: .08em .14em 0 -.04em; padding: 0; min-width: 0; background: none; border: 0; cursor: pointer; vertical-align: baseline; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.contents { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.contents li { border-bottom: 1px solid var(--line); }
.contents button, .contents .end { display: flex; gap: 14px; align-items: baseline; width: 100%; min-height: 56px; padding: 12px 2px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.contents .end { cursor: default; }
.contents .n { flex: none; width: 22px; font: 600 20px/1 var(--display); color: var(--gilt-ink); text-align: right; }
.contents .t { display: grid; gap: 2px; min-width: 0; }
.contents b { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.contents .first { font: italic 16px/1.45 var(--serif); color: var(--muted); }
.contents button:hover .first { color: var(--ink); }
.acro { display: block; break-after: avoid; margin: 14px 0 4px; font: 600 13px/1.4 var(--sans); letter-spacing: .2em; color: var(--gilt-ink); }
.acro:first-child { margin-top: 0; }
.acro [lang="he"] { font: 400 20px/1 "Noto Serif Hebrew", "SBL Hebrew", "Times New Roman", serif; letter-spacing: 0; margin-right: 4px; vertical-align: -2px; }
.turn-hint { text-align: center; font: 13px var(--sans); color: var(--muted); margin: 12px 0 0; }

/* Ribbon: hangs from the head of the page. */
.ribbon { position: absolute; top: -8px; right: 22px; width: 18px; height: 92px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, #7A231C, var(--ribbon) 40%, #A5372D 55%, var(--ribbon)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); }

/* Sheets: parchment drawers bound with a gilt hairline. */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; max-width: 720px; margin: 0 auto; background: var(--paper); border-top: 1px solid rgba(184,137,58,.6); border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 40px rgba(10,6,4,.45); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.sheet h3 { margin: 0 0 6px; font: 600 20px var(--display); letter-spacing: .03em; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-x { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--patina); border-radius: 22px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.scrim { position: fixed; inset: 0; z-index: 7; background: rgba(20,12,8,.55); }

.feed { height: calc(100vh - 190px); height: calc(100dvh - 190px); overflow-y: auto; scroll-snap-type: y mandatory; margin: 0 -22px; }
.feed section { min-height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.feed .pause { background: linear-gradient(var(--leather), var(--edge)); color: var(--paper); text-align: center; }
.feed .pause .big { font: 600 30px/1.2 var(--display); color: var(--gilt); }
.feed .pause .btn { background: transparent; color: var(--paper); border-color: var(--gilt); }

input[type="search"], input[type="text"], textarea, select { width: 100%; font: 17px/1.4 var(--sans); padding: 12px 14px; min-height: 48px; border: 1px solid rgba(107,96,82,.45); border-radius: 4px; background: var(--paper-hi); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--gilt); box-shadow: inset 0 1px 3px rgba(31,27,22,.08); }
::placeholder { font-family: var(--serif); font-style: italic; color: var(--muted); }
textarea { min-height: 110px; font-family: var(--serif); font-size: var(--size); }
label { display: block; font-weight: 500; margin: 14px 0 6px; }
mark { background: var(--wash); color: inherit; padding: 0 2px; }
.pill { display: inline-block; font: 600 12px var(--sans); padding: 3px 8px; border-radius: 10px; background: var(--patina); color: var(--muted); }
.pill.ok { background: #E3EDE0; color: var(--ok); }

#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--leather); color: var(--paper); border: 1px solid rgba(184,137,58,.5); padding: 10px 16px; border-radius: 4px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

.freely blockquote { margin: 0 0 22px; padding: 22px; background: linear-gradient(var(--leather), var(--edge)); color: var(--paper); border-radius: 4px; border: 1px solid rgba(184,137,58,.4); font: 22px/1.5 var(--serif); }
.freely blockquote cite { display: block; margin-top: 10px; font: 500 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--gilt); }
.freely ul { padding-left: 20px; } .freely li { margin: 6px 0; }
footer.credits { margin-top: 30px; font-size: 13px; color: var(--muted); }

.card-sheet .seg { margin: 0 0 10px; }
.card-frame { display: flex; justify-content: center; margin: 4px 0 12px; }
.card-frame canvas { width: auto; max-width: 100%; max-height: 44vh; border-radius: 4px; box-shadow: 0 2px 14px rgba(31,27,22,.25); }
.seg-label { margin: 4px 0 6px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-sheet { padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }

/* ---------- The cover: a closed leather Bible that swings open on its spine. ---------- */
#cover { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(90% 60% at 50% 40%, #33251C, var(--table) 70%); }
.book { position: relative; width: min(74vw, 330px, 52vh); aspect-ratio: 5 / 7.2; perspective: 1800px; }
.book .block { position: absolute; inset: 5px 3px 5px 0; border-radius: 2px 5px 5px 2px; background: linear-gradient(90deg, rgba(60,40,25,.28), transparent 34px), var(--paper);
  box-shadow: 3px 0 0 #E2D7C2, 5px 0 0 var(--gilt), 0 20px 40px rgba(10,6,4,.6); }
.lid { position: absolute; inset: 0; width: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.55,.05,.25,1); cursor: pointer;
  border: 0; padding: 0; border-radius: 3px 8px 8px 3px; color: var(--gilt);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 18%, #4C2A20, var(--leather) 55%, var(--edge));
  box-shadow: inset 12px 0 12px -8px rgba(0,0,0,.6), inset -1px -1px 2px rgba(255,255,255,.05), 0 24px 44px rgba(10,6,4,.65); }
.lid::before { content: ""; position: absolute; inset: 14px 14px 14px 24px; border: 1px solid rgba(184,137,58,.55); border-radius: 2px; box-shadow: inset 0 0 0 5px rgba(0,0,0,.14), inset 0 0 0 6px rgba(184,137,58,.25); }
.lid::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.05)); }
.lid .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px 0 38px; backface-visibility: hidden; }
.lid .cross { width: 22px; height: 34px; margin-bottom: 26px; }
.lid .title { font: 600 clamp(28px, 8.4vw, 40px)/1.1 var(--display); letter-spacing: .16em; margin: 0 -.16em 0 0; text-transform: uppercase;
  background: linear-gradient(175deg, #D9B26A, var(--gilt) 45%, #8F6626); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.55)); }
.lid .cross, .lid .kjv { filter: drop-shadow(0 1px 0 rgba(0,0,0,.55)); }
.lid .kjv { font: italic 400 17px/1.3 var(--display); letter-spacing: .04em; margin: 12px 0 0; }
.lid .rule { width: 70px; height: 1px; background: var(--gilt); margin: 24px auto 0; position: relative; }
.lid .rule::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: var(--gilt); }
.lid .inside { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; border-radius: 8px 3px 3px 8px; background: linear-gradient(270deg, #D9CCB3, #EFE5D2 40%); }
.book .tail { position: absolute; left: 30%; bottom: -58px; width: 16px; height: 74px; background: linear-gradient(90deg, #7A231C, var(--ribbon) 45%, #A5372D 60%, var(--ribbon));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); transition: opacity .3s; z-index: -1; }
.cover-actions { display: grid; gap: 6px; justify-items: center; margin-top: 76px; transition: opacity .25s; }
.cover-actions .btn { min-width: 0; padding: 0 34px; background: transparent; color: #E6D8BE; border-color: rgba(184,137,58,.7); font: 600 15px var(--display); letter-spacing: .3em; text-transform: uppercase; }
.cover-actions .btn:hover { background: rgba(184,137,58,.12); }
.cover-actions a { color: #D6C6A8; font: italic 16px var(--serif); min-height: 44px; display: inline-flex; align-items: center; }
#cover.opening .lid { transform: rotateY(-165deg); }
#cover.opening .tail, #cover.opening .cover-actions { opacity: 0; }
#cover.gone { opacity: 0; pointer-events: none; transition: opacity .45s ease; }

/* ---------- Page turns: the old page is lifted off and turned on the spine; the new page is already beneath it. ---------- */
.leaf { position: absolute; z-index: 4; overflow: hidden; pointer-events: none; transform-origin: left center; margin: 0; box-shadow: 12px 0 30px rgba(30,18,10,.35) !important; }
.leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,25,15,0) 40%, rgba(40,25,15,.4)); opacity: 0; animation: shade .6s ease-in forwards; }
.leaf.next { animation: turn-next .6s cubic-bezier(.45,.05,.3,1) forwards; }
.leaf.prev { transform-origin: right center; animation: turn-prev .6s cubic-bezier(.45,.05,.3,1) forwards; }
@keyframes turn-next { from { transform: perspective(2400px) rotateY(0); } 60% { opacity: 1; } to { transform: perspective(2400px) rotateY(-96deg); opacity: .6; } }
@keyframes turn-prev { from { transform: perspective(2400px) rotateY(0); } 60% { opacity: 1; } to { transform: perspective(2400px) rotateY(96deg); opacity: .6; } }
@keyframes shade { to { opacity: 1; } }
@keyframes fade { to { opacity: 0; } }
.leaf.fade { animation: fade .35s ease forwards; } .leaf.fade::after { display: none; }

/* ---------- Desktop: the open book, two pages across a spine. ---------- */
@media (min-width: 720px) { h1 { font-size: 38px; } .page { padding: 40px 48px 44px; } .feed { margin: 0 -48px; } }
@media (min-width: 1100px) {
  main { padding: 28px 28px 0; }
  .page.spread { max-width: 1240px; margin-top: 14px; min-height: 0; padding: 44px 64px 48px;
    background: linear-gradient(90deg, rgba(60,40,25,.12), transparent 40px calc(50% - 56px), rgba(60,40,25,.2) calc(50% - 2px), rgba(60,40,25,.34) 50%, rgba(60,40,25,.2) calc(50% + 2px), transparent calc(50% + 56px) calc(100% - 40px), rgba(60,40,25,.12)), var(--paper);
    box-shadow: 0 0 0 1px var(--patina), 0 0 0 3px #DDD2BD, 0 0 0 4px var(--patina), 0 0 0 14px var(--leather), 0 0 0 15px var(--edge), 0 34px 60px rgba(10,6,4,.6); }
  .spread .window { overflow: hidden; margin: -14px -2px 0; padding: 14px 2px 0; }
  .spread .chapter { columns: 2; column-gap: 100px; column-fill: auto; margin: 0; }
  .spread .chapter p { break-inside: avoid-column; }
  .spread .turn-hint { display: none; }
  .spread .pager { display: grid; grid-template-columns: calc(50% - 50px) 100px minmax(0, 1fr) auto; column-gap: 0; align-items: center; }
  .spread .pager > :first-child { grid-column: 1; grid-row: 1; justify-self: start; }
  .spread .pager > .small { grid-column: 3; grid-row: 1; justify-self: start; text-align: start; padding-right: 24px; }
  .spread .pager > :last-child { grid-column: 4; grid-row: 1; justify-self: end; }
  .spread .ribbon { left: calc(50% - 9px); right: auto; height: 120px; }
  .spread .running { padding-right: 0; } .spread .running span:first-child { width: calc(50% - 50px); } .spread .running span:last-child { width: calc(50% - 50px); text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .leaf.next, .leaf.prev { animation: fade .25s ease forwards; } .leaf::after { display: none; }
  #cover.opening .lid { transform: none; } #cover.gone { transition: opacity .25s ease !important; }
}

/* Bible in a Year */
.card.plan-card { display: block; margin: 0 0 18px; text-decoration: none; color: inherit; background: var(--paper-hi); border: 1px solid var(--line); border-left: 3px solid var(--gilt); border-radius: 4px; padding: 12px 16px; }
a.plan-card:hover { background: #F1E9DA; }
.plan-card .plan-title { margin: 4px 0 0; font: 600 18px/1.35 var(--display); }
.plan-card .link-btn { margin-top: 6px; display: inline-flex; align-items: center; }
.plan-day { margin-bottom: 8px; }
.plan-progress { width: 100%; height: 8px; accent-color: var(--gilt); margin: 0 0 6px; }
.plan-days { margin-top: 12px; }
.plan-days summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.plan-days li a { display: block; padding: 10px 2px; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 16px/1.4 var(--serif); }
.plan-days .n { display: inline-block; min-width: 4.5em; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gilt-ink); }
