:root {
  --ivory: #f6f0e4;
  --paper: #fffaf0;
  --burgundy: #681f2b;
  --burgundy-dark: #3f1019;
  --ink: #231f1b;
  --muted: #655e56;
  --rule: #cbbdab;
  --peach: #e59a7b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--ivory); color: var(--ink); font-size: 17px; scroll-behavior: auto; }
body { margin: 0; font-family: var(--serif); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--burgundy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
button, input { font: inherit; }
.page-width { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .65rem 1rem; color: white; background: var(--burgundy); transform: translateY(-180%); font-family: var(--sans); }
.skip-link:focus { transform: none; }

.site-header { width: min(calc(100% - 3rem), var(--content)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-family: var(--serif); font-size: 1.18rem; font-weight: 700; text-decoration: none; }
.wordmark img { border-radius: 10px; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a { color: var(--ink); font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--burgundy); }
.site-header .nav-app { padding: .55rem .9rem; border: 1px solid var(--burgundy); color: var(--burgundy); }

h1, h2, h3 { margin-top: 0; font-weight: 500; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
.eyebrow, .section-number, .folio { margin: 0 0 1rem; font-family: var(--sans); font-size: .72rem; font-weight: 750; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(2rem, 8vw, 8rem); align-items: center; padding-block: 5rem 6.5rem; }
.hero h1 { max-width: 780px; margin-bottom: 1.5rem; color: var(--burgundy-dark); }
.hero-deck, .article-deck { max-width: 720px; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.5; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin: 2rem 0 1rem; font-family: var(--sans); }
.button { display: inline-block; padding: .82rem 1.15rem; border: 1px solid var(--burgundy); background: var(--burgundy); color: white; font-family: var(--sans); font-size: .88rem; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--burgundy-dark); color: white; }
.text-link { font-size: .92rem; font-weight: 700; }
.small-note { max-width: 520px; color: var(--muted); font-family: var(--sans); font-size: .8rem; line-height: 1.55; }
.app-figure { position: relative; margin: 0; padding: 0 0 0 2rem; }
.app-figure .folio { position: absolute; top: 1.5rem; left: -1rem; color: var(--burgundy); writing-mode: vertical-rl; }
.phone-frame { max-width: 340px; margin: auto; overflow: hidden; border: 9px solid var(--ink); border-radius: 43px; box-shadow: 0 28px 60px rgba(55, 31, 25, .19); background: var(--ink); }
.app-figure figcaption { max-width: 360px; margin: 1.2rem auto 0; color: var(--muted); font-family: var(--sans); font-size: .72rem; line-height: 1.5; }
.app-figure figcaption strong { color: var(--burgundy); text-transform: uppercase; letter-spacing: .08em; }

.editorial-band { background: var(--burgundy); color: var(--paper); }
.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; padding-block: 7rem; }
.band-grid h2 { max-width: 550px; }
.section-number { color: var(--peach); }
.prose-lead { max-width: 600px; font-size: 1.24rem; }
.prose-lead p:first-child { margin-top: .3rem; }
.feature-spread { display: grid; grid-template-columns: 1fr 1.1fr; gap: 9vw; padding-block: 8rem; }
.feature-heading { position: sticky; top: 2rem; align-self: start; }
.feature-heading h2 { color: var(--burgundy-dark); }
.feature-list { margin: 0; }
.feature-list div { padding: 0 0 2.5rem 4rem; border-top: 1px solid var(--rule); }
.feature-list dt { margin-top: 1.25rem; color: var(--burgundy); font-family: var(--sans); font-size: 1.05rem; font-weight: 750; }
.feature-list dd { margin: .6rem 0 0; font-size: 1.12rem; }
.rule-section { background: #e9dece; }
.rule-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9vw; padding-block: 7rem; }
.rule-title h2 { max-width: 650px; }
.rule-copy { padding-top: 3.5rem; font-size: 1.15rem; }
.prayer-rhythm-figure { margin: 2rem 0 0; }
.prayer-rhythm-figure img { width: 100%; border: 1px solid var(--rule); background: var(--paper); }
.reflection-title { margin: 3rem 0 .75rem; color: var(--burgundy-dark); font-size: 1.6rem; }
.prayer-rhythm-figure figcaption { margin-top: .75rem; color: var(--muted); font-family: var(--sans); font-size: .76rem; line-height: 1.5; }
.guide-callout { max-width: 900px; padding-block: 8rem; text-align: center; }
.guide-callout p:not(.eyebrow) { max-width: 680px; margin: 0 auto 2rem; font-size: 1.15rem; }
.button-outline { background: transparent; color: var(--burgundy); }
.button-outline:hover { background: var(--burgundy); }
.closing-cta { padding-block: 6rem; background: var(--burgundy-dark); color: white; text-align: center; }
.closing-cta h2 { margin-bottom: 2rem; }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--burgundy-dark); }
.button-light:hover { background: white; color: var(--burgundy-dark); }

