:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --ink: #1f1814;
  --muted: #675b51;
  --cedar: #4b1611;
  --blue: #294761;
  --sage: #53695d;
  --gold: #b1843d;
  --line: rgba(52, 30, 22, 0.16);
  --panel: #fffdf7;
  --panel-blue: #f0f4f5;
  --serif: "Fraunces", Georgia, serif;
  --ui: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.55; letter-spacing: 0; }
a { color: inherit; }
.prayer-site-header, .prayer-hub, .prayer-detail { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.prayer-site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prayer-brand, .prayer-nav { display: flex; align-items: center; gap: 14px; }
.prayer-brand { font-family: var(--serif); font-weight: 700; text-decoration: none; color: var(--cedar); }
.prayer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.prayer-nav { flex-wrap: wrap; }
.prayer-nav a { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--muted); }
.prayer-nav a:hover { color: var(--cedar); }
.prayer-nav a:last-child { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--cedar); border-radius: 6px; padding: 9px 12px; color: var(--cedar); font-weight: 800; }
.prayer-hub, .prayer-detail { padding: clamp(22px, 4vw, 46px) 0; }
.prayer-hero { padding: clamp(24px, 4vw, 44px) 0 30px; border-bottom: 1px solid var(--line); max-width: 900px; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: 0; font-weight: 800; }
h1, h2, h3 { font-family: var(--serif); color: var(--cedar); letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; max-width: 800px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; }
.lede { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }
.library-note { margin: 24px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 780px; }
.library-note p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.library-note strong { color: var(--ink); font-weight: 900; }
.sample-section { margin: 28px 0 48px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 18px; max-width: 760px; }
.section-heading--split { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); align-items: end; max-width: none; }
.section-heading--split p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.prayer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; }
.prayer-card, .browse-card, .empty-state, .prayer-article, .scripture-box, .author-note { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.prayer-card { min-height: 280px; display: grid; align-content: start; gap: 12px; padding: 22px; color: inherit; text-decoration: none; box-shadow: 0 18px 44px rgba(52, 30, 22, 0.06); }
.prayer-card span, .prayer-card small { color: var(--sage); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.prayer-card h2 { margin: 0; font-size: 1.55rem; line-height: 1.1; }
.prayer-card p { margin: 0; color: var(--muted); }
.prayer-card:hover { transform: translateY(-2px); border-color: rgba(75, 22, 17, 0.32); }
.browse-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 54px; }
.browse-card { display: grid; gap: 12px; padding: 24px; text-decoration: none; background: var(--panel-blue); }
.browse-card span { color: var(--blue); font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.browse-card strong { font-family: var(--serif); color: var(--cedar); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; }
.browse-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.directory-section, .filter-panel, .compact-results { margin-top: 52px; }
.directory-list { border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.directory-row__label { font-family: var(--serif); color: var(--cedar); font-size: 1.35rem; line-height: 1.1; }
.directory-row__description { color: var(--muted); }
.directory-row__count { color: var(--sage); font-family: var(--mono); font-size: 12px; font-weight: 800; white-space: nowrap; }
.text-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 10px 14px; text-decoration: none; font-weight: 800; font-size: 14px; }
.filter-pill.is-active { background: var(--cedar); border-color: var(--cedar); color: #fffdf7; }
.prayer-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.prayer-link-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--cedar); }
.prayer-link-row span { font-weight: 800; }
.prayer-link-row small { color: var(--sage); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.list-note { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); }
.empty-state { padding: 24px; }
.empty-state p { color: var(--muted); line-height: 1.45; }
.verse-line, .back-link { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.prayer-article { padding: clamp(22px, 5vw, 56px); }
.prayer-body { margin: 34px 0; font: 22px/1.68 var(--serif); max-width: 760px; }
.author-note { border-left: 4px solid var(--gold); background: rgba(177, 132, 61, .12); padding: 14px 18px; max-width: 720px; }
.author-note p, .prayer-footer p { color: var(--muted); line-height: 1.5; }
.share-card-preview { width: min(420px, 100%); border-radius: 8px; margin: 22px 0; border: 1px solid var(--line); }
.prayer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; }
button { border: 0; border-radius: 999px; background: var(--cedar); color: #fffdf7; padding: 12px 18px; font: 800 14px/1 var(--ui); }
@media (max-width: 980px) {
  .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading--split, .directory-row, .prayer-link-list { grid-template-columns: 1fr; }
  .directory-row { gap: 8px; }
}
@media (max-width: 640px) {
  .prayer-site-header, .prayer-footer { align-items: flex-start; flex-direction: column; }
  .prayer-hero { padding-top: 24px; }
  .browse-rail, .prayer-grid { grid-template-columns: 1fr; }
  .prayer-card { min-height: 220px; }
  .prayer-body { font-size: 20px; }
  .prayer-link-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 0; }
}