.reading-section {
  background: rgba(8, 7, 17, 0.64);
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.4rem, 6vw, 5rem);
}

.reading-section,
.reading-section [id],
.home-reading-archive,
.home-reading-archive [id] {
  scroll-margin-top: 7.5rem;
}

.reading-heading {
  margin-bottom: 2rem;
}

.reading-heading .eyebrow,
.home-library-intro .eyebrow {
  margin-bottom: 1.4rem;
}

.reading-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.reading-heading > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 1rem;
}

.home-ebook-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-ebook-card {
  background: rgba(11, 10, 21, 0.78);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-ebook-cover {
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(163, 123, 242, 0.1), transparent 72%);
  display: flex;
  height: 285px;
  justify-content: center;
  padding: 1.75rem;
}

.home-ebook-obra .home-ebook-cover {
  background: radial-gradient(ellipse at center, rgba(178, 71, 59, 0.12), transparent 72%);
}

.home-ebook-correspondencias .home-ebook-cover {
  background: radial-gradient(ellipse at center, rgba(126, 156, 120, 0.12), transparent 72%);
}

.home-ebook-cover img {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.home-ebook-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.5rem 1.4rem 1.5rem;
}

.home-ebook-format {
  color: var(--violet-soft);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.home-ebook-copy h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  min-height: 3.6em;
}

.home-ebook-copy > p:not(.home-ebook-format) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.home-ebook-copy .button {
  font-size: 0.6rem;
  justify-content: center;
  letter-spacing: 0.1em;
  margin-top: auto;
  min-height: 2.9rem;
  text-align: center;
  width: 100%;
}

.home-library-panel {
  background: rgba(11, 10, 21, 0.78);
  border: 1px solid var(--line);
  display: grid;
  gap: 2.5rem 4rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
}

.home-library-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.home-library-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-library-intro strong {
  color: var(--paper);
  font-weight: 500;
}

.home-library-intro .home-library-access {
  color: var(--violet-soft);
  font-size: 0.75rem;
  margin-top: 1.3rem;
}

.home-library-purchase .portal-access-buttons {
  margin-top: 0;
}

.home-library-details {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  min-width: 0;
}

.home-library-details summary {
  color: var(--violet-soft);
  cursor: pointer;
  font-size: 0.8rem;
  padding-top: 1.3rem;
}

.home-library-details .entheogen-note {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem 0 0;
}

.home-library-details .entheogen-note h3 {
  font-size: 1.25rem;
}

.home-library-details .access-only {
  font-size: 0.55rem;
  max-width: 100%;
}

.home-free-readings .monthly-book {
  align-items: start;
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  margin-top: 0;
}

.home-free-readings .monthly-book .eyebrow {
  margin-bottom: 1.4rem;
}

.home-free-readings .monthly-book-form {
  min-width: 0;
}

.home-free-readings .free-resource {
  gap: 2rem 4rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  margin-top: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.home-free-readings .free-resource h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin-bottom: 0.8rem;
}

.home-free-readings .free-resource p,
.home-free-readings .resource-list {
  font-size: 0.86rem;
}

.home-free-readings .resource-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.home-reading-archive .collection-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 1000px) {
  .home-ebook-grid {
    gap: 0.8rem;
  }

  .home-ebook-cover {
    height: 245px;
    padding: 1.5rem 1rem;
  }

  .home-ebook-copy {
    padding: 0.5rem 1rem 1.2rem;
  }

  .home-library-panel,
  .home-free-readings .monthly-book,
  .home-free-readings .free-resource {
    gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .home-library-details .entheogen-note {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .reading-section {
    padding: 3.2rem 1.3rem;
  }

  .home-ebook-grid,
  .home-library-panel,
  .home-free-readings .monthly-book,
  .home-free-readings .free-resource {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-ebook-card {
    display: grid;
    gap: 1rem;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 1.3rem 1rem;
  }

  .home-ebook-cover {
    align-items: start;
    background: transparent;
    height: auto;
    padding: 0;
  }

  .home-ebook-cover img {
    height: auto;
    width: 100%;
  }

  .home-ebook-copy {
    padding: 0;
  }

  .home-ebook-format {
    font-size: 0.55rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
  }

  .home-ebook-copy h3 {
    font-size: 1.35rem;
    min-height: 0;
  }

  .home-ebook-copy > p:not(.home-ebook-format) {
    font-size: 0.78rem;
    margin-bottom: 1.1rem;
  }

  .home-ebook-copy .button {
    font-size: 0.55rem;
    padding: 0.65rem;
  }

  .home-library-details {
    grid-column: 1;
  }

  .home-library-panel {
    gap: 1.8rem;
  }

  .home-free-readings .free-resource {
    padding: 1.6rem 0 0;
  }
}

@media (max-width: 370px) {
  .site-header {
    column-gap: 0.5rem;
  }

  .site-header .brand img {
    max-width: 130px;
  }

  .home-ebook-card {
    column-gap: 0.75rem;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .home-ebook-copy h3 {
    font-size: 1.17rem;
  }
}
