h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;

  &.danger-heading {
    color: var(--danger-dark);
  }

  span.lighter {
    font-weight: 400;
  }
}

/* Typography Customisation Helpers */
/* COLORS */
.t-sub {
  color: var(--ink-gray);
}

.t-white {
  color: var(--pure-white);
}

.t-brand {
  color: var(--theme-color-darker);
}

.t-contrast {
  /* RYAL-2818: Create contrast color for brand color */
  color: var(--brand-charcoal);
}

.t-notice {
  color: var(--blue-darker);
}

.t-success {
  color: var(--success-dark);
}

.t-alert {
  color: var(--yellow-darker);
}

.t-warning {
  color: var(--warning-dark);
}

.t-danger {
  color: var(--danger-dark);
}

/* ALIGNMENT */
.t-left, .t-center, .t-right {
  width: 100%;
}

.t-left {
  text-align: left;
}

.t-center {
  text-align: center;
}

.t-right {
  text-align: right;
}

.t-no-break {
  white-space: nowrap;
}

.t-word-break {
  word-break: break-all;
}

.t-force-wrap {
  overflow-wrap: anywhere;
}

.t-upper {
  text-transform: uppercase;
}

.t-italic {
  font-style: italic;
}

.t-bold {
  font-weight: 700;
  font-family: var(--font-super);
}

strong {
  font-family: var(--font-super);
}

p {
  font-size: 1rem;
  line-height: 1.25rem;

  &.p-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 2.5rem;
  }

  &.p-caption {
    color: var(--ink-gray);
    font-size: 0.875rem;
    line-height: 1rem;

    &.p-two { /* To keep the line height of 2 lines even if there is only one */
      min-height: 2rem;
    }
  }

  &.p-caption.t-danger {
    color: var(--danger-dark);
  }
}

/* SIZES */
h1 {
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 800;

  span.t-small {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 6rem;
  }
}

h2 {
  font-size: 2rem;
  line-height: 2.5rem;

  span.t-small {
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 400;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 5rem;
  }
}

h3 {
  font-size: 1.5rem;
  line-height: 2rem;

  span.t-small {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 4rem;
  }
}

h4 {
  font-size: 1.25rem;
  line-height: 1.5rem;

  span.t-small {
    font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 400;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 3rem;
  }
}

h5 {
  font-size: 1rem;
  line-height: 1.5rem;

  span.t-small {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 3rem;
  }
}

h6 {
  font-size: 0.875rem;
  line-height: 1rem;

  span.t-small {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
  }

  &.t-two { /* To keep the line height of 2 lines even if there is only one */
    min-height: 2rem;
  }
}

/* Additional Typography */
a {
  text-decoration: none;
  color: inherit;

  &.lighter {
    font-weight: 400;
  }
}

/* Screen reader compatibility */
.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}