:root {
  --ink: #2b2420;
  --muted: #5e544d;
  --paper: #fbf7f1;
  --sand: #f2e9dc;
  --brick: #8c3b2a;
  --brick-dark: #6e2c1f;
  --sage: #4f6b5a;
  --line: #e2d6c5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 0.18em; }
a:hover { color: var(--brick-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3, h2.h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; font-weight: 600; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.55rem 0.8rem; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.55rem 0.8rem; border-radius: 0.4rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--brick); box-shadow: inset 0 -2px 0 var(--brick); border-radius: 0; }

@media (max-width: 760px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* Hero */
.hero { background: var(--sand); background-image: radial-gradient(ellipse at 85% 0%, rgba(140, 59, 42, 0.10), transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(79, 107, 90, 0.12), transparent 55%); padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); text-align: center; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero p.lead { max-width: 36rem; margin: 0 auto 2rem; font-size: 1.2rem; color: var(--muted); }
.page-hero { background: var(--sand); padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.25rem, 6vw, 3.5rem); }
.page-hero p { max-width: 40rem; color: var(--muted); font-size: 1.15rem; margin: 0; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.6rem; }
.ornament { display: block; width: 2.5rem; height: 2.5rem; margin: 0 auto 1.25rem; color: var(--brick); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px; background: var(--brick); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--brick); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brick); }
.btn.ghost:hover { background: var(--brick); color: #fff; }

/* Sections */
section.block { padding: clamp(3rem, 8vw, 5rem) 0; }
section.block.alt { background: #fff; border-block: 1px solid var(--line); }
.center { text-align: center; }
.narrow { max-width: 42rem; }
.center.narrow, .narrow.center { margin-inline: auto; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem; }
.alt .card { background: var(--paper); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }

/* Placeholder notes: clearly marked details still to come from the church */
.todo { display: inline-block; background: #fff8e6; border: 1px dashed #c9a24a; color: #6b5317; border-radius: 0.4rem; padding: 0.1rem 0.5rem; font-size: 0.95rem; font-style: normal; }
.todo-box { background: #fff8e6; border: 1px dashed #c9a24a; color: #5d4812; border-radius: 0.6rem; padding: 1rem 1.25rem; font-size: 0.98rem; }
.todo-box p:last-child { margin-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.facts li:last-child { border-bottom: 0; }
.facts strong { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }

.verse { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.45; font-style: italic; max-width: 40rem; margin: 0 auto; }
.verse cite { display: block; margin-top: 0.8rem; font-family: var(--sans); font-style: normal; font-size: 0.95rem; color: var(--muted); }

.cta-band { background: var(--sage); color: #fff; text-align: center; padding: clamp(2.75rem, 7vw, 4rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 34rem; margin: 0 auto 1.5rem; color: #eef3ef; }
.cta-band .btn { background: #fff; color: var(--sage); border-color: #fff; }
.cta-band .btn:hover { background: var(--paper); color: var(--ink); }

/* Form */
.form { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .row > div { display: grid; gap: 0.3rem; }
.form label { font-weight: 600; font-size: 0.95rem; }
.form .field { display: grid; gap: 0.3rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cdbfac; border-radius: 0.5rem; padding: 0.7rem 0.85rem; }
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--sage); }
.form .btn { justify-self: start; }
.req { color: var(--brick); }

/* Footer */
.site-footer { background: var(--ink); color: #e9e1d6; padding: 3rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.2rem; }
.site-footer li a { display: inline-block; padding: 0.2rem 0; }
.site-footer .todo { background: transparent; color: #f0d79a; border-color: #8f7a46; }
.site-footer .copy { border-top: 1px solid #4a3f38; margin-top: 2.5rem; padding-top: 1.25rem; color: #c9bfb3; font-size: 0.9rem; padding-bottom: 1rem; }

/* Photos */
.hero-photo { text-align: left; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-photo .wrap { display: grid; gap: 2rem; align-items: center; }
.hero-photo .actions { justify-content: flex-start; }
.hero-photo p.lead { margin-inline: 0; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 1rem; box-shadow: 0 12px 32px rgba(43, 36, 32, 0.18); }
@media (min-width: 860px) { .hero-photo .wrap { grid-template-columns: 1.1fr 1fr; gap: 3rem; } .hero-img { aspect-ratio: 1; } }
.times { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.times li { padding: 0.25rem 0; }
.times strong { display: inline-block; min-width: 4.6rem; color: var(--brick); }
.small { font-size: 0.95rem; color: var(--muted); }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.framed { width: 100%; border-radius: 0.9rem; box-shadow: 0 10px 28px rgba(43, 36, 32, 0.16); }
.framed.wide { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; margin-bottom: 2rem; }
.logo-card { width: min(100%, 20rem); margin-top: 1.75rem; background: #fff; padding: 1rem 1.25rem; border-radius: 0.75rem; border: 1px solid var(--line); }

/* Watermark: the church's line drawing, faint, behind every page */
body::after { content: ""; position: fixed; right: -2rem; bottom: -1rem; width: min(80vw, 34rem); aspect-ratio: 560 / 566; background: url("/assets/church-line-art.webp") no-repeat center / contain; opacity: 0.07; mix-blend-mode: multiply; pointer-events: none; z-index: 4; }
@media print { body::after { display: none; } }

/* Pull quote */
#purpose { margin-top: 2rem; }
.quote { margin: 1.5rem 0 0; padding: 1.25rem 1.5rem; background: #fff; border-left: 4px solid var(--brick); border-radius: 0 0.6rem 0.6rem 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; font-style: italic; }
.quote p { margin-bottom: 0.6rem; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.95rem; color: var(--muted); }
.quote cite::before { content: "\2014\00a0"; }
.alt .quote { background: var(--paper); }
.quote p:last-child { margin-bottom: 0; }
.covenant { padding-left: 1.25rem; margin: 0; }
.covenant li { margin-bottom: 0.6rem; }
