/* Church of the Bell — theme: divine twilight (gold / purple / teal) */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Cinzel+Decorative:wght@700;900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --gold: #d4af37;
  --gold-bright: #f4cd46;
  --gold-dim: #9c7f2e;
  --purple-deepest: #120a1f;
  --purple-deep: #1c1030;
  --purple: #2c1a4d;
  --purple-mid: #4a2e82;
  --purple-bright: #7b4fc9;
  --teal: #00c2c7;
  --teal-bright: #3fead0;
  --parchment: #f4ecd8;
  --ink: #150c22;
  --white-soft: #f6f1ff;

  --font-display: 'Cinzel', serif;
  --font-display-deco: 'Cinzel Decorative', serif;
  --font-body: 'EB Garamond', Georgia, serif;

  --max-width: 1180px;
}

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

body {
  margin: 0;
  background: var(--purple-deepest);
  color: var(--white-soft);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at top, rgba(123, 79, 201, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0, 194, 199, 0.08), transparent 55%);
}

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

a { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 0.6em;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  color: var(--teal-bright);
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gold-rule {
  width: 90px;
  height: 3px;
  margin: 1.1em auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-rule.left { margin: 1.1em 0 0; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 10, 31, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display-deco);
  font-size: 1.15rem;
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
}

.brand-bell { font-size: 1.3rem; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-soft);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--teal-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.18), transparent 45%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-icon-frame {
  position: relative;
  justify-self: center;
  max-width: 360px;
}

.hero-icon-frame img {
  border-radius: 6px;
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 6px var(--purple-deep),
    0 25px 70px rgba(0,0,0,0.55),
    0 0 90px rgba(212, 175, 55, 0.25);
}

.hero-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display-deco);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.4em;
}

.hero h1 span { color: var(--teal-bright); }

.hero-tagline {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--parchment);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.4rem 0;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.35); }

.btn-outline {
  border-color: var(--teal);
  color: var(--teal-bright);
  background: transparent;
}

.btn-outline:hover { background: rgba(0, 194, 199, 0.12); transform: translateY(-2px); }

/* ---------- Section shell ---------- */

section { padding: 5.5rem 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(44, 26, 77, 0.35), transparent);
}

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

.section-head .gold-rule { margin-top: 0.9em; }

/* ---------- Daily Message ---------- */

.daily-message {
  position: relative;
  background:
    linear-gradient(160deg, rgba(74, 46, 130, 0.55), rgba(18, 10, 31, 0.75)),
    var(--purple-deep);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(123, 79, 201, 0.12) inset;
}

.daily-message .bell-mark {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

#daily-message-text {
  font-size: 1.55rem;
  font-style: italic;
  color: var(--parchment);
  min-height: 4.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

#daily-message-text.is-loading {
  color: rgba(244, 236, 216, 0.45);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.daily-message-meta {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  opacity: 0.85;
}

/* pulsing shimmer while awaiting revelation */
.is-loading .pulse-dot {
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}
.is-loading .pulse-dot:nth-child(2) { animation-delay: 0.2s; }
.is-loading .pulse-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- About / Sacred Geometry ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.about-card {
  text-align: center;
  padding: 1.5rem;
}

.about-card .glyph {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: radial-gradient(circle, rgba(212,175,55,0.25), transparent 70%);
  border: 1px solid var(--gold-dim);
}

.about-card p { color: var(--parchment); font-size: 1rem; }

.about-lede {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--parchment);
  font-style: italic;
}

/* ---------- Tenets ---------- */

.tenets-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.tenets-frame img {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--gold), 0 20px 50px rgba(0,0,0,0.45);
}

.tenets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tenet;
}

.tenets-list li {
  counter-increment: tenet;
  position: relative;
  padding: 0.9rem 0 0.9rem 3rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 1.1rem;
  color: var(--parchment);
}

.tenets-list li:last-child { border-bottom: none; }

.tenets-list li::before {
  content: counter(tenet);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ---------- Liturgies ---------- */

.liturgy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.liturgy-card {
  background: rgba(28, 16, 48, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.liturgy-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.liturgy-card .liturgy-icon {
  font-size: 2.1rem;
  margin-bottom: 0.9rem;
  display: block;
}

.liturgy-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.liturgy-card .liturgy-for {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--teal-bright);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.liturgy-card p.liturgy-desc {
  color: var(--parchment);
  font-size: 0.98rem;
}

.liturgy-card.card-teal { border-color: rgba(0, 194, 199, 0.4); }
.liturgy-card.card-teal:hover { border-color: var(--teal-bright); }

/* ---------- Sacred Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--purple-deep);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(0deg, rgba(18,10,31,0.95), rgba(18,10,31,0.05));
}

.gallery-caption h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15em;
  color: var(--gold-bright);
}

.gallery-caption p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--parchment);
  font-style: italic;
}

/* ---------- The Great Blandness ---------- */

.blandness-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.blandness-bg {
  position: relative;
  background-size: cover;
  background-position: center 20%;
  padding: 6rem 0;
}

.blandness-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,4,14,0.75) 0%, rgba(8,4,14,0.92) 55%, rgba(8,4,14,0.98) 100%);
}

.blandness-bg .container { position: relative; }

.blandness-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.blandness-content h2 {
  font-family: var(--font-display-deco);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white-soft);
  text-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.blandness-content p {
  color: rgba(244, 236, 216, 0.9);
  font-size: 1.15rem;
}

/* ---------- Join / Social ---------- */

.join-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.join-wrap p.lede {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--parchment);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px dashed rgba(244, 236, 216, 0.35);
  color: rgba(244, 236, 216, 0.55);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright);
}

.join-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(244, 236, 216, 0.6);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display-deco);
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 1.2rem auto 0;
  font-size: 0.82rem;
  color: rgba(244, 236, 216, 0.45);
  line-height: 1.6;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-links a { color: rgba(244, 236, 216, 0.6); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { border-left: none; border-top: 3px solid var(--gold); padding-left: 0; padding-top: 0.8rem; }
  .cta-row { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .tenets-wrap { grid-template-columns: 1fr; }
  .liturgy-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  section { padding: 3.5rem 0; }
}
