/* ===================================
   Typography
   =================================== */

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
}

/* Headings - Poppins for h1, Antonio for others */
h1,
.hero-title,
.services h1,
.portfolio h1,
.about h1,
.contact h1 {
  font-family: var(--font-h1);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  background: var(--header-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  max-width: 100%;
}

h2,
h3,
h4,
h5,
h6,
.footer h2 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: inherit;
}

/* Mobile-first heading sizes */
h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.2rem;
}

h4,
h5,
h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-on-primary);
}

/* Desktop heading sizes */
@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4,
  h5,
  h6 {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }
}
