/* Page, typography. Values come from the CSS variables that app.py makes from theme/tokens.py. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-text-strong);
  font-family: var(--font);
  font-size: var(--t-small-size);
  line-height: var(--t-small-line);
  font-weight: var(--t-small-weight);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-hover); }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

h1, .h1 { margin: 0; font-size: var(--t-h1-size); line-height: var(--t-h1-line); font-weight: var(--t-h1-weight); }
h2, .h2 { margin: 0; font-size: var(--t-h2-size); line-height: var(--t-h2-line); font-weight: var(--t-h2-weight); }
h3, .h3 { margin: 0; font-size: var(--t-h3-size); line-height: var(--t-h3-line); font-weight: var(--t-h3-weight); }
p { margin: 0; }
.muted { color: var(--c-text); }
.subtle { color: var(--c-text-subtle); }
.small { font-size: var(--t-small-size); line-height: var(--t-small-line); }
.label, .ctl-lbl {
  font-size: var(--t-label-size); line-height: var(--t-label-line);
  font-weight: var(--t-label-weight); color: var(--c-text);
}
.footnote { font-size: var(--t-label-size); line-height: var(--t-label-line); font-weight: 500; color: var(--c-text-subtle); }
.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;
}

/* The page uses the full width of the window. */
.page { padding: var(--s-gap-xl) var(--s-page-pad) 64px;
  display: flex; flex-direction: column; gap: var(--s-gap-xxl); }
.section { display: flex; flex-direction: column; gap: var(--s-gap-l); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-gap-l); flex-wrap: wrap; }
.row { display: flex; gap: var(--s-gap-m); align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 280px; min-width: 0; }
.section:empty { display: none; }
