/*
 * BOOKS MAGIC CLUB — CUSTOM STYLES
 * ------------------------------------------------------------
 * Stylesheet loaded AFTER css/style.css (the original Folio CSS).
 * Edit this file for site-specific styling; keep Folio's CSS intact.
 *
 * MAINTENANCE MAP
 *  1. Theme tokens + global defaults
 *  2. Base header, hero and shared components
 *  3. Story, events, experiences, join, footer
 *  4. Base responsive styles
 *  5. Reading Shelf / book-cover carousel
 *  6. Header and hero brand refinements
 *  7. Header logo and responsive logo sizing
 *
 * Preserve existing dimensions and mobile breakpoints.
 * The confirmed burgundy colors are defined in the theme tokens above.
 */

/* 1. THEME TOKENS — update these to change the site's palette. */
:root {
  --paper: #f6f0e8;
  --paper-2: #efe3dc;
  --paper-3: #e4d3cf;
  --card: #fffaf6;
  --ink: #252125;
  --ink-2: #40333b;
  --ink-3: #75636b;
  --line: #e4d4d5;
  --line-2: #d2b9be;
  --primary: #53364d;
  --primary-2: #402639;
  --primary-tint: #f0dfe7;
  --sage: #a67c89;
  --sage-2: #725060;
  --sage-tint: #f0e1e7;
  --gold: #b38b61;
  --bmc-warm-glow: #e3bf92;
  --bmc-soft-rose: #ead5df;

  /* Light burgundy brand accents — update colors here. */
  --bmc-burgundy: #824658;
  --bmc-burgundy-dark: #683747;
  --bmc-blush: #f1e3e6;
  --bmc-cream: #fffaf6;
  --bmc-burgundy-rich: #642b3d; /* Join Us panel */
  --bmc-burgundy-deep: #552a3a; /* Values strip */
  --bs-link-color-rgb: 83, 54, 77;
  --bs-link-hover-color-rgb: 64, 38, 57;
  --bs-focus-ring-color: rgba(83, 54, 77, 0.3);
}
/* Global layout and accessibility */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink-2);
}
/* 2. SHARED HEADER AND HERO COMPONENTS */
.site-header {
  background: rgba(246, 240, 232, 0.96);
}
.site-header .navbar {
  padding: 0.95rem 0;
}
.brand-name {
  font-size: 1.25rem;
}
.brand-sub {
  letter-spacing: 0.16em;
}
.site-header .nav-link {
  font-size: 0.9rem;
}
.site-header .btn {
  white-space: nowrap;
}
.announce {
  background: var(--primary);
  color: #fff5f0;
}
.announce a {
  color: white;
}
.hero {
  padding: 5.2rem 0 6rem;
}
.hero-title {
  font-size: clamp(3.2rem, 5vw, 5.5rem);
}
.hero-lead {
  line-height: 1.85;
  max-width: 35rem;
}
.hero-title em,
.bmc-story h2 em {
  color: var(--primary);
  font-weight: 500;
}
.hero-photo {
  border-radius: 48% 48% 16px 16px;
  display: block;
  /* object-fit belongs on an image, not on this figure wrapper. */
}
.hero-visual {
  padding: 0 1rem 2rem 2rem;
}
.bmc-photo-label {
  position: absolute;
  bottom: 0.65rem;
  right: -0.2rem;
  background: var(--card);
  padding: 1rem 1.3rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.bmc-photo-label span {
  margin-left: 0.7rem;
}
.bmc-hero-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  max-width: 430px;
}
.bmc-hero-note strong,
.bmc-hero-note span:not(.bmc-mini-star) {
  display: block;
}
.bmc-hero-note strong {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.15rem;
}
.bmc-hero-note div span {
  font-size: 0.88rem;
  color: var(--ink-3);
}
.bmc-mini-star {
  font-size: 2.5rem;
  color: var(--sage);
}
/* 3. PAGE SECTIONS: VALUES, STORY, EVENTS, EXPERIENCES, JOIN, FOOTER */
.bmc-qualities {
  background: var(--bmc-burgundy-deep);
  color: #fff8f7;
  padding: 1.25rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.025em;
}
.bmc-qualities span {
  color: #d6b18b;
  margin-right: 0.55rem;
}
.bmc-story {
  background: var(--card);
}
.bmc-story .section-title {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}
.bmc-story p:not(.eyebrow) {
  font-size: 1.05rem;
  line-height: 1.95;
}
.bmc-story .link-arrow {
  margin-top: 0.75rem;
}
.bmc-events {
  background: var(--paper);
}
.bmc-event-card {
  height: 100%;
  padding: 2.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bmc-event-top {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}
.bmc-pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--bmc-blush);
  color: var(--bmc-burgundy-dark);
  border-radius: 30px;
  font-weight: 700;
}
.bmc-event-card h3 {
  font-size: 2rem;
  color: var(--bmc-burgundy-dark);
}
.bmc-details {
  padding-left: 0;
  list-style: none;
  line-height: 2;
}
.bmc-muted {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.bmc-side-card {
  height: 100%;
  padding: 2.4rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.bmc-side-card h3 {
  font-size: 2rem;
}
.bmc-side-card .btn {
  margin-top: 1rem;
}
.bmc-sparkle {
  font-size: 3rem;
  color: var(--bmc-burgundy-dark);
}
.bmc-experiences {
  background: var(--card);
}
.bmc-experience {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bmc-experience:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.bmc-experience h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.bmc-experience p {
  color: var(--ink-2);
  min-height: 5.8rem;
}
.bmc-experience > span {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.bmc-experience-icon {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.bmc-join {
  background: var(--paper);
}
.bmc-join-box {
  border-radius: 24px;
  padding: 5rem 2rem;
  background: var(--bmc-burgundy-rich);
  color: #fff8f7;
}
.bmc-join-box h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.bmc-join-box p {
  max-width: 590px;
  margin: 1rem auto 1.5rem;
}
.bmc-join-box .eyebrow {
  color: #f1d9df;
}
.bmc-join-box .eyebrow::before {
  display: none;
}
.bmc-join-box .bmc-muted {
  color: #ead4db;
}
.bmc-join-box .btn-paper {
  background: var(--bmc-cream);
  color: var(--bmc-burgundy-dark);
}
.bmc-footer {
  padding: 2.5rem 0;
  background: #2b2028;
  color: #f5e9ec;
}
.bmc-footer strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.bmc-footer p {
  color: #ddcdd6;
  margin: 0.35rem 0 0;
}
.bmc-footer a {
  display: inline-block;
  margin-left: 1rem;
  color: #f5e9ec;
}
.bmc-footer .small {
  margin-top: 1rem;
}

/* Soft burgundy on footer links when hovered. */
.bmc-footer a:hover {
  color: #e5bfc9;
}
/* 4. BASE RESPONSIVE RULES */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding-bottom: 1.2rem;
  }
  .site-header .navbar-nav {
    align-items: stretch !important;
  }
  .site-header .nav-item.ms-lg-2 {
    margin-top: 1rem;
  }
  .hero {
    padding: 3.8rem 0;
  }
  .hero-visual {
    padding: 0 1.5rem 2rem;
  }
  .bmc-photo-label {
    right: 0.5rem;
  }
}
@media (max-width: 575.98px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.53rem;
  }
  .hero-title {
    font-size: 3.1rem;
  }
  .bmc-event-card,
  .bmc-side-card {
    padding: 1.5rem;
  }
  .bmc-join-box {
    padding: 3rem 1.1rem;
  }
  .bmc-footer a:first-child {
    margin-left: 0;
  }
}
/* Accessibility: respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bmc-experience {
    transition: none;
  }
}

/* 5. READING SHELF
       * The book covers and horizontal shelf track come from Folio.
       * These rules restyle links and status text without changing the
       * underlying carousel layout or its JavaScript hooks.
       */
#reading-shelf {
  background: var(--paper-2);
}
#reading-shelf .section-title {
  color: var(--bmc-burgundy-dark);
}
#reading-shelf .shelf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  min-height: 3rem;
}
#reading-shelf .review-status {
  color: var(--ink-3);
  font-size: 0.76rem;
  line-height: 1.5;
}
#reading-shelf .review-link {
  color: var(--bmc-burgundy-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
#reading-shelf .review-link:hover {
  text-decoration: underline;
  color: var(--bmc-burgundy);
}
#reading-shelf .shelf-cover:focus-visible,
#reading-shelf .review-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.reading-demo-note {
  color: var(--ink-3);
  font-size: 0.78rem;
  margin-top: 1.5rem;
}

