/* .btn — every button on the site, one look (CTA spec decision 36: "all the buttons are supposed to be
   the same … reuse the same settings except change small things"): bold capitals, the green, the
   corners, a 1px edge (see-through on the solid one, so both kinds are as tall), hover lighter, press
   darker and pushed in. One size dial: the text size, inherited (the body step everywhere today);
   the padding is in em, so a context that sets a smaller text (the header bar) gets the same button
   scaled. Block, so the padding takes room inline. Its words centred top to bottom (Mitchell, 2026-11-27):
   a button stretched to its neighbour's height (the CTA pair) keeps them in the middle, not at the top. */
.btn {
  --btn-accent: var(--color-accent-base);
  display: inline-block;
  align-content: center;
  padding: 0.75em 2em;
  border: var(--border-1) solid transparent;
  border-radius: var(--radius);
  background: var(--btn-accent);
  color: var(--color-bg-base);         /* navy on the green: 7.71:1 (white was 2.43:1, under AA 4.5:1) */
  font-weight: var(--fw-bold);
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--btn-glow, none);   /* the hero sets it */
  transition: translate var(--transition-movement), color var(--transition-fade), background-color var(--transition-fade), box-shadow var(--transition-fade);
}

/* Outline ("View all", "Contact our Team"): green edge and words, the middle see-through. The same
   shades follow. */
.btn[data-variant="outline"] {
  border-color: currentColor;
  background: transparent;
  color: var(--btn-accent);
}

/* Hover: lighter only; while clicked or tapped: darker and pressed in (down and left, its glow
   gone) (Mitchell, 2026-11-11: hover "should just change color … when you click … it moves down"). The shades: tokens/colors.css. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-accent: var(--color-accent-light);
  }
}

/* Mouse and finger alike: a tap on a phone shows it too (Mitchell, 2026-11-11: "we need some kind of a
   visual indication when a person taps on a phone"). */
/* lint-allow: unchecked — the restated run has no :active pass; hero_layout_test.rb "the hero button hovered … pressed" holds the mouse down and reads it */
.btn:active {
  --btn-accent: var(--color-accent-dark);
  translate: calc(-1 * var(--space-3xs)) var(--space-3xs);
  box-shadow: none;
}
