/* ============================================================
   Evervine — site stylesheet
   Visual language mirrors the app's "Vigil" dark theme.
   Tokens copied from the app's src/theme/colors.ts (see WEBSITE_BRIEF.md).
   Gold discipline: --accent appears only on the verse, thin rules,
   and small sacred markers. No drop shadows anywhere.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/playfair-display.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/playfair-display-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --canvas: #1a1d21;
  --surface: #252930;
  --ink: #e4e4e7;
  --ink-2: #a1a1aa;
  --ink-3: #52525b; /* decorative / large text only — fails AA for body copy */
  --accent: #e5d8b8;
  --ink-on-accent: #1a1d21;
  --border: rgba(228, 228, 231, 0.12);
  --ghost: rgba(228, 228, 231, 0.1);

  --glass-fill: rgba(37, 41, 48, 0.55);
  --glass-edge-top: rgba(255, 255, 255, 0.18);
  --glass-edge-side: rgba(255, 255, 255, 0.06);

  --radius-card: 16px;
  --radius-container: 24px;
  --radius-button: 12px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --measure: 62ch;
  --page-max: 68rem;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(5rem, 12vw, 9rem);
}

/* ---------- Reset-adjacent ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* Atmosphere: soft candle-glow the glass can blur. Fixed so it stays
   quiet behind the whole page. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56rem 40rem at 50% -8rem, rgba(229, 216, 184, 0.07), transparent 65%),
    radial-gradient(40rem 34rem at 82% 32rem, rgba(120, 134, 156, 0.06), transparent 70%),
    radial-gradient(46rem 40rem at 12% 110%, rgba(229, 216, 184, 0.04), transparent 70%),
    var(--canvas);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--ink-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--ink-on-accent);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section {
  padding-block: var(--section-y);
}

main {
  display: block;
}

/* A thin gold hairline used as a sacred marker between moments. */
.rule {
  border: 0;
  width: 3.5rem;
  height: 1px;
  margin: 0 auto;
  background: var(--accent);
  opacity: 0.6;
}

/* Under a page title it is a divider, not a centred ornament, so it starts
   where the text starts. The reader and the verse band keep it centred. */
.page-meta + .rule,
.prose .rule {
  margin-inline: 0 auto;
  margin-bottom: 2.75rem;
}

/* ---------- Glass ---------- */

.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge-side);
  border-top-color: var(--glass-edge-top);
  border-radius: var(--radius-card);
}

/* ---------- Buttons & forms ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #f7f7f8;
}

.waitlist {
  display: flex;
  gap: 0.625rem;
  max-width: 26rem;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

.waitlist input[type="email"]::placeholder {
  color: var(--ink-2);
}

.waitlist-note {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 0.875rem;
}

.waitlist-confirm {
  min-height: 52px;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
}

@media (max-width: 26rem) {
  .waitlist {
    flex-direction: column;
  }
}

/* ---------- Hero ----------
   Phone: the sentence, then the room, then the ask — the device runs to the
   section's bottom edge, so the fold does the cropping rather than a crop.
   Desktop (>=68rem): copy left, device right, still flush to that edge. */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 7vw, 4.5rem) 0;
  text-align: center;
}

/* The vine sprig is a desktop grace note. On a phone it spent 2.25rem of the
   fold on decoration, which is the one thing the fold cannot spare. */
.hero-sprig {
  display: none;
  margin: 0 0 2.25rem;
  color: var(--accent);
  opacity: 0.85;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 33rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

.hero .waitlist {
  margin-inline: auto;
}

.hero .waitlist-confirm {
  justify-content: center;
}

.hero .device {
  margin: 0 auto clamp(2.25rem, 7vw, 3rem);
}

.hero-ask {
  padding-bottom: var(--section-y);
}

@media (min-width: 68rem) {
  .hero {
    text-align: left;
  }

  /* The device is taken out of flow so it can sit on the section's bottom
     edge without stretching the copy's rows to match its height. */
  .hero .wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 53rem;
    padding-right: calc(var(--pad-x) + 27rem);
  }

  .hero-sprig {
    display: block;
  }

  .hero-sub,
  .hero .waitlist {
    margin-inline: 0;
  }

  .hero .waitlist-confirm {
    justify-content: flex-start;
  }

  .hero-ask {
    padding-bottom: 0;
  }

  .hero .device {
    position: absolute;
    right: var(--pad-x);
    bottom: 0;
    margin: 0;
  }
}

/* ---------- The device: the Inner Room, drawn rather than screenshotted ----
   Built from the app's own tokens so it stays crisp at any density and moves
   when the app's UI moves. Scaled as a whole so every proportion is the
   app's real one. */

.device {
  --dev-scale: 0.64;
  position: relative;
  width: calc(390px * var(--dev-scale));
  height: calc(844px * var(--dev-scale));
}

@media (min-width: 23rem) {
  .device {
    --dev-scale: 0.7692;
  }
}

@media (min-width: 68rem) {
  .device {
    --dev-scale: 1;
  }
}