/* 6. HEADER AND HERO BRAND STYLES
       * These rules intentionally come AFTER the base styles above.
       * They preserve the current cozy hero layout, colors and typography.
       * The hero's arch is controlled by .bmc-hero .hero-photo.
       */
.announce {
  background: var(--bmc-burgundy-dark);
  color: #f8e9e6;
  font-size: 0.79rem;
  letter-spacing: 0.045em;
  padding: 0.48rem 0;
}
.announce a {
  color: #fff4e3;
  font-weight: 700;
}
.site-header {
  background: rgba(250, 245, 238, 0.96);
  border-bottom: 1px solid rgba(83, 54, 77, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .navbar {
  padding: 0.65rem 0;
}
.site-header .brand-name {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.025em;
}
.site-header .brand-name em {
  color: #94617b;
}
.site-header .brand-sub {
  font-size: 0.54rem;
  letter-spacing: 0.17em;
}
.site-header .nav-link {
  color: #604655;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}
.site-header .nav-link:hover {
  color: #a46d83;
}
.site-header .btn-primary,
.bmc-hero .btn-primary {
  background: var(--bmc-burgundy);
  border-color: var(--bmc-burgundy);
  box-shadow: 0 7px 20px rgba(83, 54, 77, 0.16);
}
.site-header .btn-primary:hover,
.bmc-hero .btn-primary:hover {
  background: var(--bmc-burgundy-dark);
  border-color: var(--bmc-burgundy-dark);
}
.bmc-hero {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 0 3.8rem;
  background: radial-gradient(
      ellipse at 8% 8%,
      rgba(227, 191, 146, 0.23),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 93% 82%,
      rgba(166, 124, 137, 0.13),
      transparent 46%
    ),
    #f6f0e8;
}
.bmc-hero::before {
  content: "✧";
  position: absolute;
  top: 0.3rem;
  left: 5%;
  font-size: 2rem;
  color: #b38b61;
  opacity: 0.45;
  pointer-events: none;
}
.bmc-hero .eyebrow {
  color: #84606f;
  letter-spacing: 0.13em;
  font-size: 0.73rem;
}
.bmc-hero .eyebrow::before {
  display: none;
}
.bmc-hero .hero-title {
  max-width: 690px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.85rem, 4.5vw, 4.8rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: #483043;
}
.bmc-hero .hero-title em {
  color: #9c667d;
  font-weight: 500;
  font-style: italic;
}
.bmc-hero .hero-lead {
  max-width: 34rem;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #6a5360;
  margin-bottom: 1.75rem;
}
.bmc-hero .hero-actions {
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}
.bmc-hero .hero-actions .btn {
  padding: 0.83rem 1.35rem;
}
.bmc-hero .btn-outline-ink {
  color: #53364d;
  border-color: #bca7b0;
}
.bmc-hero .btn-outline-ink:hover {
  color: #fff;
  background: #53364d;
  border-color: #53364d;
}
.bmc-hero .hero-visual {
  padding: 0.25rem 1.5rem 1.4rem 2rem;
}
.bmc-hero .hero-photo {
  border-radius: 48% 48% 16px 16px;
  border: 7px solid rgba(255, 252, 247, 0.8);
  box-shadow: 0 28px 60px rgba(67, 42, 55, 0.18);
}
/* Photo treatment; keep subtle so the real photograph stays natural. */
.bmc-hero .hero-photo img {
  filter: sepia(0.1) saturate(0.85) contrast(0.98);
}
.bmc-hero .bmc-photo-label {
  right: 0;
  bottom: 0.65rem;
  border: 1px solid rgba(83, 54, 77, 0.12);
  box-shadow: 0 12px 32px rgba(67, 42, 55, 0.14);
  background: #fffaf5;
  font-size: 1rem;
}
.bmc-floating-star {
  position: absolute;
  top: 4%;
  right: 0.3rem;
  color: #b38b61;
  font-size: 3.4rem;
  line-height: 1;
  pointer-events: none;
}
.bmc-hero .bmc-hero-note {
  max-width: 460px;
  border-top: 1px solid #dcc5ca;
  margin-top: 0.55rem;
}
.bmc-hero .bmc-hero-note strong {
  color: #53364d;
}

@media (max-width: 991.98px) {
  .bmc-hero {
    padding: 1.7rem 0 2.7rem;
  }
  .bmc-hero .hero-visual {
    padding: 0.25rem 1.3rem 1.3rem;
  }
  .bmc-floating-star {
    right: 0;
  }
}
@media (max-width: 575.98px) {
  .bmc-hero .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.3rem);
  }
  .bmc-hero .hero-lead {
    font-size: 1rem;
  }
  .bmc-hero .hero-actions {
    gap: 0.6rem;
  }
  .bmc-hero .hero-actions .btn {
    width: 100%;
  }
  .bmc-hero .bmc-photo-label {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
  }
  .bmc-floating-star {
    font-size: 2.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-link {
    transition: none;
  }
}
/* 7. HEADER LOGO
       * To change the logo file, edit the img src in index.html.
       * Set desktop/mobile display sizes here. Logo's source image
       * should have its full lettering and transparent breathing room.
       */
.site-header .bmc-logo {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 575.98px) {
  .site-header .bmc-logo {
    width: 205px;
  }
}
