/* styles/chaplet.css */

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

body {
  font-family: 'Lora', serif; /* Elegant, readable font */
  background-color: #f9f8f6;
  color: #2f2f2f;
  line-height: 1.8;
  padding-top: 2rem;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  color: #841b2d;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #0b182c;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

blockquote {
  font-style: italic;
  background-color: #f3ecea;
  border-left: 5px solid #841b2d;
  padding: 1rem;
  margin: 1rem 0;
}

strong {
  color: #841b2d;
}

section.chaplet,
section.litany {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Grouped call-response and invocations styling */
.litany-call-response p,
.litany-prayers p,
.litany-invocations p,
.litany-lamb p {
  margin-bottom: 1.2rem;
}

.litany-call-response p,
.litany-prayers p,
.litany-invocations p,
.litany-lamb p {
  background-color: #fdfdfd;
  padding: 1rem;
  border-left: 4px solid #e2d0cb;
  border-radius: 4px;
}

.back-home-wrapper {
  margin-top: 5rem;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.back-home-button {
  font-size: 0.95rem;
  color: #2a3f5f; /* Royal Blue/Navy */
  text-decoration: none;
  border: 1px solid #2a3f5f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.back-home-button:hover {
  background-color: #2a3f5f;
  color: #fff;
}

/* Elegant, Glowing Footer */

.site-footer {
  position: relative;
  background: #04132e;
  color: #f3f3f3;
  text-align: center;
  padding: 2rem 2rem 2rem;
  font-family: 'Lora', serif;
  overflow: hidden;
  margin: 0;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.site-footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0d9ce;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #f3f3f3;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-h3 {
  border-bottom: none;
}

.footer-nav a:hover {
  color: #d4af37;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #ccc;
}

/*  RESPONSIVE BREAKPOINTS  */

/* Smaller desktops (84em / 1344px) */
@media (max-width: 84em) {
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  section.chaplet,
  section.litany {
    padding: 1.8rem;
  }
  .footer-inner {
    max-width: 850px;
  }
}

/*  Large laptops/desktops (75em / 1200px) */
@media (max-width: 75em) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  .back-home-button {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
  }
}

/* ✅ Tablets landscape (64em / 1024px) */
@media (max-width: 64em) {
  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  p,
  blockquote {
    font-size: 1rem;
  }
  section.chaplet,
  section.litany {
    padding: 1.5rem;
  }
  .footer-quote {
    font-size: 1rem;
  }
  .footer-nav {
    gap: 1.2rem;
  }
}

/*  Tablets portrait (48em / 768px) */
@media (max-width: 48em) {
  body {
    padding-top: 0;
  }

  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  p,
  blockquote {
    font-size: 0.95rem;
  }
  .footer-nav a {
    font-size: 1rem;
  }
}

/*  Small tablets/phones (34em / 544px) */
@media (max-width: 34em) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  blockquote {
    padding: 0.8rem;
  }
  .back-home-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

/*  Phones (26em / 416px) */
@media (max-width: 26em) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .footer-quote {
    font-size: 0.95rem;
  }
  .footer-nav {
    gap: 0.8rem;
  }
  .footer-nav a {
    font-size: 0.95rem;
  }
}

/*  Extra small phones (20em / 320px) */
@media (max-width: 20em) {
  h1 {
    font-size: 1.1rem;
  }
  h2 {
    font-size: 1rem;
  }
  p,
  blockquote {
    font-size: 0.85rem;
  }
  .back-home-button {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}
