/* Sacred Inspirations — Brand styles
   Brand palette (May 2026, updated 2026-05-09):
   - Dark mauve     #918198  banner background, footer, top strips
   - Signature mauve #7D6E83 nav background, decorative accents
   - Medium mauve   #C5B5C9  hairline accents (book photo border, etc.)
   - Light mauve    #E5DDE7  soft accents
   - Sage           #A5B299  card frame (structural accent only)
   - Near-black plum #0E0510 heading text, card titles, link text
   - Plum heading   #241B29  reserved
   - Body text      #1A1A1A  bolder body text
   - Soft cream     #DBD7C9  page background (less glare)
   - Palest cream   #FCFAF0  card faces (lift)
   - Article tan    #D5D0C2  article reading background (unchanged)
*/

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

body {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1A1A1A;
  background: #DBD7C9;
}

/* ---------- Top navigation ---------- */
.site-nav {
  background: #7D6E83;
  padding: 12px 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-list a {
  color: #FCFAF0;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 4px;
  display: inline-block;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #0E0510;
}

/* ---------- Nav dropdown (Astrology submenu) ---------- */
.nav-list .has-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 11px;
  margin-left: 4px;
  display: inline-block;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #7D6E83;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 6px 16px rgba(14, 5, 16, 0.25);
  border-top: 2px solid #918198;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 50;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-align: left;
  text-transform: uppercase;
}

.dropdown-menu a:hover {
  background: #918198;
  color: #FCFAF0;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* ---------- Banner ---------- */
.banner {
  background: #918198;
  padding: 70px 20px 50px;
  text-align: center;
}

.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-title {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 60px;
  letter-spacing: 6px;
  color: #0E0510;
  margin-bottom: 12px;
}

.site-subtitle {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 4px;
  color: #0E0510;
}

/* ---------- Cards section ---------- */
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: #FCFAF0;
  border: 6px solid #A5B299;
  border-radius: 6px;
  padding: 50px 22px;
  min-height: 240px;
  text-align: center;
  text-decoration: none;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(125, 110, 131, 0.18);
}

.card-title {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: #0E0510;
  margin-bottom: 16px;
}

.card-text {
  font-size: 16px;
  color: #1A1A1A;
  font-weight: 600;
  flex-grow: 1;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-link {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0E0510;
  font-weight: bold;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #918198;
  padding: 30px 20px;
  text-align: center;
  color: #FCFAF0;
  font-size: 14px;
  font-weight: 700;
}

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

/* ---------- Inner page top strip ---------- */
.top-strip {
  background: #918198;
  height: 14px;
}

/* ---------- Page title section (inner pages) ---------- */
.page-title-section {
  text-align: center;
  padding: 22px 20px 12px;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  color: #0E0510;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.page-subtitle {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: #3D3344;
  letter-spacing: 1px;
}

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 24px 28px;
  text-align: center;
}

.page-intro p {
  font-size: 17px;
  color: #1A1A1A;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- Article list grid (Spiritual Articles, Health Articles) ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 60px;
}

