/*
 * Stockrow Weekly's signup (shared/_weekly_signup; tasks/growth/milestones/11,
 * D5), above the footer, under the market summary and at the end of an
 * article: what the e-mail is in one line, then an address and a button — or,
 * for a signed-in reader, the button alone.
 *
 *   .weekly-signup         the band: the pitch, then the form; side by side
 *                          from 768px. --footer holds it off the window's
 *                          edges where no page is around it
 *   .weekly-signup__pitch  the heading and the one line under it
 *   .weekly-signup__form   the address and the button, in a row from 640px
 */
@layer components {
  .weekly-signup {
    display: grid;
    gap: var(--space-md);
    align-items: center;
    margin-block: var(--space-xl);
    padding: var(--space-lg);
    border: var(--rule-width) solid var(--color-accent-line);
    border-radius: var(--radius-lg);
    background-color: var(--color-accent-tint);

    @media (width >= 768px) {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-xl);
    }
  }

  .weekly-signup--footer {
    margin-inline: var(--gutter);
  }

  .weekly-signup__pitch {
    display: grid;
    gap: var(--space-2xs);
    color: var(--color-ink-soft);
    font-size: var(--text-ui);
    line-height: var(--leading-ui);
  }

  .weekly-signup__form {
    display: grid;
    gap: var(--space-xs);
    align-items: start;

    @media (width >= 640px) {
      grid-template-columns: 1fr auto;
    }

    & .button {
      min-block-size: 3.25rem;
    }
  }
}
