:root {
  --app-font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --base-text-size-xs: 0.75rem;
  --base-text-size-sm: 0.875rem;
  --base-text-size-md: 1rem;
  --base-text-size-lg: 1.125rem;
  --base-text-size-xl: 1.5rem;
  --base-text-size-2xl: 2rem;

  --base-text-lineHeight-tight: 1.25;
  --base-text-lineHeight-snug: 1.375;
  --base-text-lineHeight-normal: 1.5;
  --base-text-lineHeight-relaxed: 1.625;
  --base-text-lineHeight-loose: 1.75;

  --base-text-weight-light: 300;
  --base-text-weight-normal: 400;
  --base-text-weight-medium: 500;
  --base-text-weight-semibold: 600;
  --base-text-weight-bold: 700;
  --base-text-weight-extrabold: 800;

  --app-font-size-body: var(--base-text-size-md);
  --app-font-size-body-sm: 0.9375rem;
  --app-font-size-ui: var(--base-text-size-sm);
  --app-font-size-label: 0.8125rem;
  --app-font-size-caption: var(--base-text-size-xs);
  --app-font-size-overline: 0.6875rem;
  --app-font-size-micro: 0.625rem;
  --app-font-size-title-sm: var(--base-text-size-lg);
  --app-font-size-title-md: 1.25rem;
  --app-font-size-title-lg: 1.375rem;
  --app-font-size-display-sm: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --app-font-size-h1: clamp(1.7rem, 1.25rem + 1.8vw, 2.35rem);
  --app-font-size-h2: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  --app-font-size-h3: clamp(1.15rem, 1.05rem + 0.55vw, 1.4rem);

  --app-lineHeight-body: var(--base-text-lineHeight-normal);
  --app-lineHeight-heading: var(--base-text-lineHeight-snug);
  --app-lineHeight-caption: 1.4;
  --app-lineHeight-dense: 1.1;

  --app-letterSpacing-overline: 0.08em;
}

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

body {
  font-family: var(--app-font-family);
  font-size: var(--app-font-size-body);
  font-weight: var(--base-text-weight-normal);
  line-height: var(--app-lineHeight-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input,
button,
textarea,
select {
  font: inherit;
  line-height: var(--base-text-lineHeight-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--app-font-family);
  line-height: var(--app-lineHeight-heading);
  font-weight: var(--base-text-weight-semibold);
}

h1 {
  font-size: var(--app-font-size-h1);
}

h2 {
  font-size: var(--app-font-size-h2);
}

h3 {
  font-size: var(--app-font-size-h3);
}

h4 {
  font-size: var(--app-font-size-title-sm);
}

p {
  line-height: var(--app-lineHeight-body);
}

small {
  font-size: var(--app-font-size-caption);
  line-height: var(--app-lineHeight-caption);
}
