:root {
  font-size: 16px;
}

/* ----------------
FONTS
IBM Plex Mono and Space Mono are loaded from Google Fonts in base.html.
---------------- */
:root {
  --font-body: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-heading: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ----------------
TEXT
---------------- */
p {
  font-size: 1rem;
  line-height: 1.5rem;
}

p:not(:last-child) {
  margin-bottom: 1.25rem;
}

/* ----------------
HEADERS
---------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* .h1 / .h4 give another heading level the same look */
h1,
.h1 {
  font-size: 3rem;
  letter-spacing: -0.03rem;
  text-wrap: balance;
}

h2 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.5rem;
  line-height: 1;
}

h4,
.h4 {
  font-size: 1.2rem;
}

.header-large {
  font-size: 4rem;
  letter-spacing: -0.1rem;
  word-spacing: 0.2rem;
}

/* ----------------
TEXT SIZE
---------------- */

.text-small,
.text-small p {
  font-size: 0.8rem;
  letter-spacing: normal;
}

.text-large,
.text-large p {
  font-size: 1.3rem;
  line-height: 1.9rem;
  text-wrap: pretty;
}

.text-extra-large,
.text-extra-large p {
  font-size: 1.6rem;
  line-height: 2.3rem;
  text-wrap: pretty;
}

/* ----------------
OTHER
---------------- */
.align-right {
  text-align: end;
}

.pixel-font {
  font-family: var(--font-heading);
  letter-spacing: 0.05rem;
}

.uppercase {
  text-transform: uppercase;
}

.offset-up-1 {
  position: relative;
  top: -1px;
}

/* Hidden on screen but read by search engines and screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The reset strips these defaults; restore them for **bold** and *italic* text */
strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}
