/* Reset and the type of the page */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.45 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}

#app { height: 100%; }

h1, h2, h3, h4, p { margin: 0; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: var(--fs-display); line-height: 1.15; }
h2 { font-size: var(--fs-heading); line-height: 1.25; }
h3 { font-size: var(--fs-title); font-weight: 600; line-height: 1.3; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Numbers line up in columns */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }

.caption { font-size: var(--fs-caption); color: var(--text-2); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.danger { color: var(--danger); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hidden { display: none !important; }

/* Thin scrollbars that keep out of the way */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

::selection { background: color-mix(in srgb, var(--text) 22%, transparent); }

:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 55%, transparent); outline-offset: 2px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
