/* Classic 88x31-style web buttons (about 124x38: smaller box, bigger caps label). Semantic tokens only.
   <nav class="web-btns" aria-label="…">
     <a class="web-btn" href="/work/"><img src="Assets/web/icons/…" alt=""><span>Work</span></a>
   </nav>
   Labels are uppercase via CSS only (the text, and so the accessible name, stays as written).
   Four in a row, centered, when there's room, otherwise a centered 2x2 grid (tap targets >= 44px on phones). */

.web-btns {
  --web-btn-w: 124px;
  display: grid;
  grid-template-columns: repeat(4, var(--web-btn-w));
  justify-content: center;
  gap: var(--space-3);
}

.web-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--web-btn-w);
  min-height: 38px;
  padding: 0 5px;
  background: var(--os-btn-face);
  color: var(--os-text);
  border: 1px solid var(--os-outline);
  box-shadow: inset 1px 1px 0 var(--os-hi), inset -1px -1px 0 var(--os-lo), 2px 2px 0 var(--os-lo);
  font-family: var(--font-chrome);
  font-size: calc(15px * var(--chrome-scale));
  line-height: 1.1;
  letter-spacing: calc(0.07em + var(--chrome-tracking));
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

/* beat ".os-win__body a" (link color inside windows) */
.web-btn:link,
.web-btn:visited { color: var(--os-text); }

.web-btn img {
  flex: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.web-btn:hover { background: var(--os-content); }

.web-btn:active {
  background: var(--os-face-pressed);
  box-shadow: inset 1px 1px 0 var(--os-lo), inset -1px -1px 0 var(--os-hi);
  transform: translate(1px, 1px);
}

.web-btn:focus-visible {
  outline: 2px solid var(--os-focus);
  outline-offset: 2px;
}
