/* Reset and element defaults shared by every page. */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 600; }

/* A component that sets `display` would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

:is(a, button, select, canvas, input[type="file"], input[type="number"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Small explanatory text under or beside a control. */
.note { color: var(--dim); font-size: var(--fs-2xs); line-height: 1.4; }
/* Uppercase mono tag: pane hints, slot roles, captions. */
.mono-label {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Credits link under every page. Lives here because the landing page loads no components.css. */
.suitefoot { display: flex; justify-content: center; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.suitefoot a {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-decoration: none;
}
.suitefoot a:hover { color: var(--muted); }

.is-busy { color: var(--accent); }
.is-error { color: var(--error); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
