/* ============================================================================
   Sanctuary — photography first.

   The answer to the complaint that the templates are walls of text. Here the
   picture IS the page: a full-bleed frame under every heading, type kept
   deliberately small against it, and long stretches where the only thing on
   screen is a photograph and one line.

   It is the opposite of Heritage on purpose. Six templates that differ only in
   colour are one template; these two differ in what they think a website is
   for. A congregation that meets in a beautiful building, or one whose work
   happens outdoors, should pick this one and know why.

   Shares nothing with styles.css. `demo.css` supplies the reset and the
   photograph frame; everything else is here, prefixed s-.
   ========================================================================== */

.demo-body--sanctuary {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --ink: #14161a;
  --ink-soft: #55595f;
  --line: rgba(20, 22, 26, 0.12);
  --accent: #8a6a34;

  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.demo-body--sanctuary h1,
.demo-body--sanctuary h2,
.demo-body--sanctuary h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

/* A generous gutter: the type sits ON the photograph here, and text that
   touches the edge of a picture reads as a caption rather than a heading. */
.s-shell { width: min(100% - clamp(2.5rem, 8vw, 7rem), 76rem); margin-inline: auto; }
.s-shell--narrow { width: min(100% - 2.5rem, 44rem); }

/* ── Header ─────────────────────────────────────────────────────────────── */
/* Inside the cover now rather than a sibling of it, so the text inherits the
   cover's background colour — the contrast audit walks the ancestry looking
   for an opaque one, and a scrim painted by a pseudo-element is not that. It
   still sits at the top of the photograph; the cover is a grid, so it takes
   the first row and the copy takes the last. */
.s-cover { grid-template-rows: auto 1fr; }
.s-header {
  position: relative;
  z-index: 3;
  align-self: start;
  padding-block: 1.4rem;
}
.s-header__inner { display: flex; align-items: center; gap: 2rem; }
.s-brand {
  margin-inline-end: auto;
  color: #fff;
  font-family: "Lora", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.s-brand span { display: block; font-family: inherit; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.72; }
.s-nav { display: flex; gap: 1.6rem; }
.s-nav a { color: rgba(255, 255, 255, 0.86); font-size: 0.86rem; text-decoration: none; }
.s-nav a:hover { color: #fff; }
/* Not display:none. Hiding the navigation on a phone leaves a visitor with no
   way through the demonstration at all — and the phone is where most of them
   will look at it. It wraps under the wordmark instead. */
@media (max-width: 820px) {
  .s-header__inner { flex-wrap: wrap; gap: 0.6rem 1.2rem; }
  .s-brand { flex: 1 0 100%; }
  .s-nav { gap: 1.1rem; font-size: 0.82rem; }
}

/* ── The cover ──────────────────────────────────────────────────────────── */
.s-cover { position: relative; min-height: min(86vh, 46rem); display: grid; align-items: end; }
.s-cover__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); color: #fff; }
.s-cover__kicker {
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.s-cover__title { max-width: 22ch; margin: 0 0 1.2rem; font-size: clamp(2.6rem, 7vw, 5rem); color: #fff; }
.s-cover__lede { max-width: 46ch; margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.s-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}
.s-button:hover { background: #000; border-color: #000; }
.s-button--light { border-color: #fff; background: #fff; color: var(--ink); }
.s-button--light:hover { background: rgba(255, 255, 255, 0.88); }
.s-button--ghost { background: transparent; color: var(--ink); }
.s-button--ghost:hover { background: rgba(20, 22, 26, 0.06); }
.s-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.s-section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.s-section--tint { background: var(--paper-2); }
.s-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.s-head { margin: 0 0 1rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.s-lede { max-width: 46ch; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.s-prose { max-width: 40rem; }
.s-prose p + p { margin-top: 1.05rem; }
.s-prose p + h2 { margin-top: 2.2rem; }
.s-prose h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* Two pictures and a line of type — the template's signature block. */
.s-pair {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) { .s-pair { grid-template-columns: 1fr; } }

.s-band { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .s-band { grid-template-columns: 1fr; } }

.s-list { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.s-list li { padding-block: 0.9rem; border-top: 1px solid var(--line); }
.s-list li:last-child { border-bottom: 1px solid var(--line); }
.s-list strong { display: block; font-weight: 600; }
.s-list span { color: var(--ink-soft); font-size: 0.94rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.s-footer { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--ink); color: rgba(255, 255, 255, 0.74); }
.s-footer__inner { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: baseline; }
.s-footer__name { color: #fff; font-family: "Lora", Georgia, serif; font-size: 1.1rem; }
.s-footer a { color: rgba(255, 255, 255, 0.74); }
