/* Homepage-only extras. Shared type, color, and section rhythm live in style.css. */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-hero h1 { max-width: 13ch; }

.page-home .home-hero__turn {
  display: block;
  margin-top: 0.18em;
  padding-top: 0.22em;
  border-top: 2px solid var(--green);
}

.page-home .home-hero__signal {
  color: var(--green);
}

.page-home .home-hero__grid {
  display: block;
  position: relative;
  z-index: 1;
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.page-home .home-hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  right: -8%;
  bottom: -28px;
  left: -40px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.62) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero__illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.page-home .home-book__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.page-home .home-book__cover {
  max-width: 300px;
  width: 100%;
}

.page-home .home-book__cover img {
  object-fit: contain;
}

.page-home .home-book__rule {
  width: 40px;
  height: 2px;
  background: var(--green);
  margin-bottom: 20px;
}

.page-home .home-book__copy h2 {
  max-width: 18ch;
}

.page-home .home-book__byline {
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}

.page-home .home-book__copy .btn-group {
  margin-top: 28px;
}

.page-home #start-here {
  background: #f5f7f5;
  padding-top: 72px;
  padding-bottom: 88px;
}

.page-home #start-here + .home-section {
  padding-top: 32px;
}

.page-home .home-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.page-home #start-here h2 {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.page-home .home-start__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 36px;
  background: transparent;
}

.page-home .home-start__item:first-child {
  padding-left: 0;
}

.page-home .home-start__item:last-child {
  padding-right: 0;
}

.page-home .home-start__item + .home-start__item {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.page-home .home-start__icon {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.page-home .home-start__icon img {
  width: 96px;
  height: 96px;
  max-width: none;
  object-fit: contain;
  object-position: top left;
}

.page-home .home-start__item h3 {
  margin-bottom: 12px;
  max-width: 14ch;
  letter-spacing: -0.02em;
}

.page-home .home-start__item p {
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: none;
}

.page-home .home-start__item .btn {
  margin-top: auto;
}

@media (max-width: 900px) {
  .page-home #start-here {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .page-home #start-here + .home-section {
    padding-top: 40px;
  }
  .page-home .home-start {
    grid-template-columns: 1fr;
  }
  .page-home .home-start__item {
    padding: 32px 0;
  }
  .page-home .home-start__item:first-child {
    padding-top: 0;
  }
  .page-home .home-start__item:last-child {
    padding-bottom: 0;
  }
  .page-home .home-start__item + .home-start__item {
    border-left: none;
    border-top: none;
  }
  .page-home .home-start__icon {
    width: 72px;
    height: 72px;
  }
  .page-home .home-start__icon img {
    width: 72px;
    height: 72px;
  }
  .page-home .home-start__item h3 {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .page-home .home-hero {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .page-home .home-hero h1 { max-width: 16ch; }
  .page-home .home-hero__copy {
    max-width: none;
  }
  .page-home .home-hero__copy::before {
    display: none;
  }
  .page-home .home-hero__media {
    position: relative;
    inset: auto;
    order: 2;
    aspect-ratio: 16 / 10;
    margin: 8px 0 0;
  }
  .page-home .home-hero__illustration {
    object-position: 80% center;
  }
}

@media (max-width: 768px) {
  .page-home .home-book__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-home .home-book__cover {
    max-width: 200px;
    margin-inline: auto;
  }
  .page-home .home-book__copy h2 {
    max-width: none;
  }
}
