/* Layout: a mission field report. Full-bleed photo hero, an Andean woven stripe as the one bold device, the RHEMA seal pinned on a real map of Bolivia, then calm reading sections. */
:root {
  --paper: #FBFAF7; --panel: #F1EEE7; --ink: #15233D; --muted: #5A6476; --line: #DCD7CC;
  --navy: #1B3463; --navy-deep: #0F1F3D; --gold: #B07C10; --gold-bright: #E9B23A; --red: #B5322A; --green: #2F7A4A;
  --on-dark: #F6F3EC; --on-dark-muted: #C3C9D6;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151F; --panel: #171E2B; --ink: #E9EAEE; --muted: #A6AEBD; --line: #2A3242;
    --navy: #A9C1EA; --navy-deep: #0A1222; --gold: #E9B23A; --gold-bright: #F2C55E; --red: #E07467; --green: #6FBF8A;
    --on-dark: #F6F3EC; --on-dark-muted: #C3C9D6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10151F; --panel: #171E2B; --ink: #E9EAEE; --muted: #A6AEBD; --line: #2A3242;
  --navy: #A9C1EA; --navy-deep: #0A1222; --gold: #E9B23A; --gold-bright: #F2C55E; --red: #E07467; --green: #6FBF8A;
  --on-dark: #F6F3EC; --on-dark-muted: #C3C9D6; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 44px); color: var(--navy); }
h3 { font-size: 22px; color: var(--navy); }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { body { font-size: 17px; } .wrap { padding-inline: 16px; } }
.eyebrow { font: 600 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.15em; color: var(--muted); max-width: 60ch; }
.ph { background: color-mix(in srgb, var(--gold-bright) 28%, transparent); border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* preview strip */
.preview { background: var(--navy-deep); color: var(--on-dark-muted); font-size: 14px; text-align: center; padding: 8px 16px; }
.preview b { color: var(--gold-bright); }

/* aguayo stripe: the Andean woven band */
.aguayo { height: 14px; background:
  repeating-linear-gradient(90deg, var(--red) 0 22px, var(--gold-bright) 22px 30px, var(--green) 30px 52px, var(--gold-bright) 52px 60px, var(--navy-deep) 60px 66px); }
.aguayo.thin { height: 6px; }

/* header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 40px; height: 40px; color: var(--navy); flex: none; }
.brand b { font: 400 19px/1.1 var(--display); display: block; }
.brand small { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.site-head nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.site-head nav a { text-decoration: none; color: var(--ink); }
.site-head nav a:hover { color: var(--gold); }
.site-head nav a.current { color: var(--gold); font-weight: 600; }
.site-head { position: sticky; }
.navlinks { display: contents; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; align-items: center; font: 600 15px/1 var(--body); background: transparent; color: var(--ink); border: 2px solid var(--line); border-radius: 6px; padding: 10px 12px; cursor: pointer; }
  .site-head.open .navlinks { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
  .site-head.open .navlinks a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .site-head.open .navlinks a:last-child { border-bottom: 0; }
  .site-head nav { gap: 10px; }
}
@media (max-width: 640px) {
  .site-head .wrap { padding-block: 8px; gap: 10px; }
  .brand svg { width: 32px; height: 32px; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
}
@media (max-width: 380px) { .brand b { font-size: 16px; } .site-head .btn.small, .menu-btn { padding: 9px 11px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); text-decoration: none; padding: 14px 20px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--gold-bright); color: #1A1404; }
.btn.primary:hover { background: #F5C450; }
.btn.navy { background: var(--navy-deep); color: var(--on-dark); }
:root[data-theme="dark"] .btn.navy { background: var(--navy); color: #0B1424; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.navy { background: var(--navy); color: #0B1424; } }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.small { padding: 10px 14px; font-size: 15px; }

/* hero */
.hero { position: relative; color: var(--on-dark); background: var(--navy-deep); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .55; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,34,.92) 0%, rgba(10,18,34,.55) 60%, rgba(10,18,34,.2) 100%); }
.hero .wrap { position: relative; padding-block: clamp(56px, 9vw, 120px); display: grid; gap: 22px; max-width: 1120px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); max-width: 13ch; }
.hero p { max-width: 52ch; color: var(--on-dark-muted); font-size: 1.12em; }
.hero .eyebrow { color: var(--gold-bright); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.date-chip { justify-self: start; display: inline-flex; gap: 10px; align-items: center; font: 500 14px/1 var(--mono); color: var(--gold-bright); border: 1px solid rgba(233,178,58,.5); border-radius: 999px; padding: 8px 14px; }

section.block { padding-block: clamp(56px, 8vw, 96px); }
section.alt { background: var(--panel); }

/* map */
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.map-copy { display: grid; gap: 18px; }
.map-figure { margin: 0; }
.map-figure svg { width: 100%; height: auto; display: block; }
.map-figure .nb { fill: color-mix(in srgb, var(--ink) 10%, var(--paper)); stroke: color-mix(in srgb, var(--ink) 22%, var(--paper)); stroke-width: .8; }
section.alt .map-figure .nb { fill: var(--paper); }
.map-figure .bo { fill: color-mix(in srgb, var(--gold-bright) 34%, var(--paper)); stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; }
.map-figure .nl { font: 600 15px var(--body); letter-spacing: .16em; fill: var(--muted); }
.map-figure .oc { font: italic 400 16px var(--display); letter-spacing: .2em; fill: var(--muted); opacity: .7; }
.map-figure .bl { font: 400 26px var(--display); letter-spacing: .12em; fill: var(--navy); }
.map-figure .ct { fill: var(--muted); }
.map-figure .cl { font: 500 16px var(--body); fill: var(--muted); }
.map-figure .dot { fill: var(--red); stroke: var(--paper); stroke-width: 3; }
.map-figure .pulse { fill: var(--red); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
.map-figure .lead { stroke: var(--navy); stroke-width: 2; stroke-dasharray: 4 4; }
.map-figure .sealbg { fill: var(--paper); stroke: var(--gold); stroke-width: 3; }
.map-figure use { color: var(--navy); }
.map-figure .cc { font: 400 24px var(--display); fill: var(--ink); }
.map-figure .cs { font: 600 14px var(--body); fill: var(--gold); letter-spacing: .04em; }
.map-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 22px 18px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { font: 400 clamp(34px, 4.5vw, 48px)/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* timeline */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story figure { margin: 0; display: grid; gap: 10px; }
.story figure img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story figcaption { font-size: 14px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; padding-block: 16px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .yr { font: 500 15px/1.6 var(--mono); color: var(--gold); }
.timeline li.next .yr { color: var(--red); font-weight: 700; }
.timeline b { color: var(--navy); }

/* three ways */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }
.way { background: var(--paper); border-top: 4px solid var(--navy); padding: 24px; display: grid; gap: 12px; align-content: start; }
section.alt .way { background: var(--paper); }
.way:nth-child(2) { border-top-color: var(--gold-bright); }
.way:nth-child(3) { border-top-color: var(--green); }
.way .k { font: 500 13px var(--mono); color: var(--muted); letter-spacing: .06em; }
.way p { color: var(--muted); }

/* photo strip */
.photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; display: grid; gap: 6px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photos figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr 1fr; } .photos figure:first-child { grid-column: 1 / -1; } }

/* call to action band */
.band { background: var(--navy-deep); color: var(--on-dark); }
.band .wrap { padding-block: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.band h2 { color: var(--on-dark); }
.band p { color: var(--on-dark-muted); max-width: 56ch; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* video placeholder */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; background: var(--navy-deep); color: var(--on-dark); display: grid; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.video .over { position: relative; display: grid; align-content: end; gap: 10px; padding: clamp(16px, 3vw, 32px); background: linear-gradient(0deg, rgba(10,18,34,.92), rgba(10,18,34,.15) 70%); }
.video .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 84px; height: 84px; border-radius: 50%; background: var(--gold-bright); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.video .play::after { content: ""; border-left: 26px solid #1A1404; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.video h3 { color: var(--on-dark); font-size: clamp(22px, 3vw, 32px); }
.video .meta { font: 500 13px var(--mono); color: var(--gold-bright); letter-spacing: .04em; }
.video .ways-line { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.video .ways-line span { border: 1px solid rgba(246,243,236,.4); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 640px) {
  /* phones: photo on top, words underneath, so nothing overlaps */
  .video { aspect-ratio: auto; }
  .video img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; opacity: .9; }
  .video .play { width: 60px; height: 60px; top: calc((100vw - 32px) * .28125); transform: translate(-50%, -50%); }
  .video .play::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 5px; }
  .video .over { background: var(--navy-deep); padding: 18px 16px 20px; }
  .video .ways-line { display: none; }
}

/* giving */
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } }
.give { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.amounts label { border: 1.5px solid var(--line); border-radius: 6px; padding: 12px; display: grid; gap: 2px; cursor: pointer; background: var(--paper); }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts b { font: 400 26px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.amounts small { font-size: 13px; color: var(--muted); }
.amounts label:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold-bright) 14%, var(--paper)); }
.amounts label:has(input:focus-visible) { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.give .row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { font-size: 14px; color: var(--muted); }

.prayer form { display: grid; gap: 12px; }
.prayer label { font-size: 15px; font-weight: 600; display: grid; gap: 6px; }
.prayer input[type=text], .prayer input[type=email] { font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; }
.prayer fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.prayer legend { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.prayer fieldset label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.prayer .done { color: var(--green); font-weight: 600; }

.qa { display: grid; gap: 10px; max-width: 760px; }
.qa details { border-top: 1px solid var(--line); padding-block: 14px; }
.qa summary { cursor: pointer; font: 400 20px var(--display); color: var(--navy); }
.qa details p { margin-top: 8px; color: var(--muted); }

.founders { border: 1.5px dashed var(--line); border-radius: 8px; padding: 18px 20px; display: grid; gap: 6px; }

/* footer */
.site-foot { background: var(--navy-deep); color: var(--on-dark-muted); font-size: 15px; }
.site-foot .wrap { padding-block: 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-foot h4 { margin: 0 0 10px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.site-foot a { color: var(--on-dark); }
.site-foot .verse { font: 400 20px/1.4 var(--display); color: var(--on-dark); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.copy-line { border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; font-size: 13px; }

/* Feature photo: keep the whole frame so David and the seal both stay in view */
.story.feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.story.feature figure img { aspect-ratio: auto; }
@media (max-width: 860px) { .story.feature { grid-template-columns: 1fr; } }

/* Partner page: the three choices sit right under the video */
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jump a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-top: 4px solid var(--gold-bright); border-radius: 6px; background: var(--panel); color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--gold); }
.jump b { font: 400 21px/1.2 var(--display); color: var(--navy); }
.jump span { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .jump { grid-template-columns: 1fr; } }
.latest { display: grid; gap: 4px; padding: 12px 16px; border-left: 4px solid var(--navy); background: var(--panel); border-radius: 0 6px 6px 0; color: var(--ink); text-decoration: none; }
.latest .when, .updates .when { font: 500 12px var(--mono); letter-spacing: .05em; color: var(--gold); }
/* Updates feed: a dated timeline, newest first */
.updates { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 32px; }
.updates li { position: relative; display: grid; gap: 10px; }
.updates li::before { content: ""; position: absolute; left: -30px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid var(--paper); }
.updates li.next::before { background: var(--gold-bright); }
.updates li.draft { opacity: .75; }
.updates li.draft::before { background: var(--paper); border-color: var(--line); }
.updates img { width: 100%; max-width: 640px; border-radius: 4px; }

/* News bar: the newest update, one tap from the top of every page */
.newsbar { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: var(--navy-deep); color: var(--on-dark); text-decoration: none; font-size: 15px; justify-content: center; }
.newsbar .tag { font: 500 12px var(--mono); letter-spacing: .05em; color: var(--gold-bright); white-space: nowrap; }
.newsbar .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.newsbar .more { white-space: nowrap; color: var(--gold-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.newsbar:hover .more { color: #F5C450; }
@media (max-width: 640px) { .newsbar { justify-content: flex-start; } .newsbar .txt { display: none; } .newsbar .more { margin-left: auto; } }

/* giving calls to action */
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.way .go { font-weight: 600; color: var(--navy-deep); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
:root[data-theme="dark"] .way .go { color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .way .go { color: var(--navy); } }
.way .btn { justify-self: start; }
.way.key { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-bright) 55%, transparent); }
.band .row-btns .btn.ghost { color: var(--on-dark); }
.give .row .btn.primary b { font-weight: 700; }
.jump a.key { border-top-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-bright) 55%, transparent); }

/* phones: map labels readable at ~45% scale (must come after the base map rules) */
@media (max-width: 640px) {
  .map-figure .nl { font-size: 24px; letter-spacing: .1em; }
  .map-figure .oc { font-size: 16px; letter-spacing: .04em; }
  .map-figure .bl { font-size: 38px; }
  .map-figure .cc { font-size: 28px; }
  .map-figure .cs { display: none; }
}
