/* ==========================================================================
   Fuentes
   ========================================================================== */

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Nobel Uno";
  src: url("../fonts/NobelUno-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

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

@font-face {
  font-family: "Athelas";
  src: url("../fonts/Athelas-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--color-olivo);
  outline-offset: 2px;
}

/* ==========================================================================
   Tipografía base
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-900);
}

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

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

.h3,
h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: 700;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line);
  letter-spacing: var(--text-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--color-olivo);
}

.text-lg {
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  font-weight: 500;
}

.text-secondary {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  :root {
    --text-h1-size: 34px;
    --text-h1-line: 40px;
    --text-h2-size: 28px;
    --text-h2-line: 34px;
  }
}

@media (max-width: 480px) {
  :root {
    --text-h1-size: 28px;
    --text-h1-line: 34px;
    --text-h2-size: 24px;
    --text-h2-line: 30px;
  }
}
