/*
 * Base styles and the type scale of the showcase.
 * The scale is the set of text styles the product uses; each class names the utilities behind it in
 * the code, or is marked "proposed" when the product does not have it yet.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 19px;
  letter-spacing: var(--tracking-text);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

a:hover {
  color: var(--color-primary-hover);
}

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

code,
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 17px;
}

/* The small mono under a name: an id, a version (REQ-1031, v1.2) */
.mono--sm {
  font-size: 11px;
  line-height: 16px;
}

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

.tnum {
  font-variant-numeric: tabular-nums;
}

/* ── Type scale ──
   Measured on the Figma's drawn screens (Geist; SC-016): every style at -0.011em, the page title and
   the figures at -0.03em. Proposed names are marked. */

/* Figure: the value of a KPI card — 28/36 semibold */
.t-figure {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

/* Small figure: a number in a card row or a table head (proposed) */
.t-figure-sm {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

/* Page title: the heading of a screen — 22/28 semibold */
.t-page-title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* Section title: a block inside a screen (proposed, between the page and the card title) */
.t-section-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

/* Brand: the product's name in the sidebar — 15/20 semibold (proposed name) */
.t-brand {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

/* Card title: "Needs attention" — 14/20 semibold */
.t-card-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

/* Body: menu items, a page's subtitle, cells — 13/19 */
.t-body {
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
}

/* Body strong: a row's name, buttons, links — 13/19 medium */
.t-body-strong {
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
}

/* Caption: "+4 this week" — 12/17, the caption color */
.t-caption {
  font-size: 12px;
  line-height: 17px;
  font-weight: 400;
  color: var(--color-caption);
}

/* Table head: column heads — 12/17 medium, muted (proposed name) */
.t-head {
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  color: var(--color-muted);
}

/* Label: a group heading in the sidebar, a count pill — 11/16 medium, sentence case */
.t-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: var(--color-muted);
}
