/* Elements, and the few helpers every page uses. */

* { box-sizing: border-box; }
/* `hidden` always hides, even an element whose class sets `display`. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs)/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

kbd {
  font: 11px/1 var(--mono);
  background: var(--sunken);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--ink-2);
}

.mono { font-family: var(--mono); font-size: calc(var(--fs-dense) - 1px); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12px; }
.caution { color: var(--warn-ink); }

/* Read by screen readers, not drawn. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
