:root {
  --bg: #0a0a09;
  --bg-raised: #1c1b17;
  --bg-cream: #f0ead9;
  --ink: #fffdf8;
  --muted: #b8b3a6;
  --line: rgba(255, 253, 248, 0.2);
  --accent: #d3688a;
  --accent-bright: #e88bab;
  --accent-dim: rgba(211, 104, 138, 0.18);
  --font-display: "Bevan", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1100px;
  --radius-sm: 3px;
  --radius-md: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  display: none;
}
.brand-name em { font-style: normal; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 72px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 12vw, 108px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -1px;
}
.hero-title .amp {
  color: var(--accent-bright);
  text-shadow: 0 0 40px rgba(211, 104, 138, 0.45);
}

.hero-tagline {
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--muted);
  margin: 22px 0 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: inline-block;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { opacity: 0.88; }
.btn-line { border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn.small { padding: 11px 20px; font-size: 12px; }

/* ---------- Photo placeholders ---------- */
.photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo {
  margin: 48px auto 0;
  max-width: 780px;
  aspect-ratio: 16 / 9;
}

/* ---------- Verse of the day ---------- */
.votd {
  padding: 8px 0 64px;
}

.votd-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 36px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-dim), transparent 60%),
    var(--bg-raised);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(211, 104, 138, 0);
}
.votd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(211, 104, 138, 0.18);
}
.votd-card:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

.votd-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0 0 16px;
}

.votd-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.4;
  margin: 0 0 12px;
  min-height: 1.4em;
  transition: opacity 0.2s ease;
}

.votd-ref {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 26px;
  transition: opacity 0.2s ease;
}

.votd-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.votd-devo-btn {
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent-bright);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.votd-devo-btn:hover { background: var(--accent); color: var(--bg); }

/* ---------- Devotion modal (bottom sheet) ---------- */
.devo-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.devo-modal[hidden] { display: none; }

.devo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.devo-modal-sheet {
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1.5px solid var(--ink);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 16px 28px calc(40px + env(safe-area-inset-bottom, 0px));
  animation: devo-slide-up 0.3s ease;
}

@keyframes devo-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes devo-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.devo-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin: 0 auto 20px;
}

.devo-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.devo-modal-close:hover { color: var(--ink); }

.devo-verse-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.4;
  margin: 0 0 10px;
}

.devo-verse-ref {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.5px;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.devo-section { margin-bottom: 24px; }
.devo-section:last-child { margin-bottom: 0; }

.devo-heading {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0 0 10px;
}

.devo-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.devo-prayer .devo-body { font-style: italic; color: var(--muted); }

body.no-scroll { overflow: hidden; }

@media (min-width: 641px) {
  .devo-modal { align-items: center; padding: 24px; }
  .devo-modal-sheet {
    max-width: 480px;
    max-height: 85vh;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    animation: devo-fade-in 0.25s ease;
  }
  .devo-modal-handle { display: none; }
}

.moment-photo { aspect-ratio: 4 / 5; margin-bottom: 18px; }

/* ---------- Section labels ---------- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0 0 18px;
}

/* ---------- Pillars ---------- */
.pillars { padding: 64px 0; border-top: 1px solid var(--line); }

.pillars-grid {
  display: flex;
  text-align: center;
}

.pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
}
.pillar:first-child { border-left: none; }

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg { width: 24px; height: 24px; stroke-width: 2; }

.pillar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pillars-blurb {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Next class ---------- */
.next-class { padding: 64px 0; border-top: 1px solid var(--line); }

.next-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.date-card, .info-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.date-card-eyebrow, .info-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.date-card-day {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--muted);
}

.date-card-date {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  margin: 4px 0 0;
}

.date-card-time {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 0;
}

.date-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.info-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 8px;
}

.info-card-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.info-card-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

/* ---------- Banner ---------- */
.banner {
  background: var(--ink);
  color: var(--bg);
  padding: 20px 0;
  text-align: center;
}
.banner p {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.banner strong { color: var(--accent); }

/* ---------- Moments ---------- */
.moments { padding: 72px 0; }

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.moment-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.moment-card-current {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-dim), var(--bg-raised) 60%);
}

.moment-date {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.moment-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
}

.moment-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.verse-block {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}

.verse-photo { aspect-ratio: 4 / 5; }

.verse {
  padding: 0;
}
.verse p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 14px;
  line-height: 1.4;
}
.verse cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* ---------- Merch teaser ---------- */
.merch-teaser { padding: 72px 0; border-top: 1px solid var(--line); }

.merch-teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.merch-teaser-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.merch-teaser-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.merch-teaser-photo { aspect-ratio: 4 / 5; }

/* ---------- Merch page ---------- */
.merch-hero { padding: 72px 0 56px; }

.merch-grid-section { padding: 0 0 72px; }

.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
}

.product-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.product-photo { aspect-ratio: 4 / 5; margin-bottom: 18px; }

.product-status {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin: 0 0 14px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
}

.product-variant { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

.product-price {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  margin: 0 0 18px;
}

/* ---------- Location ---------- */
.location { padding: 72px 0; border-top: 1px solid var(--line); }

.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.location-info h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}

.location-address { font-size: 16px; margin: 0 0 12px; }
.location-info p a { border-bottom: 1px solid var(--line); }
.location-info .btn { margin-top: 18px; }

.location-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.social-link {
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.social-link:hover { border-color: var(--ink); }

.membership-plug {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.membership-plug p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.membership-plug .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand-footer .brand-mark { width: 48px; height: 48px; }

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .brand-name { display: block; }
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }
  .nav-toggle { display: flex; }

  .pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .pillar { border-left: none; padding: 0; }
  .next-class-grid { grid-template-columns: 1fr; }
  .moments-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .membership-plug { flex-direction: column; text-align: center; }
  .membership-plug p { max-width: none; }
  .verse-block { grid-template-columns: 1fr; text-align: center; }
  .verse-photo { max-width: 260px; margin: 0 auto; }
  .merch-teaser-grid { grid-template-columns: 1fr; }
  .merch-teaser-photos { max-width: 320px; margin: 0 auto; }
  .merch-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 781px) {
  .nav-toggle { display: none; }
}

/* ---------- RSVP modal ---------- */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rsvp-modal[hidden] { display: none; }

.rsvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.rsvp-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  animation: rsvp-in 0.25s ease;
}

@keyframes rsvp-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rsvp-modal-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
}

.rsvp-modal-card p:not(.section-label) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.rsvp-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rsvp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rsvp-modal-close:hover { color: var(--ink); }
