@font-face {
  font-family: "DejaVu Sans";
  src: url("./assets/DejaVuSans.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("./assets/DejaVuSans-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --font-ui: "DejaVu Sans", sans-serif;
  --type-title: 1.625rem;
  --type-section: 1.25rem;
  --type-emphasis: 1.0625rem;
  --type-conversation: 1.0625rem;
  --type-input: 1.0625rem;
  --type-body: 1rem;
  --type-control: 1rem;
  --type-navigation: 1rem;
  --type-detail: .875rem;
  --type-icon: 1.25rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-icon: 1;
  --leading-heading: 1.3;
  --leading-body: 1.5;
  --leading-conversation: 1.6;
  --paragraph-gap: .625rem;
  --avatar-size: 48px;
  font-family: var(--font-ui);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}

body { font-size: var(--type-body); }
:is(h1, h2, h3, h4) { font-weight: var(--weight-semibold); line-height: var(--leading-heading); }
h1 { font-size: var(--type-title); }
h2 { font-size: var(--type-section); }
:is(h3, h4) { font-size: var(--type-emphasis); }
:is(small, time) { font-size: var(--type-detail); }
:is(strong, b) { font-weight: var(--weight-semibold); }
:is(button, input, select, textarea) { font: inherit; }
button { font-size: var(--type-control); font-weight: var(--weight-medium); }
:is(input, select, textarea) { font-size: var(--type-input); font-weight: var(--weight-regular); }
