/*
  smarthome.edchenlab.com, the one definition of a button (Ed Chen, 2026-11-03). Linked by the home page and by /about/,
  so a change here changes every button. Pages supply the colours: --wine (or --accent) is the button colour and --paper
  is the page colour, which the fill turns into on hover.

  .btn          outline button: a 2px border in the button colour; on hover or keyboard focus the colour fills in from the left
  .btn.solid    filled button: filled at rest, the fill drains to the right on hover
  Both are anchors or buttons; add nothing else. Motion is off for visitors who ask for reduced motion.
*/
.btn {
  --btn-c: var(--wine, var(--accent, #572638));
  display: inline-block; padding: 9px 20px; border: 2px solid var(--btn-c); border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans, system-ui, sans-serif); text-decoration: none; cursor: pointer;
  color: var(--btn-c);
  background: linear-gradient(var(--btn-c), var(--btn-c)) no-repeat left center / 0% 100%;
  transition: background-size .38s cubic-bezier(.2, .7, .2, 1), color .22s ease .06s, transform .12s ease;
}
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--paper, #fff); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--ink, currentColor); outline-offset: 3px; }

.btn.solid { background-size: 100% 100%; color: var(--paper, #fff); background-position: right center; }
.btn.solid:hover, .btn.solid:focus-visible { background-size: 0% 100%; color: var(--btn-c); }

.btn + .btn { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
