/* Gracebound Church — site styles.
   Brand (decided 2026-10-09): Marcellus for display, Hanken Grotesk for text,
   Ink #1C2830, Brass #A9813C (Light Brass #D3B072 on dark), Paper #FBFBF8.
   Direction: quiet editorial. Roman-inscription headings, brass hairlines,
   paper grain, and one moving thing: the cord lashing across the cross. */

:root {
  --ink: #1C2830;
  --ink-2: #263642;
  --ink-soft: #33434f;
  --brass: #A9813C;
  --brass-light: #D3B072;
  --brass-dark: #7E5F27;
  --paper: #FBFBF8;
  --stone: #F1EEE6;
  --rule: #DCD7CB;
  --text: #2A3640;
  --muted: #4A5560;
  --prompt: #5F656C;
  --on-dark: #E8E4DA;
  --on-dark-muted: #B9C2C8;

  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Paper grain: a fixed, very faint noise layer over everything. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--brass-light); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.12; }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.eyebrow {
  font: 600 .76rem/1.2 var(--body);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex; align-items: center; gap: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--brass-light); }
.num { font-family: var(--display); color: var(--brass); font-size: 1rem; letter-spacing: .08em; }
.cite { font-size: .85rem; color: var(--prompt); letter-spacing: .02em; }
.dark .cite { color: var(--on-dark-muted); }

/* Gray bracketed prompts: Caleb's lines to write. Visible on the preview; none may remain at launch. */
.prompt {
  color: var(--prompt); font-style: italic;
  border: 1px dashed #A7ACB1; border-radius: 4px;
  padding: .55em .8em; display: block; margin: 0 0 1em;
  background: rgba(255,255,255,.5);
}
.dark .prompt { color: var(--on-dark-muted); border-color: #5b6a75; background: rgba(255,255,255,.04); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(211,176,114,.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { display: block; width: 190px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { text-decoration: none; font-size: .92rem; letter-spacing: .04em; color: var(--on-dark); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass-light); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a.btn { padding: 10px 18px; }
.nav a.btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(232,228,218,.35); color: var(--on-dark); border-radius: 999px; padding: 8px 14px; font: 500 .85rem var(--body); letter-spacing: .06em; cursor: pointer; }

@media (max-width: 760px) {
  .brand { width: 160px; }
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 74px; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 8px var(--gutter) 22px; gap: 6px; border-bottom: 1px solid rgba(211,176,114,.18); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; padding: 10px 0; }
  .nav a.btn { margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .9rem/1 var(--body); letter-spacing: .06em;
  text-decoration: none; border-radius: 999px;
  padding: 15px 24px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--ink);
  transition: background .25s, color .25s, transform .25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn.ghost, .hero .btn.ghost, .page-hero .btn.ghost { color: var(--on-dark); border-color: rgba(232,228,218,.5); }
