@font-face {
  font-family: "DM Sans";
  src: url("threadfox-dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("threadfox-instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #fbf8f1;
  --white: #fffdf8;
  --ink: #192829;
  --muted: #505c58;
  --rule: #d9d7cd;
  --dark: #152724;
  --dark-text: #f7f3e9;
  --rust: #9c381d;
  --amber: #ffd196;
  --shade: #f0e9db;
  --max: 75rem;
  --edge: clamp(1rem, 4.2vw, 3.8rem);
  --space: clamp(2.5rem, 6.4vw, 5.75rem);
  --display: "Instrument Serif", Georgia, serif;
  font: 100%/1.6 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #de6c26;
  outline-offset: 4px;
}
.wrap { width: min(100% - var(--edge) * 2, var(--max)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 3;
  top: .35rem;
  left: .35rem;
  padding: .6rem;
  background: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner, .site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.header-inner { min-height: 4.5rem; padding-block: .65rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .05rem clamp(.9rem, 2.5vw, 2rem);
  font-size: .9rem;
  font-weight: 650;
}
.site-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.site-nav > a:hover { text-decoration: underline; }
.site-nav > .nav-cta {
  padding-inline: .95rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
}
.site-nav > .nav-cta:hover { border-color: var(--rust); text-decoration: none; }
.hero {
  padding-block: clamp(1.6rem, 5vw, 4.3rem);
  border-bottom: 1px solid var(--rule);
}
.hero-main {
  background: var(--dark);
  color: var(--dark-text);
  border-color: #354644;
}
.hero-prayer { background: #f4ecdf; }
.hero-build { background: #edf1ec; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: center;
}
.hero-prayer .hero-inner { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.byline {
  font-size: .9rem;
  font-weight: 760;
  color: var(--rust);
  margin-bottom: .8rem;
}
.hero-main .byline { color: var(--amber); }
h1, .display-heading {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: .98;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 7.1vw, 6.65rem); }
.display-heading { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.hero-deck {
  max-width: 34em;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  font-size: clamp(1rem, 1.6vw, 1.21rem);
  color: var(--muted);
}
.hero-main .hero-deck { color: #dddcd0; }
.hero-actions, .actions, .wallet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.15rem;
}
.hero-actions { margin-top: 1.4rem; }
.button, .text-action, .secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  font-weight: 750;
  font-size: .94rem;
}
.button, .secondary-button {
  padding: .65rem 1.12rem;
  border-radius: .375rem;
  text-align: center;
  text-decoration: none;
}
.button { background: var(--rust); color: var(--white); border: 1px solid transparent; }
.button:hover { background: #7f2d17; }
.hero-main .button, .giving .button, .project-cta .button {
  color: #1c2926;
  background: var(--amber);
}
.hero-main .button:hover, .giving .button:hover, .project-cta .button:hover {
  background: #ffe0b6;
}
.secondary-button { border: 1px solid #a89d8c; }
.secondary-button:hover { border-color: currentColor; }
.amount-note, .art-note, .muted { font-size: .875rem; color: var(--muted); }
.amount-note { margin-top: .45rem; }
.hero-main .amount-note, .giving .amount-note { color: #dedbd0; }
.hero-art { position: relative; min-width: 0; }
.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: .55rem;
}
.hero-prayer .hero-art img { aspect-ratio: 7 / 4.6; object-position: 65% center; }
.hero-build .hero-art img { aspect-ratio: 5 / 4; object-position: 57% center; }
.art-note { margin-top: .45rem; }
.hero-main .art-note { color: #dedbd0; }

.record-strip { border-bottom: 1px solid var(--rule); background: var(--white); }
.record-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, .85fr)) minmax(0, 1.3fr);
  gap: .7rem 1.5rem;
  align-items: center;
  padding-block: 1rem;
}
.record-inner p { font-size: .95rem; color: var(--muted); }
.record-inner strong { color: var(--ink); font-weight: 800; }
.record-inner .text-action { justify-content: flex-start; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17.5rem, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6.5rem);
  padding-block: var(--space);
  align-items: start;
}
.body-copy { color: #2e3a36; font-size: clamp(1.03rem, 1.25vw, 1.15rem); line-height: 1.78; }
.body-copy p { margin-top: 1.05em; }
.body-copy .lead {
  color: var(--ink);
  font-size: clamp(1.10rem, 1.8vw, 1.36rem);
  font-weight: 520;
}
.body-copy .text-action { margin-top: 1rem; color: var(--rust); }
.story-title { max-width: 13em; }
.story-photo { margin-top: 1.6rem; }
.story-photo img { width: 100%; height: auto; border-radius: .5rem; }
.story-action { margin-top: 1.25rem; }
.giving {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: .6rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.giving h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.05;
}
.giving p { color: #e3e4da; margin-top: .65rem; }
.giving > .button { width: 100%; margin-top: 1.25rem; }
.wallet { margin-top: 1rem; border-top: 1px solid #4a5a51; }
.wallet + .wallet { margin-top: 0; }
.wallet summary {
  cursor: pointer;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 700;
}
.wallet summary span { font-size: .86rem; font-weight: 450; color: #dedbd0; }
.wallet-panel { padding-bottom: .8rem; }
.wallet-panel code {
  display: block;
  margin-top: .6rem;
  background: #0c1b18;
  font-size: .83rem;
  color: #fff9ee;
  padding: .55rem .7rem;
  overflow-wrap: anywhere;
  user-select: all;
  border-radius: .3rem;
}
.wallet img { width: 144px; height: 144px; margin: .4rem 0; border-radius: .25rem; }
.wallet-actions .text-action { color: inherit; }
.wallet-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.giving .giving-actions {
  border-top: 1px solid #4a5a51;
  margin-top: .1rem;
  padding-top: .65rem;
}
.status { font-size: .875rem; }
.status:empty { display: none; }
.prayer-section { background: var(--shade); border-bottom: 1px solid var(--rule); }
.prayer-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 1.4rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4.25rem);
}
.prayer-panel blockquote {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.9vw, 3rem);
  line-height: 1.13;
  max-width: 20em;
}
.prayer-panel .actions { margin-top: 1.25rem; }
.prayer-section .status { margin-top: .35rem; }

.more {
  border-block: 1px solid var(--rule);
  background: var(--white);
  padding-block: clamp(1.9rem, 4.3vw, 3.8rem);
}
.more-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(2rem, 7vw, 6rem);
}
.more h2, .project-cta h2 {
  font: 400 clamp(2.05rem, 4vw, 3.15rem)/1.02 var(--display);
}
.more p, .project-cta p { margin-top: .65rem; max-width: 43em; }
.more a { color: var(--rust); margin-top: .4rem; }

.pilot { padding-block: var(--space); }
.pilot-intro { max-width: 42rem; margin-bottom: 1.7rem; }
.pilot-intro p { margin-top: .85rem; color: var(--muted); }
.sample {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  overflow: hidden;
  background: var(--white);
}
.sample > div { padding: clamp(1.25rem, 3.8vw, 2.8rem); }
.sample-inputs { background: #e9eee8; }
.sample h3 { font-size: 1.08rem; font-weight: 800; }
.sample ul { padding-left: 1.1rem; color: var(--muted); }
.sample li + li { margin-top: .5rem; }
.sample-output > p:not(.example-label) { margin-top: .8rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.sample-output small {
  font-size: .875rem;
  display: block;
  color: #47604e;
}
.example-label {
  font-size: .875rem;
  font-weight: 800;
  color: #3b5443;
  margin-bottom: .5rem;
}
.pilot-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem 2rem;
  margin-top: 1.7rem;
}
.pilot-principles div { border-top: 1px solid var(--rule); padding-top: .8rem; }
.pilot-principles dt { font-weight: 800; }
.pilot-principles dd { margin: .22rem 0 0; color: var(--muted); }
.project-cta {
  padding-block: clamp(1.75rem, 5vw, 4.5rem);
  background: var(--dark);
  color: var(--dark-text);
}
.project-cta .actions { margin-top: 1rem; }
.project-cta .text-action { overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: 1.15rem; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (min-width: 900px) and (min-height: 760px) {
  .giving { position: sticky; top: 1.25rem; }
}
@media (max-width: 800px) {
  .hero-inner, .hero-prayer .hero-inner, .story-grid, .prayer-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-inner { gap: 1.55rem; }
  .hero-art img, .hero-prayer .hero-art img, .hero-build .hero-art img {
    aspect-ratio: 2 / 1;
  }
  .story-grid { gap: 1.8rem; }
  .prayer-panel .display-heading { max-width: 17em; }
  .record-inner { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
  .record-inner > a { grid-column: 1 / -1; min-height: 2.45rem; }
}
@media (max-width: 550px) {
  .header-inner { column-gap: .7rem; min-height: 0; padding-block: .25rem; }
  .site-nav { gap: .6rem .9rem; }
  .site-nav > a { min-height: 2.55rem; }
  .site-nav .nav-cta { display: none; }
  .more-inner, .sample, .pilot-principles { grid-template-columns: minmax(0, 1fr); }
  .hero-art img { object-position: 48% 56%; }
  .hero-actions { gap: .45rem .9rem; }
  .footer-links { column-gap: 1rem; }
}

.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 1.4rem; max-width: 30rem; }
.amounts .button.amount { width: auto; margin: 0; padding-left: .4rem; padding-right: .4rem; text-align: center; justify-content: center; font-variant-numeric: tabular-nums; }
.giving .amounts { max-width: none; }
@media (max-width: 330px) { .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a1, Nov 19 2026: progress line, Giving Tuesday strip, share block, tighter phone first screen */
[hidden] { display: none !important; }
.amount-note.progress { font-weight: 750; text-wrap: balance; }
.hero-main .amount-note.progress, .giving .amount-note.progress { color: var(--amber); }

.giving-day { background: var(--amber); color: #1c2926; }
.giving-day p { padding-block: .7rem; font-size: .95rem; line-height: 1.5; }
.giving-day a { font-weight: 750; white-space: nowrap; }

.share { margin-top: .35rem; padding-top: 1rem; border-top: 1px solid #4a5a51; }
.share h3 { font-size: 1.05rem; font-weight: 750; line-height: 1.3; }
.giving .share-message {
  margin-top: .6rem;
  padding: .6rem .7rem;
  border-radius: .3rem;
  background: #0c1b18;
  color: #fff9ee;
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.share-url { display: inline-block; max-width: 100%; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.share-links a, .share-links button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .3rem .85rem;
  border: 1px solid #6b7c73;
  border-radius: 100px;
  background: none;
  color: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.share-links a:hover, .share-links button:hover { border-color: var(--amber); }
.share-links .share-copy { border-color: var(--amber); color: var(--amber); }
.share-links .share-copy:hover { background: rgba(255, 209, 150, .12); }
@media (hover: hover) and (pointer: fine) {
  .share-links a, .share-links button { min-height: 2.3rem; }
}
.giving .share-status { color: var(--amber); font-weight: 700; }

@media (max-width: 550px) {
  .hero-main { padding-top: 1.05rem; }
  .hero-main .byline { margin-bottom: .45rem; }
  .hero-main h1 { font-size: 2.95rem; }
  .hero-main .hero-deck { margin-top: .7rem; line-height: 1.5; text-wrap: pretty; }
  .hero-main .amounts { margin-top: 1rem; }
  .giving-day p { padding-block: .55rem; font-size: .9rem; line-height: 1.45; }
}
