/* Brown call-to-action pills made to look like sealing wax: a glossy, domed top,
   a fine grain and a pressed edge, so they don't read as flat fills.
   .btn-wax is the main red-brown wax (the landing's big order buttons and every .btn-primary);
   .btn-wax-brown is the same wax in a lighter walnut brown, for the smaller secondary buttons.
   Their labels are set in IM Fell Double Pica, an old printing type, loaded in layouts/html_head/_fonts. */
.btn-wax,
.btn-wax-brown,
.btn-primary {
  --wax: #6A2E22;
  --wax-top: #7D3A2B;
  --wax-bottom: #5A251B;
  --wax-shine: rgba(255, 200, 170, 0.35);
  --wax-shade: rgba(30, 8, 4, 0.45);

  font-family: "IM Fell Double Pica", "Newsreader", Georgia, serif;
  font-weight: 400;
  background-color: var(--wax);
  background-image:
    radial-gradient(120% 140% at 50% 0%, var(--wax-shine), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--wax-top), var(--wax-bottom));
  background-blend-mode: normal, soft-light, normal;
  box-shadow:
    inset 0 2px 2px rgba(255, 215, 185, 0.28),
    inset 0 -3px 4px var(--wax-shade),
    0 3px 8px rgba(60, 25, 10, 0.28);
  text-shadow: 0 -1px 0 rgba(30, 10, 4, 0.5);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s;
}

.btn-wax-brown {
  --wax: #8A5A36;
  --wax-top: #9C6A43;
  --wax-bottom: #74482A;
  --wax-shine: rgba(255, 222, 190, 0.38);
  --wax-shade: rgba(45, 22, 8, 0.42);
}

.btn-wax:hover,
.btn-wax-brown:hover,
.btn-primary:hover {
  filter: brightness(0.92);
  box-shadow:
    inset 0 2px 2px rgba(255, 215, 185, 0.24),
    inset 0 -3px 4px var(--wax-shade),
    0 6px 16px rgba(60, 25, 10, 0.3);
}

.btn-wax:active,
.btn-wax-brown:active,
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 5px var(--wax-shade),
    0 1px 2px rgba(60, 25, 10, 0.25);
}

.btn-primary:disabled {
  filter: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-wax,
  .btn-wax-brown,
  .btn-primary {
    transition: none;
  }
}
