/* Homepage author card. Separate from the shared card used on article pages. */
.home-author {
  --author-ink: #302329;
  --author-muted: #725d66;
  --author-rose: #a42d55;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  color: var(--author-ink);
  background: #fffdfb;
  border: 1px solid #e8ced6;
  border-radius: 20px;
  box-shadow: 0 5px 0 #f1dce3, 0 12px 28px -20px #805367;
}

.home-author__profile {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.home-author__portrait { margin: 0; }
.home-author__portrait img {
  display: block;
  width: 170px;
  height: 215px;
  object-fit: cover;
  object-position: center 25%;
  background: #7c6f66;
  border: 5px solid #fff;
  border-radius: 90px 90px 16px 16px;
  box-shadow: 0 0 0 1px #e8ced6, 0 6px 14px #633d4c12;
}
.home-author__portrait figcaption {
  margin-top: .8rem;
  color: var(--author-muted);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}

.home-author__eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--author-rose);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-author__bio h2 {
  margin: 0 0 1rem;
  color: var(--author-ink);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.home-author__hello { color: #bc5174; font-weight: 400; }
.home-author__bio p,
.home-author__support p {
  margin: 0 0 .85rem;
  color: #604d55;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .82rem;
  line-height: 1.7;
}
.home-author__bio p:last-child { margin-bottom: 0; }
.home-author__bio .author-cta-link {
  color: var(--author-rose);
  border-bottom: 1px solid #d3a4b3;
}

.home-author__support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem;
  background: #fcf0f3;
  border-left: 1px solid #edd7df;
}
.home-author__coffee {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--author-rose);
  background: #fff9fb;
  border: 1px solid #eed3dd;
  border-radius: 14px;
}
.home-author__support h3 {
  max-width: 240px;
  margin: 0 0 .75rem;
  color: var(--author-ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.home-author__support p { font-size: .78rem; }
.home-author__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: .4rem;
  padding: .8rem 1rem;
  color: #fff;
  background: var(--author-rose);
  border: 1px solid var(--author-rose);
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .15s ease;
}
.home-author__button:hover { color: #fff; background: #852344; }
.home-author__button:focus-visible,
.home-author__bio a:focus-visible {
  outline: 3px solid #9b2c54;
  outline-offset: 4px;
}
.home-author__payment-note {
  align-self: center;
  margin-top: .65rem;
  color: var(--author-muted);
  font-size: .64rem;
}

@media (max-width: 1099px) {
  .home-author { grid-template-columns: minmax(0, 1fr) 270px; }
  .home-author__profile { grid-template-columns: 130px minmax(0, 1fr); gap: 1.25rem; }
  .home-author__portrait img { width: 130px; height: 175px; }
  .home-author__support { padding: 1.4rem; }
}
@media (max-width: 859px) {
  .home-author { grid-template-columns: minmax(0, 1fr); }
  .home-author__support { border-left: 0; border-top: 1px solid #edd7df; }
  .home-author__support h3 { max-width: none; }
  .home-author__support p { max-width: 65ch; }
  .home-author__button { max-width: 290px; }
  .home-author__payment-note { align-self: flex-start; }
}
@media (max-width: 599px) {
  .home-author { margin-inline: -1.25rem; border-radius: 16px; }
  .home-author__profile { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.25rem; }
  .home-author__portrait { display: flex; align-items: center; gap: 1rem; }
  .home-author__portrait img { width: 88px; height: 108px; border-width: 3px; }
  .home-author__portrait figcaption { margin: 0; font-size: .8rem; }
  .home-author__eyebrow { font-size: .6rem; }
  .home-author__bio h2 { font-size: 1.6rem; }
  .home-author__support { padding: 1.25rem; }
  .home-author__button { max-width: none; }
  .home-author__payment-note { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-author__button { transition: none; }
}
