header {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

header .logo {
  font-size: 42px;
  font-weight: 800;
  color: black;
}

header .dot {
  color: var(--accent);
  font-size: 3rem;
}

header nav {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

header nav #close {
  display: none;
}

header nav span {
  display: block;
}

header nav {
  cursor: pointer;
}

header nav a {
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.8;
}

header nav .o {
  opacity: 0.2;
}

header nav div {
  cursor: pointer;
  opacity: 0.8;
}

header #hamburger {
  display: none;
}

main,
header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* ──────────────────────────────────────────────── */
/* Mobile / Tablet (max-width: 640px)               */
/* ──────────────────────────────────────────────── */

@media (max-width: 640px) {

  main,
  header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
  }

  header #hamburger {
    display: block;
  }

  header nav {
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    position: fixed;
    right: -300px;
    top: 0;
    padding: 3rem;
    height: 100vh;
    flex-direction: column;
    width: 300px;
    background-color: #eee;
  }

  header nav #close {
    display: block;
    z-index: 1001;
    position: absolute;
    right: 40px;
    top: 27px;
  }
}