/* Two buttons, and no third: coral for the action a page is asking
   for, ghost for the one next to it. A button never scales or grows a
   shadow on hover; it darkens and lifts 1px, which is the same manner
   the rest of the site moves in. */

@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--space-m);
    border: 1px solid transparent;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color var(--motion),
      border-color var(--motion),
      color var(--motion),
      translate var(--motion);
  }

  .button:hover,
  .button:focus-visible {
    translate: 0 -1px;
  }

  .button--accent {
    background: var(--color-accent);
    color: var(--color-on-accent);
  }

  .button--accent:hover,
  .button--accent:focus-visible {
    background: color-mix(in oklch, var(--color-accent) 84%, var(--color-ink));
  }

  /* Sits on the indigo band, so it reads from the on-deep tones. */
  .button--ghost {
    border-color: var(--color-line-on-deep);
    color: var(--color-on-deep);
  }

  .button--ghost:hover,
  .button--ghost:focus-visible {
    border-color: var(--color-on-deep);
    background: var(--color-wash-on-deep);
  }
}
