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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(var(--BASE) * 1px);
}

body {
  align-items: stretch;
  background-color: var(--color-white);
  color: var(--color-black);
  display: flex;
  flex-direction: row;
  font-optical-sizing: auto;
  justify-content: flex-start;
  line-height: var(--line-height-md);
  min-height: 100vh;
  overflow: auto;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body,
input,
button,
select {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-style: normal;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-md);
}

input,
select,
button {
  appearance: none;
  background-color: transparent;
  border: none;
  color: var(--color-black);
  outline: none;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration,
input::-webkit-calendar-picker-indicator,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  height: 0;
  width: 0;
}

input::-ms-clear,
input::-ms-reveal {
  display: none;
  height: 0;
  width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

h2, h3 {
  line-height: var(--line-height-sm);
}

h1, h2 {
  font-size: var(--font-size-lg);
}

h1, h3 {
  font-weight: var(--font-weight-heavy);
  letter-spacing: -0.0125em;
}

h1 {
  line-height: 1;
}

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

h4 {
  color: var(--color-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-md);
  text-transform: uppercase;
}

h5 {
  font-weight: var(--font-weight-heavy);
}

a {
  color: inherit;
  cursor: pointer;
  display: inline;
  text-decoration: none;
}

[tabindex="0"]:focus,
summary:focus,
a:focus,
input:focus,
select:focus,
button:focus {
  outline: var(--border-sm) solid var(--color-primary);
  outline-offset: var(--border-md);
  position: relative;
}

button {
  cursor: pointer;
}

b {
  font-weight: var(--font-weight-bold);
}

strong {
  font-weight: var(--font-weight-heavy);
}

i,
em {
  font-style: italic;
}

i {
  color: var(--color-dark);
}

small {
  font-size: 0.75em;
  font-weight: var(--font-weight-normal);
  display: inline-block;
  vertical-align: baseline;
}

template {
  display: none !important;
}

.turbo-progress-bar {
  height: var(--spacing-xs);
  background-color: var(--color-primary);
}
