
:root {
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --ink: #292621;
  --muted: #716a60;
  --wine: #703c46;
  --wine-dark: #512b34;
  --gold: #b88e53;
  --line: #e6ded3;
  --sage: #e9ece4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.17;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.7px; }
h3 { font-size: 1.45rem; }
p { color: var(--muted); }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 18px 6.5%; border-bottom: 1px solid var(--line);
  background: rgba(248,245,239,.96); position: relative; z-index: 3;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 700; line-height: 1.2; }
.brand-mark {
  display: grid; place-items: center; width: 43px; height: 43px;
  border: 1px solid var(--gold); color: var(--wine); font: 700 25px Georgia, serif;
}
.brand small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.desktop-nav { display: flex; gap: 22px; align-items: center; }
.desktop-nav a, .mobile-menu nav a { font-size: 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a[aria-current=page] { color: var(--wine); }
.mobile-menu { display: none; }
.hero {
  display: grid; grid-template-columns: 1.04fr .96fr; min-height: 610px;
  padding: 62px 6.5%; align-items: center; gap: 5%;
}
.hero-copy { max-width: 670px; padding: 20px 0; }
.eyebrow { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { margin: 0 0 22px; }
.hero-lead { font-size: 17px; max-width: 540px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; text-align: center;
  padding: 13px 20px; background: var(--wine); color: white; text-decoration: none;
  border: 1px solid var(--wine); font-size: 12px; font-weight: 700; transition: .2s;
}
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.button-light { color: var(--wine); background: transparent; }
.button-light:hover { color: white; }
.small-note { font-size: 11px; margin-top: 24px; }
.hero-image, .feature-image, .split-image, .community-photo {
  background-position: center; background-size: cover;
}
.hero-image {
  background-position: 40% center;
}
.hero-image {
  min-height: 500px; background-image: none;
  border-radius: 48% 48% 4px 4px; position: relative;
}
.hero-image:after { display: none; }
.section { padding: 88px 6.5%; }
.section-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-heading h2 { margin: 0 0 14px; }
.section-heading p { margin: 0 auto; max-width: 620px; }
.feature-band {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7%;
  padding: 78px 9%; background: var(--sage);
}
.feature-band h2 { margin: 0 0 18px; }
.feature-band p { max-width: 600px; }
.text-link { display: inline-block; color: var(--wine); font-weight: 700; font-size: 13px; margin-top: 12px; text-decoration: none; }
.feature-image {
  min-height: 370px;
  background-image: url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1100&q=85");
}
.book-image {
  background-image: url("https://images.unsplash.com/photo-1516979187457-637abb4f9353?auto=format&fit=crop&w=1100&q=85");
}
.sponsor-note {
  margin: 55px 6.5%; padding: 48px 7%; background: #f0e8dc;
  border-left: 4px solid var(--gold);
}
.sponsor-note h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sponsor-note p { max-width: 900px; }
.closing-cta { padding: 80px 8%; text-align: center; background: var(--wine-dark); color: white; }
.closing-cta h2 { max-width: 800px; margin: 0 auto 16px; }
.closing-cta p { color: #eee2df; max-width: 700px; margin: 0 auto 26px; }
.closing-cta .eyebrow { color: #e3c18f; }
.closing-cta .button { background: var(--gold); border-color: var(--gold); color: #201b16; }
.page-hero { padding: 95px 8% 65px; text-align: center; max-width: 1000px; margin: auto; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0 auto 22px; max-width: 900px; }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 16px; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: center; padding: 55px 8% 85px; }
.split-image { min-height: 430px; }
.library-image { background-image: url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1100&q=85"); }
.split-copy h2 { margin: 0 0 20px; }
.split-copy p { font-size: 15px; }
.soft-section { background: #f0ece4; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: auto; }
.values-grid h3 { margin-bottom: 5px; }
.community-photo {
  min-height: 480px; margin: 0 6.5%;
  background-image: linear-gradient(0deg, rgba(35,27,23,.75), rgba(35,27,23,.05)), url("https://images.pexels.com/photos/33211911/pexels-photo-33211911/free-photo-of-group-of-adults-reading-in-vintage-library-setting.jpeg?auto=compress&dpr=1&h=750&w=1260");
  display: flex; align-items: end; padding: 50px;
}
.photo-caption { max-width: 650px; color: white; }
.photo-caption h2 { margin: 0; }
.photo-caption .eyebrow { color: #f0ce99; }
.disclaimer { max-width: 800px; margin: 28px auto 0; font-size: 11px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: auto; }
.step { padding: 32px; background: var(--paper); border: 1px solid var(--line); }
.step-number { font: 600 2rem "Playfair Display", Georgia, serif; color: var(--gold); }
.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; }
.contact-section { padding-top: 30px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card h2 { font-size: 1.65rem; margin: 18px 0 5px; }
.contact-card p { font-size: 14px; flex: 1; }
.contact-card .button { margin-top: 15px; width: 100%; }
.contact-note { font-size: 12px; text-align: center; margin: 30px auto 0; max-width: 700px; }
.footer { padding: 48px 6.5% 20px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; border-top: 1px solid var(--line); }
.footer-main p { font-size: 13px; max-width: 370px; }
.footer-brand { margin-bottom: 14px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; align-content: start; }
.footer-links .eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
.footer-links a { font-size: 12px; text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--wine); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 11px; color: var(--muted); }
@media (max-width: 950px) {
  .site-header { padding: 16px 5%; }
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: 11px; }
  .hero { padding: 50px 5%; }
  .hero-image { min-height: 400px; }
  .section { padding: 65px 5%; }
  }


/* Responsive layout safeguards */
*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}

html {
  max-width: 100%;
  overflow-wrap: break-word;
}

body {
  max-width: 100%;
  margin: 0;
}


/* ===== DESKTOP POLISH ===== */


/* Keep all elements within the viewport */
*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}





/* ===== LEGACY BOOK CLUB CONNECT: FEATURE CARDS ===== */
.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 48px auto 0;
  align-items: stretch;
}

.cards .card {
  min-width: 0;
  min-height: 360px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(41, 38, 33, 0.06);
}

.cards .card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--wine);
  font-size: 30px;
  flex-shrink: 0;
}

