/* Element defaults.
   Source: design/base.css, shared by every application with this
   look (see design/README.md). */
*, *::before, *::after { box-sizing: border-box; }

html { font-family: var(--font-sans); font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.5;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-strong); text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--text-lg); font-weight: 600; }
h3 { font-size: var(--text-md); font-weight: 600; }

p { margin: 0; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }

strong { font-weight: 600; color: var(--color-text); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.mono { font-family: var(--font-mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon { width: 1em; height: 1em; flex: none; }
