/* The Send Church — site styles
   Brand colors sampled from the logo files. */
:root {
  --lime: #C5DC1F;
  --ink: #111111;
  --paper: #F3F4F1;
  --stone: #5E6058;      /* secondary text on paper */
  --fog: #B9BBB2;        /* secondary text on ink */
  --lime-deep: #4C5708;  /* lime-family text that passes contrast on paper */
  --rule-dark: rgba(17, 17, 17, .18);
  --rule-light: rgba(243, 244, 241, .2);

  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 10vw, 148px);
  --cut: 16px; /* the angled cut from the logo strokes */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
p { margin: 0 0 1em; max-width: 34em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.7rem, 7.9vw, 8.25rem); text-transform: uppercase; line-height: .92; letter-spacing: -.025em; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }

.ui {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-lime { background: var(--lime); color: var(--ink); }
.band-tight { padding-block: clamp(48px, 6vw, 88px); }
.lede { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); line-height: 1.38; max-width: 30em; }
.muted { color: var(--stone); }
.band-ink .muted { color: var(--fog); }
.band-lime .muted { color: #33380a; }
.stack > * + * { margin-top: 1.1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.skip { position: absolute; left: 12px; top: -80px; background: var(--lime); color: var(--ink); padding: 12px 18px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Buttons: right edge carries the logo's angled cut ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1.1em 2.1em 1.1em 1.5em;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background-color .15s, color .15s;
}
.btn svg { width: 1.5em; height: auto; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { background: #2b2c28; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d6ea4a; }
.btn-lime:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.link {
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1rem;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.link:hover { text-decoration-thickness: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .95rem; padding-block: 8px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { box-shadow: 0 3px 0 var(--lime); }
.nav .btn { padding: .85em 1.9em .85em 1.25em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 12px var(--gutter) 32px; border-top: 1px solid var(--rule-light);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.5rem; font-stretch: 125%; font-weight: 800; padding-block: 12px; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Home hero ---------- */
.hero { background: var(--lime); padding-block: clamp(48px, 7vw, 104px) 0; overflow: hidden; }
.hero h1 { max-width: 15em; font-size: clamp(1.75rem, 5.3vw, 5.25rem); line-height: .96; }
/* The arrow leaves the triangle, stops at Castle Rock on the USA map, then goes on to the globe. */
.hero-arrow {
  --h: clamp(50px, 9.5vw, 132px); --usa: 2; --g: 1.7; --gap: calc(var(--h) * .12);
  display: flex; align-items: flex-start; gap: var(--gap); height: var(--h);
  margin-block: calc(var(--h) * (var(--g) / 2 - .66) + clamp(24px, 3.5vw, 48px)) calc(var(--h) * (var(--g) / 2 - .34) + clamp(24px, 3.5vw, 48px));
}
.hero-arrow .tri { height: var(--h); width: auto; flex: none; }
.arrow { position: relative; height: var(--h); flex: 1 1 0; min-width: 0; }
.arrow.a1 { flex-basis: calc(var(--h) * .573 + var(--gap)); margin-left: calc(var(--h) * -.573 - var(--gap)); }
.arrow .run { position: absolute; left: 0; top: 0; height: 100%; width: 100%; overflow: hidden; }
.arrow .shaft { position: absolute; left: 0; right: calc(var(--h) * .16); top: calc(var(--h) * .617); height: calc(var(--h) * .082); background: var(--ink); }
.arrow .head { position: absolute; right: 0; top: calc(var(--h) * .481); height: calc(var(--h) * .353); width: auto; }
.a1 .run { animation: run1 1.3s cubic-bezier(.7, 0, .15, 1) .35s both; }
.a2 .run { animation: run2 .9s cubic-bezier(.7, 0, .15, 1) 2.5s both; }
@keyframes run1 { from { width: calc(var(--h) * .802); } to { width: 100%; } }
@keyframes run2 { from { width: 0; } to { width: 100%; } }

/* The map is placed so the arrow's line runs straight through Castle Rock. */
.usa { position: relative; flex: none; width: calc(var(--h) * var(--usa)); margin-top: calc(var(--h) * (.658 - var(--usa) * .2856)); color: var(--ink); }
.usa > svg:first-child { width: 100%; height: auto; overflow: visible; }
.usa path { vector-effect: non-scaling-stroke; }
.usa .outer { stroke-width: 1.75px; }
.usa .inner { stroke-width: 1px; opacity: .55; }
.usa .star {
  position: absolute; width: clamp(10px, 1.5vw, 19px); height: auto; overflow: visible;
  transform: translate(-50%, -50%); fill: var(--ink); stroke: var(--lime); stroke-width: 3.5px; paint-order: stroke;
  animation: star 1.1s cubic-bezier(.3, 1.6, .5, 1) 1.55s both;
}
@keyframes star { 0% { transform: translate(-50%, -50%) scale(0); } 45% { transform: translate(-50%, -50%) scale(2.1); } 100% { transform: translate(-50%, -50%) scale(1); } }

.globe { flex: none; width: calc(var(--h) * var(--g)); height: calc(var(--h) * var(--g)); max-width: none; margin-top: calc(var(--h) * (.658 - var(--g) / 2)); color: var(--ink); }
.globe * { vector-effect: non-scaling-stroke; }
.globe circle { stroke-width: 2.5px; fill: var(--lime); }
.globe .g-land { stroke-width: 1.5px; }
@media (max-width: 600px) {
  .hero-arrow { --usa: 1.55; --g: 1.6; }
  .usa .outer { stroke-width: 1.1px; } .usa .inner { stroke-width: .6px; }
  .usa .star { stroke-width: 2.5px; }
  .globe circle { stroke-width: 2px; } .globe .g-land { stroke-width: 1.1px; }
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: clamp(44px, 6vw, 80px); }
.hero-foot .actions { justify-content: flex-end; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } .hero-foot .actions { justify-content: flex-start; } }

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.facts div { padding: 20px 24px 24px 0; }
.facts div + div { border-left: 2px solid var(--ink); padding-left: 24px; }
.facts dt { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 1.05rem; line-height: 1.4; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Sub-page hero ---------- */
.page-hero { background: var(--lime); padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2.1rem, 7.2vw, 6.5rem); margin-bottom: .35em; }

/* ---------- The name ---------- */
.name-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
@media (max-width: 900px) { .name-grid { grid-template-columns: 1fr; } }
.verse { margin: 0; }
.verse p { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.5rem); line-height: 1.12; font-style: italic; font-weight: 300; max-width: 13em; letter-spacing: -.01em; }
.verse cite { display: block; margin-top: 1.2em; font-style: normal; color: var(--lime); font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1rem; }
.name-mark { color: var(--lime); width: clamp(120px, 16vw, 200px); margin-bottom: 40px; }
.sendings { list-style: none; margin: 40px 0 0; padding: 0; }
.sendings li { padding: 24px 0; border-top: 1px solid var(--rule-light); }
.sendings li:last-child { border-bottom: 1px solid var(--rule-light); }
.sendings h3 { color: var(--lime); margin-bottom: 8px; }
.ref { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: .82rem; color: var(--stone); white-space: nowrap; }
.band-ink .ref { color: var(--fog); }

/* ---------- Commitments ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .split > .sticky { position: sticky; top: 120px; } }
.commit { list-style: none; margin: 0; padding: 0; }
.commit li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 32px; padding: 30px 0; border-top: 2px solid var(--ink); }
.commit li:last-child { border-bottom: 2px solid var(--ink); }
.band-ink .commit li { border-color: var(--rule-light); border-width: 1px; }
@media (max-width: 620px) { .commit li { grid-template-columns: 1fr; } }

/* ---------- Pastor ---------- */
.pastor { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .pastor { grid-template-columns: 1fr; } }
.photo { position: relative; }
.photo img { width: 100%; height: auto; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 32px) 100%, 0 100%); }
.photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 38%; height: 14px; background: var(--lime); }
.signoff { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1rem; }
.signoff span { display: block; font-weight: 500; font-stretch: 100%; color: var(--stone); }

/* ---------- Road to launch (a real sequence, so it is numbered) ---------- */
.road { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: var(--rule-light); }
.road li { counter-increment: step; position: relative; padding: 48px 24px 0 0; }
.road li::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--ink); border: 4px solid var(--fog); transform: rotate(45deg) scale(.6); }
.road li.now::before { background: var(--lime); border-color: var(--lime); transform: rotate(45deg) scale(.8); }
.road h3::before { content: counter(step) ". "; }
.road h3 { margin-bottom: 8px; }
.road p { font-size: 1.02rem; line-height: 1.45; color: var(--fog); }
.road .link { display: inline-block; margin-top: 12px; color: var(--lime); font-size: .95rem; }
.road .tag { display: inline-block; margin-top: 12px; background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .8rem; padding: 5px 10px; }
@media (max-width: 900px) {
  .road { grid-template-columns: 1fr; }
  .road::before { left: 13px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .road li { padding: 0 0 36px 56px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field label, fieldset legend { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: 14px 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; gap: 12px; align-items: center; font-family: var(--text); font-weight: 400; font-size: 1.1rem; margin: 0; cursor: pointer; }
.checks input[type="radio"] { border-radius: 50%; }
.checks input { appearance: none; width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); background: var(--paper); margin: 0; cursor: pointer; }
.checks input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.checks input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23C5DC1F' stroke-width='3.5'/%3E%3C/svg%3E") center/20px no-repeat; }
.form-note { font-size: .98rem; }
.form-status { font-family: var(--display); font-weight: 700; font-stretch: 108%; padding: 18px 20px; background: var(--ink); color: var(--paper); }
.form-status[hidden] { display: none; }
.form-status.error { background: #7a1d12; }

/* ---------- Ways to join ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ways > div { padding: 36px 32px 40px 0; }
.ways > div + div { border-left: 2px solid var(--ink); padding-left: 32px; }
.ways h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.ways p { font-size: 1.08rem; }
.ways .link { display: inline-block; margin-top: 18px; }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
  .ways > div { padding: 28px 0 32px; }
  .ways > div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Doctrine / FAQ accordions ---------- */
.accordion details { border-top: 2px solid var(--ink); }
.accordion details:last-child { border-bottom: 2px solid var(--ink); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.1;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 18px; height: 18px; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(45deg) translate(-4px, -4px); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(225deg) translate(-4px, -4px); }
.accordion summary:hover { color: var(--lime-deep); }
.accordion .body { padding: 0 0 30px; max-width: 38em; }
.accordion .body .ref { display: block; margin-top: 14px; white-space: normal; font-size: .88rem; line-height: 1.5; }

.gospel { counter-reset: g; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); }
.gospel div { padding: 28px 28px 8px 0; border-top: 1px solid var(--rule-light); }
.gospel div + div { padding-left: 28px; border-left: 1px solid var(--rule-light); }
.gospel h3 { color: var(--lime); margin-bottom: 12px; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; }
.gospel p { font-size: 1.08rem; line-height: 1.5; }
@media (max-width: 980px) { .gospel { grid-template-columns: 1fr 1fr; } .gospel div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .gospel { grid-template-columns: 1fr; } .gospel div + div { padding-left: 0; border-left: 0; } }

.statement { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.015em; max-width: 18em; text-wrap: balance; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px) 36px; border-top: 1px solid var(--rule-light); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 132px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer h2 { font-size: 1rem; font-stretch: 112%; color: var(--lime); margin-bottom: 16px; letter-spacing: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-light); color: var(--fog); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[id]{scroll-margin-top:96px}