.cards .card h3 {
  margin: 0 0 16px;
  color: var(--wine-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
}

.cards .card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

@media (min-width: 1101px) {
  .cards .card {
    min-height: 390px;
    padding: 42px 36px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .cards .card {
    min-height: 320px;
    padding: 30px;
  }
}

@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

  .cards .card {
    min-height: 0;
    padding: 28px;
  }

  .cards .card h3 {
    font-size: 25px;
  }

  .cards .card p {
    font-size: 16px;
  }
}


/* ===== LBC RESPONSIVE REPAIR ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header {
  min-width: 0;
}

.brand {
  min-width: 0;
}

.brand > span:last-child {
  overflow-wrap: anywhere;
}

.desktop-nav {
  flex-wrap: wrap;
}

.hero > *,
.feature-band > *,
.split-section > * {
  min-width: 0;
}

.hero-image {
  background-position: 40% center;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(41, 38, 33, .09);
}

@media (max-width: 950px) {
  .site-header {
    gap: 16px;
  }

  .desktop-nav {
    gap: 10px;
  }

  .desktop-nav a {
    font-size: 11px;
  }

  .hero {
    gap: 4%;
  }

  .hero-image {
    min-height: 400px;
  }

  .section {
    padding: 65px 5%;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 5%;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
    margin-left: auto;
  }

  .mobile-menu summary {
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    padding: 9px 12px;
    color: var(--wine);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    width: min(280px, 88vw);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(41, 38, 33, .12);
  }

  .mobile-menu nav a {
    display: block;
    padding: 11px 9px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    min-height: 0;
    padding: 44px 6%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    min-height: 360px;
    border-radius: 44% 44% 4px 4px;
  }

  .feature-band,
  .split-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 55px 6%;
  }

  .split-image,
  .feature-image {
    min-height: 300px;
  }

  .community-photo {
    min-height: 360px;
    padding: 28px;
  }

  .page-hero {
    padding: 65px 6% 45px;
  }

  .footer {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: .6px;
  }

  .hero {
    padding: 35px 5%;
  }

  .hero-image {
    min-height: 290px;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    max-width: 100%;
  }

  .section {
    padding: 48px 5%;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
  }

  .cards .card {
    min-height: 0;
    padding: 26px 23px;
  }

  .cards .card-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
  }

  .cards .card h3 {
    font-size: 24px;
  }

  .sponsor-note {
    margin: 30px 5%;
    padding: 30px 24px;
  }

  .closing-cta {
    padding: 55px 6%;
  }

  .values-grid,
  .steps,
  .contact-grid,
  .footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-photo {
    margin: 0 5%;
    min-height: 300px;
    padding: 22px;
  }

  .footer-bottom {
    grid-column: auto;
    flex-direction: column;
    gap: 8px;
  }
}


/* Hero image removed on desktop and mobile */
.hero-image {
  display: none !important;
}
.hero {
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy {
  max-width: 850px;
}

/* ===== REPLACEMENT HERO IMAGE ===== */
.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: 5%;
}

.hero-copy {
  max-width: 670px;
}

.hero-image {
  display: block !important;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  background-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1400&q=85");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.hero-image:after {
  display: none;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-image {
    min-height: 320px;
    width: 100%;
    border-radius: 8px;
    background-position: center center;
  }
}

@media (max-width: 600px) {
  .hero-image {
    min-height: 260px;
  }
}