.dark .btn.ghost:hover, .hero .btn.ghost:hover, .page-hero .btn.ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { position: relative; }
.band { padding: clamp(72px, 10vw, 132px) 0; }
.band.tight { padding: clamp(56px, 7vw, 88px) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.stone { background: var(--stone); }
.hair { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* Label column + content column */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .label { position: sticky; top: 110px; display: grid; gap: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .label { position: static; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; min-height: min(86vh, 760px); padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { color: var(--paper); margin: 22px 0 26px; font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.hero h1 .q { color: var(--brass-light); }
.hero .lede { color: var(--on-dark-muted); margin-bottom: 34px; }
.hero-mark { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero-mark::before { /* a soft brass halo behind the cross */
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(circle at 50% 42%, rgba(211,176,114,.22), rgba(211,176,114,0) 62%);
  filter: blur(6px);
}
.hero-mark svg { position: relative; width: 100%; height: 100%; }
.hero-mark .beam { fill: var(--paper); }
.hero-mark .cord { stroke: var(--brass-light); stroke-width: 4.5; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-mark .cord.a { animation: lash .9s var(--ease) .55s forwards; }
.hero-mark .cord.b { animation: lash .9s var(--ease) 1.25s forwards; }
@keyframes lash { to { stroke-dashoffset: 0; } }
.hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(211,176,114,.5), transparent); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-mark { width: 200px; order: -1; justify-self: start; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--paper); margin-top: 20px; max-width: 18ch; }
.page-hero .lede { color: var(--on-dark-muted); margin-top: 22px; }
.page-hero .ghost-mark { position: absolute; right: -60px; bottom: -80px; width: 360px; opacity: .07; pointer-events: none; }
@media (max-width: 760px) { .page-hero .ghost-mark { width: 220px; right: -50px; bottom: -50px; } }

/* ---------- Pull quote ---------- */
.pull { font-family: var(--display); font-size: clamp(1.55rem, 2.9vw, 2.3rem); line-height: 1.28; color: var(--ink); border-left: 2px solid var(--brass); padding: 4px 0 4px clamp(20px, 3vw, 34px); margin: 0; text-wrap: pretty; }
.dark .pull { color: var(--paper); border-color: var(--brass-light); }
.pull footer { font-family: var(--body); font-size: .85rem; letter-spacing: .04em; color: var(--prompt); margin-top: 16px; }
.dark .pull footer { color: var(--on-dark-muted); }

/* ---------- Four marks of the church (home) ---------- */
.marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.mark-item { padding: 34px 34px 38px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; }
.mark-item:nth-child(odd) { padding-right: clamp(20px, 4vw, 48px); border-right: 1px solid var(--rule); }
.mark-item:nth-child(even) { padding-left: clamp(20px, 4vw, 48px); }
.mark-item p { color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .marks { grid-template-columns: 1fr; }
  .mark-item, .mark-item:nth-child(odd), .mark-item:nth-child(even) { padding: 28px 0; border-right: 0; }
}

/* ---------- Reasons (why plant) ---------- */
.reasons { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: r; }
.reasons li { counter-increment: r; border-top: 2px solid var(--brass); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.reasons li::before { content: counter(r); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--brass); }
.reasons h3 { font-size: 1.3rem; }
.reasons p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Where strip ---------- */
.where { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px; }
.where .display { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--ink); }

/* ---------- Need band ---------- */
.need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.big-num { font-family: var(--display); font-size: clamp(4.2rem, 11vw, 8.4rem); line-height: .95; color: var(--brass-light); letter-spacing: -.01em; }
.big-num small { display: block; font: 500 1.05rem/1.4 var(--body); color: var(--on-dark); letter-spacing: .04em; margin-top: 14px; }
.ladder { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ladder th { font: 600 .72rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); text-align: right; padding: 0 0 14px; }
.ladder th:first-child, .ladder td:first-child { text-align: left; }
.ladder td { padding: 14px 0; border-top: 1px solid rgba(232,228,218,.14); text-align: right; font-size: 1.05rem; }
.ladder tr.total td { border-top: 1px solid var(--brass-light); color: var(--paper); font-weight: 600; }
@media (max-width: 860px) { .need { grid-template-columns: 1fr; } }

/* ---------- Timeline (plan) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--brass); }
.timeline li { position: relative; padding: 38px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.timeline li.now::before { background: var(--brass); box-shadow: 0 0 0 6px rgba(169,129,60,.18); }
.timeline .when { font: 600 .74rem/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dark); }
.timeline h3 { font-size: 1.3rem; }
.timeline p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 34px 38px; }
  .timeline li::before { top: 4px; }
}

/* ---------- Settled / open ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.ledger > div { background: var(--paper); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 36px); }
.ledger h3 { font-family: var(--body); font: 600 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 18px; }
.ledger .open h3 { color: var(--prompt); }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ledger li { padding-left: 22px; position: relative; }
.ledger li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1px; background: var(--brass); }
.ledger .open li::before { background: var(--prompt); }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }

/* ---------- Ways to partner ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.ways > div { padding: 30px clamp(18px, 3vw, 36px) 34px 0; display: grid; gap: 10px; align-content: start; }
.ways > div + div { border-left: 1px solid var(--rule); padding-left: clamp(18px, 3vw, 36px); }
.ways h3 { font-size: 2rem; }
.ways p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
  .ways > div, .ways > div + div { border-left: 0; padding: 26px 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Photo placeholder ---------- */
.photo-slot { aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, #e9e5db 0 12px, #f1eee6 12px 24px); border: 1px dashed #A7ACB1; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--prompt); font-style: italic; }
.family-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); }

/* ---------- Form ---------- */
.pledge { background: var(--paper); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(28,40,48,.35); }
.pledge h2 { margin-bottom: 8px; }
.pledge .note { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label, legend { font: 600 .8rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field { display: grid; gap: 8px; }
.field .hint { font: 400 .85rem/1.4 var(--body); color: var(--prompt); text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1px solid #C9C4B8; border-radius: 6px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(169,129,60,.2); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 11px 20px; border: 1px solid #C9C4B8; border-radius: 999px; font: 600 .95rem/1 var(--body); color: var(--ink); background: #fff; transition: all .2s; }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(169,129,60,.35); }
.other-amt { display: none; max-width: 200px; }
.other-amt.show { display: block; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 1rem/1.45 var(--body); text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.form-foot .fine { font-size: .85rem; color: var(--prompt); max-width: 52ch; margin: 0; }
.status { margin-top: 18px; font-weight: 500; }
.status.ok { color: #2F5D3A; }
.status.err { color: #8A2E2E; }
.pledge.sent .fields, .pledge.sent .form-foot { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: start; }
.site-footer img { width: 64px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--brass-light); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(232,228,218,.12); padding-top: 22px; font-size: .82rem; line-height: 1.6; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .rise { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero .rise.d1 { animation-delay: .1s; } .hero .rise.d2 { animation-delay: .25s; } .hero .rise.d3 { animation-delay: .4s; } .hero .rise.d4 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .rise { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-mark .cord { stroke-dashoffset: 0; animation: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
