/* RZD UI Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-bg-app);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: var(--text-body-weight);
  color: var(--color-text-primary);
  background: var(--color-bg-app);
}

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

h1,
h2,
h3,
h4,
.rt-h1,
.rt-h2,
.rt-h3,
.rt-h4,
.rt-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
}

h1,
.rt-h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
}

h2,
.rt-h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
}

h3,
.rt-h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
}

h4,
.rt-h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line);
}

p {
  margin: 0;
}

.rt-body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: 400;
  color: var(--color-text-primary);
}

.rt-caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line);
  color: var(--color-text-muted);
}

.rt-label {
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: 400;
  color: var(--color-text-secondary);
}

.rt-muted {
  color: var(--color-text-muted);
}

.rt-surface {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
}

.rt-focus-ring:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
