/* Self-hosted fonts; licenses: /pulse/theme/black-ops-one-OFL.txt and /pulse/theme/orbitron-OFL.txt */

@font-face {
  font-family: "Black Ops One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/pulse/theme/black-ops-one-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/pulse/theme/orbitron-latin-900-normal.woff2") format("woff2");
}

/* These two local families are the complete product type system.
   SVG icon shapes keep their fill/stroke. Orbitron uses its real weights;
   Black Ops One is a display face with a single normal weight. */
:root {
  --font-body: "Orbitron";
  --font-ui: "Orbitron";
  --font-display: "Black Ops One";
  font-family: var(--font-body);
  font-synthesis: none;
}

html,
body,
button,
input,
textarea,
select,
optgroup,
option,
code,
kbd,
samp,
pre {
  font-family: var(--font-body);
}

button,
input,
textarea,
select {
  font-synthesis: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wordmark,
.pulse-brand,
.brand-name,
.app-title,
.display-heading,
[data-font="display"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
}

/* The small brand tagline is interface copy rather than a display title. */
.pulse-brand small {
  font-family: var(--font-ui);
}

/* Long generated copy and user-entered values must remain within their card. */
p,
li,
dd,
blockquote,
output,
textarea {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

/* Enforce the same two families on legacy utilities and SVG text labels.
   SVG icons use paths, so this never replaces or changes their artwork. */
html body,
html body * {
  font-family: var(--font-body) !important;
}

/* Descendants must follow their display title rather than the UI reset above. */
html
  body
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .wordmark,
    .pulse-brand,
    .brand-name,
    .app-title,
    .display-heading,
    [data-font="display"]
  ),
html
  body
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .wordmark,
    .pulse-brand,
    .brand-name,
    .app-title,
    .display-heading,
    [data-font="display"]
  )
  * {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-synthesis: none;
}

/* Brand taglines remain readable interface copy, including nested spans. */
html body .pulse-brand small,
html body .pulse-brand small * {
  font-family: var(--font-ui) !important;
}
