/* The Greetyr Church — mock site (Greetyr brand colors + typography) */

:root {
  /* Greetyr brand */
  --cream: #fef7ed;
  --ivory: #fffbf8;
  --charcoal: #1a1d1a;
  --stone-700: #3d433e;
  --stone-500: #7c7f7c;
  --stone-300: #cbd1cb;
  --stone-100: #e8ece7;

  /* Primary brand green (#014421) + derivatives */
  --primary: #014421;
  --primary-dark: #002f17;
  --primary-soft: hsl(152 40% 92%);
  --primary-softer: hsl(152 30% 96%);
  --primary-light: hsl(152 28% 78%); /* sage-green tint used for on-dark eyebrows */

  /* Legacy aliases — older CSS selectors still reference these names.
     Point them all at the primary so existing markup picks up the brand. */
  --terracotta: var(--primary);
  --terracotta-dark: var(--primary-dark);
  --sage: #7a8471;
  --sage-dark: #5d6a54;

  --shadow-sm: 0 1px 2px rgba(26, 29, 26, 0.05), 0 1px 3px rgba(26, 29, 26, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(26, 29, 26, 0.08), 0 2px 4px -2px rgba(26, 29, 26, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(26, 29, 26, 0.12), 0 8px 10px -6px rgba(26, 29, 26, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Belt-and-suspenders: no child is allowed to push the page wider than
   the viewport. Guards against tall wide images, absolutely-positioned
   decorative elements, and the occasional rogue inline style. */
img, video, iframe { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--stone-700); }

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header --- */
header.site {
  background: var(--ivory);
  border-bottom: 1px solid var(--stone-100);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
header.site.scrolled {
  box-shadow: 0 1px 0 rgba(26, 29, 26, 0.06), 0 8px 24px -12px rgba(26, 29, 26, 0.18);
  background: rgba(255, 251, 248, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.brand-accent { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--stone-700);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active-section { color: var(--charcoal); }

/* Second-level nav. Real church sites this size have a dropdown per section,
   and the crawler cares: these links are how a renderer-only origin gets
   enumerated at all, and they are the self-referencing chrome that cross-page
   dedup has to strip (D2). Hover-only is fine — Firecrawl reads the markup,
   not the hover state. */
.nav-links .has-sub { position: relative; }
.nav-links .sub {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 13rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  list-style: none;
  background: var(--ivory);
  border: 1px solid var(--stone-300);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(28, 28, 26, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 60;
}
.nav-links .has-sub:hover .sub,
.nav-links .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.nav-links .sub li { display: block; }
.nav-links .sub a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav-links .sub a:hover { background: var(--stone-100); }

/* Specificity override: when an anchor inside .nav-links also has .btn
   classes, the button's own color rules must win. Without this the more
   specific .nav-links a { color: stone-700 } was repainting the Give
   button text to dark stone, making white-on-green unreadable. */
.nav-links a.btn-primary { color: var(--ivory); }
.nav-links a.btn-primary:hover { color: var(--ivory); }
.nav-links a.btn-outline { color: var(--charcoal); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--stone-300);
}
.btn-outline:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--primary-dark); }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--stone-100);
    gap: 1rem;
    align-items: flex-start;
    max-height: 80vh;
    overflow-y: auto;
  }
  /* On mobile the dropdowns flatten into the stacked menu — there is no hover,
     and a visitor still needs to reach the deep pages. */
  .nav-links .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.25rem 0 0 0.75rem;
    margin: 0;
    min-width: 0;
  }
}

/* --- Hero (gradient fallback if photo fails) --- */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--primary-soft) 55%, var(--primary) 100%);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 251, 248, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.hero .lede {
  font-size: 1.25rem;
  color: var(--stone-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* --- Photo hero --- */
.hero-photo {
  position: relative;
  padding: 8rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #001a0c 100%);
  color: var(--ivory);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 12, 0.35) 0%, rgba(0, 26, 12, 0.72) 85%);
  z-index: 1;
}

