:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --white: #fffdf9;
  --ink: #21312a;
  --forest: #142a24;
  --forest-deep: #0e211c;
  --muted: #526159;
  --gold: #785b36;
  --light-gold: #e8c68c;
  --line: #dcd7cc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
body > main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .12em; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a56b22; outline-offset: 4px; }
:where(.masthead, .hero, .closing) :focus-visible { outline-color: #f8dba2; }
::selection { background: #e5c999; color: var(--forest-deep); }
.wrap { width: min(100% - 7.5rem, 80rem); margin-inline: auto; }
.section { padding-block: clamp(4.75rem, 9vw, 8.5rem); }
.section[id], [id="give"] { scroll-margin-top: 1.5rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.25rem, 6vw, 6.1rem); line-height: .99; letter-spacing: -.065em; }
h2 { font-size: clamp(2.4rem, 4.8vw, 4.3rem); line-height: 1.05; letter-spacing: -.055em; }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.2; letter-spacing: -.035em; }
.kicker { color: var(--gold); font-size: .73rem; font-weight: 750; letter-spacing: .18em; line-height: 1.3; text-transform: uppercase; }
p + p { margin-top: 1rem; }
.skip { position: absolute; z-index: 5; top: 1rem; left: 1rem; transform: translateY(-180%); background: var(--white); color: var(--ink); padding: .65rem 1rem; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { background: var(--forest); color: #f8f0e1; border-bottom: 1px solid #ffffff24; }
.masthead-inner, .footer-row, .closing-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.masthead-inner { min-height: 5rem; }
.brand, .masthead nav, .site-footer nav { display: flex; align-items: center; }
.brand { gap: .6rem; text-decoration: none; font-weight: 680; line-height: 1.15; }
.brand img { border-radius: .65rem; flex: none; }
.masthead nav, .site-footer nav { gap: clamp(.85rem, 2.25vw, 2.1rem); font-size: .87rem; font-weight: 600; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { text-decoration: underline; }
.nav-reader { color: var(--light-gold); white-space: nowrap; }

.hero { color: #fbf2e2; background: radial-gradient(ellipse at 79% 41%, #294339 0%, var(--forest) 52%, var(--forest-deep) 100%); }
.hero-grid, .support-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); min-height: 39rem; padding-block: clamp(4.25rem, 8vw, 7rem); }
.hero .kicker { color: var(--light-gold); margin-bottom: 1.4rem; }
.hero-intro { max-width: 35rem; margin-top: 1.6rem; color: #e1e8df; font-size: clamp(1.05rem, 1.42vw, 1.23rem); }
.hero-note { margin-top: 1rem; color: #d4ded4; font-size: .84rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.05rem; width: fit-content; padding: .67rem 1.05rem; border: 1px solid transparent; border-radius: .4rem; text-decoration: none; font-weight: 750; line-height: 1.35; transition: background-color .2s, border-color .2s; }
.button-gold { background: var(--light-gold); color: #243128; }
.button-gold:hover { background: #f5d8a2; }
.button-dark { background: var(--forest); color: var(--white); }
.button-dark:hover { background: #2b473c; }
.button-light { background: var(--white); color: var(--forest); }
.button-light:hover { background: var(--light-gold); }
.text-link { color: #fbf2e2; font-size: .91rem; font-weight: 650; }
.product { position: relative; margin-inline: 0 .65rem; padding-bottom: 1rem; }
.reader-frame, .phone-frame, .support-visual img { background: #e8e1d2; border: 1px solid #dbc69c; overflow: hidden; }
.reader-frame { border-radius: .85rem; padding: .42rem; box-shadow: 0 1.65rem 4rem #07171296; }
.reader-frame img { width: 100%; border-radius: .52rem; }
.phone-frame { position: absolute; z-index: 1; top: 32%; right: -1.4rem; width: 28%; padding: .24rem; border-radius: 1rem; box-shadow: 0 .75rem 1.9rem #0717128c; }
.phone-frame img { width: 100%; border-radius: .74rem; }
.hero figcaption { color: #d9e3d9; font-size: .75rem; margin-top: .7rem; }

.section-intro { max-width: 43rem; margin-bottom: 2rem; }
.section-intro .kicker, .demo-description .kicker, .privacy .kicker, .offline-card .kicker { margin-bottom: .85rem; }
.section-intro > p:last-child, .demo-description > p:not(.kicker), .privacy-content p, .offline-card > p:not(.kicker) { color: var(--muted); margin-top: 1rem; max-width: 46rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.feature-grid article { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid #b9a682; padding: 1.4rem 1.1rem 0 0; }
.feature-grid p { color: var(--muted); margin-block: .7rem 1rem; }
.feature-grid a { margin-top: auto; }
.feature-grid a, .inline-link { color: #583f23; font-size: .91rem; font-weight: 750; }

.demo-band, .support-privacy { background: #ede8dc; border-block: 1px solid #e3ddcd; }
.demo-grid, .privacy, .offline { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(1.7rem, 6vw, 5.8rem); }
.demo-grid { align-items: center; padding-block: clamp(4rem, 7vw, 7rem); }
.demo-description .inline-link { display: inline-block; margin-top: 1.2rem; }
.privacy-content p:first-child { margin-top: 0; }
.privacy-content .inline-link { display: inline-block; margin-top: 1rem; }
.offline { align-items: center; padding-top: 0; }
.offline-card { border: 1px solid var(--line); background: var(--white); padding: clamp(1.45rem, 3.8vw, 3rem); border-radius: .65rem; }
.offline-card .inline-link { display: inline-block; margin-top: 1.15rem; }
.platforms dl { margin: 1rem 0 0; }
.platforms dl div { display: grid; grid-template-columns: 5rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.platforms dt { font-weight: 750; }
.platforms dd { color: var(--muted); margin: 0; }

.closing { background: var(--forest); color: var(--white); padding-block: 3rem; }
.closing h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.closing p { color: #e0e8df; margin-top: .7rem; }
.closing .button { flex: 0 0 auto; }

.site-footer { padding-block: clamp(1.5rem, 4vw, 2.25rem); border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .82rem; }
.site-footer nav { flex-wrap: wrap; }

.support-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); min-height: 34rem; gap: clamp(1.5rem, 8vw, 8rem); padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.support-hero h1 { max-width: 11ch; }
.support-visual { justify-self: center; width: min(100%, 15rem); }
.support-visual img { width: 100%; padding: .35rem; border-radius: 1.05rem; box-shadow: 0 1.6rem 3.5rem #071712a8; transform: rotate(4deg); }
.support-visual figcaption { text-align: center; padding-top: .5rem; }
.giving-grid, .giving-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.giving-card { display: flex; flex-direction: column; padding: clamp(1.35rem, 3.5vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-top: .22rem solid #8e6c40; border-radius: .55rem; box-shadow: 0 .45rem 1.4rem #2e271110; }
.giving-card.recurring { border-top-color: #416055; background: #edf0e8; }
.giving-card h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: .8rem; }
.giving-card > p:not(.kicker) { margin: .6rem 0 1.3rem; color: var(--muted); }
.giving-card .button { margin-top: auto; }

/* Optional monthly gifts: straightforward amount entry, no quantity controls. */
.monthly-gift-form { display: grid; gap: .7rem; margin-top: auto; }
.monthly-gift-form label { font-size: .87rem; font-weight: 740; color: var(--ink); }
.monthly-money-field { display: flex; align-items: center; gap: .55rem; min-height: 3.5rem; padding: .4rem .85rem; background: var(--white); border: 1px solid #b1bdaa; border-radius: .55rem; color: var(--forest); font: 1.55rem/1.2 var(--serif); }
.monthly-money-field:focus-within { outline: 3px solid #a56b22; outline-offset: 2px; }
.monthly-money-field input { flex: 1; width: 0; min-width: 0; border: 0; outline: none; font: inherit; background: transparent; color: inherit; font-variant-numeric: tabular-nums; }
.monthly-money-field input:focus-visible { outline: none; }
.monthly-suffix { font: 600 .77rem/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.monthly-gift-form .monthly-gift-explanation { margin: 0 0 .45rem; color: var(--muted); font-size: .8rem; }
.monthly-gift-form .button { width: 100%; }

.giving-details { margin-top: 2rem; }
.giving-details > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.giving-details p { color: var(--muted); margin: .55rem 0 .6rem; }
.support-privacy { padding-block: clamp(3rem, 6vw, 5.5rem); }

@media (max-width: 67rem) {
  .wrap { width: min(100% - 4rem, 80rem); }
  .hero-grid { min-height: auto; }
}
@media (max-width: 52rem) {
  .wrap { width: min(100% - 3rem, 80rem); }
  .hero-grid, .support-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.85rem; }
  .desktop-break { display: none; }
  .product { width: min(100% - .65rem, 42rem); }
  .support-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .45fr); }
  .demo-grid, .privacy, .offline { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4.1rem; gap: .5rem; }
  .brand { font-size: .83rem; }
  .brand img { width: 1.75rem; height: 1.75rem; border-radius: .4rem; }
  .masthead nav { gap: .7rem; font-size: .78rem; }
  .section { padding-block: 3.3rem; }
  .hero-grid, .support-grid { padding-block: 3.25rem 3rem; }
  .hero-grid { gap: 2.5rem; }
  .product { margin-inline: 0; }
  .phone-frame { right: -.9rem; }
  .hero figcaption { max-width: 75%; }
  .feature-grid, .giving-grid, .giving-details { grid-template-columns: 1fr; }
  .feature-grid { gap: 1.35rem; }
  .feature-grid article { padding-top: 1rem; }
  .closing-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .offline { padding-top: 0; }
  .support-grid { grid-template-columns: 1fr; }
  .support-visual { width: 10.5rem; justify-self: center; }
  .support-visual figcaption { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.page-title { color: var(--forest); font-size: clamp(2.8rem, 5.8vw, 5.4rem); }
.page-intro { color: var(--muted); margin-block: 1.25rem; max-width: 34rem; }
.page-section { min-height: 60vh; }
.home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 6vw, 5rem); }
.home-links article, .privacy-details section { border-top: 1px solid var(--line); padding-top: 1rem; }
.home-links p { color: var(--muted); margin-block: .8rem 1rem; }
.privacy-details { display: grid; gap: 1.4rem; }
.privacy-details h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.privacy-details section p:first-of-type { margin-top: .55rem; }
.demo-band + .offline { padding-top: clamp(3.3rem, 8vw, 7.5rem); }

.stats-band { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stats-grid div { display: flex; flex-direction: column; gap: .3rem; }
.stats-grid strong { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.85rem); font-weight: 400; line-height: 1.05; color: var(--forest); letter-spacing: -.04em; }
.stats-grid span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.pillar-grid, .journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; margin-top: 2.25rem; }
.pillar-grid article, .journey-grid article { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-top: 3px solid #9b7c4f; border-radius: .6rem; padding: 1.5rem 1.4rem; box-shadow: 0 .35rem 1.25rem #2e27110a; }
.pillar-grid h3, .journey-grid h3 { margin-top: .55rem; color: var(--forest); }
.pillar-grid p:not(.kicker), .journey-grid p { color: var(--muted); margin-block: .65rem 1rem; font-size: .95rem; }
.journey-grid a { margin-top: auto; color: #583f23; font-size: .91rem; font-weight: 750; }
.step-num { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); letter-spacing: .04em; }

.faith-band { background: #ede8dc; border-block: 1px solid #dfd7c4; padding-block: clamp(3.75rem, 7vw, 6.25rem); }
.faith-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.faith-grid p:not(.kicker) { color: var(--muted); margin-top: 1rem; max-width: 40rem; }
.faith-pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.faith-pills a { display: flex; align-items: center; height: 100%; min-height: 44px; text-decoration: none; background: var(--white); border: 1px solid #d5cab4; border-left: 3px solid var(--forest); border-radius: .45rem; padding: .85rem 1rem; font-family: var(--serif); font-size: 1.08rem; color: var(--forest); box-shadow: 0 .25rem .8rem #2e271108; }
.faith-pills a:hover { background: #f8f4e8; text-decoration: underline; }

@media (max-width: 60rem) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid, .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faith-grid { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .masthead-inner { flex-wrap: wrap; align-content: center; gap: .45rem; padding-block: .55rem; }
  .masthead nav { width: 100%; flex-wrap: wrap; }
  .home-links, .pillar-grid, .journey-grid, .faith-pills { grid-template-columns: 1fr; }
}

/* Deep Bible study / Exegesis showcase on landing page */
.exegesis-band {
  background: var(--forest);
  color: var(--paper);
  padding-block: clamp(4.25rem, 8vw, 6.5rem);
}
.exegesis-band .kicker { color: var(--gold); }
.exegesis-band h2 { color: var(--white); }
.exegesis-band .section-intro > p:last-child { color: #d8e3dc; }
.exegesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.exegesis-grid article {
  background: #ffffff0c;
  border: 1px solid #ffffff1c;
  border-radius: .65rem;
  padding: 1.45rem 1.35rem;
}
.exegesis-grid h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 .55rem;
}
.exegesis-grid p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #e4ece7;
}
@media (max-width: 60rem) {
  .exegesis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .exegesis-grid { grid-template-columns: 1fr; }
}
.exegesis-showcase-figure {
  margin: 2rem 0 0;
}
.exegesis-showcase-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
  border: 1px solid #ffffff24;
  box-shadow: 0 1.4rem 3.5rem #00000040;
}
.exegesis-showcase-figure figcaption {
  margin-top: .85rem;
  font-size: .92rem;
  line-height: 1.5;
  color: #cfe0d6;
}
