/*
 * Rich-text typography for shared components (B3 sizing framework).
 * Headlines: Archivo 800, Expanded (125% H1, 112% H2), sentence case, left-aligned.
 * Eyebrows (an H3 as the first child of rich text): JetBrains Mono, caps.
 * No italics in the system, so emphasis renders upright.
 */
h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-family: var(--rui-font-heading);
  color: inherit;
}

h1 {
  font-size: var(--rui-hero-heading-font-size);
  font-weight: 800;
  font-stretch: 125%;
  line-height: var(--rui-hero-heading-line-height);
  letter-spacing: -0.005em;
}

h2 {
  font-size: var(--rui-heading-font-size);
  font-weight: 800;
  font-stretch: 112%;
  line-height: var(--rui-heading-line-height);
}

h3 {
  font-size: var(--rui-subheading-font-size);
  font-weight: 600;
  line-height: var(--rui-subheading-line-height);
}

h4 {
  font-family: var(--rui-font-mono);
  font-size: var(--rui-eyebrow-font-size);
  font-weight: 600;
  line-height: var(--rui-eyebrow-line-height);
  letter-spacing: var(--rui-eyebrow-letter-spacing);
  text-transform: uppercase;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

em {
  font-style: normal;
  color: var(--flux-text-secondary);
}

strong {
  font-weight: 600;
}

.rui-rich-text > h3:first-child {
  font-family: var(--rui-font-mono);
  font-size: var(--rui-eyebrow-font-size);
  font-weight: 600;
  line-height: var(--rui-eyebrow-line-height);
  letter-spacing: var(--rui-eyebrow-letter-spacing);
  text-transform: uppercase;
}

.rui-rich-text a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.rui-rich-text a:hover {
  color: var(--flux-heat);
}

.rui-rich-text ul {
  padding-left: 1.2em;
}

.rui-rich-text li + li {
  margin-top: 6px;
}
