:root {
  --fundo: #f3e5c8;
  --bloco: #fff7e8;
  --vermelho: #e73525;
  --texto: #1a1a1a;
  --linha: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, Helvetica, sans-serif;
}

.portfolio {
  width: min(1100px, 88%);
  margin: 60px auto;
  background: var(--bloco);
  padding: 55px;
}

.portfolio-topo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 40px;
}

.voltar {
  color: var(--vermelho);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.portfolio-topo h1 {
  font-size: 42px;
  text-transform: lowercase;
}

.filtros {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filtros button {
  border: 0;
  background: #56354f;
  color: white;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
}

.lista-projetos {
  display: flex;
  flex-direction: column;
}

.projeto {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 2px solid var(--linha);
}

.foto-projeto {
  width: 90px;
  height: 90px;
  background: #56354f;
}

.categoria {
  color: var(--vermelho);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.texto-projeto h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.texto-projeto p {
  max-width: 560px;
  line-height: 1.5;
}

.link-projeto {
  color: var(--texto);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}

.link-projeto:hover {
  color: var(--vermelho);
}

@media (max-width: 800px) {
  .portfolio {
    padding: 30px;
  }

  .portfolio-topo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filtros {
    justify-content: flex-start;
  }

  .projeto {
    grid-template-columns: 80px 1fr;
  }

  .link-projeto {
    grid-column: 2;
  }

  .foto-projeto {
    width: 70px;
    height: 70px;
  }
}