/* The Wholeness Library landing page
   Secondary lead magnet, scoped to .jm-library to avoid affecting other pages. */

.jm-library {
  --library-ink: #253a34;
  --library-night: #0b1713;
  --library-cream: #f4f1e9;
  --library-paper: #fbfaf6;
  --library-gold: #cfa955;
  --library-stone: #635f57;
  overflow: hidden;
  background: var(--library-cream);
  color: var(--library-ink);
}

.jm-library__hero,
.jm-library__inside,
.jm-library__invitation {
  margin: 0 !important;
  padding-left: max(6vw, 32px) !important;
  padding-right: max(6vw, 32px) !important;
}

.jm-library__hero {
  padding-top: clamp(72px, 9vw, 138px) !important;
  padding-bottom: clamp(76px, 9vw, 138px) !important;
  background:
    radial-gradient(circle at 86% 20%, rgba(207, 169, 85, .17), transparent 31%),
    var(--library-cream);
}

.jm-library__hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto !important;
  align-items: center !important;
  gap: clamp(48px, 8vw, 118px) !important;
}

.jm-library .jm-kicker {
  margin: 0 0 22px;
  color: var(--library-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jm-library h1,
.jm-library h2,
.jm-library h3 {
  color: var(--library-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
}

.jm-library h1 {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.035em;
}

.jm-library__subtitle {
  max-width: 710px;
  margin: 0 0 30px;
  color: var(--library-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-style: italic;
  line-height: 1.42;
}

.jm-library__credibility {
  max-width: 680px;
  margin: 0;
  color: var(--library-stone);
  font-size: 17px;
  line-height: 1.75;
}

.jm-library__cover-image {
  width: min(410px, 86%);
  margin: 0 auto !important;
  line-height: 0;
  filter: drop-shadow(22px 28px 34px rgba(22, 27, 24, .22));
}

.jm-library__cover-image img {
  display: block;
  width: 100%;
  height: auto;
}

.jm-library__cover {
  position: relative;
  width: min(410px, 86%);
  aspect-ratio: 8.5 / 11;
  margin: 0 auto;
  padding: 48px 42px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), transparent 38%),
    var(--library-night);
  color: var(--library-paper);
  box-shadow: 22px 28px 60px rgba(22, 27, 24, .22);
}

.jm-library__cover:before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(207, 169, 85, .42);
  pointer-events: none;
}

.jm-library__cover-kicker,
.jm-library__cover-byline {
  position: relative;
  z-index: 1;
  color: var(--library-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-align: center;
  text-transform: uppercase;
}

.jm-library__cover-title {
  position: relative;
  z-index: 1;
  margin: auto 0 !important;
  color: var(--library-paper) !important;
  font-size: clamp(34px, 3.4vw, 52px) !important;
  line-height: 1.08;
  text-align: center;
}

.jm-library__cover-rule {
  width: 52px;
  height: 1px;
  margin: 20px auto;
  background: var(--library-gold);
}

.jm-library__inside {
  padding-top: clamp(82px, 9vw, 132px) !important;
  padding-bottom: clamp(82px, 9vw, 132px) !important;
  background: var(--library-paper);
}

.jm-library__inside-inner {
  width: min(1180px, 100%);
  margin: 0 auto !important;
}

.jm-library__inside h2 {
  max-width: 760px;
  margin: 0 0 58px;
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.08;
}

.jm-library__cards {
  gap: 0 !important;
  border-top: 1px solid rgba(207, 169, 85, .5);
  border-bottom: 1px solid rgba(207, 169, 85, .5);
}

.jm-library__card {
  min-height: 260px;
  padding: 42px 36px;
  box-sizing: border-box;
}

.jm-library__card + .jm-library__card {
  border-left: 1px solid rgba(207, 169, 85, .34);
}

.jm-library__card h3 {
  margin: 0 0 17px;
  font-size: 28px;
  line-height: 1.25;
}

.jm-library__card p {
  margin: 0;
  color: var(--library-stone);
  font-size: 16px;
  line-height: 1.72;
}

.jm-library__invitation {
  padding-top: clamp(80px, 9vw, 132px) !important;
  padding-bottom: clamp(80px, 9vw, 132px) !important;
  background: var(--library-ink);
  color: var(--library-paper);
  text-align: center;
}

.jm-library__invitation-inner {
  width: min(760px, 100%);
  margin: 0 auto !important;
}

.jm-library__invitation .jm-kicker {
  color: var(--library-gold);
}

.jm-library__invitation h2 {
  margin: 0 0 24px;
  color: var(--library-paper);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.07;
}

.jm-library__invitation-copy {
  max-width: 650px;
  margin: 0 auto 38px;
  color: rgba(251,250,246,.82);
  font-size: 18px;
  line-height: 1.72;
}

.jm-library__form {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 12px;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}

.jm-library__form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid rgba(251,250,246,.46);
  border-radius: 0;
  background: rgba(255,255,255,.035);
  color: var(--library-paper);
  font: inherit;
}

.jm-library__form input::placeholder {
  color: rgba(251,250,246,.64);
}

.jm-library__form input:focus {
  outline: 2px solid var(--library-gold);
  outline-offset: 2px;
}

.jm-library__form .jm-btn {
  min-height: 54px;
  padding: 0 25px;
  white-space: nowrap;
}

.jm-library__fine {
  max-width: 680px;
  margin: 22px auto 0;
  color: rgba(251,250,246,.64);
  font-size: 13px;
  line-height: 1.6;
}

.jm-library__fine a {
  color: inherit;
  text-decoration-color: var(--library-gold);
}

.jm-library__showcase {
  margin: 0 !important;
  padding: clamp(82px, 9vw, 132px) max(6vw, 32px) !important;
  background: #77746f;
  color: var(--library-paper);
}

.jm-library__showcase-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
}

