/*
 * 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: 14px;
  line-height: 20px;
}

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: 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: the pilot's (ADR-0042 amendment) — titles and figures medium, labels in sentence case ── */

/* Page title: 24 / 32 medium */
.t-page-title {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

/* Section title: 18 / 28 medium */
.t-section-title {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  font-weight: var(--weight-medium);
}

/* Card title: 16 / 24 medium */
.t-card-title {
  font-size: var(--text-md);
  line-height: var(--leading-md);
  font-weight: var(--weight-medium);
}

/* Body: 14 / 20 */
.t-body {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-regular);
}

/* Body strong: 14 / 20 semibold — buttons, chips, field labels, record links */
.t-body-strong {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-semibold);
}

/* Label: 13 / 20 regular, grey, sentence case — a fact's label, a tile's label, a table head */
.t-label {
  font-size: var(--text-label);
  line-height: var(--leading-label);
  font-weight: var(--weight-regular);
  color: var(--color-subtle);
}

/* Caption: 12 / 16 grey */
.t-caption {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: var(--weight-regular);
  color: var(--color-muted);
}

/* Figure: 26 / 32 medium tabular — the figure of a stat tile */
.t-figure {
  font-size: var(--text-figure);
  line-height: var(--leading-figure);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

/* Small figure: 18 / 28 medium tabular — a number in a card or a countdown's unit row */
.t-figure-sm {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