.device-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  border-radius: 52px;
  overflow: hidden;
  background: #0d0f11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(var(--dev-scale));
  transform-origin: top left;
  text-align: left;
}

.device-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* The app's own two scrims: heavier behind the greeting, softer behind the
   practice card. Stops copied from the Vigil theme. */
.device-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 15, 17, 0.68) 0%,
    rgba(13, 15, 17, 0) 35%,
    rgba(13, 15, 17, 0) 45%,
    rgba(13, 15, 17, 0.55) 100%);
}

.device-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 60px 24px 132px;
}

.ir-date {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.7);
  margin: 0 0 6px;
}

.ir-greet {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: #fdfbf7;
  margin: 0 0 32px;
}

.ir-vessel {
  margin-top: auto;
  border-radius: 24px;
  padding: 24px;
  background: rgba(26, 29, 33, 0.45);
}

.ir-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.ir-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 8px;
}

.ir-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-2);
  margin: 0;
}

.ir-cta {
  margin: 20px 0 0;
  height: 48px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ir-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
  border-radius: 24px;
  background: rgba(26, 29, 33, 0.45);
  display: flex;
  padding: 12px 8px;
}

.ir-nav > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.ir-nav > span:first-child {
  color: var(--accent);
}

/* ---------- Verse band (the signature moment) ---------- */

.verse-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(37, 41, 48, 0.35);
  text-align: center;
  padding-block: calc(var(--section-y) * 1.1);
}

.verse-figure {
  margin: 0;
}

.verse {
  margin: 0;
  padding: 0;
}

.verse p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  line-height: 1.55;
  color: var(--accent);
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  text-wrap: balance;
}

.verse-ref {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.verse-after {
  color: var(--ink-2);
  max-width: 30rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  text-wrap: pretty;
}

/* ---------- The practices ----------
   Five glass boxes made glass ordinary. As a list on hairlines it stays
   quiet, and glass is left to mean something where it still appears. */

.practices {
  text-align: center;
}

.practices h2 {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2.25rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
  max-width: 60rem;
  margin-inline: auto;
  text-align: left;
}

.practice-item {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.practice-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.practice-item p {
  color: var(--ink-2);
  font-size: 1rem;
  margin: 0;
}

/* The section is centred, but a column of body prose inside it is not:
   centred paragraphs start every line in a different place, and this one
   runs four paragraphs deep. */
.practices .prose {
  text-align: left;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  text-align: left;
}

.card {
  flex: 0 1 19rem;
  min-width: min(16rem, 100%);
  padding: 1.85rem 1.85rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-2);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Privacy note (quiet, compact) ---------- */

.privacy-note {
  text-align: center;
  padding-block: calc(var(--section-y) * 0.7);
}

.privacy-note h2 {
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin-bottom: 1rem;
}

.privacy-note p {
  max-width: 36rem;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---------- Waitlist repeat ---------- */

.waitlist-repeat {
  padding-top: calc(var(--section-y) * 0.5);
}

.panel {
  border-radius: var(--radius-container);
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad-x);
  text-align: center;
}

.invite {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 400;
  max-width: 30rem;
  margin: 0 auto 2rem;
}

.panel .waitlist {
  margin-inline: auto;
}

.panel .waitlist-confirm {
  justify-content: center;
}

/* ---------- Header & footer ---------- */

.site-header {
  padding-block: 1.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: var(--ink-2);
}

/* ---------- Utility pages (prose) ---------- */

.page {
  padding-block: clamp(3rem, 7vw, 5rem) var(--section-y);
}

.prose {
  max-width: var(--measure);
}

.prose h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
}

/* Body copy is primary ink. Secondary grey is right for meta and captions;
   a 1,400-word guide set entirely in it reads as permanently de-emphasised,
   and the guides are the longest reads on the site. */
.prose p,
.prose li {
  color: var(--ink);
  font-size: clamp(1.09rem, 0.5vw + 1rem, 1.19rem);
  line-height: 1.75;
}

.prose .muted,
.prose .page-meta {
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 0 0 1.4rem;
}

.prose li {
  margin-bottom: 0.85rem;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 2.5rem;
}

.draft-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--ghost);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   The /app area — signed-in prayer cards — and the public Bible
   reader at /read/. Same Vigil tokens as the marketing pages;
   gold stays reserved for scripture, thin rules, and small markers.
   ============================================================ */

/* ---------- Shell ---------- */

.app-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-line {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.app-page {
  min-height: 60vh;
}

/* Everything in /app reads better in a column than across the full page. */
.app-page .wrap > section {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: 0;
}

.app-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
}