.jm-library__showcase h2 {
  margin: 0 auto 22px;
  color: var(--library-paper);
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.08;
}

.jm-library__showcase-copy {
  max-width: 720px;
  margin: 0 auto 54px;
  color: rgba(251,250,246,.84);
  font-size: 17px;
  line-height: 1.72;
}

.jm-library__showcase-figure {
  position: relative;
  margin: 0 !important;
  line-height: 0;
}

.jm-library__showcase-figure:after {
  content: "";
  position: absolute;
  inset: auto 8% -18px;
  height: 36px;
  background: rgba(11,23,19,.26);
  filter: blur(22px);
  z-index: 0;
}

.jm-library__showcase-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 680px) {
  .jm-library__showcase {
    padding: 72px 24px !important;
  }

  .jm-library__showcase-copy {
    margin-bottom: 36px;
    font-size: 16px;
  }

  .jm-library__showcase-figure {
    width: 150%;
    margin-left: -25% !important;
  }
}

@media (max-width: 900px) {
  .jm-library__hero-grid {
    gap: 60px !important;
  }

  .jm-library__cover {
    width: min(360px, 84%);
  }

  .jm-library__cards {
    flex-wrap: wrap !important;
  }

  .jm-library__card {
    flex-basis: 50% !important;
  }

  .jm-library__card:nth-child(3) {
    border-top: 1px solid rgba(207, 169, 85, .34);
    border-left: 0;
  }

  .jm-library__form {
    grid-template-columns: 1fr 1fr;
  }

  .jm-library__form .jm-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .jm-library__hero,
  .jm-library__inside,
  .jm-library__invitation {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .jm-library h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .jm-library__cover {
    width: min(330px, 92%);
    padding: 40px 34px;
  }

  .jm-library__inside h2 {
    margin-bottom: 38px;
  }

  .jm-library__cards {
    display: block !important;
  }

  .jm-library__card {
    min-height: 0;
    padding: 34px 12px;
  }

  .jm-library__card + .jm-library__card,
  .jm-library__card:nth-child(3) {
    border-top: 1px solid rgba(207, 169, 85, .34);
    border-left: 0;
  }

  .jm-library__form {
    display: block;
  }

  .jm-library__form input,
  .jm-library__form .jm-btn {
    width: 100%;
    margin-bottom: 12px;
  }
}

/* Editorial interior-page showcase for The Grief No One Sees. */
.jm-guide-showcase {
  margin: 0 !important;
  padding: clamp(82px, 9vw, 132px) max(6vw, 32px) !important;
  background: #77746f;
  color: #fbfaf6;
  text-align: center;
}

.jm-guide-showcase__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.jm-guide-showcase .jm-kicker {
  margin: 0 0 20px;
  color: #d7b266;
}

.jm-guide-showcase h2 {
  max-width: 760px;
  margin: 0 auto 22px;
  color: #fbfaf6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1.08;
}

.jm-guide-showcase__copy {
  max-width: 700px;
  margin: 0 auto 54px;
  color: rgba(251,250,246,.84);
  font-size: 17px;
  line-height: 1.72;
}

.jm-guide-showcase__figure {
  position: relative;
  margin: 0 !important;
  line-height: 0;
}

.jm-guide-showcase__figure:after {
  content: "";
  position: absolute;
  inset: auto 8% -18px;
  z-index: 0;
  height: 36px;
  background: rgba(11,23,19,.26);
  filter: blur(22px);
}

.jm-guide-showcase__figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 680px) {
  .jm-guide-showcase {
    padding: 72px 24px !important;
  }

  .jm-guide-showcase__copy {
    margin-bottom: 36px;
    font-size: 16px;
  }

  .jm-guide-showcase__figure {
    width: 150%;
    margin-left: -25% !important;
  }
}

/* Guide landing-page opt-in: keep the email control compact and predictable. */
body .jm-content .jm-guide form.jm-form input[type="email"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 18px !important;
  flex: 0 0 54px !important;
  align-self: auto !important;
  border: 1px solid rgba(251, 250, 246, .68) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fbfaf6 !important;
  line-height: 54px !important;
}

body .jm-content .jm-guide form.jm-form input[type="email"]::placeholder {
  color: rgba(251, 250, 246, .78) !important;
  opacity: 1 !important;
}

body .jm-content .jm-guide form.jm-form .jm-btn {
  min-height: 54px !important;
}