@font-face {
  font-family: Domine;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/domine_normal_700.woff2") format("woff2");
}
@font-face {
  font-family: Kameron;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/kameron_normal_700.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #e8eaed;
  --red: #b0101a;
  --red-dark: #6e0a10;
  --red-hover: #d41520;
  --card: #141414;
  --card-border: #2a2a2a;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-display: Kameron, Georgia, "Times New Roman", serif;
  --font-accent: Domine, Georgia, "Times New Roman", serif;
  --tap: 3.25rem;
  --wrap: 42rem;
  --header-h: 4.25rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 112.5%; /* 18px base, still readable on small screens */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--safe-bottom);
}

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: 3px;
}

.btn:focus-visible,
.amount:focus-visible,
.header-join:focus-visible,
.join-address a:focus-visible,
.footnote a:focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 200;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
}
.skip-link:focus { top: calc(0.5rem + var(--safe-top)); }

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.45rem 1rem;
  padding-top: calc(0.45rem + var(--safe-top));
  background: #000;
  border-bottom: 3px solid var(--red);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  min-height: var(--tap);
  min-width: 0;
}
.brand img {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.7rem;
  flex: 0 0 auto;
}
.header-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.4em 0.45em;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.header-join:hover,
.header-join:focus-visible {
  color: #ffd6d8;
}
.header-give {
  flex: 0 0 auto;
  padding: 0.55em 1.15em 0.5em;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7em 1.7em 0.65em;
  border: 2px solid var(--red);
  border-radius: 50px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover,
.btn:focus-visible {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}
.btn-lg {
  font-size: 1.2rem;
  min-height: 3.6rem;
  padding: 0.85em 2.1em 0.8em;
  min-width: min(18rem, 100%);
}

/* Hero
   On small screens the photo stays close to its 4:3 frame so the
   prayer circle is not cropped at the sides. Copy sits on a gradient
   that starts over the lower edge of the photo. On larger screens the
   photo becomes a full-bleed cover background with copy at the bottom. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-align: center;
  background: #000;
}
.hero-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
}
.hero-bg img {
  object-fit: cover;
  object-position: center 42%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin: -7.5rem auto 0;
  padding: 7.5rem 1.15rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.94) 70%,
    #000 100%
  );
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd6d8;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.8);
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8.5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}
.subhead {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 30rem;
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

/* Shared layout */
.wrap {
  width: min(100% - 2.3rem, var(--wrap));
  margin-inline: auto;
}

.story,
.join,
.give {
  padding: 3.25rem 0 3.5rem;
}

.section-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--red);
  margin: 0.8rem auto 0;
}

.story p,
.give .lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Verse */
.verse {
  margin: 1.85rem 0 2rem;
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-left: 4px solid var(--red);
}
.verse p {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #fff;
}
.verse cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--red);
}

/* Practices */
.practices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.practices li {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 5px solid var(--red);
  border-radius: 0.4rem;
  padding: 1rem 1.15rem 1.05rem;
}
.practices h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.practices p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.35rem;
  background: #000;
  margin: 0;
  padding: 0;
}
.gallery figure {
  margin: 0;
  background: #0a0a0a;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

/* Join Us */
.join {
  background: #0a0a0a;
  border-bottom: 1px solid #1c1c1c;
  text-align: center;
}
.join-time {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 7vw, 2.75rem);
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.join-note {
  margin: 0 0 1.35rem;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}
.join-address {
  margin: 0 0 1.5rem;
}
.join-address a {
  display: inline-block;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  padding: 0.45rem 0.25rem;
  min-height: var(--tap);
}
.join-address a:hover,
.join-address a:focus-visible {
  color: #ffd6d8;
}
.join-cta {
  display: flex;
  justify-content: center;
}

/* Give */
.give {
  background: #0a0a0a;
  border-top: 1px solid #1c1c1c;
  border-bottom: 1px solid #1c1c1c;
}
.give .lead { text-align: left; }

.amounts {
  list-style: none;
  margin: 1.75rem 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 4.6rem;
  padding: 0.95rem 1.15rem;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-left: 5px solid var(--red);
  border-radius: 0.4rem;
  color: #fff;
  text-decoration: none;
}
.give-is-live .amount {
  cursor: pointer;
}
.give-is-live .amount:hover,
.give-is-live .amount:focus-visible {
  border-color: var(--red);
  background: #1c1010;
}
.amount-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--red);
}
.amount-label {
  font-size: 1.08rem;
  color: var(--muted);
}

.other {
  margin: 0.4rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.give-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.soon {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 2.4rem 1.15rem calc(2.4rem + var(--safe-bottom));
  text-align: center;
  background: #000;
}
.contact {
  margin: 0 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
}
.contact a {
  color: #fff;
  font-size: 1.12rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  padding: 0.35rem 0.15rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.contact a:hover,
.contact a:focus-visible { color: #ffd6d8; }

.location {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
}
.location a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.location a:hover,
.location a:focus-visible { color: #ffd6d8; }

.footnote {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 400;
  color: #8a8a8a;
  text-wrap: pretty;
}
.footnote a {
  color: #9a9a9a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.footnote a:hover,
.footnote a:focus-visible { color: #cfcfcf; }

.legal {
  margin: 0;
  color: #9a9a9a;
  font-size: 0.85rem;
}

@media (max-width: 419px) {
  .site-header { padding-inline: 0.65rem; gap: 0.4rem; }
  .brand { gap: 0.35rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }
  .brand-name { display: none; }
  .header-nav { gap: 0.25rem 0.45rem; }
  .header-join { font-size: 0.95rem; padding-inline: 0.3em; }
  .header-give { padding-inline: 0.9em; }
}

/* Tablet and up: photo becomes a full-bleed hero background */
@media (min-width: 720px) {
  .site-header { padding-inline: 1.75rem; }
  .brand-name { font-size: 1.3rem; }
  .hero {
    min-height: calc(100svh - var(--header-h) - var(--safe-top));
    padding: 0;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    aspect-ratio: auto;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.18) 32%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0.82) 100%
      );
  }
  .hero-inner {
    margin: 0 auto;
    padding: 4rem 1.5rem 3.5rem;
    max-width: 42rem;
    background: none;
  }
  .subhead { font-size: 1.2rem; max-width: 32rem; }
  .story, .join, .give { padding: 4.25rem 0 4.5rem; }
  .join-time { font-size: 2.75rem; }
  .join-note { font-size: 1.25rem; }
  .join-address a { font-size: 1.3rem; }
  .practices {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .amounts {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .amount { min-height: 5.25rem; padding: 1.15rem 1.3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
}