.app-lede {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.app-back {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.app-foot-note {
  margin-top: 3rem;
  font-size: 0.95rem;
}

.app-error {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

/* ---------- Sign-in gate ---------- */

.auth-gate {
  max-width: 30rem;
  margin-inline: auto;
  padding-block: clamp(1rem, 6vw, 4rem);
  text-align: center;
}

.auth-mount {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Clerk mounts its own root element, which is width:100% and stacks its
   children from the start edge — so centering has to be re-applied INSIDE
   the mount, not just on it. Without this the sign-in card sits hard left. */
.auth-mount > div,
.auth-mount .cl-rootBox {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-mount .cl-card {
  margin-inline: auto;
}

/* ---------- Menu ---------- */

.daily-verse {
  margin: 0 0 3rem;
  text-align: center;
}

.daily-verse .rule {
  margin-bottom: 1.75rem;
}

.app-menu {
  justify-content: flex-start;
}

.app-card {
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  border-color: var(--glass-edge-top);
}

/* ---------- Buttons the app area adds ---------- */

.button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--ghost);
}

.button:disabled,
.button.ghost:disabled {
  opacity: 0.4;
  cursor: default;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

/* ---------- Reader ----------
   Shared by the public /read/ page, which sits outside /app. Nothing here
   may assume a signed-in visitor or an .auth-gate ancestor. */

.reader-controls {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding: 0.875rem 1rem;
  margin-bottom: 2.5rem;
}

.reader-spacer {
  flex: 1;
}

.reader-controls select {
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.reader {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.chapter-reference {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.reader .rule {
  margin-bottom: 2.25rem;
}

.chapter-text {
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.19rem, 0.6vw + 1.05rem, 1.31rem);
  line-height: 1.85;
}

.chapter-text p {
  margin-bottom: 1.4rem;
}

/* The verse number — a small marker, which is sanctioned gold. Held back to
   0.7 so a dense chapter is not speckled with it. */
.verse-num {
  color: var(--accent);
  opacity: 0.7;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.55em;
  margin-right: 0.3em;
  vertical-align: super;
  line-height: 0;
}

.reader-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 3rem auto 0;
}

.reader-credit {
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* One hairline between the chapter and everything that is not the chapter. */
.reader-nav + .reader-credit {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ---------- Prayer cards ---------- */

.prayer-form {
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.prayer-form label {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 0.75rem;
}

.prayer-form input,
.prayer-form textarea,
.prayer-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  resize: vertical;
}

.prayer-form input::placeholder,
.prayer-form textarea::placeholder {
  color: var(--ink-2);
}

.prayer-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pray-through {
  margin-bottom: 2.5rem;
}

.prayer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

.prayer-card h3 {
  font-size: 1.15rem;
}

.prayer-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 0.9rem;
}

.prayer-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* ---------- Pray-through session ---------- */

.prayer-session {
  display: flex;
  justify-content: center;
  padding-block: clamp(2rem, 8vw, 5rem);
}

.session-panel {
  max-width: 32rem;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
}

.session-panel h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.session-intention {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-2);
  margin-bottom: 2.25rem;
}

.session-panel .link-button {
  margin-top: 1.5rem;
}

@media (max-width: 34rem) {
  .reader-nav {
    flex-direction: column;
  }

  .reader-nav .button {
    width: 100%;
  }
}

/* The links were inline with only source whitespace between them, so they
   ran together and, on a phone, pushed the document wider than the viewport
   — which clipped the hero headline. Flex + gap, and the bar wraps the whole
   nav onto its own line when it no longer fits beside the wordmark. */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
}

/* ---------- Library: breadcrumbs, book and chapter indexes ---------- */

/* Added for the pre-rendered Scripture pages and the practice library.
   Everything here reuses the tokens above; no new colours were introduced. */

.breadcrumbs {
  margin: 0 0 2rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.breadcrumbs li + li::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--ink-3);
}

.breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

/* The 66-book index on /read/ and the chapter grids on each book page. */

/* Two testaments side by side, each flowing into columns — 39 books stacked
   in one run was a wall you had to scroll past to reach the New Testament. */
.book-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 1rem;
  text-align: left;
}

.book-index .blist {
  column-width: 9.5rem;
  column-gap: clamp(1.25rem, 3vw, 2rem);
}

.book-index a {
  display: block;
  padding: 0.3rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  break-inside: avoid;
}

.book-index a:hover {
  color: var(--accent);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
  gap: 0.625rem;
  max-width: var(--measure);
  margin: 2rem 0 3rem;
}

.chapter-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--ghost);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
}

.chapter-grid a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Chapter pages set text-align on .reader; the prev/next row is a link pair
   there rather than the button pair used by the JS reader, so it needs the
   same spread without relying on :disabled. */
.reader-nav a.button.ghost {
  text-decoration: none;
}

/* ---------- Library: practice guides ---------- */

.practice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2.25rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.practice-list li {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.practice-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.practice-list a {
  text-decoration: none;
}

.practice-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* The single quiet invitation at the foot of a guide. Deliberately not a
   repeated banner — one ask, at the end, after the page has been useful. */
.invitation {
  margin: clamp(3.5rem, 8vw, 5rem) 0 0;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--glass-edge-side);
  border-top-color: var(--glass-edge-top);
  border-radius: var(--radius-container);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  text-align: center;
}

.invitation p {
  margin: 0 0 1.25rem;
  color: var(--ink-2);
}

.faq {
  margin-top: 3rem;
}

.faq h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.05rem;
}
