/* Theming */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root{
  --white: #F0F0E5;
  --black: #a20b0b;
  --grey: #85888C;
}

/* Reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all .2s ease-out;
  -webkit-transition: all .2s ease-out;
  -moz-transition: all .2s ease-out;
  -o-transition: all .2s ease-out
}

body{
  background-color: hsl(344, 67%, 34%);
  padding-top: 82px;
  color: var(--white);
}

a{
  text-decoration: none;
}

ul{
  list-style: none;
}

/* Header */
.header{
  background: hsl(344, 78%, 25%);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

/* Logo */
.logo{
  display: inline-block;
  color: var(--white);
  font-size: .8rem;
  margin-left: 10px;
  font-family: "Contrail One", serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  height: 88px;
  line-height: 90px;
}

.logo img {
  padding: 1rem 0;
  height: 88px;
}

/* Nav menu */
.nav{
  width: 100%;
  height: 100%;
  position: fixed;
  background: hsl(344, 86%, 17%);
  overflow: hidden;

}

.menu a{
  font-family: "Sometype Mono", serif;
  font-weight: 500;
  display: block;
  padding: 0 1.75rem;
  line-height: 88px;
  color: var(--white);

}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  background: hsl(264, 66%, 65%);
}

.menu a.active {
  background: hsl(344, 67%, 34%);
}

.nav{
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* Menu Icon */

.hamb{
  cursor: pointer;
  float: right;
  padding: 40px 20px;
}


.hamb-line {
  background: var(--white);
  display: block;
  height: 2px;
  position: relative;
  width: 24px;
  border-radius: 2px;

}

.hamb-line::before,
.hamb-line::after{
  background: var(--white);
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
  border-radius: 2px;
}

.hamb-line::before{
  top: 5px;
}

.hamb-line::after{
  top: -5px;
}


.side-menu {
  display: none;
}

/* Toggle menu icon */

.side-menu:checked ~ nav{
  max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
  background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
  transform: rotate(-45deg);
  top:0;

}

.side-menu:checked ~ .hamb .hamb-line::after {
  transform: rotate(45deg);
  top:0;
}


/* Responsiveness */

@media (min-width: 1024px) {
  .nav{
    max-height: none;
    top: 0;
    position: relative;
    float: right;
    width: fit-content;


  }

  .menu li{
    float: left;
  }


  .hamb{
    display: none;
  }
}