.article-card {
  background: #FCFAF0;
  border: 6px solid #A5B299;
  border-radius: 6px;
  text-decoration: none;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #C5B5C9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FCFAF0;
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.article-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card:hover,
.article-card:visited,
.article-card:focus,
.article-card:active {
  color: #1A1A1A;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(125, 110, 131, 0.18);
}

.card:visited,
.card:focus,
.card:active {
  color: #1A1A1A;
}

.article-card-title {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #0E0510;
  margin-bottom: 8px;
}

.article-card-excerpt {
  font-size: 13px;
  color: #1A1A1A;
  font-weight: 600;
  flex-grow: 1;
  margin-bottom: 12px;
  line-height: 1.45;
}

.article-card-link {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0E0510;
  font-weight: bold;
}

@media (max-width: 1000px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Two-card row (Health landing page) ---------- */
.cards-row-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 20px 60px;
}

@media (max-width: 700px) {
  .cards-row-two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Three-card row (Astrology landing page) ---------- */
.cards-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 60px;
}

@media (max-width: 1000px) {
  .cards-row-three {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* "Coming soon" card variant — same look but visibly muted */
.card-coming-soon {
  opacity: 0.78;
  cursor: default;
}

.card-coming-soon .card-link {
  color: #7D6E83;
  font-style: italic;
  text-transform: none;
  letter-spacing: 1px;
}

.card-coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Article reading page (individual article) ---------- */
body.article-reading-bg {
  background: #FCFAF0;
}

.article-page {
  max-width: 1400px;
  margin: 32px auto 48px;
  padding: 56px 72px 64px;
  background: #D5D0C2;
  border: 10px solid #A5B299;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .article-page {
    margin: 20px 12px 40px;
    padding: 32px 22px 40px;
    border-width: 4px;
  }
}

.article-page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #918198;
}

.article-page-title {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  color: #0E0510;
  margin-bottom: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.article-page-byline {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: #3D3344;
  letter-spacing: 1px;
}

.article-page-content {
  font-size: 17px;
  line-height: 1.75;
  color: #1A1A1A;
  font-weight: 600;
}

.article-page-content p {
  margin-bottom: 1.25em;
}

.article-page-content em {
  font-style: italic;
}

.article-page-content blockquote {
  margin: 1.4em 1.2em;
  padding: 0 0 0 18px;
  border-left: 4px solid #918198;
  font-style: italic;
  color: #0E0510;
}

.article-page-content a {
  color: #3D3344;
  text-decoration: underline;
  text-decoration-color: #918198;
  text-underline-offset: 3px;
  font-weight: 700;
}

.article-page-content a:hover {
  color: #0E0510;
  text-decoration-color: #0E0510;
}

.article-page-content h2 {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  color: #0E0510;
  margin: 1.6em 0 0.5em;
}

.article-page-back {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #918198;
}

.article-page-back a {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0E0510;
  font-weight: bold;
  text-decoration: none;
}

.article-page-back a:hover {
  color: #7D6E83;
}

@media (max-width: 700px) {
  .article-page-title {
    font-size: 30px;
  }
  .article-page-content {
    font-size: 16px;
  }
}

/* ---------- Book section (My Book page) ---------- */
.book-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 60px;
}

.book-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.book-photo-wrap {
  text-align: center;
}

.book-photo {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(36, 27, 41, 0.18);
  border: 1px solid #C5B5C9;
}

.book-description {
  font-size: 15px;
  line-height: 1.55;
  color: #1A1A1A;
  font-weight: 600;
}

.book-heading {
  font-family: "Cormorant Garamond", "Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: #0E0510;
  margin-bottom: 12px;
}

.book-heading-author {
  margin-top: 16px;
}

.book-description p {
  margin-bottom: 10px;
}

.buy-button {
  display: inline-block;
  margin-top: 14px;
  background: #7D6E83;
  color: #FCFAF0;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.buy-button:hover {
  background: #0E0510;
}

.buy-note {
  font-size: 14px;
  color: #0E0510;
  font-style: italic;
  font-weight: 600;
  margin-top: 14px;
}

/* Mobile: book layout stacks */
@media (max-width: 800px) {
  .book-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .book-photo {
    max-width: 280px;
  }
  .page-title {
    font-size: 38px;
  }
  .page-subtitle {
    font-size: 18px;
  }
}

/* Tablet: 5 cards become 3 + 2 */
@media (max-width: 1100px) {
  .cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .card:nth-child(4) {
    grid-column: 1 / 2;
    grid-column-start: auto;
  }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .cards-row {
    grid-template-columns: repeat(6, 1fr);
  }
  .card:nth-child(1) { grid-column: 1 / 3; }
  .card:nth-child(2) { grid-column: 3 / 5; }
  .card:nth-child(3) { grid-column: 5 / 7; }
  .card:nth-child(4) { grid-column: 2 / 4; }
  .card:nth-child(5) { grid-column: 4 / 6; }
}

/* Mobile: 1 column */
@media (max-width: 700px) {
  .cards-row {
    grid-template-columns: 1fr;
  }
  .site-title {
    font-size: 38px;
    letter-spacing: 4px;
  }
  .site-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .banner {
    padding: 50px 20px 35px;
  }
  .nav-list {
    gap: 6px 18px;
  }
  .nav-list a {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .cards-section {
    padding: 30px 20px 40px;
  }
}
