/* Reset and document-level typography. Deliberately short: the
   component sheet does the work, and a reset that styles things is
   a reset that fights you later. */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-14);
  line-height: var(--lh-body);
  font-feature-settings: "cv05" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

/* Every number in this product is compared to another number
   sitting above or below it, so figures are tabular everywhere and
   not only in tables. */
.num, .figure, td, th, time, .metric-value { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-tight); }
h1 { font-size: var(--t-27); letter-spacing: var(--track-title); }
h2 { font-size: var(--t-21); letter-spacing: var(--track-title); }
h3 { font-size: var(--t-15); }
h4 { font-size: var(--t-13); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* One focus treatment for the whole product. Keyboard only, so a
   mouse user never sees a ring, and a keyboard user always does. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

::selection { background: color-mix(in oklab, var(--accent) 34%, transparent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background-clip: content-box; background-color: var(--line-3); }

/* Utilities, the few that earn their place. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.label {
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-3);
}

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: var(--s2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1 1 0; min-width: 0; }
[hidden] { display: none !important; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.micro { font-size: var(--t-11); }
.w-picker { max-width: 280px; }
.skeleton-line { height: 36px; }

/* The first thing anybody sees, and the last thing standing if the app
   cannot start. Styled here rather than in a view sheet because it has
   to work before a single module has loaded. */
.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s6);
  background: var(--canvas);
}
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; }
.boot-message { font-size: var(--t-14); color: var(--text-2); max-width: 44ch; line-height: var(--lh-body); }
.boot-actions { display: flex; gap: var(--s2); }
