(Importei a fonte dos dois jeitos porque pensava que o problema era na importação mas testei colocando a fonte direto no menu hamburguer e funcionou mas se ponho só no body não vai para o menu hamburguer)
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alura Books</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="reset.css">
</head>
<body>
<header class="cabecalho">
<div class="container">
<input type="checkbox" id="menu" class="container__botao">
<label for="menu">
<span class="cabecalho__menu-hamburguer"></span>
<img class="container__imagem" src="/img/Logo.svg" alt="Alura logo">
</label>
<ul class="lista-menu">
<li class="lista-menu__titulo">Categorias</li>
<li class="lista-menu__item"><a class="lista-menu__link" href="#">PROGRAMAÇÃO</a></li>
<li class="lista-menu__item"><a class="lista-menu__link" href="#">FRONT-END</a></li>
<li class="lista-menu__item"><a class="lista-menu__link" href="#">INFRAESTRUTURA</a></li>
<li class="lista-menu__item"><a class="lista-menu__link" href="#">BUSINESS</a></li>
<li class="lista-menu__item"><a class="lista-menu__link" href="#">DESIGN & UX</a></li>
</ul>
</div>
<div class="container">
<a class="container__imagem" href="#"><img src="/img/Favoritos.svg" alt="favoritos"></a>
<a class="container__imagem" href="#"><img src="/img/Compras.svg" alt="compras"></a>
<a class="container__imagem" href="#"><img src="/img/Usuario.svg" alt="usuario"></a>
</div>
</header>
</body>
</html>
.cabecalho__menu-hamburguer {
width: 3rem;
height: 3rem;
background-image: url("../img/Menu.svg");
display: inline-block;
}
.cabecalho {
background-color: var(--branco);
display: flex;
justify-content: space-between;
position: relative;
}
.container {
display: flex;
align-items: center;
}
.container__imagem {
padding: 0.7rem;
}
.lista-menu {
display: none;
position: absolute;
top: 100%;
background-color: var(--branco);
width: 70vw;
}
.container__botao:checked ~ .lista-menu{
display: block;
}
.lista-menu__titulo,.lista-menu__item {
padding: 1rem;
}
.lista-menu__titulo {
color: var(--laranja);
}
.lista-menu__link {
background: var(--azul-degrade);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
@import url(/styles/header.css);
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
--cor-de-fundo: #EBECEE;
--branco: #FFFFFF;
--laranja: #EB9B00;
--azul-degrade: linear-gradient(98deg, #002F52 35.49%, #326589 165.37%);
--fonte-principal: "Poppins";
}
body {
background-color: var(--cor-de-fundo);
font-family: var(--fonte-principal);
font-size: 1rem;
font-weight: 400;
}