/* docs/DESIGN.md #8.1 — boutons. */
@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 48px;
    min-width: 48px;
    padding-inline: var(--space-5);
    border-radius: 0;
    font-size: .9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), border-bottom-width var(--dur) var(--ease);
  }

  .button .pictogram {
    color: inherit;
  }

  .button--primary {
    background: var(--terracotta-deep);
    color: var(--cream);
    border: none;
    border-bottom: 4px solid var(--ochre);
  }

  .button--primary:hover {
    border-bottom-width: 8px;
  }

  .button--secondary {
    background: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
  }

  .button--secondary:hover {
    background: var(--forest);
    color: var(--cream);
  }

  .section--forest .button--primary,
  .section--forest-deep .button--primary {
    background: var(--ochre);
    color: var(--forest);
    border-bottom-color: var(--forest);
  }

  .section--forest .button--secondary,
  .section--forest-deep .button--secondary {
    color: var(--cream);
    border-color: var(--cream);
  }

  .section--forest .button--secondary:hover,
  .section--forest-deep .button--secondary:hover {
    background: var(--cream);
    color: var(--forest);
  }

  .button[aria-disabled="true"] {
    position: relative;
    background: var(--cream-deep);
    color: var(--ink-muted);
    border: none;
    cursor: not-allowed;
  }

  .button[aria-disabled="true"] .slats {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 2px;
    top: 50%;
    color: var(--ink-muted);
  }

  .button--loading {
    pointer-events: none;
  }
}
