@import '/assets/app/shared/styles/site/index.79002a32c6bd32dd.css';

/* indiescholarbook.com home: the title, lede and first-chapter form beside the book's photo;
   then three sections, paper and page by turns: the book's four questions, the six thinkers with
   their portraits, and the description; then the editions, the first chapter again and the
   footer links. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
  max-width: 74rem;
  margin-inline: auto;
  padding: var(--space-20) var(--space-6) var(--space-24);
}

.hero h1 {
  margin: 0 0 var(--space-6);
  font-size: var(--text-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 30rem;
  margin: 0 0 var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-lede);
  line-height: var(--leading-lede);
  color: var(--ink-soft);
}

.hero-details {
  color: var(--ink-dim);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Every section below the hero: the same vertical rhythm, paper and page by turns. */
.book-questions,
.book-thinkers,
.book-about {
  padding: clamp(var(--space-16), 10vh, 6.5rem) var(--space-6);
}

.book-questions,
.book-about {
  background: var(--bg-soft);
}

/* THE QUESTIONS: four lines, centered, one per line. */
.book-questions h2 {
  max-width: 58rem;
  margin: 0 auto;
  font-size: var(--text-lede);
  font-weight: var(--weight-medium);
  line-height: var(--leading-lede);
  text-align: center;
}

.book-questions h2 span {
  display: block;
}

/* THE THINKERS: three across, each a small square portrait at the start of its paragraph, the
   words wrapping around it. The portraits are set in one grey so paintings, a marble bust and
   photographs read as one set. */
.thinkers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10) var(--space-10);
  max-width: 68rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.thinker {
  display: flow-root;
  margin: 0;
}

.thinker-portrait {
  float: left;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.3rem var(--space-4) var(--space-1) 0;
  object-fit: cover;
  border-radius: var(--radius-surface);
  background: var(--bg-soft);
  filter: grayscale(1) contrast(1.04);
}

.thinker p {
  margin: 0;
}

.thinker-name {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}

/* THE DESCRIPTION: what the book is, in one reading column. */
.book-about > div {
  max-width: 40rem;
  margin-inline: auto;
}

.book-about p {
  font-size: var(--text-md);
}

.book-about p:last-child {
  margin-bottom: 0;
}

.book-footer {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-6) var(--space-12);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
}

.book-footer a {
  color: var(--ink-dim);
  text-decoration: none;
}

.book-footer a:hover {
  color: var(--ink);
}

@media (max-width: 60rem) {
  .thinkers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-block: var(--space-10) var(--space-16);
  }

  .book-questions h2 span + span {
    margin-top: 0.45em;
  }

  .thinkers {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .thinker-name {
    font-size: var(--text-h4);
  }
}

/* THE EDITIONS: a card per edition (Digital Edition, Paperback, Hardcover), each with its price,
   what it includes and its own Buy button, which opens that edition's Stripe Checkout. */
.editions {
  padding: clamp(var(--space-16), 10vh, 6.5rem) var(--space-6);
  scroll-margin-top: var(--space-6);
}

.editions-head {
  max-width: 40rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.editions-head h2 {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-h1);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 64rem;
  margin-inline: auto;
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-surface);
  background: var(--bg-soft);
}

.edition-card > * {
  margin: 0;
}

.edition-name {
  font-size: var(--text-h3);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
}

.edition-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.edition-amount {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: 1;
}

.edition-shipping {
  color: var(--ink-dim);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
}

.edition-includes {
  display: grid;
  flex: 1;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  list-style: none;
}

.edition-includes li {
  margin: 0;
}

.edition-card button {
  width: 100%;
}

.editions .notice {
  max-width: 40rem;
  margin: var(--space-8) auto 0;
}

.editions-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 56rem) {
  .editions-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
  }
}

/* THE FIRST CHAPTER: an email field and its button on one line (stacked on a phone), under a short
   title, in the hero and again in the closing section. Once sent, the form gives way to a link to
   the chapter. */
.chapter-form {
  display: grid;
  gap: var(--space-3);
  max-width: 30rem;
  margin-top: var(--space-8);
}

.chapter-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
}

.chapter-fields {
  display: flex;
  gap: var(--space-2);
}

.chapter-fields input {
  flex: 1;
  min-width: 0;
}

.chapter-fields button {
  flex-shrink: 0;
}

.chapter-sent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin: 0;
  color: var(--ink-soft);
}

.chapter-form .notice {
  margin: 0;
}

/* The closing section: the chapter offer once more, on its own band. */
.chapter-closing {
  padding: clamp(var(--space-16), 10vh, 6.5rem) var(--space-6);
  background: var(--bg-soft);
  text-align: center;
}

.chapter-closing h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-h1);
}

.chapter-closing .chapter-form {
  margin-inline: auto;
  text-align: left;
}

.chapter-closing .chapter-sent {
  justify-content: center;
}

@media (max-width: 30rem) {
  .chapter-fields {
    flex-direction: column;
  }

  .chapter-fields input {
    flex: none;
  }
}

/* THE PRINT CHECKOUT DIALOG: a print edition's Buy button asks for the reader's email and offers
   the Digital Edition as a small card, ticked unless they untick it. The button carries the total,
   which follows the tick. A little narrower and taller than the theme's dialog. */
.dialog.add-on-dialog {
  --dialog-padding: var(--space-8);

  max-width: 29rem;
}

.add-on-dialog .dialog-title {
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
}

.add-on-form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.add-on-form input[type='email'] {
  width: 100%;
}

.add-on-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.add-on-option.is-checked {
  border-color: var(--accent-edge);
  background: var(--accent-soft);
}

.add-on-option input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.add-on-icon {
  margin-top: 0.05rem;
  color: var(--accent);
}

.add-on-text {
  display: grid;
  gap: 0.15rem;
}

.add-on-name {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.add-on-price {
  white-space: nowrap;
}

/* The Digital Edition's own price, struck through before what it costs with a print book. */
.add-on-was {
  margin-right: 0.3em;
  color: var(--ink-dim);
  font-weight: var(--weight-regular);
}

.add-on-description {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.add-on-buy {
  width: 100%;
  height: auto;
  min-height: 3.25rem;
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  line-height: 1.3;
  white-space: normal;
  text-wrap: balance;
}

.add-on-dialog .notice {
  margin: 0;
}

/* On a phone the card drops its icon, so the words keep their width. */
@media (max-width: 30rem) {
  .dialog.add-on-dialog {
    --dialog-padding: var(--space-6);
  }

  .add-on-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .add-on-icon {
    display: none;
  }

  .add-on-buy {
    font-size: var(--text-ui);
  }
}
