@charset "UTF-8";

/* ─── Tablet e Desktop (min-width: 48em / 768px) ─────────── */
@media screen and (min-width: 48em) {
  main {
    grid-template-columns: 260px 1fr;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 1.75rem;
    align-items: start;
  }

  #ficha {
    grid-column: 1 / 2;
    position: sticky;
    top: 72px;
    height: fit-content;
    padding: 2rem 1.5rem;
  }

  #ficha .foto {
    width: 120px;
    height: 120px;
  }

  #detalhes {
    grid-column: 2 / 3;
  }

  #skill-container {
    grid-template-columns: 1fr 1fr;
  }

  .projeto {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .projeto .foto {
    aspect-ratio: 1 / 1;
    width: 130px;
    min-width: 130px;
    max-height: 130px;
    flex-shrink: 0;
    align-self: flex-start;
  }

  .projeto-info {
    flex: 1;
  }
}

/* ─── Large Desktop (min-width: 75em / 1200px) ───────────── */
@media screen and (min-width: 75em) {
  main {
    grid-template-columns: 280px 1fr;
    max-width: 1200px;
  }

  #ficha {
    padding: 2.25rem 1.75rem;
  }

  #ficha .foto {
    width: 130px;
    height: 130px;
  }

  article {
    padding: 2rem 2.25rem;
  }
}

/* ─── Mobile pequeno (max-width: 380px) ──────────────────── */
@media screen and (max-width: 380px) {
  header {
    padding: 0 1rem;
  }

  nav#menu a {
    padding: 0.4em 0.6em;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  #ficha .foto {
    width: 90px;
    height: 90px;
  }

  #ficha h1 {
    font-size: 1.2rem;
  }

  article {
    padding: 1.25rem;
  }
}