/* Reader resources for The Identity Mistake. Shares the ashram page chrome. */

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11.5rem;
  gap: 2rem 3rem;
  align-items: start;
  width: min(100% - 2.5rem, 52rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.book-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
}

.book-hero__welcome {
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ashram-muted);
}

.book-hero__cover {
  margin: 0;
}

.book-hero__cover img {
  width: 11.5rem;
  height: auto;
  margin-inline: auto;
  box-shadow: 0 18px 40px rgba(20, 17, 14, 0.14);
}

.book-resources {
  width: min(100% - 2.5rem, 46rem);
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  list-style: none;
}

.book-resources__download {
  margin-top: 0.35rem;
}

.book-resources > li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding-block: clamp(1.85rem, 4vw, 2.6rem);
  border-top: 1px solid var(--ashram-border);
}

.book-resources > li:last-child {
  border-bottom: 1px solid var(--ashram-border);
}

.book-resources__index {
  margin: 0.45rem 0 0;
  font-family: var(--ashram-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ashram-gold);
}

.book-resources h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2;
}

.book-resources p {
  margin: 0 0 0.85rem;
  color: var(--ashram-muted);
}

.book-resources p:last-child {
  margin-bottom: 0;
}

.book-resources__pending {
  font-family: var(--ashram-serif);
  font-style: italic;
  color: var(--ashram-ink);
}

.book-resources__caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.book-video {
  position: relative;
  margin-top: 0.35rem;
  aspect-ratio: 16 / 9;
  background: var(--ashram-ink-deep);
  overflow: hidden;
}

.book-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.book-circle {
  background: var(--ashram-bg-soft);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.book-circle__inner {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

.book-circle h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
}

.book-circle__lead {
  margin: 0 0 1rem;
  font-family: var(--ashram-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ashram-ink);
}

.book-circle__inner > p {
  margin: 0 0 1rem;
  color: var(--ashram-muted);
}

.book-circle__join {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 1.35rem;
}

.book-circle__privacy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ashram-subtle);
}

.book-circle__join > :only-child {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .book-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .book-hero__cover {
    order: -1;
  }

  .book-hero__cover img {
    width: 8.5rem;
  }
}

@media (max-width: 560px) {
  .book-hero,
  .book-resources,
  .book-circle__inner {
    width: min(100% - 2rem, 52rem);
  }

  .book-circle__join {
    grid-template-columns: 1fr;
  }

  .book-resources > li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
