.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 48px);
  width: 100%;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.andrew-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.andrew-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__greeting {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

.hero__bio {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero__bio a {
  color: var(--color-text);
  font-weight: 500;
}

.book-promo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-promo p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.book-promo a:not(.book-cover-link) {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration-color: transparent;
}

.book-promo a:not(.book-cover-link):hover {
  text-decoration-color: var(--color-accent);
}

.book-cover-link {
  display: block;
  width: fit-content;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.book-cover-link:hover {
  transform: translateY(-2px);
}

.book-cover-link:hover .book-cover {
  box-shadow: var(--shadow-lg);
}

.book-cover {
  display: block;
  width: auto;
  max-width: min(200px, 100%);
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 48px;
    gap: 32px;
  }

  .hero__media {
    order: -1;
  }

  .andrew-img {
    max-width: min(70vw, 320px);
  }

  .hero__content {
    gap: 20px;
  }

  .book-promo {
    padding: 20px;
  }
}

.substack-feed-section {
  grid-column: 1 / -1;
  width: 100%;
}

#andrew-sacher-feed {
  width: 100%;
}

.as-post {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: start;

  width: 100%;
  padding: 1.5rem 0;

  border-top: 1px solid #bfbfbf;
}

.as-post:last-of-type {
  border-bottom: 1px solid #bfbfbf;
}

/* IMAGE */

.as-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}

.as-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */

.as-post-content {
  min-width: 0;
}

.as-post-title {
  margin: 0 0 0.5rem;

  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
}

.as-post-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.as-post-description {
  max-width: 55rem;
  margin: 0;

  font-size: 1rem;
  line-height: 1.5;
}

.as-post-date {
  padding-left: 1rem;

  font-size: 0.9rem;
  line-height: 1.5;
  white-space: nowrap;
  text-align: right;
}

/* MOBILE */

@media (max-width: 700px) {
  .as-post {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
  }

  .as-post-date {
    grid-column: 2;
    padding-left: 0;
    margin-top: -0.25rem;
    text-align: left;
  }
}
