/* Buttons, shared by every page (the site, the invitation and the album), set like the envelopes'
   stationery rather than as pills: a card of paper with a hairline rule inset from its edge.
   Each page defines the palette tokens used here (--white, --ivory, --sage, --sage-deep, --ink). */

.btn {
  --tracking: .24em;
  display: inline-block;
  padding: 1rem 1.6rem 1rem calc(1.6rem + var(--tracking));
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: var(--tracking);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: translate .35s var(--ease-out), box-shadow .35s ease, background-color .35s ease;
}

@media (hover: hover) {
  .btn:hover { translate: 0 -1px; }
}

.btn:active { translate: 0 1px; }

/* Paper, edged with a hairline and ruled again just inside it, like engraved stationery. */
.btn--ghost {
  color: var(--sage);
  background: linear-gradient(160deg, var(--white), var(--ivory));
  box-shadow:
    0 8px 18px -12px color-mix(in srgb, var(--ink) 30%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--sage) 42%, transparent),
    inset 0 0 0 4px var(--white),
    inset 0 0 0 5px color-mix(in srgb, var(--sage) 22%, transparent);
}

.btn--ghost:hover {
  box-shadow:
    0 12px 22px -12px color-mix(in srgb, var(--ink) 32%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--sage) 60%, transparent),
    inset 0 0 0 4px var(--white),
    inset 0 0 0 5px color-mix(in srgb, var(--sage) 40%, transparent);
}

/* The one thing to do on each page: a card of sage with its rule in ivory, and a lozenge either
   side of the words, as the invitation sets its ornaments. */
.btn--solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  padding-left: 1.6rem;
  color: var(--white);
  background-color: var(--sage);
  box-shadow:
    0 12px 24px -14px var(--sage-deep),
    inset 0 0 0 4px var(--sage),
    inset 0 0 0 5px color-mix(in srgb, var(--white) 42%, transparent);
}

.btn--solid::before,
.btn--solid::after {
  content: '';
  flex: none;
  width: .34em;
  aspect-ratio: 1;
  rotate: 45deg;
  background: currentColor;
  opacity: .7;
}

/* The words' own tracking trails after them, so the first lozenge stands off by as much again. */
.btn--solid::before { margin-right: var(--tracking); }

.btn--solid:hover {
  background-color: var(--sage-deep);
  box-shadow:
    0 16px 28px -14px var(--sage-deep),
    inset 0 0 0 4px var(--sage-deep),
    inset 0 0 0 5px color-mix(in srgb, var(--white) 55%, transparent);
}
