/* ============================================
   TYPOGRAPHY
   Font face declarations, typography utilities,
   and text element styles
   ============================================ */

/* ============================================
   FONT FACE DECLARATIONS
   ============================================ */

@font-face {
  font-family: "Brnos-Aires";
  src: url("../fonts/brnos-aires.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variable.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

body {
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--color-neutral-5);
  background-color: var(--color-gray-light-1);
  font-size: var(--text-m);
  line-height: var(--size-m);
  margin: 0;
}

/* ============================================
   TEXT SIZE UTILITIES
   ============================================ */

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--size-m);
}

.text-s {
  font-size: var(--text-s);
  line-height: var(--size-s);
}

.text-m {
  font-size: var(--text-m);
  line-height: var(--size-m);
}

.text-l {
  font-size: var(--text-l);
  line-height: var(--size-m);
}

.text-xl {
  font-size: var(--text-xl);
  line-height: var(--size-l);
}

.text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--size-l);
}

.text-3xl {
  font-size: var(--text-3xl);
  line-height: var(--size-xl);
}

.text-4xl {
  font-size: var(--text-4xl);
  line-height: var(--size-2xl);
}

.text-5xl {
  font-size: var(--text-5xl);
  line-height: var(--size-3xl);
}

/* ============================================
   HEADINGS
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: var(--size-2xl);
  font-weight: var(--font-weight-regular);
  margin: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--size-2xl);
  font-weight: var(--font-weight-regular);
  margin: 0;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--size-2xl);
  font-weight: var(--font-weight-regular);
  margin: 0;
}

/* ============================================
   TEXT ELEMENTS
   ============================================ */

p {
  font-size: var(--text-m);
  line-height: var(--size-m);
  margin: 0;
}

label {
  font-size: var(--text-m);
  line-height: var(--size-m);
  cursor: pointer;
  color: var(--color-neutral-3);
}

footer p {
  font-size: var(--text-xs);
  line-height: var(--size-m);
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  font-family: var(--font-display);
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--color-accent-2);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-3);
  text-decoration: underline;
}
