/* The home page: the app's look. Tokens, buttons and the footer come from styles.css.
   Phones get one column; wider screens put the plans beside the text. */
.home main { max-width: 440px; gap: 0; }
.home .wordmark { margin-bottom: 44px; }
.hero { display: flex; flex-direction: column; gap: 18px; }
.home .button { margin-top: 10px; }
.home .note { margin-top: -6px; }

#plans { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
#plans h2 { font: 400 26px/1.15 "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
.plan-list { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Like a plan card in Explore: photo, name in white, spots on a butter pill. */
.plan { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden;
  color: var(--cream); text-decoration: none; background: var(--ink); }
.plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,19,.78), rgba(20,24,19,0) 60%); }
.plan .spots { position: absolute; z-index: 1; top: 14px; right: 14px; background: var(--butter); color: var(--ink);
  font: 600 13px/1 -apple-system, system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; }
.plan .text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.plan .title { font: 400 28px/1.05 "Fraunces", Georgia, serif; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.plan .meta { font-size: 15px; opacity: .88; margin-top: 6px; }

@media (min-width: 960px) {
  body.home { padding: 40px 40px 48px; }
  .home main { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px; align-items: center; align-content: center; }
  .home .wordmark { grid-column: 1 / -1; margin-bottom: 32px; align-self: start; }
  .hero { max-width: 440px; }
  .home h1 { font-size: 60px; }
  .hero .lead { font-size: 19px; }
  .hero .button { align-self: flex-start; padding: 0 40px; }
  .hero .note { text-align: left; }
  #plans { margin-top: 0; }
  .plan-list { grid-template-columns: 1fr 1fr; }
  .plan { aspect-ratio: 1 / 1; }
  .plan .title { font-size: 24px; }
  .plan .meta { font-size: 14px; }
  /* No plans to show: the text stands alone. */
  .home main:has(#plans[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