.library-header { max-width: 900px; margin-top: 5rem; margin-bottom: 4rem; text-align: center; }
.library-header h1 { font-size: clamp(3.2rem, 7vw, 6rem); color: var(--burgundy-dark); }
.library-header > p:last-child { font-size: 1.3rem; }
.library-tools { display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: 6vw; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.library-tools label { display: block; margin-bottom: .45rem; font-size: .76rem; font-weight: 700; }
.search-row { display: flex; }
.search-row input { min-width: 0; flex: 1; padding: .7rem; border: 1px solid var(--rule); border-right: 0; border-radius: 0; background: var(--paper); color: var(--ink); }
.search-row button { border: 1px solid var(--burgundy); background: var(--burgundy); color: white; cursor: pointer; font-size: .82rem; font-weight: 700; }
.category-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.2rem; }
.category-nav a { color: var(--muted); font-size: .8rem; font-weight: 650; text-decoration: none; }
.category-nav a[aria-current='page'] { color: var(--burgundy); text-decoration: underline; }
.guide-index { padding-block: 2rem 7rem; }
.result-count { color: var(--muted); font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.guide-row { display: grid; grid-template-columns: 70px 1fr 50px; gap: 1.25rem; align-items: center; padding: 2.8rem 0; border-top: 1px solid var(--rule); }
.guide-number { align-self: start; color: var(--burgundy); font-family: var(--sans); font-size: .75rem; font-weight: 700; }
.guide-row h2 { margin-bottom: .75rem; font-size: clamp(1.75rem, 3vw, 2.8rem); }
.guide-row h2 a { color: var(--ink); text-decoration: none; }
.guide-row h2 a:hover { color: var(--burgundy); }
.guide-row p:not(.eyebrow):not(.guide-date) { max-width: 720px; margin-bottom: .75rem; }
.guide-date { color: var(--muted); font-family: var(--sans); font-size: .74rem; }
.guide-arrow { font-size: 2rem; text-decoration: none; }
.empty-state { padding-block: 5rem; text-align: center; }

.article-header { max-width: 960px; padding-top: 4rem; padding-bottom: 4rem; }
.article-header h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 6rem); color: var(--burgundy-dark); }
.breadcrumbs { margin-bottom: 3rem; color: var(--muted); font-family: var(--sans); font-size: .76rem; }
.breadcrumbs span { margin-left: .55rem; }
.article-meta { display: flex; gap: 3rem; margin-top: 2.5rem; font-family: var(--sans); font-size: .76rem; }
.article-meta div { display: grid; gap: .1rem; }
.article-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.article-meta dd { margin: 0; }
.article-grid { display: grid; grid-template-columns: 170px minmax(0, 720px); gap: 4rem; justify-content: center; padding-bottom: 5rem; }
.article-margin { align-self: start; position: sticky; top: 2rem; display: grid; gap: 1.5rem; padding-top: .5rem; font-family: var(--sans); font-size: .76rem; }
.article-margin .folio { color: var(--burgundy); }
.article-body { font-size: 1.1rem; }
.article-body > p:first-child { margin-top: 0; font-size: 1.3rem; line-height: 1.55; }
.article-body h2 { margin-top: 3.5rem; margin-bottom: 1.2rem; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--burgundy-dark); }
.article-body h3 { margin-top: 2.5rem; color: var(--burgundy); }
.article-body blockquote { margin: 2.5rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 3px solid var(--burgundy); font-size: 1.25rem; }
.article-body table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .96rem; }
.article-body caption { padding-bottom: .75rem; text-align: left; font-family: var(--sans); font-weight: 700; }
.article-body th, .article-body td { padding: .8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article-body pre { max-width: 100%; overflow: auto; padding: 1rem; background: #e9dece; }
.review-note, .bibliography { max-width: 900px; padding-block: 4rem; border-top: 1px solid var(--rule); }
.review-note h2, .bibliography h2 { font-size: 2.4rem; }
.bibliography ol { padding-left: 1.25rem; }
.bibliography li { margin-bottom: .8rem; padding-left: .5rem; }
.article-app-cta { margin-top: 3rem; padding-block: 4rem; background: var(--burgundy); color: white; }
.article-app-cta > div { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.article-app-cta h2 { max-width: 700px; margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.related-guides { width: min(calc(100% - 3rem), 900px); margin: 6rem auto; }
.related-guides h2 { font-size: 2.4rem; }
.related-guides > div { display: grid; border-top: 1px solid var(--rule); }
.related-guides a { display: flex; gap: 2rem; justify-content: space-between; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.related-guides a span { color: var(--burgundy); font-family: var(--sans); font-size: .72rem; text-transform: uppercase; }

.simple-page { max-width: 920px; padding-block: 5rem 8rem; }
.simple-page header { padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.simple-page h1 { color: var(--burgundy-dark); }
.simple-body { max-width: 720px; margin: 4rem auto 0; font-size: 1.1rem; }
.simple-body h2 { margin-top: 3.5rem; font-size: 2.5rem; color: var(--burgundy-dark); }
.not-found { min-height: 62vh; padding-block: 8rem; text-align: center; }
.not-found h1 { color: var(--burgundy-dark); }
.not-found p:not(.eyebrow) { margin-bottom: 2rem; font-size: 1.2rem; }

.site-footer { padding: 4.5rem 0 1.5rem; background: var(--ink); color: var(--paper); font-family: var(--sans); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; }
.footer-brand { color: white; font-family: var(--serif); font-size: 1.65rem; font-weight: 700; text-decoration: none; }
.footer-grid p { max-width: 400px; color: #d7cec1; font-size: .82rem; }
.footer-grid nav { display: grid; align-content: start; gap: .65rem; }
.site-footer a { color: var(--paper); font-size: .82rem; }
.footer-small { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid #514941; color: #b9afa2; font-size: .7rem; }

@media (max-width: 760px) {
  html { font-size: 16px; }
  .page-width, .site-header { width: min(calc(100% - 2rem), var(--content)); }
  .site-header { min-height: 76px; }
  .wordmark img { width: 36px; height: 36px; }
  .wordmark span { max-width: 80px; line-height: 1.05; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .76rem; }
  .site-header nav a:nth-child(2) { display: none; }
  .site-header .nav-app { padding: .42rem .6rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 3.5rem 5rem; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .app-figure { padding-left: 0; }
  .app-figure .folio { left: 0; }
  .phone-frame { max-width: 275px; border-width: 7px; border-radius: 36px; }
  .band-grid, .feature-spread, .rule-grid, .library-tools { grid-template-columns: 1fr; }
  .band-grid, .feature-spread, .rule-grid { gap: 2rem; padding-block: 5rem; }
  .feature-heading { position: static; }
  .feature-list div { padding-left: 0; }
  .rule-copy { padding-top: 0; }
  .library-header { margin-top: 3.5rem; margin-bottom: 2.5rem; }
  .category-nav { justify-content: flex-start; }
  .guide-row { grid-template-columns: 38px 1fr; gap: .8rem; }
  .guide-arrow { display: none; }
  .article-header { padding-top: 3rem; padding-bottom: 3rem; }
  .breadcrumbs { margin-bottom: 2rem; }
  .article-meta { gap: 1.5rem; }
  .article-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-margin { position: static; grid-template-columns: 1fr 1fr; }
  .article-body { font-size: 1.04rem; }
  .article-app-cta > div { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-small { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