.hero-photo .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-photo h1 { color: var(--ivory); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4); }
.hero-photo .lede { color: rgba(255, 251, 248, 0.92); }
.hero-photo .eyebrow { color: var(--primary-light); }

.hero-photo .btn-outline {
  border-color: rgba(255, 251, 248, 0.55);
  color: var(--ivory);
  backdrop-filter: blur(4px);
  background: rgba(255, 251, 248, 0.08);
}
.hero-photo .btn-outline:hover {
  border-color: var(--ivory);
  background: rgba(255, 251, 248, 0.15);
}
/* Primary CTA on dark photo heroes: use cream fill with deep green text —
   highest contrast against the dark overlay, and strictly on-brand. */
.hero-photo .btn-primary {
  background: var(--ivory);
  color: var(--primary);
}
.hero-photo .btn-primary:hover {
  background: var(--cream);
  color: var(--primary-dark);
}

/* --- Sections --- */
section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }

section.alt {
  background: var(--ivory);
  border-top: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--stone-500);
}

/* --- Cards / grids --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--ivory);
  border: 1px solid var(--stone-100);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 251, 248, 0.6);
  pointer-events: none;
}

.card-img {
  height: 180px;
  border-radius: 12px;
  margin: -0.5rem -0.5rem 1.25rem;
  background-size: cover;
  background-position: center;
}

.card-photo {
  height: 220px;
  border-radius: 12px;
  margin: -0.5rem -0.5rem 1.25rem;
  background-size: cover;
  background-position: center;
  background-color: var(--stone-100);
  position: relative;
  overflow: hidden;
}
.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 26, 12, 0.3) 100%);
}

.card h3 a {
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
}
.card h3 a:hover { border-bottom-color: var(--primary); color: var(--primary); }

/* Gradient blocks (still used on sermon thumbs) — retuned toward green family */
.bg-sage { background: linear-gradient(135deg, #7a8471 0%, #3d5040 100%); }
.bg-terracotta { background: linear-gradient(135deg, #2b6b3c 0%, #014421 100%); }
.bg-gold { background: linear-gradient(135deg, #a8c1a8 0%, #4a6a50 100%); }
.bg-evening { background: linear-gradient(135deg, #243228 0%, #0e1510 100%); }
.bg-morning { background: linear-gradient(135deg, #c4d4b5 0%, #6f8b67 100%); }
.bg-forest { background: linear-gradient(135deg, #2f5237 0%, #0e2915 100%); }

/* --- Feature rows --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 3rem 0;
}
.feature-row.reverse .feature-img { order: 2; }

.feature-img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-img { order: 0; }
}

/* --- Service times --- */
.service-times {
  background: var(--ivory);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--stone-100);
}

.service-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-time {
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--stone-100);
}

.service-time .day {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-time .time {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  font-weight: 700;
}

.service-time .label {
  font-size: 0.875rem;
  color: var(--stone-500);
  margin-top: 0.25rem;
}

/* --- Events list --- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--stone-100);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.event-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.event-date {
  text-align: center;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 10px;
}

.event-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.event-date .day-num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.875rem;
  color: var(--charcoal);
  line-height: 1.1;
  font-weight: 700;
}

.event-info h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.event-info p { margin-bottom: 0; font-size: 0.9375rem; color: var(--stone-500); }

@media (max-width: 620px) {
  .event-item { grid-template-columns: 1fr; text-align: center; }
  .event-date { max-width: 120px; margin: 0 auto; }
}

/* --- Staff --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.staff-card { text-align: center; }

.staff-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--ivory);
  outline: 1px solid var(--stone-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.staff-card:hover .staff-avatar {
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

.staff-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.staff-role {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.staff-bio {
  font-size: 0.9375rem;
  color: var(--stone-500);
}

/* --- Footer --- */
footer.site {
  background: var(--primary-dark);
  color: var(--stone-300);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

footer.site h4 {
  color: var(--ivory);
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

footer.site ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

footer.site a {
  color: var(--stone-300);
  font-size: 0.9375rem;
}
footer.site a:hover { color: var(--ivory); }

footer.site p {
  color: var(--stone-300);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 236, 231, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(232, 236, 231, 0.55);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

.pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 500;
}

.prose p { font-size: 1.0625rem; line-height: 1.8; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }

.callout {
  background: var(--primary-softer);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.icon { width: 20px; height: 20px; vertical-align: middle; }

.info-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stone-100);
  align-items: start;
}
.info-row:last-child { border-bottom: none; }
.info-row .icon-wrap {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.info-row strong { display: block; color: var(--charcoal); margin-bottom: 0.125rem; }
.info-row span { color: var(--stone-500); font-size: 0.9375rem; }

/* --- Sermons --- */
.sermon {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--stone-100);
  border-radius: 14px;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}
.sermon:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.sermon-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
}
.sermon-info .eyebrow { color: var(--stone-500); margin-bottom: 0.375rem; }
.sermon-info h3 { margin-bottom: 0.375rem; }
.sermon-info p { font-size: 0.9375rem; color: var(--stone-500); margin-bottom: 0.5rem; }

@media (max-width: 620px) {
  .sermon { grid-template-columns: 1fr; }
}

/* --- Give --- */
.give-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.give-amount {
  padding: 1rem;
  border: 1.5px solid var(--stone-300);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  font-weight: 700;
  transition: all 0.15s ease;
}
.give-amount:hover { border-color: var(--primary); color: var(--primary); }
.give-amount.selected { border-color: var(--primary); background: var(--primary); color: var(--ivory); }

/* --- Reveal-on-scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Stats strip --- */
.stats {
  background: var(--primary-dark);
  color: var(--ivory);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 251, 248, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

.stat-value {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
  display: block;
}
.stat-label {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 251, 248, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Pull quote --- */
.pullquote {
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.pullquote::before {
  content: '\201C';
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.pullquote blockquote {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.35;
  color: var(--charcoal);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.pullquote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  color: var(--stone-500);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* --- Buttons: subtle press --- */
.btn:active { transform: translateY(0); }

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: var(--ivory);
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--stone-300);
  border: 3px solid var(--cream);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--stone-500); }

/* --- Page fade-in --- */
body { animation: page-in 0.5s ease-out; }
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.gallery-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--stone-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-tile.wide { grid-column: span 2; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* --- Watch page embed --- */
.live-embed {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: var(--shadow-lg);
  background-image: url('https://images.unsplash.com/photo-1507090960745-b32f65d3113a?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}
.live-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}
.live-embed-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d90429;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.play-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  margin-top: 1rem;
}
.play-button:hover { transform: scale(1.08); }
.play-button svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--charcoal); }

/* --- Calendar (/calendar, rendered client-side by js/calendar.js) --- */
.calendar-mount { margin: 2rem 0; }
.calendar-loading { color: var(--stone-500); font-style: italic; }
.calendar-month { margin-bottom: 2.5rem; }
.calendar-month h2 { margin-bottom: 0.75rem; }
.calendar-list { list-style: none; }
.calendar-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--stone-300);
}
.calendar-day { font-weight: 600; color: var(--primary); }
.calendar-title { font-weight: 600; }
.calendar-detail { grid-column: 2; color: var(--stone-500); font-size: 0.9375rem; }
@media (max-width: 620px) {
  .calendar-list li { grid-template-columns: 1fr; }
  .calendar-detail { grid-column: 1; }
}

/* --- Bulletin ad blocks (/bulletins/*) --- */
.bulletin-ads { margin-top: 2.5rem; border-top: 2px solid var(--stone-300); padding-top: 1.5rem; }
.bulletin-ad {
  border: 1px solid var(--stone-300);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--cream);
}
.bulletin-ad h4 { margin-bottom: 0.25rem; }
.bulletin-ad p { font-size: 0.9375rem; color: var(--stone-500); margin: 0; }
